/* ============================================================
   CONTENT.CSS — 「语法精讲」「歌词精读」样式
   延续莫里哀专区的设计语言（丝绒幕布 × 烫金 × 羊皮纸），
   依赖 style.css / moliere.css 中的变量与 .mo-* 组件。
   其他剧目会用剧目主色覆盖 --velvet。
   ============================================================ */

.ct-root {
    --gold-dk: #8A6A16;
    --hl: rgba(240, 198, 100, .58);
    padding-bottom: 8px;
}

.ct-root button:focus-visible,
.ct-root [tabindex]:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.ct-sec {
    margin-bottom: 24px;
    scroll-margin-top: calc(var(--bar-h) + 12px);
}

.ct-sec__hd {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .ct-sec__hd .mo-h3 {
        flex: 1;
        min-width: 0;
    }

.ct-h3fr {
    font-family: var(--fg);
    font-style: italic;
    font-weight: 400;
    font-size: .9rem;
    color: var(--tx-m);
    white-space: nowrap;
}

.ct-hint {
    font-size: .74rem;
    line-height: 1.7;
    color: var(--tx-m);
    margin: -4px 0 12px;
}

.ct-pad-x {
    padding: 14px 16px 0;
    margin: 0 0 4px;
}

.ct-paper {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 14px 15px 8px;
    box-shadow: var(--sh-sm);
}

/* ── 歌词里的语法点：金色“追光” ───────────────────────────── */
.ct-root mark {
    color: inherit;
    background: linear-gradient(transparent 56%, var(--hl) 56%, var(--hl) 94%, transparent 94%);
    border-radius: 2px;
    padding: 0 1px;
    font-weight: 600;
}

.ct-hide .ct-ex__fr mark:not(.shown) {
    color: transparent;
    -webkit-text-fill-color: transparent;
    background: var(--gold-pale);
    border-bottom: 2px dashed var(--gold);
    border-radius: 3px 3px 0 0;
    cursor: pointer;
}

.ct-hide .ct-ex:not(.open):not(.nomark) .ct-tag,
.ct-hide .ct-ex:not(.open):not(.nomark) .ct-ex__notes {
    display: none;
}

.ct-hide .ct-ex__fr mark.shown {
    animation: ctReveal .45s ease;
}

@keyframes ctReveal {
    from { background-color: rgba(240, 198, 100, .9); }
    to { background-color: transparent; }
}

/* ── 通用内容块 ───────────────────────────────────────────── */
.ct-b {
    margin: 0 0 8px;
}

.ct-l {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.ct-l__t {
    flex: 0 1 auto;
    min-width: 0;
}

.ct-l--zh .ct-l__t {
    font-size: .86rem;
    line-height: 1.9;
    color: var(--tx-b);
}

.ct-l b {
    font-family: var(--fg);
    font-style: italic;
    font-weight: 700;
    font-size: 1.08em;
    color: var(--wine-dk);
}

.ct-l--fr .ct-l__t,
.ct-l--arrow .ct-l__t {
    font-family: var(--fg);
    font-style: italic;
    font-size: 1.04rem;
    line-height: 1.6;
    color: var(--ink);
}

.ct-l--fr b, .ct-l--arrow b, .ct-l--formula b {
    color: inherit;
    font-size: 1em;
    font-weight: inherit;
}

.ct-l b.z {
    font-family: var(--fz);
    font-style: normal;
    font-size: 1em;
    color: var(--tx-h);
}

.ct-l--arrow .ct-l__t {
    color: var(--wine-dk);
}

.ct-l--formula .ct-l__t {
    display: inline-block;
    margin: 2px 0;
    padding: 2px 10px;
    border-radius: 8px;
    background: var(--paper-dk);
    font-family: var(--fg);
    font-style: italic;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ink);
}

.ct-root .cjk {
    font-family: var(--fz);
    font-style: normal;
    font-weight: 600;
    font-size: .86em;
}

.ct-root .op {
    font-style: normal;
    font-weight: 400;
    color: var(--wine);
    padding: 0 1px;
}

.ct-l--eq .ct-l__t {
    font-size: .84rem;
    line-height: 1.85;
    color: var(--gold-dk);
    padding-left: 12px;
}

.ct-l--label .ct-l__t {
    display: inline-block;
    margin-top: 4px;
    padding: 1px 10px;
    border-radius: 999px;
    background: var(--gold-pale);
    border: 1px solid rgba(212, 168, 67, .5);
    color: var(--gold-dk);
    font-size: .72rem;
    font-weight: 700;
    line-height: 1.7;
}

.ct-gl {
    margin-left: 6px;
    font-family: var(--fz);
    font-style: normal;
    font-weight: 400;
    font-size: .74rem;
    color: var(--tx-m);
    white-space: nowrap;
}

    .ct-gl::before { content: "（"; }
    .ct-gl::after { content: "）"; }

.ct-b--pair {
    border-left: 2px solid var(--gold);
    padding: 3px 0 3px 11px;
}

    .ct-b--pair .ct-l--zh .ct-l__t {
        font-size: .8rem;
        color: var(--tx-m);
    }

/* 列表层级：金色菱形 → 空心圆 → 短横 */
.ct-li {
    position: relative;
    padding-left: calc(16px + var(--lv, 0) * 18px);
    margin-bottom: 5px;
}

    .ct-li::before {
        content: "";
        position: absolute;
        left: calc(var(--lv, 0) * 18px + 3px);
        top: .78em;
        width: 5px;
        height: 5px;
        background: var(--gold);
        transform: rotate(45deg);
    }

    .ct-li[style*="--lv:1"]::before {
        background: none;
        border: 1.5px solid var(--gold);
        border-radius: 50%;
        transform: none;
        width: 6px;
        height: 6px;
    }

    .ct-li[style*="--lv:2"]::before,
    .ct-li[style*="--lv:3"]::before {
        width: 7px;
        height: 1.5px;
        top: .95em;
        transform: none;
    }

    .ct-li.ct-b--pair {
        border-left: 0;
        padding-top: 0;
        padding-bottom: 0;
    }

    .ct-li .ct-l--label .ct-l__t {
        padding: 0;
        margin: 0;
        border: 0;
        background: none;
        color: var(--tx-h);
        font-size: .86rem;
        line-height: 1.9;
    }

/* 朗读按钮 */
.ct-say {
    flex: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--velvet);
    background: var(--paper-dk);
    transition: transform var(--t), background var(--t);
}

    .ct-say svg {
        width: 15px;
        height: 15px;
    }

    .ct-say.sm {
        width: 22px;
        height: 22px;
        margin-top: 3px;
    }

        .ct-say.sm svg {
            width: 12px;
            height: 12px;
        }

    .ct-say:active {
        transform: scale(.88);
        background: var(--gold-pale);
    }

