﻿/* ============================================================
   APP-ADDITIONS.CSS  — 新增首页组件样式 + 变量兼容
   ============================================================ */

/* ── 变量兼容别名（对接app.js中的旧变量名）────────────────── */
:root {
    --white: var(--bg-card);
    --cream: var(--bg);
    --cream-dk: var(--bg-deep);
    --mid: var(--tx-b);
    --soft: var(--tx-m);
    --lt: var(--tx-lt);
    --border: var(--bd);
    --r: var(--r-md);
    --navy-pale: rgba(27, 58, 107, 0.08);
    --gold-pale: rgba(212, 168, 67, 0.12);
    --wine-pale: rgba(192, 57, 43, 0.08);
    --wine-l: #E74C3C;
    --tp: #6B7E3A;
}

/* ── 每日法语卡 ─────────────────────────────────────────── */
.daily-quote-card {
    margin: 0 14px 6px;
    background: linear-gradient(135deg, var(--wine) 0%, var(--wine-dk) 60%, #6B1010 100%);
    border-radius: var(--r-lg);
    padding: 18px 16px;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: var(--sh-md);
}

    .daily-quote-card::before {
        content: '♪';
        position: absolute;
        right: 16px;
        top: 12px;
        font-size: 3.5rem;
        opacity: 0.08;
        font-family: var(--fd);
        line-height: 1;
    }

/* ── 今日任务卡 ─────────────────────────────────────────── */
.today-task {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border-radius: var(--r-md);
    padding: 12px 14px;
    margin-bottom: 8px;
    box-shadow: var(--sh-sm);
    border: 1px solid var(--bd);
    cursor: pointer;
    transition: transform var(--t);
    active-scale: 0.98;
}

    .today-task:active {
        transform: scale(0.98);
    }

    .today-task.done {
        background: var(--bg-deep);
        border-color: transparent;
    }

.today-task__icon {
    font-size: 1.4rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-deep);
    border-radius: 10px;
    flex-shrink: 0;
}

/* ── 统计mini卡 ─────────────────────────────────────────── */
.stat-mini-card {
    background: var(--bg-card);
    border-radius: var(--r-md);
    padding: 14px;
    box-shadow: var(--sh-sm);
    border: 1px solid var(--bd);
    text-align: center;
}

.stat-mini-val {
    font-family: var(--fd);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--wine);
    margin-bottom: 4px;
}

.stat-mini-lbl {
    font-family: var(--fz);
    font-size: 0.68rem;
    color: var(--tx-m);
    line-height: 1.3;
}

/* ── 词汇快闪chip ─────────────────────────────────────── */
.vocab-chip {
    flex-shrink: 0;
    background: var(--bg-card);
    border: 1px solid var(--bd);
    border-radius: var(--r-md);
    padding: 10px 14px;
    min-width: 100px;
    box-shadow: var(--sh-sm);
    cursor: pointer;
    transition: transform var(--t);
}

    .vocab-chip:active {
        transform: scale(0.96);
    }

.vocab-chip__fr {
    font-family: var(--fd);
    font-style: italic;
    font-size: 0.88rem;
    color: var(--navy);
    font-weight: 600;
    margin-bottom: 3px;
}

.vocab-chip__zh {
    font-family: var(--fz);
    font-size: 0.76rem;
    color: var(--tx-b);
}

.vocab-chip__tag {
    font-family: var(--fz);
    font-size: 0.6rem;
    color: var(--tx-lt);
    margin-top: 4px;
}

/* ── 精选歌曲行 ──────────────────────────────────────── */
.song-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--bd);
    cursor: pointer;
    transition: background var(--t);
}

    .song-row:last-child {
        border-bottom: none;
    }

    .song-row:active {
        background: var(--bg-deep);
        margin: 0 -14px;
        padding: 12px 14px;
        border-radius: var(--r-sm);
    }

.song-row__num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--wine-pale);
    color: var(--wine);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--fd);
    font-size: 0.72rem;
    font-weight: 700;
    flex-shrink: 0;
}

