/* ══════════════════════════════════════════════════════════════════════
   PIXEL ACADEMY — Course Player Styles
   3-column layout · Gini voice · Quiz · Notes · Labs
   ══════════════════════════════════════════════════════════════════════ */

body.gini-playing {
    padding-bottom: 76px;
}

/* ── Course Layout ───────────────────────────────── */
.course-layout {
    display: grid;
    grid-template-columns: 240px 1fr 380px;
    margin-top: 60px;
    min-height: calc(100vh - 60px);
}

/* ── Module Sidebar ──────────────────────────────── */
.mod-sidebar {
    background: var(--bg-dark);
    border-right: 1px solid var(--border);
    position: sticky;
    top: 60px;
    height: calc(100vh - 60px);
    overflow-y: auto;
    padding: 20px 0;
}
.mod-sidebar::-webkit-scrollbar {
    width: 3px;
}
.mod-sidebar::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}
.mod-sidebar-back {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    margin-bottom: 12px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-tertiary);
    transition: color 0.2s;
}
.mod-sidebar-back:hover {
    color: var(--text-white);
}
.mod-sidebar-title {
    padding: 0 20px;
    font-size: 0.55rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-tertiary);
    margin-bottom: 12px;
}
.mod-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-tertiary);
    cursor: pointer;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}
.mod-link:hover {
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
}
.mod-link.active {
    color: var(--text-white);
    font-weight: 700;
    background: rgba(255, 255, 255, 0.05);
    border-left-color: var(--text-white);
}
.mod-link.completed {
    color: var(--text-secondary);
}
.mod-num {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 800;
    flex-shrink: 0;
    background: #1a1a1a;
    border: 1px solid var(--border);
}
.mod-link.active .mod-num {
    background: var(--text-white);
    color: var(--bg-dark);
    border-color: var(--text-white);
}
.mod-link.completed .mod-num {
    background: #1a1a1a;
    color: #22c55e;
    border-color: #1a3a1a;
}

/* ── Content Area ────────────────────────────────── */
.content-area {
    padding: 44px 36px 80px;
}
.content-area h1 {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 8px;
    line-height: 1.15;
}
.content-meta {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 28px;
    font-size: 0.75rem;
    color: var(--text-tertiary);
    font-weight: 600;
}

/* ── Gini Start Lesson Bar ───────────────────────── */
.gini-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 32px;
    cursor: pointer;
    transition: all 0.2s;
}
.gini-bar:hover {
    border-color: #444;
}
.gini-bar-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #1a1a1a;
    border: 2px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.gini-bar-info {
    flex: 1;
}
.gini-bar-info .title {
    font-size: 0.85rem;
    font-weight: 700;
}
.gini-bar-info .sub {
    font-size: 0.68rem;
    color: var(--text-tertiary);
    margin-top: 1px;
}
.gini-bar-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 100px;
    background: var(--text-white);
    color: var(--bg-dark);
    font-size: 0.72rem;
    font-weight: 800;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.15s;
}
.gini-bar-btn:hover {
    transform: scale(1.03);
}
.gini-bar-waves {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 18px;
}
.gini-bar-waves .bar {
    width: 3px;
    height: 100%;
    background: var(--text-white);
    border-radius: 2px;
    animation: none;
    opacity: 0.3;
}
.gini-bar.playing .bar {
    animation: wave-bar 0.8s ease-in-out infinite alternate;
    opacity: 1;
}
.gini-bar.playing .bar:nth-child(1) {
    animation-delay: 0s;
}
.gini-bar.playing .bar:nth-child(2) {
    animation-delay: 0.15s;
}
.gini-bar.playing .bar:nth-child(3) {
    animation-delay: 0.3s;
}
.gini-bar.playing .bar:nth-child(4) {
    animation-delay: 0.45s;
}
.gini-bar.playing .bar:nth-child(5) {
    animation-delay: 0.6s;
}

/* ── Content Blocks ──────────────────────────────── */
.crs-block {
    margin-bottom: 8px;
    line-height: 1.9;
    font-size: 0.96rem;
    color: var(--text-secondary);
    padding: 6px 2px;
    border-radius: 0;
    border: none;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}