/* ── 深色“要点”卡 ─────────────────────────────────────────── */
.ct-notes {
    padding: 16px 16px 8px;
    border-radius: var(--r-md);
    color: #fff;
    background: radial-gradient(90% 70% at 100% 0, rgba(212, 168, 67, .16), transparent 60%), linear-gradient(160deg, var(--velvet) 0%, var(--ink) 100%);
    border: 1px solid rgba(212, 168, 67, .4);
    box-shadow: var(--sh-md);
}

    .ct-notes .ct-l--zh .ct-l__t,
    .ct-notes .ct-li .ct-l--label .ct-l__t {
        color: rgba(255, 255, 255, .86);
    }

    .ct-notes .ct-l b,
    .ct-notes .ct-l--eq .ct-l__t,
    .ct-notes .ct-l--arrow .ct-l__t {
        color: var(--gold-l);
    }

    .ct-notes .ct-l--fr .ct-l__t {
        color: #fff;
    }

    .ct-notes .ct-l--formula .ct-l__t {
        background: rgba(255, 255, 255, .09);
        color: #fff;
    }

    .ct-notes .op {
        color: var(--gold-l);
    }

    .ct-notes .ct-l--label .ct-l__t {
        background: rgba(212, 168, 67, .16);
        border-color: rgba(212, 168, 67, .5);
        color: var(--gold-l);
    }

    .ct-notes .ct-li .ct-l--label .ct-l__t {
        padding: 0;
        margin: 0;
        border: 0;
        background: none;
        color: #fff;
    }

    .ct-notes .ct-l b.z {
        color: #fff;
    }

    .ct-notes .ct-b--pair .ct-l--zh .ct-l__t,
    .ct-notes .ct-gl {
        color: rgba(255, 255, 255, .6);
    }

    .ct-notes .ct-say {
        background: rgba(255, 255, 255, .12);
        color: var(--gold-l);
    }