.song-row__title {
    font-family: var(--fd);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--tx-h);
}

.song-row__sub {
    font-family: var(--fz);
    font-size: 0.68rem;
    color: var(--tx-m);
    margin-top: 2px;
}

.song-row__ico {
    color: var(--wine);
    font-size: 1rem;
    opacity: 0.6;
}

/* ── 快捷练习入口 ─────────────────────────────────────── */
.quick-entry {
    border-radius: var(--r-lg);
    padding: 16px;
    cursor: pointer;
    transition: transform var(--t);
    box-shadow: var(--sh-md);
}

    .quick-entry:active {
        transform: scale(0.97);
    }

.quick-entry__t {
    font-family: var(--fd);
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 3px;
}

.quick-entry__s {
    font-family: var(--fz);
    font-size: 0.68rem;
    color: rgba(255,255,255,0.7);
}

/* ── 学习行（TAB2） ──────────────────────────────────── */
.study-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border-radius: var(--r-md);
    padding: 14px;
    margin-bottom: 8px;
    box-shadow: var(--sh-sm);
    border: 1px solid var(--bd);
    cursor: pointer;
    transition: transform var(--t);
}

    .study-row:active {
        transform: scale(0.98);
    }

.study-row__dot {
    width: 4px;
    height: 48px;
    border-radius: 2px;
    flex-shrink: 0;
}

/* ── Toast ───────────────────────────────────────────── */
.toast {
    position: fixed;
    bottom: calc(var(--nav-h) + 20px);
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--ink);
    color: #fff;
    padding: 10px 20px;
    border-radius: 24px;
    font-family: var(--fz);
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 9999;
    max-width: calc(100vw - 40px);
}

    .toast.show {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

/* ── 补充：card通用 (确保存在) ──────────────────────── */
.card {
    background: var(--bg-card);
    border-radius: var(--r-md);
    box-shadow: var(--sh-sm);
    border: 1px solid var(--bd);
}

/* ── 补充：进度条 ─────────────────────────────────── */
.prog-bar {
    height: 4px;
    background: var(--bg-deep);
    border-radius: 2px;
    overflow: hidden;
    width: 100%;
}

.prog-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.5s ease;
}

/* ── 补充：row-nav ─────────────────────────────────── */
.row-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--bd);
    background: var(--bg-card);
    transition: background var(--t);
}

    .row-nav:last-child {
        border-bottom: none;
    }

    .row-nav:active {
        background: var(--bg-deep);
    }

.row-nav__t {
    font-family: var(--fd);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--tx-h);
}

.row-nav__s {
    font-family: var(--fg);
    font-style: italic;
    font-size: 0.72rem;
    color: var(--tx-m);
    margin-top: 2px;
}

.arr {
    font-size: 1.2rem;
    color: var(--tx-lt);
    margin-left: auto;
    flex-shrink: 0;
}

/* ── 双语块 ─────────────────────────────────────────── */
.bi-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.bi-zh, .bi-fr {
    background: var(--bg-card);
    border-radius: var(--r-sm);
    padding: 12px 14px;
    border: 1px solid var(--bd);
}

.bi-zh {
    border-left: 3px solid var(--tx-m);
}

.bi-fr {
    border-left: 3px solid var(--wine);
}

.lang-lbl {
    font-family: var(--fd);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 5px;
    opacity: 0.6;
}

.zh-b {
    font-family: var(--fz);
    font-size: 0.86rem;
    line-height: 1.75;
    color: var(--tx-b);
}

.fr-b {
    font-family: var(--fd);
    font-style: italic;
    font-size: 0.86rem;
    line-height: 1.75;
    color: var(--navy);
}

/* ── 词汇行 ──────────────────────────────────────────── */
.v-row {
    padding: 10px 0;
}

.v-word {
    font-family: var(--fd);
    font-style: italic;
    font-size: 0.92rem;
    color: var(--navy);
    font-weight: 600;
    margin-right: 6px;
}