.crs-block.gini-reading {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-white);
    border-left-color: var(--text-white);
    padding-left: 16px;
}
.crs-block.tip-block {
    background: #111;
    border: 1px solid #222;
    border-left: 4px solid #888;
    padding: 16px 20px;
}
.crs-block.ai-block {
    background: #111;
    border: 1px solid #222;
    border-left: 4px solid #666;
    padding: 16px 20px;
}
.crs-block.ai-tool-block {
    background: #111;
    border: 1px solid #222;
    border-left: 4px solid #555;
    padding: 16px 20px;
}
.crs-block.visual-block {
    background: transparent;
    padding: 0;
    border: none;
}
.ve-body-text {
    padding: 12px 16px 4px;
    font-size: 0.9rem;
    color: var(--text-secondary, #aaa);
    line-height: 1.7;
}
.block-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 800;
    font-size: 0.68rem;
    margin-bottom: 8px;
    color: #bbb;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}
.block-label svg {
    width: 14px;
    height: 14px;
    stroke: #bbb;
    fill: none;
    stroke-width: 1.8;
    flex-shrink: 0;
}

/* ── Word-level Highlighting ─────────────────────── */
.gini-word {
    transition: all 0.18s ease;
    border-radius: 3px;
    padding: 1px 0;
}
.gini-word.speaking {
    color: #ffd700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.25);
    font-weight: 600;
    padding: 1px 2px;
}
.crs-block.gini-reading .gini-word.speaking {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* ── Inline List Items (auto-detected) ───────────── */
.gini-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 12px 0 8px;
    padding: 0;
}
.gini-list-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid #444;
    border-radius: 0 6px 6px 0;
    line-height: 1.7;
    font-size: 0.92rem;
    transition: all 0.3s ease;
}
.gini-list-item.gini-reading {
    border-left-color: #ffd700;
    background: rgba(255, 215, 0, 0.05);
}
.gini-list-num {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
    color: #bbb;
    margin-top: 1px;
}
.gini-list-item.gini-reading .gini-list-num {
    background: rgba(255, 215, 0, 0.15);
    color: #ffd700;
}

/* ── Fixed Bottom Player ─────────────────────────── */
.gini-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--text-white);
    color: var(--bg-dark);
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.3);
}
.gini-player.visible {
    transform: translateY(0);
}
.gini-player-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 24px;
}
.gp-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.gp-info {
    flex: 1;
    min-width: 0;
}
.gp-title {
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
}
.gp-transcript {
    font-size: 0.88rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
    color: #111;
}
.gp-transcript .pw-dim {
    opacity: 0.35;
    font-weight: 400;
}
.gp-transcript .pw-active {
    font-weight: 700;
    color: #000;
}
.gp-transcript .pw-upcoming {
    opacity: 0.6;
}
.gp-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.gp-waves {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 18px;
}
.gp-waves .bar {
    width: 3px;
    background: var(--bg-dark);
    border-radius: 2px;
    animation: wave-bar 0.8s ease-in-out infinite alternate;
}
.gp-waves .bar:nth-child(1) {
    height: 8px;
    animation-delay: 0s;
}
.gp-waves .bar:nth-child(2) {
    height: 14px;
    animation-delay: 0.15s;
}
.gp-waves .bar:nth-child(3) {
    height: 18px;
    animation-delay: 0.3s;
}
.gp-waves .bar:nth-child(4) {
    height: 12px;
    animation-delay: 0.45s;
}
.gp-waves .bar:nth-child(5) {
    height: 6px;
    animation-delay: 0.6s;
}
@keyframes wave-bar {
    from {
        transform: scaleY(0.3);
    }
    to {
        transform: scaleY(1);
    }
}
.gp-play {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid var(--bg-dark);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
}
.gp-play:hover {
    background: var(--bg-dark);
    color: var(--text-white);
}
.gp-play:hover svg {
    stroke: var(--text-white);
    fill: var(--text-white);
}
.gp-skip,
.gp-close {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #666;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: inherit;
    transition: color 0.2s;
}
.gp-gender {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid #ccc;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #555;
    transition: all 0.15s;
}
.gp-gender:hover {
    background: var(--bg-dark);
    color: var(--text-white);
    border-color: var(--bg-dark);
}
.gp-speed {
    background: rgba(0, 0, 0, 0.08);
    border: 1.5px solid #ccc;
    border-radius: 6px;
    padding: 3px 8px;
    font-size: 0.68rem;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    color: #333;
    transition: all 0.15s;
    letter-spacing: 0.5px;
    min-width: 36px;
    text-align: center;
}
.gp-speed:hover {
    background: var(--bg-dark);
    color: var(--text-white);
    border-color: var(--bg-dark);
}
.gp-skip {
    font-size: 1.1rem;
}
.gp-skip:hover,
.gp-close:hover {
    color: #000;
}