/* ══════════════════════════════════════════════════════════
   语法列表
   ══════════════════════════════════════════════════════════ */
.ct-gcard {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    padding: 14px 16px 12px;
    text-align: left;
    background: var(--bg-card);
    border: 1px solid var(--bd);
    border-left: 3px solid var(--gold);
    border-radius: 4px var(--r-md) var(--r-md) 4px;
    box-shadow: var(--sh-sm);
    transition: transform var(--t);
}

    .ct-gcard:active {
        transform: scale(.985);
    }

.ct-gcard__hd {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 2px 10px;
}

.ct-gcard__t {
    font-family: var(--fd);
    font-weight: 700;
    font-size: 1.02rem;
    color: var(--tx-h);
}

.ct-gcard__fr {
    font-family: var(--fg);
    font-style: italic;
    font-size: .9rem;
    color: var(--tx-m);
}

.ct-gcard__fx {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 0;
    margin-top: 6px;
    font-family: var(--fg);
    font-style: italic;
    font-weight: 600;
    font-size: .98rem;
    color: var(--gold-dk);
}

    .ct-gcard__fx > span + span::before {
        content: "";
        display: inline-block;
        width: 1px;
        height: .9em;
        margin: 0 12px;
        vertical-align: -1px;
        background: var(--line);
    }

.ct-gcard__ex {
    display: block;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed var(--line);
    font-family: var(--fg);
    font-style: italic;
    font-size: .98rem;
    line-height: 1.55;
    color: var(--tx-b);
}