.v-pos {
    font-family: var(--fz);
    font-size: 0.62rem;
    color: var(--tx-lt);
    background: var(--bg-deep);
    border-radius: 4px;
    padding: 1px 5px;
}

.v-zh {
    font-family: var(--fz);
    font-size: 0.8rem;
    color: var(--tx-b);
    margin-top: 3px;
}

.v-note {
    font-family: var(--fz);
    font-size: 0.68rem;
    color: var(--wine);
    margin-top: 3px;
    font-style: italic;
}

/* ── 场景按钮 ──────────────────────────────────────── */
.s-btn {
    display: block;
    width: 100%;
    text-align: left;
    background: var(--bg-card);
    border: 1.5px solid var(--bd);
    border-radius: var(--r-md);
    padding: 12px 14px;
    margin-bottom: 8px;
    font-family: var(--fz);
    font-size: 0.86rem;
    color: var(--tx-b);
    cursor: pointer;
    transition: all var(--t);
}

    .s-btn:active {
        transform: scale(0.98);
    }

.s-btn__fr {
    display: block;
    font-family: var(--fd);
    font-style: italic;
    font-size: 0.78rem;
    color: var(--navy);
    margin-top: 4px;
    opacity: 0.7;
}

/* ── AI 聊天 ─────────────────────────────────────────── */
.ai-chat-area {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 200px;
    max-height: calc(100vh - 300px);
}

.ai-u {
    align-self: flex-end;
    background: var(--wine);
    color: #fff;
    border-radius: 18px 18px 4px 18px;
    padding: 10px 14px;
    max-width: 80%;
    font-family: var(--fz);
    font-size: 0.84rem;
    line-height: 1.6;
}

.ai-b {
    align-self: flex-start;
    background: var(--bg-card);
    border: 1px solid var(--bd);
    border-radius: 4px 18px 18px 18px;
    padding: 12px 14px;
    max-width: 90%;
    box-shadow: var(--sh-sm);
}

.ai-b__fr {
    font-family: var(--fd);
    font-style: italic;
    font-size: 0.86rem;
    color: var(--navy);
    line-height: 1.65;
    margin-bottom: 5px;
}

.ai-b__zh {
    font-family: var(--fz);
    font-size: 0.78rem;
    color: var(--tx-m);
    line-height: 1.6;
}

.ai-irow {
    display: flex;
    gap: 8px;
    padding: 10px 14px;
    background: var(--bg-card);
    border-top: 1px solid var(--bd);
}

.ai-inp {
    flex: 1;
    background: var(--bg-deep);
    border: 1px solid var(--bd);
    border-radius: 24px;
    padding: 10px 16px;
    font-family: var(--fz);
    font-size: 0.84rem;
    color: var(--tx-b);
    outline: none;
}

    .ai-inp:focus {
        border-color: var(--wine);
    }

.ai-snd {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--wine);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .ai-snd svg {
        width: 18px;
        height: 18px;
    }

/* ── section标题 ─────────────────────────────────── */
.sec-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 14px 10px;
}

    .sec-hd h2 {
        font-family: var(--fd);
        font-size: 0.98rem;
        font-weight: 700;
        color: var(--tx-h);
    }

    .sec-hd a {
        font-family: var(--fz);
        font-size: 0.72rem;
        color: var(--wine);
        cursor: pointer;
    }

/* ── 分割线 ───────────────────────────────────────── */
.divider {
    height: 8px;
    background: var(--bg-deep);
    margin: 8px 0;
    border-top: 1px solid var(--bd);
    border-bottom: 1px solid var(--bd);
}

/* ── 搜索栏 ──────────────────────────────────────── */
.search-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--bd);
    border-radius: 24px;
    padding: 10px 16px;
    margin: 8px 14px;
    cursor: pointer;
    box-shadow: var(--sh-sm);
    color: var(--tx-lt);
    font-family: var(--fz);
    font-size: 0.84rem;
}

    .search-bar svg {
        width: 16px;
        height: 16px;
        flex-shrink: 0;
    }

