/* Practice stage: lời tự fit viewport (đọc cột như sheet) */
    .song-page-full {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0.35rem var(--hah-shell-pad, 28px) 1.5rem;
    }
    .song-page-header.hah-title-band {
        margin-bottom: 0.55rem;
    }
    .song-page-header .entry-title {
        margin: 0;
        font-size: clamp(1.4rem, 2.3vw, 1.95rem);
        line-height: 1.22;
        color: var(--hah-ink, #1a1c1e);
    }
    .song-meta-strip {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.3rem 0.85rem;
        margin-top: 0.35rem;
        font-size: 0.875rem;
        color: var(--hah-ink-muted, #5c636a);
    }
    .song-meta-strip .meta-item { margin: 0; }
    .song-meta-strip strong { color: var(--hah-ink, #1a1c1e); font-weight: 600; }
    .song-meta-actions {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        margin-top: 0.45rem;
    }
    .song-meta-actions .form-select {
        min-width: 10rem;
        max-width: 18rem;
    }
    .hah-song-body {
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
        align-items: start;
        max-width: 100%;
        overflow-x: clip;
    }
    .hah-song-main { min-width: 0; max-width: 100%; overflow-x: clip; }
    .hah-song-rail { display: none; min-width: 0; max-width: 100%; overflow-x: hidden; }
    .song-choi-stage,
    .song-choi-frame {
        max-width: 100%;
        overflow-x: hidden;
    }
    .song-container {
        max-width: 100%;
        overflow-x: clip;
    }
    .hah-song-rail-sticky { position: sticky; top: 100px; }
    @media (min-width: 768px) {
        .hah-song-body {
            grid-template-columns: minmax(120px, 140px) minmax(0, 1fr) minmax(120px, 140px);
            gap: 16px;
        }
        .hah-song-rail { display: block; }
    }
    @media (min-width: 1200px) {
        .hah-song-body {
            grid-template-columns: minmax(160px, 180px) minmax(0, 1fr) minmax(160px, 180px);
            gap: 20px;
        }
    }
    @media (min-width: 992px) {
        .hah-song-top-mobile { display: none; }
    }

    .lyric_toolbar {
        position: sticky;
        top: var(--hah-header-offset, 64px);
        z-index: 20;
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem 0.75rem;
        margin-bottom: 0.65rem;
        padding: 0.55rem 0.75rem;
        background: var(--hah-surface, #fff);
        border: 1px solid var(--hah-border, #e3e6ea);
        border-radius: var(--hah-radius, 10px);
        box-shadow: 0 1px 2px rgba(26, 28, 30, 0.04);
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        scrollbar-width: thin;
    }
    .lyric_toolbar .transpose-cluster {
        display: flex;
        flex: 0 0 auto;
        align-items: center;
        gap: 0.5rem;
        min-width: 0;
    }
    .lyric_toolbar .transpose-label {
        margin: 0;
        font-size: 0.78rem;
        font-weight: 650;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        color: var(--hah-ink-muted, #5c636a);
        white-space: nowrap;
    }
    .lyric_toolbar .transpose-control {
        display: inline-flex;
        align-items: stretch;
        height: 38px;
        border: 1px solid var(--hah-border-strong, #cfd4da);
        border-radius: 999px;
        background: var(--hah-surface-muted, #eef1f4);
        overflow: hidden;
    }
    .lyric_toolbar .transpose_control {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        min-width: 38px;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        color: var(--hah-ink, #1a1c1e);
        font-size: 0.95rem;
        line-height: 1;
        cursor: pointer;
        transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease;
    }
    .lyric_toolbar .transpose_control:hover {
        background: rgba(var(--hah-brand-rgb, 216, 48, 48), 0.08);
        color: var(--hah-brand, #d83030);
    }
    .lyric_toolbar .transpose_control:active {
        transform: scale(0.96);
        background: rgba(var(--hah-brand-rgb, 216, 48, 48), 0.14);
    }
    .lyric_toolbar .transpose_control:focus-visible {
        outline: 2px solid rgba(var(--hah-brand-rgb, 216, 48, 48), 0.35);
        outline-offset: -2px;
        z-index: 1;
    }
    .lyric_toolbar .chord_transpose {
        display: flex;
        align-items: stretch;
        border-left: 1px solid var(--hah-border, #e3e6ea);
        border-right: 1px solid var(--hah-border, #e3e6ea);
    }
    .lyric_toolbar .chord_transpose .dropdown-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.35rem;
        min-width: 4.25rem;
        height: 100%;
        margin: 0;
        padding: 0 0.85rem;
        border: 0;
        border-radius: 0;
        background: var(--hah-surface, #fff);
        color: var(--hah-ink, #1a1c1e);
        font-size: 1rem;
        font-weight: 700;
        font-variant-numeric: tabular-nums;
        box-shadow: none;
    }
    .lyric_toolbar .chord_transpose .dropdown-toggle::after {
        margin-left: 0.15rem;
        opacity: 0.55;
    }
    .lyric_toolbar .chord_transpose .dropdown-toggle:hover,
    .lyric_toolbar .chord_transpose .dropdown-toggle:focus,
    .lyric_toolbar .chord_transpose .dropdown-toggle.show {
        background: #fff;
        color: var(--hah-brand, #d83030);
        box-shadow: none;
    }
    .lyric_toolbar .chord_transpose .dropdown-menu {
        min-width: 4.5rem;
        max-height: 280px;
        overflow-y: auto;
        padding: 0.35rem;
        border: 1px solid var(--hah-border, #e3e6ea);
        border-radius: var(--hah-radius-sm, 6px);
        box-shadow: 0 10px 28px rgba(26, 28, 30, 0.12);
    }
    .lyric_toolbar .chord_transpose .dropdown-item {
        border-radius: 4px;
        padding: 0.4rem 0.65rem;
        font-weight: 600;
        text-align: center;
    }
    .lyric_toolbar .chord_transpose .dropdown-item:hover,
    .lyric_toolbar .chord_transpose .dropdown-item:focus {
        background: rgba(var(--hah-brand-rgb, 216, 48, 48), 0.08);
        color: var(--hah-brand, #d83030);
    }
    .lyric_toolbar .toolbar-actions {
        display: flex;
        flex: 0 0 auto;
        flex-wrap: nowrap;
        align-items: center;
        gap: 0.4rem;
        margin-left: auto;
    }
    .lyric_toolbar .toolbar-actions .btn-tool {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        height: 38px;
        padding: 0 0.9rem;
        border: 1px solid var(--hah-border, #e3e6ea);
        border-radius: 999px;
        background: var(--hah-surface, #fff);
        color: var(--hah-ink, #1a1c1e);
        font-size: 0.875rem;
        font-weight: 600;
        line-height: 1;
        transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.12s ease;
    }
    .lyric_toolbar .toolbar-actions .btn-tool i {
        font-size: 0.85rem;
        opacity: 0.85;
    }
    .lyric_toolbar .toolbar-actions .btn-tool:hover {
        border-color: rgba(var(--hah-brand-rgb, 216, 48, 48), 0.35);
        color: var(--hah-brand, #d83030);
        background: #fff;
    }
    .lyric_toolbar .toolbar-actions .btn-tool:active {
        transform: scale(0.98);
    }
    .lyric_toolbar .toolbar-actions .btn-tool-primary {
        border-color: var(--hah-brand, #d83030);
        background: var(--hah-brand, #d83030);
        color: #fff;
    }
    .lyric_toolbar .toolbar-actions .btn-tool-primary:hover,
    .lyric_toolbar .toolbar-actions .btn-tool-primary:focus {
        border-color: var(--hah-brand-hover, #b82525);
        background: var(--hah-brand-hover, #b82525);
        color: #fff;
    }
    .lyric_toolbar .toolbar-actions .btn-tool-primary i { opacity: 1; }
    /* Never wrap to 2 rows — TÔNG + text labels drop before the bar grows. */
    @media (max-width: 991.98px) {
        .lyric_toolbar .transpose-label { display: none; }
    }
    @media (max-width: 767.98px) {
        .lyric_toolbar { padding: 0.45rem 0.5rem; gap: 0.4rem; }
        .lyric_toolbar .toolbar-actions .btn-tool span { display: none; }
        .lyric_toolbar .toolbar-actions .btn-tool { width: 38px; min-width: 38px; padding: 0; justify-content: center; }
        .lyric_toolbar .chord_transpose .dropdown-toggle { min-width: 3.25rem; padding: 0 0.55rem; }
    }

    .song-practice-stage {
        background: transparent;
        box-shadow: none;
        padding: 0;
    }

    /* U12 — 4-tab mode shell */
    .song-mode-tabs {
        display: flex;
        flex-wrap: nowrap;
        gap: 0.15rem;
        margin: 0 0 0.85rem;
        padding: 0;
        border-bottom: 1px solid var(--hah-border, #e3e6ea);
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scrollbar-width: thin;
    }
    .song-mode-tab {
        flex: 0 0 auto;
        scroll-snap-align: start;
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        margin: 0 0 -1px;
        padding: 0.65rem 0.9rem 0.7rem;
        border: 0;
        border-bottom: 2px solid transparent;
        background: transparent;
        color: var(--hah-ink-muted, #5c636a);
        font-size: 0.95rem;
        font-weight: 600;
        letter-spacing: 0.01em;
        cursor: pointer;
        white-space: nowrap;
        transition: color 0.15s ease, border-color 0.15s ease;
    }
    .song-mode-tab:hover { color: var(--hah-ink, #1a1c1e); }
    .song-mode-tab.is-active {
        color: var(--hah-brand, #d83030);
        border-bottom-color: var(--hah-brand, #d83030);
    }
    .song-mode-tab:focus-visible {
        outline: 2px solid rgba(var(--hah-brand-rgb, 216, 48, 48), 0.45);
        outline-offset: 2px;
    }
    .song-mode-tab .fas { width: 0.95em; height: 0.95em; }
    .song-mode-panel[hidden] { display: none !important; }
    .song-mode-panel.is-active { display: block; }
    #song-shared-toolbar[hidden] { display: none !important; }

    .song-choi-stage {
        width: 100%;
        /* Gần full viewport — trừ header/tabs; admin bar ~32px khi đăng nhập */
        min-height: min(88vh, 1020px);
        height: calc(100dvh - 8.5rem);
        max-height: none;
        border: 1px solid var(--hah-border, #e3e6ea);
        border-radius: var(--hah-radius, 10px);
        overflow: hidden;
        background: var(--hah-surface, #fff);
    }
    body.admin-bar .song-choi-stage {
        height: calc(100dvh - 8.5rem - 32px);
    }
    /* Tab Chơi: ẩn Thế tay dưới (đã có slider hợp âm trong player) */
    .song-container.is-mode-choi #song_chords_diagram {
        display: none !important;
    }
    .song-container.is-mode-choi .song-choi-stage {
        min-height: min(90vh, 1080px);
        height: calc(100dvh - 7.75rem);
    }
    body.admin-bar .song-container.is-mode-choi .song-choi-stage {
        height: calc(100dvh - 7.75rem - 32px);
    }
    .song-choi-frame {
        width: 100%;
        height: 100%;
        border: 0;
        display: block;
        background: #fff;
    }
    @media (max-width: 768px) {
        /* U12.7c — iPhone: stage chiếm gần hết phần còn lại của viewport */
        .song-container.is-mode-choi .song-page-header.hah-title-band {
            margin-bottom: 0.3rem;
        }
        .song-container.is-mode-choi .song-page-header .entry-title {
            font-size: clamp(1.15rem, 4.2vw, 1.35rem);
            line-height: 1.2;
        }
        .song-container.is-mode-choi .song-meta-strip {
            display: none;
        }
        .song-container.is-mode-choi .song-meta-actions {
            margin-top: 0.25rem;
        }
        .song-container.is-mode-choi .song-mode-tabs {
            margin-bottom: 0.4rem;
        }
        .song-container.is-mode-choi .song-mode-tab {
            padding: 0.5rem 0.7rem 0.55rem;
            font-size: 0.88rem;
        }
        /* Label → icon: tab chế độ */
        .song-mode-tab span {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border: 0;
        }
        .song-mode-tab {
            padding: 0.55rem 0.75rem;
            min-width: 2.75rem;
            justify-content: center;
        }
        .song-mode-tab .fas {
            width: 1.05em;
            height: 1.05em;
            margin: 0;
        }
        .song-choi-stage {
            /* Không còn Thế tay ngay dưới iframe → cho stage cao hơn */
            --hah-choi-chrome: calc(8.5rem + env(safe-area-inset-bottom, 0px));
            min-height: calc(100svh - var(--hah-choi-chrome));
            height: calc(100dvh - var(--hah-choi-chrome));
            max-height: none;
            border-radius: var(--hah-radius-sm, 6px);
        }
    }
    .song-nghe-stage,
    .song-cheloi-stage {
        width: 100%;
        border: 1px solid var(--hah-border, #e3e6ea);
        border-radius: var(--hah-radius, 10px);
        background: var(--hah-surface, #fff);
        padding: 0.55rem 0.65rem 0.75rem;
        display: flex;
        flex-direction: column;
        gap: 0.55rem;
    }
    .song-nghe-lyrics {
        margin: 0;
        max-height: min(62vh, 680px);
        overflow: auto;
        -webkit-overflow-scrolling: touch;
        border: 1px solid var(--hah-border, #e3e6ea);
        border-radius: var(--hah-radius-sm, 6px);
        background: #fafbfc;
        order: 2;
    }
    .song-nghe-lyrics #lyrics-display-wrapper {
        border: 0;
        border-radius: 0;
        background: transparent;
        max-height: none;
        height: auto;
        overflow: visible;
    }
    /* Nghe: lời luôn 1 cột dọc — không multi-column / jump trang */
    .song-nghe-lyrics #lyrics-display-wrapper.is-multicolumn,
    .song-nghe-lyrics #lyrics-display-wrapper.is-vertical-flow {
        display: block;
    }
    .song-nghe-lyrics .lyrics-page-jump,
    .song-nghe-lyrics .lyrics-page-bar {
        display: none !important;
    }
    .song-nghe-lyrics .lyrics-page,
    .song-nghe-lyrics .lyrics-page-cols,
    .song-nghe-lyrics .lyrics-col {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        height: auto !important;
        max-height: none !important;
        column-count: 1 !important;
        columns: auto !important;
    }
    .lyric_chord.is-nghe-active {
        background: #fffbeb !important;
        color: #b45309 !important;
        box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.35);
        border-radius: 3px;
        font-weight: 800;
    }
    #nghe-lyrics-slot .lyric_chord[data-play-index] {
        cursor: pointer;
    }
    #nghe-lyrics-slot .lyric_chord[data-play-index]:hover {
        background: #fff7ed;
        border-radius: 3px;
    }
    .song-mode-hint {
        margin: 0 0 0.65rem;
        font-size: 0.92rem;
        color: var(--hah-ink-muted, #5c636a);
    }
    /* Player Nghe trên đầu: sequencer + control gọn */
    .song-nghe-frame {
        order: 1;
        width: 100%;
        min-height: 140px;
        height: 152px;
        max-height: 180px;
        border: 0;
        border-radius: var(--hah-radius-sm, 6px);
        background: #f7f8fa;
        transition: height 0.18s ease, max-height 0.18s ease;
    }
    /* Mở rộng khi chọn Thể loại / Nhạc cụ (dropdown/modal trong iframe) */
    .song-nghe-frame.is-chrome-expanded {
        height: min(72vh, 480px);
        max-height: min(72vh, 520px);
        min-height: 320px;
    }
    @media (max-width: 767.98px) {
        .song-nghe-frame {
            height: 160px;
            min-height: 140px;
            max-height: 190px;
        }
        .song-nghe-frame.is-chrome-expanded {
            height: min(70vh, 440px);
            max-height: min(70vh, 480px);
            min-height: 280px;
        }
        .song-nghe-lyrics {
            max-height: min(54vh, 520px);
        }
    }
    .song-mode-loading {
        padding: 2rem 1rem;
        color: var(--hah-ink-muted, #5c636a);
    }
    .song-lyrics-slot {
        position: relative;
        width: 100%;
        min-height: 280px;
    }

    /* Lời: chia đều số hàng; 90vh chỉ là trần phân trang */
    #lyrics-display-wrapper {
        width: 100%;
        box-sizing: border-box;
        background: var(--hah-surface, #fff);
        border: 1px solid var(--hah-border, #e3e6ea);
        border-radius: var(--hah-radius, 10px);
        padding: 0.85rem 1.1rem;
        font-family: 'Verdana', 'Segoe UI', sans-serif;
        font-size: 15px;
        line-height: 1.65;
        overflow: visible;
    }
    #lyrics-display-wrapper .lyric_line {
        margin: 0 0 0.15em;
    }
    #lyrics-display-wrapper.is-fitting {
        min-height: 280px;
    }
    #lyrics-display-wrapper.is-multicolumn {
        height: auto;
        max-height: none;
        overflow-x: visible;
        overflow-y: visible;
    }
    .lyrics-page-jump {
        position: sticky;
        top: calc(var(--hah-header-offset, 64px) + 52px);
        z-index: 15;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.35rem;
        margin: 0 0 0.65rem;
        padding: 0.4rem 0.55rem;
        background: rgba(255, 255, 255, 0.94);
        border: 1px solid var(--hah-border, #e3e6ea);
        border-radius: var(--hah-radius-sm, 6px);
        box-shadow: 0 1px 2px rgba(26, 28, 30, 0.04);
    }
    .lyrics-page-jump-label {
        margin-right: 0.25rem;
        font-size: 0.78rem;
        font-weight: 650;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        color: var(--hah-ink-muted, #5c636a);
    }
    .lyrics-page-jump-btn {
        min-width: 2rem;
        height: 2rem;
        padding: 0 0.55rem;
        border: 1px solid var(--hah-border, #e3e6ea);
        border-radius: 999px;
        background: var(--hah-surface, #fff);
        color: var(--hah-ink, #1a1c1e);
        font-size: 0.875rem;
        font-weight: 700;
        font-variant-numeric: tabular-nums;
        cursor: pointer;
        transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    }
    .lyrics-page-jump-btn:hover {
        border-color: rgba(var(--hah-brand-rgb, 216, 48, 48), 0.4);
        color: var(--hah-brand, #d83030);
    }
    .lyrics-page-jump-btn.is-active {
        border-color: var(--hah-brand, #d83030);
        background: var(--hah-brand, #d83030);
        color: #fff;
    }
    .lyrics-page {
        margin-bottom: 0.85rem;
        scroll-margin-top: calc(var(--hah-header-offset, 64px) + 110px);
    }
    .lyrics-page:last-child { margin-bottom: 0; }
    .lyrics-page-bar {
        display: block;
        width: 100%;
        margin: 0 0 0.55rem;
        padding: 0.4rem 0.75rem;
        border: 0;
        border-radius: var(--hah-radius-sm, 6px);
        background: var(--hah-surface-muted, #eef1f4);
        color: var(--hah-ink-muted, #5c636a);
        font-size: 0.82rem;
        font-weight: 700;
        letter-spacing: 0.02em;
        text-align: left;
        cursor: pointer;
        transition: background 0.15s ease, color 0.15s ease;
    }
    .lyrics-page-bar:hover {
        background: rgba(var(--hah-brand-rgb, 216, 48, 48), 0.08);
        color: var(--hah-brand, #d83030);
    }
    .lyrics-page-cols {
        display: flex;
        flex-wrap: nowrap;
        align-items: stretch;
        width: 100%;
        gap: 1.1rem 1.75rem;
    }
    .lyrics-col {
        /* Width set by JS after stretch-to-fill calc (--hah-lyric-col-w).
           Height follows content (equal-row pack). 90vh is a MAX for pagination, not a min. */
        flex: 0 0 var(--hah-lyric-col-w, 280px);
        width: var(--hah-lyric-col-w, 280px);
        max-width: 100%;
        height: auto;
        max-height: var(--hah-lyric-col-h, 90vh);
        box-sizing: border-box;
        padding-right: 0.35rem;
        border-right: 1px dashed var(--hah-border, #e3e6ea);
        overflow: hidden;
    }
    .lyrics-page-cols .lyrics-col:last-child {
        border-right: none;
    }
    @media (max-width: 767.98px) {
        #lyrics-display-wrapper {
            height: auto !important;
            max-height: none !important;
            overflow: visible;
        }
        .lyrics-page-jump { display: none; }
        .lyrics-page-cols { display: block; }
        .lyrics-col {
            width: 100% !important;
            flex-basis: 100% !important;
            height: auto !important;
            border-right: none;
            padding-right: 0;
            overflow: visible;
        }
    }

    /* Thế tay footer — dưới Thông tin (ẩn Chơi đã khai ở .song-choi-stage) */
    #song_chords_diagram.song-chords-panel {
        margin-top: 1rem;
        margin-bottom: 0.85rem;
        padding: 0.85rem 0.9rem 0.95rem;
        background: var(--hah-surface, #fff);
        border: 1px solid var(--hah-border, #e3e6ea);
        border-radius: var(--hah-radius, 10px);
    }
    #song_chords_diagram.song-chords-footer h4 {
        margin: 0 0 0.55rem;
        font-size: 0.95rem;
        font-weight: 700;
        letter-spacing: 0.01em;
        color: var(--hah-ink, #1a1c1e);
    }
    #song_chords_diagram .chords-grid {
        display: grid !important;
        grid-template-columns: repeat(auto-fill, 90px) !important;
        gap: 0.7rem 0.65rem !important;
        justify-content: start;
        justify-items: center;
        align-items: start;
    }
    /* Thế tay vừa mắt: zoom 0.58 (~80×68), ô 90×100 — không full SVG 116px */
    #song_chords_diagram .song_chord_item {
        width: 90px;
        max-width: 90px;
        height: 100px;
        min-height: 100px;
        aspect-ratio: auto;
        margin: 0;
        padding: 0.28rem 0.22rem;
        box-sizing: border-box;
        border-radius: 10px;
        border: 1px solid var(--hah-border, #e3e6ea);
        background: #fff;
        overflow: hidden;
        cursor: default;
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
    }
    #song_chords_diagram .song_chord_item:hover {
        border-color: #cbd5e1;
        background: #fafbfc;
    }
    #song_chords_diagram .song_chord_item .jtab,
    #song_chords_diagram .song_chord_item .rendered {
        display: block !important;
        visibility: visible !important;
        margin: 0 auto !important;
        line-height: 0 !important;
        overflow: hidden !important;
        max-width: none;
        width: auto !important;
        height: auto !important;
        zoom: 0.58;
        transform: none !important;
        margin-bottom: 0 !important;
    }
    #song_chords_diagram .song_chord_item .jtab > div,
    #song_chords_diagram .song_chord_item .rendered > div {
        height: auto !important;
        width: auto !important;
        margin: 0 !important;
    }
    #song_chords_diagram .song_chord_item .jtab svg,
    #song_chords_diagram .song_chord_item .rendered svg,
    #song_chords_diagram .song_chord_item svg {
        display: block !important;
        max-width: none !important;
        height: auto !important;
        width: auto !important;
        margin: 0 auto;
        transform: none !important;
    }
    @supports not (zoom: 1) {
        #song_chords_diagram .song_chord_item .jtab,
        #song_chords_diagram .song_chord_item .rendered {
            transform: scale(0.58) !important;
            transform-origin: center center;
            width: 138px;
            height: 118px;
            margin: -25px -29px !important;
        }
    }
    #song_chords_diagram .chord_name {
        display: none !important;
    }
    #song_chords_diagram .song_chord_item.is-playing {
        border-color: #b45309;
        background: #fffbeb;
        box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.28);
    }
    #song_chords_diagram .song_chord_item.is-playing .chord_name {
        color: #92400e;
        font-weight: 800;
    }
    #song_chords_diagram .song_chord_item.is-flash {
        border-color: var(--hah-brand, #d83030);
        background: #fff1f2;
    }
    .lyric_chord.is-jump-target {
        background: #fff3a3 !important;
        border-radius: 3px;
        box-shadow: 0 0 0 2px #f59e0b;
    }
    .chords-container.collapsed {
        max-height: 280px;
        overflow: hidden;
        position: relative;
        -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
        mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    }
    .chords-container.expanded {
        max-height: none;
        -webkit-mask-image: none;
        mask-image: none;
    }
    #toggle-chords-view { display: block; margin: 10px auto 0; font-weight: bold; cursor: pointer; }

    .song-below {
        margin-top: 1.25rem;
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    @media (min-width: 992px) {
        .song-below {
            grid-template-columns: 1fr 1fr;
        }
    }
    .song-below .info-box {
        background: var(--hah-surface-muted, #f8f9fa);
        padding: 1rem 1.1rem;
        border-radius: var(--hah-radius-sm, 6px);
        margin: 0;
    }
    .song-below .info-box h4 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
        border-bottom: 2px solid var(--hah-brand);
        padding-bottom: 0.45rem;
    }
    .song-below .info-box .meta-item { margin-bottom: 0.5rem; display: block; }
    .song-page-full .entry-content {
        background: transparent;
        box-shadow: none;
        padding: 0;
    }

    #catuLyricsModal .catu-service-container { border: none; box-shadow: none; background: transparent; padding: 0; margin: 0; }
    #catuLyricsModal .catu-comparison { grid-template-columns: 1fr 40px 1fr; gap: 15px; }
    #catuLyricsModal .catu-comparison-arrow { font-size: 20px; }
    #catuLyricsModal .catu-original-lyrics { min-height: 200px; }
    #catuLyricsModal .catu-result { margin-top: 15px; }
    @media (max-width: 768px) {
        #catuLyricsModal .catu-comparison { grid-template-columns: 1fr; }
        #catuLyricsModal .catu-comparison-arrow { display: none; }
    }