.ct-gcard__m {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    white-space: nowrap;
    margin-top: 8px;
    font-size: .66rem;
    color: var(--tx-m);
}

    .ct-gcard__m span:last-child {
        min-width: 0;
        font-family: var(--fg);
        font-style: italic;
        font-size: .76rem;
        text-align: right;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

/* 按歌曲浏览 */
.ct-scard {
    margin-bottom: 14px;
    border-radius: var(--r-md);
    background: var(--bg-card);
    border: 1px solid var(--bd);
    box-shadow: var(--sh-sm);
    overflow: hidden;
}

.ct-scard__h {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 12px 15px;
    color: #fff;
    background: linear-gradient(150deg, var(--velvet) 0%, var(--ink) 100%);
}

.ct-scard__ic {
    color: var(--gold-l);
    display: inline-flex;
}

    .ct-scard__ic svg {
        width: 16px;
        height: 16px;
    }

.ct-scard__t {
    flex: 1;
    font-family: var(--fg);
    font-style: italic;
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.3;
}

.ct-scard__n {
    font-size: .66rem;
    color: var(--gold-l);
}

.ct-sline {
    padding: 11px 15px 10px;
    border-top: 1px solid var(--bd);
}

    .ct-sline:first-of-type {
        border-top: 0;
    }

.ct-sline__fr {
    font-family: var(--fg);
    font-style: italic;
    font-size: 1.04rem;
    line-height: 1.55;
    color: var(--ink);
}

.ct-sline__zh {
    margin-top: 2px;
    font-size: .78rem;
    line-height: 1.7;
    color: var(--tx-m);
}

.ct-sline__refs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.ct-chip {
    display: inline-block;
    padding: 3px 11px;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 600;
    color: var(--velvet);
    background: var(--gold-pale);
    border: 1px solid rgba(212, 168, 67, .55);
}

.ct-link {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 11px 15px;
    border-top: 1px solid var(--bd);
    background: var(--paper);
    color: var(--velvet);
    font-size: .78rem;
    font-weight: 600;
    text-align: left;
}

    .ct-link svg {
        width: 15px;
        height: 15px;
        color: var(--gold-dk);
    }

    .ct-link::after {
        content: "›";
        margin-left: auto;
        font-size: 1.1rem;
        color: var(--gold-dk);
    }

/* ══════════════════════════════════════════════════════════
   语法详情
   ══════════════════════════════════════════════════════════ */
.ct-ghead {
    position: relative;
    padding: 24px 20px 20px;
    color: #fff;
    background: radial-gradient(110% 90% at 90% 0, rgba(212, 168, 67, .2) 0%, transparent 60%), linear-gradient(160deg, var(--velvet) 0%, var(--ink) 100%);
}

.ct-ghead__eye {
    font-family: var(--fg);
    font-style: italic;
    font-size: 1rem;
    color: var(--gold-l);
}

.ct-ghead__t {
    margin-top: 2px;
    font-family: var(--fd);
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.35;
}

/* 剧院招牌：公式就是本页的主角 */
.ct-marquee {
    position: relative;
    margin-top: 16px;
    padding: 16px 16px 14px;
    border: 1px solid rgba(212, 168, 67, .6);
    border-radius: 12px;
    background: rgba(13, 20, 33, .35);
    box-shadow: inset 0 0 22px rgba(212, 168, 67, .12);
}

    .ct-marquee::before,
    .ct-marquee::after {
        content: "";
        position: absolute;
        left: 12px;
        right: 12px;
        height: 4px;
        background: radial-gradient(circle, var(--gold-l) 1.3px, transparent 1.8px) 0 0 / 11px 4px repeat-x;
        opacity: .85;
    }

    .ct-marquee::before {
        top: 5px;
    }

    .ct-marquee::after {
        bottom: 5px;
    }

.ct-fx {
    font-family: var(--fg);
    font-style: italic;
    font-weight: 600;
    font-size: 1.28rem;
    line-height: 1.45;
    text-align: center;
    color: #fff;
    padding: 3px 0;
}

    .ct-fx + .ct-fx {
        border-top: 1px dashed rgba(212, 168, 67, .3);
    }

    .ct-fx .op {
        color: var(--gold-l);
    }

.ct-fx__g {
    display: block;
    font-family: var(--fz);
    font-style: normal;
    font-weight: 400;
    font-size: .72rem;
    color: rgba(255, 255, 255, .62);
}

.ct-endings {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
}

    .ct-endings span {
        padding: 1px 10px;
        border-radius: 999px;
        border: 1px solid rgba(212, 168, 67, .5);
        font-family: var(--fg);
        font-style: italic;
        font-weight: 600;
        font-size: .95rem;
        color: var(--gold-l);
    }

    .ct-endings .ct-endings__k {
        flex-basis: 100%;
        text-align: center;
        border: 0;
        padding: 0;
        font-family: var(--fz);
        font-style: normal;
        font-weight: 400;
        font-size: .7rem;
        color: rgba(255, 255, 255, .6);
    }

.ct-ghead__m {
    margin-top: 14px;
    font-size: .68rem;
    color: rgba(255, 255, 255, .6);
}

.ct-jumps {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--bd);
    font-size: .7rem;
    color: var(--tx-m);
}

    .ct-jumps button {
        padding: 4px 13px;
        border-radius: 999px;
        border: 1px solid var(--line);
        background: var(--bg-card);
        color: var(--velvet);
        font-size: .76rem;
    }

        .ct-jumps button:active {
            background: var(--gold-pale);
        }

.ct-toggle {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: -8px 0 0;
    padding: 5px 11px;
    border-radius: 999px;
    border: 1px solid var(--bd);
    background: var(--bg-card);
    color: var(--tx-h);
    font-size: .7rem;
}

    .ct-toggle svg {
        width: 14px;
        height: 14px;
    }

    .ct-toggle.on {
        background: var(--velvet);
        border-color: var(--velvet);
        color: var(--gold-l);
    }

/* 例句卡 */
.ct-ex {
    margin-bottom: 12px;
    padding: 13px 15px 12px;
    background: var(--bg-card);
    border: 1px solid var(--bd);
    border-radius: var(--r-md);
    box-shadow: var(--sh-sm);
    scroll-margin-top: calc(var(--bar-h) + 12px);
    transition: box-shadow .4s ease;
}

    .ct-ex.ct-flash,
    .ct-word.ct-flash {
        box-shadow: 0 0 0 2px var(--gold), var(--sh-md);
    }

.ct-ex__top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.ct-ex__n {
    flex: none;
    font-family: var(--fd);
    font-size: .68rem;
    font-weight: 700;
    color: var(--tx-m);
}