/* ── 练习页标签 ──────────────────────────────────── */
.p-tabs {
    display: flex;
    background: var(--bg-card);
    border-bottom: 1px solid var(--bd);
    overflow-x: auto;
}

.ptab {
    flex-shrink: 0;
    padding: 12px 14px;
    font-family: var(--fz);
    font-size: 0.8rem;
    color: var(--tx-m);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all var(--t);
    white-space: nowrap;
}

    .ptab.on {
        color: var(--wine);
        border-bottom-color: var(--wine);
        font-weight: 600;
    }

/* ── AI卡片 ──────────────────────────────────────── */
.ai-card {
    margin: 0 14px 8px;
    background: linear-gradient(135deg, var(--wine) 0%, var(--wine-dk) 100%);
    border-radius: var(--r-lg);
    padding: 18px 16px;
    cursor: pointer;
    box-shadow: var(--sh-md);
    transition: transform var(--t);
}

    .ai-card:active {
        transform: scale(0.98);
    }

.ai-lbl {
    font-family: var(--fd);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.6);
    margin-bottom: 6px;
}

.ai-card__t {
    font-family: var(--fd);
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
}

.ai-card__d {
    font-family: var(--fz);
    font-size: 0.76rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
}

.ai-card__btn {
    margin-top: 12px;
    font-family: var(--fd);
    font-size: 0.82rem;
    color: rgba(255,255,255,0.9);
    font-weight: 600;
}

/* ── 社区打卡 ──────────────────────────────────── */
.clock-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 14px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--bd);
}

.clock-title {
    font-family: var(--fd);
    font-size: 0.82rem;
    color: var(--tx-m);
    margin-bottom: 12px;
}

.clock-ring {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--bd);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--t);
    margin-bottom: 8px;
}

    .clock-ring.done {
        border-color: var(--wine);
        background: var(--wine-pale);
    }

    .clock-ring span {
        font-family: var(--fz);
        font-size: 0.6rem;
        color: var(--tx-lt);
    }

    .clock-ring b {
        font-family: var(--fd);
        font-size: 0.7rem;
        color: var(--tx-h);
        font-weight: 700;
    }

.clock-streak {
    font-family: var(--fz);
    font-size: 0.78rem;
    color: var(--tx-m);
}

    .clock-streak strong {
        color: var(--wine);
    }

/* ── 社区标签 ──────────────────────────────────── */
.com-tabs {
    display: flex;
    background: var(--bg-card);
    border-bottom: 1px solid var(--bd);
    overflow-x: auto;
}

.ctab {
    flex-shrink: 0;
    padding: 11px 14px;
    font-family: var(--fz);
    font-size: 0.78rem;
    color: var(--tx-m);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all var(--t);
    white-space: nowrap;
}

    .ctab.on {
        color: var(--wine);
        border-bottom-color: var(--wine);
        font-weight: 600;
    }

/* ── 帖子卡 ─────────────────────────────────────── */
.post-card {
    background: var(--bg-card);
    border-radius: var(--r-md);
    padding: 13px;
    margin-bottom: 10px;
    box-shadow: var(--sh-sm);
    border: 1px solid var(--bd);
}

.post-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.av {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: var(--fd);
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.post-name {
    font-family: var(--fd);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--tx-h);
}

.post-time {
    font-family: var(--fz);
    font-size: 0.65rem;
    color: var(--tx-lt);
}

.post-body {
    font-family: var(--fz);
    font-size: 0.82rem;
    color: var(--tx-b);
    line-height: 1.7;
    margin-bottom: 10px;
}

.post-foot {
    display: flex;
    gap: 16px;
}

.foot-act {
    font-family: var(--fz);
    font-size: 0.72rem;
    color: var(--tx-lt);
    cursor: pointer;
}