/* ── Quiz ────────────────────────────────────────── */
.quiz-section {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 2px solid var(--border);
}
.quiz-section h2 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 20px;
}
.quiz-question {
    margin-bottom: 24px;
}
.quiz-question h4 {
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.quiz-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 6px;
    cursor: pointer;
    font-size: 0.88rem;
    transition: all 0.2s;
}
.quiz-option:hover {
    border-color: #444;
    background: rgba(255, 255, 255, 0.03);
}
.quiz-option.selected {
    border-color: var(--text-white);
    background: rgba(255, 255, 255, 0.08);
    font-weight: 600;
}
.quiz-option.correct {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
}
.quiz-option.wrong {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}
.quiz-option .opt-letter {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #1a1a1a;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
    flex-shrink: 0;
}
.quiz-submit {
    margin-top: 16px;
    padding: 12px 32px;
    background: var(--text-white);
    color: var(--bg-dark);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 800;
    font-size: 0.88rem;
    cursor: pointer;
    font-family: inherit;
}
.quiz-result {
    margin-top: 16px;
    padding: 16px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.92rem;
}
.quiz-result.pass {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}
.quiz-result.fail {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ── Notes ───────────────────────────────────────── */
.notes-section {
    margin-top: 32px;
}
.notes-section h3 {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 10px;
}
.notes-textarea {
    width: 100%;
    min-height: 120px;
    padding: 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.9rem;
    resize: vertical;
    background: var(--bg-card);
    color: var(--text-white);
    transition: border-color 0.2s;
}
.notes-textarea:focus {
    outline: none;
    border-color: #555;
}
.notes-textarea::placeholder {
    color: var(--text-tertiary);
}
.notes-save {
    margin-top: 8px;
    padding: 8px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.78rem;
    cursor: pointer;
    color: var(--text-secondary);
    font-family: inherit;
    transition: all 0.2s;
}
.notes-save:hover {
    background: var(--text-white);
    color: var(--bg-dark);
}

/* ── Module Nav ──────────────────────────────────── */
.module-nav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}
.module-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.85rem;
    border: 1.5px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}
.module-nav-btn:hover {
    border-color: #444;
    color: var(--text-white);
}
.module-nav-btn.primary {
    background: var(--text-white);
    color: var(--bg-dark);
    border-color: var(--text-white);
}
.module-nav-btn:disabled {
    opacity: 0.2;
    cursor: not-allowed;
}