.ct-ex__song {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    padding: 2px 10px 2px 8px;
    border-radius: 999px;
    background: var(--paper);
    border: 1px solid var(--line);
    font-family: var(--fg);
    font-style: italic;
    font-weight: 600;
    font-size: .84rem;
    color: var(--velvet);
    text-align: left;
}

    .ct-ex__song span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .ct-ex__song svg {
        flex: none;
        width: 12px;
        height: 12px;
        color: var(--gold-dk);
    }

    .ct-ex__song.is-link::after {
        content: "›";
        margin-left: 2px;
        color: var(--gold-dk);
    }

.ct-ex__line {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.ct-ex__fr {
    flex: 1;
    font-family: var(--fg);
    font-style: italic;
    font-size: 1.22rem;
    line-height: 1.5;
    color: var(--ink);
}

.ct-ex__zh {
    margin-top: 4px;
    font-size: .84rem;
    line-height: 1.8;
    color: var(--tx-m);
}

.ct-tag {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 10px;
    margin-top: 10px;
    padding: 7px 11px;
    border-radius: 10px;
    background: var(--paper);
    border: 1px dashed rgba(212, 168, 67, .75);
}

.ct-tag__k {
    font-family: var(--fg);
    font-style: italic;
    font-weight: 700;
    font-size: 1rem;
    color: var(--ink);
}

.ct-tag__v {
    font-size: .78rem;
    line-height: 1.7;
    color: var(--tx-b);
}

.ct-ex__notes {
    margin-top: 11px;
    padding-top: 10px;
    border-top: 1px solid var(--bd);
}

/* ══════════════════════════════════════════════════════════
   歌词精读 · 节目单
   ══════════════════════════════════════════════════════════ */
.ct-prog {
    margin-bottom: 16px;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--paper);
    border: 1px solid rgba(212, 168, 67, .32);
    box-shadow: var(--sh-md);
}

.ct-prog__hd {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    padding: 20px 18px 16px;
    color: #fff;
    background: radial-gradient(90% 120% at 100% 0, rgba(212, 168, 67, .18), transparent 60%), linear-gradient(150deg, var(--pa) 0%, var(--pb) 100%);
}

    .ct-prog__hd::after {
        content: "";
        position: absolute;
        inset: 7px 7px 0;
        border: 1px solid rgba(255, 255, 255, .14);
        border-bottom: 0;
        border-radius: 14px 14px 0 0;
        pointer-events: none;
    }

.ct-prog__fr {
    font-family: var(--fd);
    font-style: italic;
    font-weight: 700;
    font-size: 1.55rem;
    line-height: 1.15;
}

.ct-prog__zh {
    margin-top: 4px;
    font-size: .82rem;
    letter-spacing: .3em;
    color: var(--gold-l);
}

.ct-prog__n {
    font-size: .7rem;
    color: rgba(255, 255, 255, .7);
    white-space: nowrap;
}

.ct-prog__list {
    padding: 4px 0;
}

    .ct-prog__list li + li {
        border-top: 1px dashed rgba(212, 168, 67, .4);
    }

    .ct-prog__list button {
        display: grid;
        grid-template-columns: 44px 1fr auto;
        align-items: center;
        gap: 10px;
        width: 100%;
        padding: 12px 16px 12px 12px;
        text-align: left;
    }

        .ct-prog__list button:active {
            background: var(--paper-dk);
        }

.ct-prog__no {
    font-family: var(--fd);
    font-style: italic;
    font-weight: 700;
    font-size: 1.35rem;
    text-align: center;
    color: var(--pa);
}

.ct-prog__t i {
    display: block;
    font-family: var(--fg);
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.3;
    color: var(--ink);
}

.ct-prog__t small {
    display: block;
    margin-top: 2px;
    font-size: .74rem;
    color: var(--tx-m);
}

.ct-prog__meta {
    font-size: .62rem;
    line-height: 1.6;
    text-align: right;
    color: var(--tx-m);
}

.ct-prog__empty {
    padding: 16px 18px 18px;
    font-size: .78rem;
    color: var(--tx-m);
}

/* ══════════════════════════════════════════════════════════
   歌词精读 · 单曲
   ══════════════════════════════════════════════════════════ */
.ct-shead {
    position: relative;
    padding: 22px 20px 20px;
    color: #fff;
    background: radial-gradient(100% 90% at 100% 0, rgba(212, 168, 67, .2), transparent 60%), linear-gradient(155deg, var(--pa) 0%, var(--pb) 100%);
}