/* ── 群组卡 ─────────────────────────────────────── */
.group-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    border-radius: var(--r-md);
    padding: 13px;
    margin-bottom: 8px;
    box-shadow: var(--sh-sm);
    border: 1px solid var(--bd);
}

.g-ico {
    font-size: 1.6rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-deep);
    border-radius: 12px;
    flex-shrink: 0;
}

.g-name {
    font-family: var(--fd);
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--tx-h);
}

.g-sub {
    font-family: var(--fz);
    font-size: 0.68rem;
    color: var(--tx-m);
    margin-top: 2px;
}

.g-join {
    margin-left: auto;
    background: var(--wine);
    color: #fff;
    border-radius: 20px;
    padding: 5px 14px;
    font-family: var(--fd);
    font-size: 0.75rem;
    cursor: pointer;
    flex-shrink: 0;
}

/* ── 标签 ─────────────────────────────────────── */
.tag {
    display: inline-block;
    border-radius: 20px;
    padding: 2px 8px;
    font-family: var(--fz);
    font-size: 0.62rem;
}

    .tag.tp {
        background: var(--bg-deep);
        color: var(--tx-m);
    }

    .tag.tw {
        background: var(--wine-pale);
        color: var(--wine);
    }

/* ── chip ─────────────────────────────────────── */
.chip {
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid var(--bd);
    background: transparent;
    color: var(--tx-m);
    font-family: var(--fz);
    font-size: 0.72rem;
    cursor: pointer;
}

    .chip.on {
        background: var(--wine);
        color: #fff;
        border-color: var(--wine);
    }

/* ── 个人页 ─────────────────────────────────────── */
.prof-head {
    display: flex;
    gap: 12px;
    padding: 16px 14px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--bd);
}

.prof-av {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--wine-pale);
    border: 2px solid var(--wine);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.prof-name {
    font-family: var(--fd);
    font-size: 1rem;
    font-weight: 700;
    color: var(--tx-h);
    margin-bottom: 3px;
}

.prof-sub {
    font-family: var(--fz);
    font-size: 0.7rem;
    color: var(--tx-m);
    margin-bottom: 6px;
    line-height: 1.5;
}

.prof-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.pbadge {
    background: var(--wine-pale);
    color: var(--wine);
    border-radius: 20px;
    padding: 2px 8px;
    font-family: var(--fz);
    font-size: 0.62rem;
}

.prog-ov {
    background: var(--bg-card);
    margin: 0 14px;
    border-radius: var(--r-md);
    padding: 14px;
    box-shadow: var(--sh-sm);
    border: 1px solid var(--bd);
}

.prog-ov__t {
    font-family: var(--fd);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--tx-h);
    margin-bottom: 12px;
}

.prog-ov__row {
    margin-bottom: 10px;
}

.prog-ov__lbl {
    display: flex;
    justify-content: space-between;
    font-family: var(--fz);
    font-size: 0.72rem;
    color: var(--tx-m);
    margin-bottom: 5px;
}

.total-lbl {
    font-family: var(--fz);
    font-size: 0.72rem;
    color: var(--tx-lt);
}

.total-val {
    font-family: var(--fd);
    font-size: 1rem;
    font-weight: 700;
    color: var(--tx-h);
    margin-top: 2px;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 0 14px;
}

.stat-btn {
    background: var(--bg-card);
    border-radius: var(--r-md);
    padding: 14px 8px;
    text-align: center;
    cursor: pointer;
    box-shadow: var(--sh-sm);
    border: 1px solid var(--bd);
    transition: transform var(--t);
}

    .stat-btn:active {
        transform: scale(0.96);
    }

.stat-ico {
    font-size: 1.6rem;
    margin-bottom: 5px;
}

.stat-lbl {
    font-family: var(--fz);
    font-size: 0.66rem;
    color: var(--tx-m);
    line-height: 1.3;
}

.lb-card {
    margin: 0 14px;
    background: var(--bg-card);
    border-radius: var(--r-md);
    overflow: hidden;
    box-shadow: var(--sh-sm);
    border: 1px solid var(--bd);
}