/* ── Lab Panel ───────────────────────────────────── */
.lab-panel {
    background: var(--bg-dark);
    border-left: 1px solid var(--border);
    position: sticky;
    top: 60px;
    height: calc(100vh - 60px);
    overflow-y: auto;
    padding: 0;
}
.lab-panel::-webkit-scrollbar {
    width: 3px;
}
.lab-panel::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}
.lab-header {
    padding: 20px 20px 16px;
    border-bottom: 1px solid var(--border);
}
.lab-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-tertiary);
}
.lab-title svg {
    stroke: var(--text-tertiary);
}
.lab-subtitle {
    font-size: 0.62rem;
    color: var(--text-tertiary);
    margin-top: 4px;
}
.lab-content {
    padding: 16px;
}
.lab-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 60px 20px;
    text-align: center;
}
.lab-empty p {
    font-size: 0.82rem;
    color: var(--text-tertiary);
}
.lab-widget {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px;
    margin-bottom: 14px;
}
.lab-widget-title {
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-white);
}
.lab-widget-desc {
    font-size: 0.72rem;
    color: var(--text-tertiary);
    margin-bottom: 14px;
    line-height: 1.5;
}
.lab-input {
    width: 100%;
    padding: 8px 12px;
    background: #1a1a1a;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-white);
    font-family: inherit;
    font-size: 0.82rem;
    margin-bottom: 8px;
}
.lab-input:focus {
    outline: none;
    border-color: #555;
}
.lab-input::placeholder {
    color: #555;
}
.lab-preview {
    background: #1a1a1a;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-top: 12px;
}
.lab-btn {
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}
.lab-btn:hover {
    border-color: #555;
    color: var(--text-white);
}
.lab-btn.active {
    background: var(--text-white);
    color: var(--bg-dark);
    border-color: var(--text-white);
}
.lab-phone {
    width: 200px;
    height: 380px;
    margin: 0 auto;
    border: 2px solid #444;
    border-radius: 24px;
    background: #1a1a1a;
    overflow: hidden;
    position: relative;
}
.lab-phone-notch {
    width: 80px;
    height: 20px;
    margin: 0 auto;
    background: #0a0a0a;
    border-radius: 0 0 12px 12px;
}
.lab-pillar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.82rem;
}
.lab-pillar:hover {
    border-color: #444;
}
.lab-pillar.active {
    background: var(--text-white);
    color: var(--bg-dark);
    border-color: var(--text-white);
}
.lab-pillar-num {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: #1a1a1a;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 800;
    flex-shrink: 0;
}
.lab-pillar.active .lab-pillar-num {
    background: var(--bg-dark);
    color: var(--text-white);
}
.lab-pillar-detail {
    padding: 10px 14px 10px 48px;
    font-size: 0.75rem;
    color: var(--text-tertiary);
    line-height: 1.5;
    display: none;
    margin-bottom: 6px;
}
.lab-pillar-detail.show {
    display: block;
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 1200px) {
    .course-layout {
        grid-template-columns: 240px 1fr;
    }
    .lab-panel {
        display: none;
    }
}
/* Modules drawer toggle + overlay (shown only on tablet/phone) */
.modules-toggle {
    display: none;
    position: fixed;
    top: 70px;
    right: 14px;
    z-index: 1250;
    align-items: center;
    gap: 6px;
    background: rgba(20, 22, 30, 0.92);
    backdrop-filter: blur(8px);
    color: #e8eaf0;
    border: 1px solid #2a2e39;
    border-radius: 100px;
    padding: 8px 14px;
    font-weight: 700;
    font-size: 0.74rem;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}
.mod-overlay {
    display: none;
}

@media (max-width: 992px) {
    .course-layout {
        grid-template-columns: 1fr;
        display: block;
    }
    /* Modules become a right-side slide-in drawer (no more stacking above
       the lesson → far less scrolling to reach the content) */
    .mod-sidebar {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        height: 100%;
        width: 286px;
        max-width: 84vw;
        z-index: 1200;
        transform: translateX(100%);
        transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
        border-left: 1px solid var(--border);
        border-right: none;
        border-bottom: none;
        padding: 66px 0 28px;
        box-shadow: -10px 0 34px rgba(0, 0, 0, 0.55);
    }
    body.modules-open .mod-sidebar {
        transform: translateX(0);
    }
    .mod-overlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1150;
        background: rgba(0, 0, 0, 0.55);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s;
    }
    body.modules-open .mod-overlay {
        opacity: 1;
        visibility: visible;
    }
    .modules-toggle {
        display: inline-flex;
    }
    .content-area {
        padding: 28px 20px 96px;
    }
}
@media (max-width: 768px) {
    .content-area {
        padding: 22px 16px 100px;
    }
    .content-area h1 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    .gini-player-inner {
        padding: 9px 12px;
        gap: 8px;
    }
    .gp-info {
        min-width: 0;
    }
    .gp-controls {
        gap: 8px;
    }
}
@media (max-width: 480px) {
    .gp-waves {
        display: none;
    }
    .gp-transcript {
        font-size: 0.78rem;
    }
    .gp-controls {
        gap: 6px;
    }
    .gp-close {
        font-size: 0;
        padding: 8px;
    }
    .gp-close::before {
        content: '✕';
        font-size: 0.85rem;
    }
    .gp-gender {
        display: none;
    }
    .modules-toggle {
        top: 66px;
    }
}