.ct-shead__k {
    display: flex;
    align-items: baseline;
    gap: 12px;
    font-size: .74rem;
    color: rgba(255, 255, 255, .72);
}

    .ct-shead__k .no {
        font-family: var(--fd);
        font-style: italic;
        font-weight: 700;
        font-size: 1rem;
        color: var(--gold-l);
    }

.ct-shead__fr {
    margin-top: 8px;
    font-family: var(--fg);
    font-style: italic;
    font-weight: 600;
    font-size: 1.85rem;
    line-height: 1.2;
}

.ct-shead__zh {
    margin-top: 6px;
    font-size: .92rem;
    letter-spacing: .12em;
    color: rgba(255, 255, 255, .86);
}

.ct-shead__m {
    margin-top: 10px;
    font-size: .68rem;
    color: rgba(255, 255, 255, .6);
}

.ct-play {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 14px;
    padding: 7px 15px 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(212, 168, 67, .7);
    color: var(--gold-l);
    font-size: .76rem;
    background: rgba(255, 255, 255, .06);
}

    .ct-play svg {
        width: 12px;
        height: 12px;
    }

    .ct-play.on {
        background: var(--gold);
        color: var(--ink);
    }

.ct-bar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(244, 241, 236, .94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--bd);
}

    .ct-bar:empty {
        display: none;
    }

.ct-modes .mo-seg {
    background: transparent;
    padding: 0;
    gap: 6px;
}

    .ct-modes .mo-seg button {
        flex: none;
        padding: 3px 12px;
        font-size: .72rem;
        border: 1px solid var(--bd);
    }

        .ct-modes .mo-seg button.on {
            box-shadow: none;
            border-color: var(--velvet);
        }

.ct-lyrics {
    padding: 6px 12px 4px;
}

.ct-stanza {
    position: relative;
    margin-bottom: 18px;
    padding-left: 10px;
    border-left: 2px solid var(--line);
}

.ct-line {
    padding: 7px 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: background var(--t);
}

    .ct-line:active {
        background: var(--paper-dk);
    }

    .ct-line.playing {
        background: var(--gold-pale);
        box-shadow: inset 3px 0 0 var(--gold);
    }

        .ct-line.playing .ct-line__fr {
            color: var(--wine-dk);
        }

.ct-line__fr {
    font-family: var(--fg);
    font-style: italic;
    font-size: 1.16rem;
    line-height: 1.5;
    color: var(--ink);
    transition: color var(--t);
}

.ct-line__zh {
    margin-top: 1px;
    font-size: .82rem;
    line-height: 1.75;
    color: var(--tx-m);
}

.mo-mode-fr .ct-line__zh {
    display: none;
}

.mo-mode-fr .ct-line.open .ct-line__zh {
    display: block;
}

.mo-mode-zh .ct-line__fr {
    display: none;
}

.mo-mode-zh .ct-line__zh {
    font-size: .92rem;
    color: var(--tx-b);
}

.ct-v {
    border-bottom: 1.5px dotted var(--gold-dk);
    cursor: pointer;
}

    .ct-v:active {
        background: var(--gold-pale);
    }

.ct-v--demo {
    font-style: italic;
    color: var(--ink);
}

/* 词汇卡 */
.ct-word {
    margin-bottom: 11px;
    padding: 13px 15px 12px;
    background: var(--bg-card);
    border: 1px solid var(--bd);
    border-radius: var(--r-md);
    box-shadow: var(--sh-sm);
    scroll-margin-top: calc(var(--bar-h) + 12px);
    transition: box-shadow .4s ease;
}

.ct-word__hd {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 10px;
}

.ct-word__w {
    font-family: var(--fd);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--ink);
}

.ct-word__ph {
    font-family: var(--fg), 'Segoe UI', 'Lucida Sans Unicode', 'Arial Unicode MS', sans-serif;
    font-size: .9rem;
    color: var(--tx-m);
}

.ct-pos {
    padding: 0 7px;
    border-radius: 6px;
    border: 1px solid var(--line);
    font-family: var(--fg);
    font-style: italic;
    font-weight: 600;
    font-size: .82rem;
    color: var(--wine-dk);
}

.ct-word__hd .ct-say {
    margin-left: auto;
}

.ct-word__m {
    margin-top: 6px;
    font-size: .9rem;
    line-height: 1.7;
    color: var(--tx-h);
}