.lb-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--bd);
}

    .lb-row:last-child {
        border-bottom: none;
    }

.lb-rank {
    font-family: var(--fd);
    font-size: 0.8rem;
    width: 28px;
    text-align: center;
    flex-shrink: 0;
}

    .lb-rank.top {
        font-size: 1.2rem;
    }

.lb-name {
    flex: 1;
    font-family: var(--fz);
    font-size: 0.82rem;
    color: var(--tx-b);
}

.lb-score {
    font-family: var(--fd);
    font-size: 0.8rem;
    color: var(--wine);
    font-weight: 700;
}

/* ── Quiz ─────────────────────────────────────── */
.quiz-q {
    padding: 20px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quiz-q__lbl {
    font-family: var(--fz);
    font-size: 0.68rem;
    color: var(--tx-lt);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.quiz-q__main {
    font-family: var(--fd);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--tx-h);
    line-height: 1.5;
}

.quiz-q__src {
    font-family: var(--fg);
    font-style: italic;
    font-size: 0.76rem;
    color: var(--tx-lt);
}

.quiz-opt {
    background: var(--bg-card);
    border: 1.5px solid var(--bd);
    border-radius: var(--r-md);
    padding: 13px 14px;
    font-family: var(--fd);
    font-style: italic;
    font-size: 0.88rem;
    color: var(--navy);
    text-align: left;
    cursor: pointer;
    transition: all var(--t);
}

    .quiz-opt:active {
        transform: scale(0.98);
    }

    .quiz-opt.correct {
        background: #e8f5ed;
        border-color: #2e7d4f;
        color: #2e7d4f;
    }

    .quiz-opt.wrong {
        background: var(--wine-pale);
        border-color: var(--wine);
        color: var(--wine);
    }

.result-top {
    background: var(--wine);
    padding: 40px 14px 30px;
    text-align: center;
    color: #fff;
}

/* ── Hero Carousel ──────────────────────────────── */
.hero-carousel {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
}

.carousel-overlay {
    width: 100%;
    padding: 20px 16px 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.75));
}

.carousel-fr {
    font-family: var(--fd);
    font-style: italic;
    font-size: 0.68rem;
    color: rgba(255,255,255,0.65);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 3px;
}

.carousel-title {
    font-family: var(--fd);
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 3px;
}

.carousel-tagline {
    font-family: var(--fz);
    font-size: 0.76rem;
    color: rgba(255,255,255,0.8);
}

.carousel-indicators {
    position: absolute;
    bottom: 12px;
    right: 16px;
    display: flex;
    gap: 5px;
}

.dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    transition: all 0.3s;
}

    .dot.active {
        background: #fff;
        width: 14px;
        border-radius: 3px;
    }

/* ── Detail Hero ──────────────────────────────── */
.d-hero {
    padding: 40px 16px 20px;
    color: #fff;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.d-hero__eye {
    font-family: var(--fd);
    font-style: italic;
    font-size: 0.7rem;
    opacity: 0.65;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 5px;
}

.d-hero__title {
    font-family: var(--fd);
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 5px;
}

.d-hero__sub {
    font-family: var(--fz);
    font-size: 0.82rem;
    opacity: 0.8;
}

/* ── Show Grid ─────────────────────────────────── */
.show-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0 14px;
}

.show-card.modern-card {
    aspect-ratio: 3/4;
    border-radius: var(--r-lg);
    overflow: hidden;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: transform var(--t);
    box-shadow: var(--sh-md);
    position: relative;
}

    .show-card.modern-card:active {
        transform: scale(0.97);
    }

.modern-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 30%, rgba(0,0,0,0.75) 100%);
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.modern-card__fr {
    font-family: var(--fd);
    font-style: italic;
    font-size: 0.6rem;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 2px;
}

.modern-card__title {
    font-family: var(--fd);
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

/* ── page transition ──────────────────────────── */
.page-enter {
    animation: pageIn 0.25s ease both;
}

@keyframes pageIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