/* ════════════════════════════════════════════════════════════════════
   FOCUS MODE — distraction-free immersive reader (mobile-first)
   body.focus-mode hides all chrome, flows the lesson text large, and turns
   the Gini bar into a clean play/pause dock. Reuses the live content + the
   gini-voice engine (no DOM clone; word highlight keeps working).
   Markup (#focusToggle, #focusTopbar) is injected by course-engine.js.
   ════════════════════════════════════════════════════════════════════ */
.focus-toggle {
    position: fixed;
    right: 16px;
    bottom: 92px;
    z-index: 940;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: #fff;
    border: none;
    border-radius: 100px;
    padding: 11px 17px;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}
.focus-topbar {
    display: none;
}
body.focus-mode {
    overflow: hidden;
}
body.focus-mode .top-nav,
body.focus-mode .mod-sidebar,
body.focus-mode .lab-panel,
body.focus-mode .gini-bar,
body.focus-mode .quiz-section,
body.focus-mode .notes-section,
body.focus-mode .instructor-card,
body.focus-mode .module-nav,
body.focus-mode #moduleMeta,
body.focus-mode .focus-toggle {
    display: none !important;
}
body.focus-mode .course-layout {
    display: block;
}
body.focus-mode .content-area {
    position: fixed;
    inset: 0;
    z-index: 900;
    max-width: 100%;
    margin: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 66px 22px 170px;
    background: radial-gradient(130% 90% at 50% 0%, #0e1016 0%, #050608 100%);
}
body.focus-mode #contentBlocks,
body.focus-mode .content-area h1 {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}
body.focus-mode .content-area h1 {
    font-size: 1.5rem;
}
body.focus-mode .crs-block {
    background: none !important;
    border: none !important;
    padding: 8px 0 !important;
    margin: 0 0 4px !important;
}
body.focus-mode .crs-block .block-label {
    opacity: 0.45;
}
body.focus-mode .crs-block .gini-body,
body.focus-mode .ve-body-text {
    font-size: 1.22rem;
    line-height: 2;
    color: #c7cbd5;
    letter-spacing: 0.1px;
}
body.focus-mode .gini-word {
    color: #6b7280;
    transition: color 0.25s;
}
body.focus-mode .crs-block.gini-reading .gini-word {
    color: #e8eaf0;
}
body.focus-mode .gini-word.speaking {
    color: #fff;
    background: rgba(245, 158, 11, 0.22);
    border-radius: 4px;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.14);
}
body.focus-mode .ve-card {
    max-width: 640px;
    margin: 14px auto;
}
body.focus-mode .focus-topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 950;
    padding: 11px 14px;
    background: linear-gradient(#050608 62%, rgba(5, 6, 8, 0));
}
.focus-topbar .ft-title {
    flex: 1;
    text-align: center;
    color: #aab0bd;
    font-size: 0.78rem;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.focus-topbar button {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid #22252e;
    color: #d6d9e2;
    border-radius: 10px;
    padding: 8px 13px;
    font-weight: 700;
    font-size: 0.78rem;
    cursor: pointer;
    white-space: nowrap;
}
body.focus-mode .gini-player {
    transform: translateY(0) !important;
    background: rgba(10, 12, 18, 0.92);
    color: #fff;
    backdrop-filter: blur(12px);
    border-top: 1px solid #1c1f29;
}
body.focus-mode .gp-avatar,
body.focus-mode .gp-info,
body.focus-mode .gp-waves,
body.focus-mode .gp-close {
    display: none;
}
body.focus-mode .gini-player-inner {
    justify-content: center;
    gap: 20px;
    padding: 14px;
}
body.focus-mode .gp-play {
    width: 58px;
    height: 58px;
}
body.focus-mode .gp-speed,
body.focus-mode .gp-skip,
body.focus-mode .gp-gender {
    color: #d6d9e2;
    border-color: #2a2e39;
}

/* ── Mobile polish (normal reading view) ── */
@media (max-width: 600px) {
    .content-area {
        padding: 20px 15px 96px;
    }
    .content-area h1 {
        font-size: 1.4rem;
        line-height: 1.3;
    }
    .crs-block .gini-body {
        font-size: 1.05rem;
        line-height: 1.85;
    }
    .focus-toggle {
        bottom: 86px;
        padding: 10px 15px;
    }
}