.ct-uses {
    margin-top: 8px;
    border-top: 1px dashed var(--line);
}

    .ct-uses button {
        display: flex;
        align-items: baseline;
        flex-wrap: wrap;
        gap: 2px 10px;
        width: 100%;
        padding: 6px 0;
        text-align: left;
        border-bottom: 1px dashed var(--line);
    }

    .ct-uses .fr {
        font-family: var(--fg);
        font-style: italic;
        font-weight: 600;
        font-size: 1rem;
        color: var(--ink);
    }

    .ct-uses .zh {
        flex: 1;
        font-size: .78rem;
        color: var(--tx-m);
    }

    .ct-uses .ic {
        align-self: center;
        display: inline-flex;
        color: var(--gold-dk);
        opacity: .7;
    }

        .ct-uses .ic svg {
            width: 13px;
            height: 13px;
        }

.ct-word__x {
    margin-top: 6px;
    font-size: .8rem;
    line-height: 1.7;
    color: var(--tx-b);
}

    .ct-word__x b {
        margin-right: 4px;
        color: var(--gold-dk);
    }

.ct-word__hit {
    margin-top: 10px;
    padding: 8px 11px;
    border-radius: 10px;
    background: var(--paper);
}

    .ct-word__hit span {
        font-size: .64rem;
        color: var(--gold-dk);
    }

    .ct-word__hit p {
        margin-top: 1px;
        font-family: var(--fg);
        font-style: italic;
        font-size: .98rem;
        line-height: 1.5;
        color: var(--tx-b);
    }

        .ct-word__hit p b {
            color: var(--ink);
            background: linear-gradient(transparent 56%, var(--hl) 56%, var(--hl) 94%, transparent 94%);
        }

/* 本曲语法点 */
.ct-gref {
    position: relative;
    display: block;
    width: 100%;
    margin-bottom: 10px;
    padding: 12px 15px;
    text-align: left;
    background: var(--bg-card);
    border: 1px solid var(--bd);
    border-radius: var(--r-md);
    box-shadow: var(--sh-sm);
}

.ct-gref__fr {
    display: block;
    margin-top: 8px;
    font-family: var(--fg);
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.5;
    color: var(--ink);
}

.ct-gref__zh {
    display: block;
    margin-top: 2px;
    font-size: .8rem;
    color: var(--tx-m);
}

.ct-gref__go {
    display: block;
    margin-top: 8px;
    font-size: .72rem;
    color: var(--gold-dk);
}

/* ── 底部词汇卡片 ─────────────────────────────────────────── */
.ct-sheet {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.ct-sheet__bg {
    position: absolute;
    inset: 0;
    background: rgba(13, 20, 33, .5);
    opacity: 0;
    transition: opacity .22s ease;
}

.ct-sheet__panel.mo-root {
    position: relative;
    width: 100%;
    max-width: 480px;
    min-height: 0;
    max-height: 82vh;
    overflow-y: auto;
    padding: 8px 14px calc(16px + env(safe-area-inset-bottom, 0px));
    border-radius: 20px 20px 0 0;
    background: var(--bg);
    transform: translateY(100%);
    transition: transform .26s cubic-bezier(.25, .8, .25, 1);
}

.ct-sheet.open .ct-sheet__bg {
    opacity: 1;
}

.ct-sheet.open .ct-sheet__panel {
    transform: none;
}

.ct-sheet__grab {
    width: 38px;
    height: 4px;
    margin: 0 auto 12px;
    border-radius: 2px;
    background: var(--bd);
}

.ct-sheet .ct-word {
    box-shadow: none;
}

.ct-sheet__row {
    display: flex;
    gap: 10px;
}

    .ct-sheet__row .mo-btn {
        flex: 1;
        margin-top: 4px;
        padding: 11px;
        font-size: .84rem;
    }

@media (prefers-reduced-motion: reduce) {
    .ct-sheet__bg, .ct-sheet__panel, .ct-line, .ct-ex, .ct-word, .ct-gcard {
        transition: none !important;
    }

    .ct-hide .ct-ex:not(.open):not(.nomark) .ct-tag,
.ct-hide .ct-ex:not(.open):not(.nomark) .ct-ex__notes {
    display: none;
}

.ct-hide .ct-ex__fr mark.shown {
        animation: none;
    }
}
