﻿/* ============================================================
   法语音乐剧学习 PWA — 全新大厂级视觉系统
   设计语言：夜间歌剧院美学 · 深邃奢华 · 精准克制
   ============================================================ */

/* ── CSS 变量 ─────────────────────────────────────────────── */
:root {
    /* 主色：深夜幕布 */
    --ink: #0D1421;
    --ink-mid: #1A2640;
    --ink-lt: #243352;
    /* 酒红：激情主色 */
    --wine: #C0392B;
    --wine-l: #E74C3C;
    --wine-dk: #922B21;
    --wine-pale: rgba(192, 57, 43, 0.08);
    /* 海军蓝：辅助色 */
    --navy: #1B3A6B;
    --navy-l: #2557A7;
    --navy-pale: rgba(27, 58, 107, 0.08);
    /* 金色：强调色 */
    --gold: #D4A843;
    --gold-l: #F0C664;
    --gold-pale: rgba(212, 168, 67, 0.12);
    /* 中性：背景层次 */
    --bg: #F4F1EC; /* 暖白底 */
    --bg-card: #FFFFFF;
    --bg-deep: #EDE9E2;
    --bg-ink: #0D1421; /* 深色区块 */
    /* 文字 */
    --tx-h: #0D1421; /* 标题 */
    --tx-b: #3C3830; /* 正文 */
    --tx-m: #7A7468; /* 次级 */
    --tx-lt: #B8B2A8; /* 提示 */
    --tx-inv: #FFFFFF; /* 反色 */
    /* 边框 */
    --bd: rgba(13,20,33,0.08);
    --bd-dark: rgba(255,255,255,0.10);
    /* 字体 */
    --fd: 'Playfair Display', 'Noto Serif SC', Georgia, serif;
    --fg: 'Cormorant Garamond', 'Noto Serif SC', Georgia, serif;
    --fz: 'Noto Serif SC', Georgia, serif;
    /* 间距 */
    --nav-h: 68px;
    --bar-h: 56px;
    /* 圆角 */
    --r-sm: 8px;
    --r-md: 14px;
    --r-lg: 20px;
    --r-xl: 28px;
    /* 阴影 */
    --sh-sm: 0 2px 8px rgba(13,20,33,0.06);
    --sh-md: 0 6px 20px rgba(13,20,33,0.10);
    --sh-lg: 0 12px 40px rgba(13,20,33,0.16);
    --sh-glow: 0 0 24px rgba(192,57,43,0.25);
    /* 过渡 */
    --t: 0.22s cubic-bezier(0.25, 0.8, 0.25, 1);
    --t-slow: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--fg);
    background: var(--bg);
    color: var(--tx-b);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ── App Shell ───────────────────────────────────────────── */
#app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: 480px;
    margin: 0 auto;
    background: var(--bg);
    position: relative;
    box-shadow: 0 0 60px rgba(0,0,0,0.15);
}

/* ── Top Bar ─────────────────────────────────────────────── */
.top-bar {
    position: sticky;
    top: 0;
    z-index: 300;
    height: var(--bar-h);
    background: rgba(13, 20, 33, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    border-bottom: 1px solid var(--bd-dark);
}

.top-bar__back {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--tx-inv);
    font-family: var(--fz);
    font-size: 0.82rem;
    min-width: 60px;
    opacity: 0.85;
    transition: opacity var(--t);
}

    .top-bar__back:hover {
        opacity: 1;
    }

    .top-bar__back svg {
        width: 18px;
        height: 18px;
    }

    .top-bar__back.hidden {
        visibility: hidden;
        pointer-events: none;
    }

.top-bar__title {
    font-family: var(--fd);
    font-size: 1rem;
    font-weight: 700;
    color: var(--tx-inv);
    text-align: center;
    flex: 1;
    letter-spacing: 0.03em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.top-bar__logo {
    color: var(--gold);
    font-size: 1.1rem;
}

.top-bar__action {
    min-width: 60px;
    display: flex;
    justify-content: flex-end;
}

.top-bar__icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    position: relative;
    transition: all var(--t);
}

    .top-bar__icon-btn:hover {
        background: rgba(255,255,255,0.1);
        color: #fff;
    }

    .top-bar__icon-btn svg {
        width: 20px;
        height: 20px;
    }

.notif-dot {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 7px;
    height: 7px;
    background: var(--wine);
    border-radius: 50%;
    border: 1.5px solid var(--ink);
}

/* ── Page Content ────────────────────────────────────────── */
.page-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: calc(var(--nav-h) + 12px);
    background: var(--bg);
    -webkit-overflow-scrolling: touch;
}

    .page-content::-webkit-scrollbar {
        width: 2px;
    }

    .page-content::-webkit-scrollbar-thumb {
        background: var(--bd);
        border-radius: 2px;
    }

/* ── Bottom Navigation ───────────────────────────────────── */
.bottom-nav {
    position: sticky;
    bottom: 0;
    z-index: 300;
    height: var(--nav-h);
    background: rgba(13, 20, 33, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    display: flex;
    align-items: stretch;
    border-top: 1px solid var(--bd-dark);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: rgba(255,255,255,0.35);
    transition: color var(--t);
    position: relative;
    padding-bottom: 2px;
}

    .nav-item.active {
        color: var(--wine-l);
    }

        .nav-item.active::before {
            content: '';
            position: absolute;
            top: 0;
            left: 22%;
            right: 22%;
            height: 2px;
            background: linear-gradient(90deg, transparent, var(--wine), transparent);
            border-radius: 0 0 3px 3px;
        }

.nav-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--t);
}

.nav-item.active .nav-icon {
    transform: translateY(-1px);
}

.nav-icon svg {
    width: 22px;
    height: 22px;
}

.nav-item span {
    font-size: 0.58rem;
    font-family: var(--fz);
    letter-spacing: 0.05em;
}

/* Center practice button */
.nav-item--center {
    position: relative;
}

.nav-icon--center {
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, var(--wine) 0%, var(--wine-dk) 100%);
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(192,57,43,0.45);
    margin-top: -10px;
    transition: all var(--t);
}

    .nav-icon--center svg {
        width: 20px;
        height: 20px;
        color: #fff;
    }

.nav-item--center.active .nav-icon--center {
    box-shadow: 0 4px 18px rgba(192,57,43,0.6);
    transform: translateY(-2px);
}

.nav-item--center span {
    margin-top: 2px;
}

/* ── Page Animations ─────────────────────────────────────── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.page-enter {
    animation: fadeUp 0.25s ease forwards;
}

/* ============================================================
   SHARED COMPONENTS
   ============================================================ */

/* Section Header */
.sec-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 16px 10px;
}

    .sec-hd h2 {
        font-family: var(--fd);
        font-size: 1rem;
        font-weight: 700;
        color: var(--tx-h);
        display: flex;
        align-items: center;
        gap: 8px;
    }

        .sec-hd h2::before {
            content: '';
            display: inline-block;
            width: 3px;
            height: 14px;
            background: linear-gradient(to bottom, var(--wine), var(--wine-dk));
            border-radius: 2px;
            flex-shrink: 0;
        }

.sec-hd__link {
    font-size: 0.72rem;
    color: var(--wine);
    font-family: var(--fd);
    display: flex;
    align-items: center;
    gap: 2px;
    opacity: 0.85;
    transition: opacity var(--t);
}

    .sec-hd__link:hover {
        opacity: 1;
    }

/* Card Base */
.card {
    background: var(--bg-card);
    border-radius: var(--r-md);
    box-shadow: var(--sh-sm);
    transition: transform var(--t), box-shadow var(--t);
    overflow: hidden;
}

.card--interactive {
    cursor: pointer;
}

    .card--interactive:active {
        transform: scale(0.975);
        box-shadow: var(--sh-sm);
    }

/* Chip / Tag */
.chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 13px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-family: var(--fz);
    cursor: pointer;
    transition: all var(--t);
    border: 1.5px solid var(--bd);
    background: var(--bg-card);
    color: var(--tx-m);
    white-space: nowrap;
}

    .chip.on {
        background: var(--wine);
        color: #fff;
        border-color: var(--wine);
        box-shadow: 0 3px 10px rgba(192,57,43,0.35);
    }

.tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 5px;
    font-size: 0.6rem;
    font-family: var(--fd);
    font-weight: 700;
    letter-spacing: 0.05em;
}

.tag-wine {
    background: var(--wine);
    color: #fff;
}

.tag-navy {
    background: var(--navy);
    color: #fff;
}

.tag-gold {
    background: var(--gold);
    color: #fff;
}

.tag-soft {
    background: var(--bg-deep);
    color: var(--tx-m);
}

/* Divider */
.divider {
    height: 8px;
    background: var(--bg-deep);
    flex-shrink: 0;
}

.divider--thin {
    height: 1px;
    background: var(--bd);
}

/* Progress Bar */
.prog-bar {
    height: 4px;
    background: var(--bg-deep);
    border-radius: 4px;
    overflow: hidden;
}

.prog-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--wine), var(--wine-l));
    border-radius: 4px;
    transition: width 0.6s ease;
}

/* Ring Progress */
.ring-w {
    position: relative;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

    .ring-w svg {
        transform: rotate(-90deg);
    }

.r-bg {
    fill: none;
    stroke: var(--bg-deep);
    stroke-width: 5;
}

.r-v {
    fill: none;
    stroke: url(#wineGrad);
    stroke-width: 5;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.7s ease;
}

.ring-txt {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: var(--fd);
    font-size: 1rem;
    font-weight: 700;
    color: var(--wine);
    line-height: 1;
}

    .ring-txt span {
        font-size: 0.48rem;
        color: var(--tx-m);
        margin-top: 2px;
        font-family: var(--fz);
    }

/* Search Bar */
.search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    border: 1.5px solid var(--bd);
    border-radius: var(--r-xl);
    padding: 10px 16px;
    margin: 12px 16px;
    box-shadow: var(--sh-sm);
    cursor: pointer;
    transition: all var(--t);
}

    .search-bar:hover {
        border-color: var(--wine);
        box-shadow: 0 0 0 3px var(--wine-pale);
    }

    .search-bar svg {
        width: 15px;
        height: 15px;
        color: var(--tx-lt);
        flex-shrink: 0;
    }

    .search-bar span {
        font-size: 0.85rem;
        color: var(--tx-lt);
        font-family: var(--fz);
        flex: 1;
    }

/* Row Nav */
.row-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--bd);
    cursor: pointer;
    transition: background var(--t);
}

    .row-nav:last-child {
        border-bottom: none;
    }

    .row-nav:active {
        background: var(--bg-deep);
    }

.row-nav__t {
    font-family: var(--fz);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--tx-h);
}

.row-nav__s {
    font-size: 0.68rem;
    font-style: italic;
    color: var(--tx-m);
    margin-top: 2px;
    font-family: var(--fg);
}

.row-nav__arr {
    color: var(--tx-lt);
}

/* 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: 30px;
    font-family: var(--fz);
    font-size: 0.82rem;
    opacity: 0;
    pointer-events: none;
    z-index: 999;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: var(--sh-lg);
}

    .toast.show {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

/* ============================================================
   HOME TAB — 首页
   ============================================================ */

/* Hero Carousel */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 260px;
    overflow: hidden;
    background: var(--ink);
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center top;
    position: relative;
    flex-shrink: 0;
}
    /* Fallback gradient when image fails to load */
    .carousel-slide::before {
        content: '';
        position: absolute;
        inset: 0;
        background: inherit;
        background-color: var(--ink-mid);
        z-index: 0;
    }

    .carousel-slide[style*="background-image"]::before {
        display: none;
    }

.carousel-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient( to bottom, rgba(13,20,33,0.1) 0%, rgba(13,20,33,0.15) 40%, rgba(13,20,33,0.85) 100% );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px 18px 22px;
    z-index: 2;
}

.carousel-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(192,57,43,0.85);
    color: #fff;
    font-size: 0.6rem;
    font-family: var(--fd);
    letter-spacing: 0.1em;
    padding: 3px 9px;
    border-radius: 12px;
    margin-bottom: 8px;
    backdrop-filter: blur(8px);
    width: fit-content;
}

.carousel-fr {
    font-family: var(--fd);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.65);
    margin-bottom: 5px;
}

.carousel-title {
    font-family: var(--fd);
    font-size: 1.75rem;
    font-weight: 900;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 6px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.carousel-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.75);
    font-family: var(--fz);
}

.carousel-meta-dot {
    width: 3px;
    height: 3px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
}

.carousel-indicators {
    position: absolute;
    bottom: 14px;
    right: 16px;
    display: flex;
    gap: 5px;
    z-index: 3;
}

.dot {
    width: 5px;
    height: 5px;
    background: rgba(255,255,255,0.35);
    border-radius: 3px;
    transition: all 0.3s ease;
}

    .dot.active {
        background: #fff;
        width: 18px;
    }

/* Quick Stats Bar */
.quick-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    padding: 14px 16px;
    background: var(--ink);
    border-bottom: 1px solid var(--bd-dark);
}

.qs-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.qs-val {
    font-family: var(--fd);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}

.qs-lbl {
    font-size: 0.6rem;
    color: rgba(255,255,255,0.45);
    font-family: var(--fz);
    text-align: center;
}

/* Clock-in Banner */
.checkin-banner {
    margin: 14px 16px;
    background: linear-gradient(135deg, var(--ink) 0%, var(--ink-mid) 100%);
    border-radius: var(--r-lg);
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--t);
}

    .checkin-banner:active {
        transform: scale(0.98);
    }

    .checkin-banner::after {
        content: '♪';
        position: absolute;
        right: -8px;
        top: -8px;
        font-size: 5rem;
        opacity: 0.05;
        color: var(--gold);
        pointer-events: none;
    }

.checkin-streak {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--wine) 0%, var(--wine-dk) 100%);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(192,57,43,0.4);
}

.checkin-streak__n {
    font-family: var(--fd);
    font-size: 1.3rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
}

.checkin-streak__l {
    font-size: 0.5rem;
    color: rgba(255,255,255,0.7);
    font-family: var(--fz);
}

.checkin-info {
    flex: 1;
}

.checkin-title {
    font-family: var(--fz);
    font-size: 0.9rem;
    font-weight: 500;
    color: #fff;
    margin-bottom: 3px;
}

.checkin-sub {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.45);
    font-family: var(--fz);
}

.checkin-btn {
    background: linear-gradient(135deg, var(--gold) 0%, #E8A020 100%);
    color: var(--ink);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-family: var(--fd);
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(212,168,67,0.4);
    transition: all var(--t);
}

    .checkin-btn.done {
        background: rgba(255,255,255,0.15);
        color: rgba(255,255,255,0.6);
        box-shadow: none;
    }

/* Daily Quote Card */
.daily-card {
    margin: 0 16px 14px;
    background: linear-gradient(135deg, var(--wine-dk) 0%, var(--wine) 50%, #D44B3A 100%);
    border-radius: var(--r-lg);
    padding: 16px 18px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--t), box-shadow var(--t);
    box-shadow: 0 6px 20px rgba(192,57,43,0.35);
}

    .daily-card:active {
        transform: scale(0.98);
    }

    .daily-card::before {
        content: '❝';
        position: absolute;
        top: -4px;
        right: 12px;
        font-size: 5rem;
        opacity: 0.08;
        font-family: var(--fd);
        line-height: 1;
        color: #fff;
        pointer-events: none;
    }

.daily-lbl {
    font-size: 0.58rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    font-family: var(--fd);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

    .daily-lbl::before {
        content: '';
        display: inline-block;
        width: 16px;
        height: 1px;
        background: rgba(255,255,255,0.4);
    }

.daily-fr {
    font-style: italic;
    font-family: var(--fd);
    font-size: 1rem;
    line-height: 1.55;
    color: #fff;
    margin-bottom: 6px;
    font-weight: 400;
}

.daily-zh {
    font-family: var(--fz);
    font-size: 0.8rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.7;
}

.daily-footer {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.daily-src {
    font-size: 0.63rem;
    color: rgba(255,255,255,0.45);
    font-family: var(--fd);
    font-style: italic;
}

.daily-action {
    background: rgba(255,255,255,0.15);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.68rem;
    font-family: var(--fd);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Show Grid — 两栏大卡片 */
.show-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0 16px 4px;
}

    /* 第一张大卡片占满两栏 */
    .show-grid .show-card-wide {
        grid-column: 1 / -1;
    }

.show-card {
    position: relative;
    border-radius: var(--r-md);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--sh-md);
    background: var(--ink-mid);
    transition: transform var(--t), box-shadow var(--t);
}

    .show-card:active {
        transform: scale(0.97);
        box-shadow: var(--sh-sm);
    }

.show-card--tall {
    aspect-ratio: 3/4;
}

.show-card--wide {
    height: 160px;
}

/* Image container with fallback */
.show-card__img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    background-color: var(--ink-mid);
}

    /* Broken image fallback */
    .show-card__img::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, var(--ink-mid) 0%, var(--ink-lt) 100%);
        opacity: 0;
        transition: opacity 0.3s;
    }

.show-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( to bottom, rgba(13,20,33,0) 0%, rgba(13,20,33,0.4) 50%, rgba(13,20,33,0.92) 100% );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 12px;
    z-index: 2;
}

.show-card--wide .show-card__overlay {
    background: linear-gradient( to right, rgba(13,20,33,0.95) 0%, rgba(13,20,33,0.6) 55%, rgba(13,20,33,0.1) 100% );
    justify-content: center;
}

.show-card__fr {
    font-size: 0.58rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    font-family: var(--fd);
    margin-bottom: 3px;
}

.show-card__title {
    font-family: var(--fd);
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

.show-card--wide .show-card__title {
    font-size: 1.2rem;
}

.show-card__prog {
    margin-top: 8px;
}

.show-card__prog-txt {
    font-size: 0.6rem;
    color: rgba(255,255,255,0.65);
    font-family: var(--fz);
    margin-bottom: 4px;
}

.show-card__prog-bar {
    height: 3px;
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
    overflow: hidden;
}

.show-card__prog-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--wine), var(--gold));
    border-radius: 3px;
    transition: width 0.8s ease;
}

.show-card__new {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--gold);
    color: var(--ink);
    font-size: 0.55rem;
    font-family: var(--fd);
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 8px;
    letter-spacing: 0.05em;
    z-index: 3;
}

/* Horizontal Scroll Row */
.scroll-row {
    display: flex;
    gap: 10px;
    padding: 4px 16px 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

    .scroll-row::-webkit-scrollbar {
        display: none;
    }

/* Feature Cards Horizontal */
.feature-card {
    scroll-snap-align: start;
    flex: 0 0 200px;
    background: var(--bg-card);
    border-radius: var(--r-md);
    overflow: hidden;
    box-shadow: var(--sh-sm);
    cursor: pointer;
    transition: transform var(--t);
}

    .feature-card:active {
        transform: scale(0.97);
    }

.feature-card__img {
    height: 110px;
    background-size: cover;
    background-position: center;
    background-color: var(--ink-mid);
    position: relative;
}

.feature-card__body {
    padding: 10px 12px 12px;
}

.feature-card__tag {
    font-size: 0.58rem;
    color: var(--wine);
    font-family: var(--fd);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.feature-card__title {
    font-family: var(--fd);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--tx-h);
    line-height: 1.3;
}

.feature-card__sub {
    font-size: 0.7rem;
    color: var(--tx-m);
    font-family: var(--fz);
    margin-top: 3px;
}

/* Song List Scroll */
.song-scroll-card {
    scroll-snap-align: start;
    flex: 0 0 160px;
    background: var(--bg-card);
    border-radius: var(--r-md);
    overflow: hidden;
    box-shadow: var(--sh-sm);
    cursor: pointer;
    transition: transform var(--t);
}

    .song-scroll-card:active {
        transform: scale(0.97);
    }

.song-card__cover {
    height: 90px;
    background: var(--ink-mid);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    position: relative;
}

.song-card__body {
    padding: 9px 11px 11px;
}

.song-card__title {
    font-family: var(--fd);
    font-style: italic;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.3;
}

.song-card__sub {
    font-size: 0.68rem;
    color: var(--tx-m);
    font-family: var(--fz);
    margin-top: 2px;
}

/* ============================================================
   STUDY TAB — 学习
   ============================================================ */
.study-hero {
    background: linear-gradient(135deg, var(--ink) 0%, #1A2F5A 100%);
    padding: 20px 16px 24px;
    position: relative;
    overflow: hidden;
}

    .study-hero::after {
        content: '♩';
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 6rem;
        opacity: 0.04;
        color: var(--gold);
    }

.study-current-card {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--r-lg);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: background var(--t);
}

    .study-current-card:active {
        background: rgba(255,255,255,0.12);
    }

.study-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.study-btn {
    flex: 1;
    padding: 10px 0;
    border-radius: 22px;
    font-size: 0.82rem;
    font-family: var(--fz);
    font-weight: 500;
    transition: all var(--t);
}

.study-btn--primary {
    background: linear-gradient(135deg, var(--wine) 0%, var(--wine-dk) 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(192,57,43,0.4);
}

.study-btn--secondary {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8);
    border: 1px solid rgba(255,255,255,0.15);
}

/* Study Action Card */
.study-action-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-card);
    border-radius: var(--r-md);
    padding: 14px 16px;
    margin: 0 16px 10px;
    box-shadow: var(--sh-sm);
    cursor: pointer;
    transition: transform var(--t), box-shadow var(--t);
}

    .study-action-card:active {
        transform: scale(0.98);
        box-shadow: var(--sh-sm);
    }

.study-action-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

/* ============================================================
   PRACTICE TAB — 练习
   ============================================================ */
.p-tabs {
    display: flex;
    background: var(--bg-card);
    border-bottom: 1px solid var(--bd);
    overflow-x: auto;
    scrollbar-width: none;
}

    .p-tabs::-webkit-scrollbar {
        display: none;
    }

.ptab {
    flex: 1;
    min-width: 80px;
    padding: 12px 4px;
    text-align: center;
    font-size: 0.75rem;
    font-family: var(--fz);
    color: var(--tx-m);
    cursor: pointer;
    position: relative;
    transition: color var(--t);
    white-space: nowrap;
}

    .ptab.on {
        color: var(--wine);
        font-weight: 600;
    }

        .ptab.on::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 15%;
            right: 15%;
            height: 2px;
            background: var(--wine);
            border-radius: 2px 2px 0 0;
        }

/* AI Cards */
.ai-card {
    margin: 0 16px 12px;
    background: linear-gradient(135deg, var(--wine-dk) 0%, #A0282F 100%);
    border-radius: var(--r-lg);
    padding: 18px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--t);
}

    .ai-card:active {
        transform: scale(0.98);
    }

    .ai-card::after {
        content: '🎭';
        position: absolute;
        right: 14px;
        bottom: 10px;
        font-size: 3.5rem;
        opacity: 0.15;
        pointer-events: none;
    }

.ai-lbl {
    font-size: 0.58rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    font-family: var(--fd);
    margin-bottom: 6px;
}

.ai-card__t {
    font-family: var(--fd);
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
}

.ai-card__d {
    font-family: var(--fz);
    font-size: 0.77rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.6;
}

.ai-card__btn {
    margin-top: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.15);
    color: #fff;
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-family: var(--fd);
    backdrop-filter: blur(4px);
}

.char-pills {
    display: flex;
    gap: 7px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.char-pill {
    padding: 5px 12px;
    border-radius: 20px;
    border: 1.5px solid rgba(255,255,255,0.25);
    color: #fff;
    font-family: var(--fz);
    font-size: 0.72rem;
    background: rgba(255,255,255,0.08);
    cursor: pointer;
    transition: all var(--t);
}

    .char-pill:hover {
        background: rgba(255,255,255,0.2);
        border-color: rgba(255,255,255,0.5);
    }

/* Quiz Styles */
.quiz-q {
    padding: 20px 16px;
}

.quiz-q__lbl {
    font-size: 0.68rem;
    color: var(--tx-m);
    font-family: var(--fz);
    margin-bottom: 14px;
    letter-spacing: 0.04em;
}

.quiz-q__main {
    font-family: var(--fz);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--tx-h);
    line-height: 1.6;
    margin-bottom: 8px;
    padding: 16px;
    background: var(--bg-deep);
    border-radius: var(--r-md);
}

.quiz-q__src {
    font-size: 0.68rem;
    color: var(--tx-lt);
    font-family: var(--fd);
    font-style: italic;
    margin-bottom: 18px;
    padding: 0 4px;
}

.quiz-opt {
    display: block;
    width: 100%;
    text-align: left;
    padding: 13px 16px;
    margin-bottom: 9px;
    background: var(--bg-card);
    border: 2px solid var(--bd);
    border-radius: var(--r-md);
    font-family: var(--fg);
    font-size: 0.9rem;
    color: var(--tx-b);
    cursor: pointer;
    transition: all var(--t);
    box-shadow: var(--sh-sm);
    line-height: 1.4;
}

    .quiz-opt:hover {
        border-color: var(--navy-l);
        background: var(--navy-pale);
    }

    .quiz-opt:active {
        transform: scale(0.99);
    }

    .quiz-opt.correct {
        background: #e8f5ed;
        border-color: #27AE60;
        color: #1A7A3E;
    }

    .quiz-opt.wrong {
        background: var(--wine-pale);
        border-color: var(--wine);
        color: var(--wine-dk);
    }

/* ============================================================
   AI CHAT
   ============================================================ */
.iv-head {
    background: var(--ink);
    color: #fff;
    padding: 16px;
    border-bottom: 1px solid var(--bd-dark);
}

.ai-chat-area {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    background: var(--bg-deep);
    min-height: 200px;
    flex: 1;
}

.ai-u {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--wine) 0%, var(--wine-dk) 100%);
    color: #fff;
    border-radius: 16px 16px 2px 16px;
    padding: 10px 14px;
    max-width: 80%;
    font-family: var(--fz);
    font-size: 0.85rem;
    line-height: 1.6;
    box-shadow: 0 3px 10px rgba(192,57,43,0.3);
}

.ai-b {
    align-self: flex-start;
    background: var(--bg-card);
    border-radius: 2px 16px 16px 16px;
    padding: 11px 14px;
    max-width: 86%;
    box-shadow: var(--sh-sm);
}

.ai-b__fr {
    font-style: italic;
    font-family: var(--fd);
    font-size: 0.9rem;
    color: var(--navy);
    line-height: 1.65;
}

.ai-b__zh {
    font-family: var(--fz);
    font-size: 0.78rem;
    color: var(--tx-m);
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid var(--bd);
    line-height: 1.65;
}

.ai-irow {
    display: flex;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg-card);
    border-top: 1px solid var(--bd);
}

.ai-inp {
    flex: 1;
    background: var(--bg-deep);
    border: 1.5px solid var(--bd);
    border-radius: 22px;
    padding: 10px 16px;
    font-family: var(--fz);
    font-size: 0.85rem;
    color: var(--tx-h);
    outline: none;
    transition: border-color var(--t);
}

    .ai-inp:focus {
        border-color: var(--wine);
    }

    .ai-inp::placeholder {
        color: var(--tx-lt);
    }

.ai-snd {
    background: linear-gradient(135deg, var(--wine) 0%, var(--wine-dk) 100%);
    color: #fff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(192,57,43,0.4);
    transition: transform var(--t);
}

    .ai-snd:active {
        transform: scale(0.9);
    }

    .ai-snd svg {
        width: 15px;
        height: 15px;
    }

/* ============================================================
   COMMUNITY TAB — 社区
   ============================================================ */
.com-tabs {
    display: flex;
    background: var(--bg-card);
    border-bottom: 1px solid var(--bd);
}

.ctab {
    flex: 1;
    padding: 13px 0;
    text-align: center;
    font-size: 0.78rem;
    font-family: var(--fz);
    color: var(--tx-m);
    cursor: pointer;
    position: relative;
    transition: color var(--t);
}

    .ctab.on {
        color: var(--wine);
        font-weight: 600;
    }

        .ctab.on::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 20%;
            right: 20%;
            height: 2px;
            background: var(--wine);
            border-radius: 2px 2px 0 0;
        }

.post-card {
    background: var(--bg-card);
    border-bottom: 1px solid var(--bd);
    padding: 14px 16px;
    cursor: pointer;
    transition: background var(--t);
}

    .post-card:active {
        background: var(--bg-deep);
    }

.post-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.post-av {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    font-family: var(--fd);
    font-weight: 700;
    color: #fff;
}

.post-meta {
    flex: 1;
}

.post-name {
    font-family: var(--fz);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--tx-h);
}

.post-time {
    font-size: 0.65rem;
    color: var(--tx-lt);
    margin-top: 1px;
}

.post-body {
    font-family: var(--fz);
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--tx-b);
    margin-bottom: 10px;
}

.post-fr {
    background: var(--navy-pale);
    border-left: 3px solid var(--navy);
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
    padding: 8px 12px;
    font-style: italic;
    font-family: var(--fd);
    font-size: 0.85rem;
    color: var(--navy);
    margin-bottom: 10px;
}

.post-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.post-action {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    color: var(--tx-lt);
    font-family: var(--fz);
    cursor: pointer;
    transition: color var(--t);
}

    .post-action svg {
        width: 15px;
        height: 15px;
    }

    .post-action:hover {
        color: var(--wine);
    }

    .post-action.liked {
        color: var(--wine);
    }

/* Leaderboard */
.lb-card {
    background: var(--bg-card);
    border-radius: var(--r-md);
    overflow: hidden;
    margin: 0 16px;
    box-shadow: var(--sh-sm);
}

.lb-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--bd);
    transition: background var(--t);
}

    .lb-row:last-child {
        border-bottom: none;
    }

    .lb-row:active {
        background: var(--bg-deep);
    }

.lb-rank {
    font-family: var(--fd);
    font-size: 0.9rem;
    font-weight: 700;
    width: 24px;
    color: var(--tx-lt);
    text-align: center;
}

    .lb-rank.gold {
        color: var(--gold);
    }

.lb-av {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-family: var(--fd);
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.lb-name {
    font-family: var(--fz);
    font-size: 0.85rem;
    flex: 1;
    color: var(--tx-h);
}

.lb-score {
    font-family: var(--fd);
    font-size: 0.82rem;
    color: var(--wine);
    font-weight: 600;
}

/* ============================================================
   PROFILE TAB — 我的
   ============================================================ */
.prof-head {
    background: linear-gradient(135deg, var(--ink) 0%, var(--ink-mid) 100%);
    padding: 24px 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.prof-av {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--wine) 0%, var(--wine-dk) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(192,57,43,0.5);
    border: 3px solid rgba(255,255,255,0.15);
}

.prof-name {
    font-family: var(--fd);
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 3px;
}

.prof-sub {
    font-family: var(--fz);
    font-size: 0.72rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.5;
    margin-bottom: 8px;
}

.prof-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.pbadge {
    font-size: 0.62rem;
    padding: 3px 9px;
    border-radius: 10px;
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.8);
    font-family: var(--fz);
    border: 1px solid rgba(255,255,255,0.15);
}

.stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    padding: 0 16px;
}

.stat-btn {
    background: var(--bg-card);
    border-radius: var(--r-md);
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: var(--sh-sm);
    transition: all var(--t);
}

    .stat-btn:active {
        transform: scale(0.96);
    }

.stat-ico {
    font-size: 1.6rem;
}

.stat-lbl {
    font-size: 0.65rem;
    font-family: var(--fz);
    color: var(--tx-m);
    text-align: center;
}

/* Prog Overview */
.prog-ov {
    margin: 0 16px;
    background: var(--bg-card);
    border-radius: var(--r-md);
    padding: 14px 16px;
    box-shadow: var(--sh-sm);
}

.prog-ov__t {
    font-family: var(--fd);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--tx-h);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.prog-ov__row {
    margin-bottom: 10px;
}

.prog-ov__lbl {
    display: flex;
    justify-content: space-between;
    font-family: var(--fz);
    font-size: 0.75rem;
    margin-bottom: 5px;
}

.total-lbl {
    font-family: var(--fz);
    font-size: 0.72rem;
    color: var(--tx-m);
    margin-bottom: 2px;
}

.total-val {
    font-family: var(--fd);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--tx-h);
}

/* ============================================================
   DETAIL PAGES
   ============================================================ */
.d-hero {
    padding: 20px 16px 18px;
    color: #fff;
    position: relative;
    overflow: hidden;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

    .d-hero::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.45));
        pointer-events: none;
    }

    .d-hero > * {
        position: relative;
        z-index: 1;
    }

.d-hero__eye {
    font-size: 0.58rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.65;
    font-family: var(--fd);
    margin-bottom: 5px;
}

.d-hero__title {
    font-family: var(--fd);
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.d-hero__sub {
    font-size: 0.8rem;
    opacity: 0.75;
    font-style: italic;
    margin-top: 5px;
    font-family: var(--fg);
}

/* Bilingual Block */
.bi-block {
    background: var(--bg-card);
    border-radius: var(--r-md);
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: var(--sh-sm);
}

.bi-zh {
    padding: 14px 16px;
    border-bottom: 1px solid var(--bd);
}

.bi-fr {
    padding: 14px 16px;
    background: var(--navy-pale);
}

.lang-lbl {
    font-size: 0.56rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 6px;
    font-family: var(--fd);
    font-weight: 600;
}

.zh-b {
    font-family: var(--fz);
    font-size: 0.88rem;
    line-height: 1.9;
    white-space: pre-line;
}

.fr-b {
    font-family: var(--fg);
    font-style: italic;
    font-size: 0.88rem;
    line-height: 1.9;
    color: var(--navy);
    white-space: pre-line;
}

/* Vocab Row */
.v-row {
    padding: 10px 0;
    border-bottom: 1px solid var(--bd);
}

    .v-row:last-child {
        border-bottom: none;
    }

.v-word {
    font-family: var(--fg);
    font-style: italic;
    font-size: 1rem;
    color: var(--navy);
    font-weight: 600;
}

.v-pos {
    font-size: 0.65rem;
    color: var(--wine);
    margin-left: 8px;
    font-family: var(--fd);
}

.v-zh {
    font-family: var(--fz);
    font-size: 0.82rem;
    margin-top: 3px;
    color: var(--tx-b);
}

.v-note {
    font-size: 0.72rem;
    color: var(--tx-lt);
    font-style: italic;
    margin-top: 2px;
}

/* Scene */
.scene-node {
    padding: 14px 16px;
}

.scene-choice {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 0 16px;
}

.s-btn {
    padding: 13px 14px;
    background: var(--bg-card);
    border: 1.5px solid var(--bd);
    border-radius: var(--r-md);
    cursor: pointer;
    font-family: var(--fz);
    font-size: 0.85rem;
    color: var(--tx-h);
    text-align: left;
    line-height: 1.55;
    transition: all var(--t);
    box-shadow: var(--sh-sm);
}

    .s-btn:hover {
        border-color: var(--wine);
        box-shadow: 0 0 0 3px var(--wine-pale);
    }

    .s-btn:active {
        transform: scale(0.98);
    }

.s-btn__fr {
    font-family: var(--fg);
    font-style: italic;
    font-size: 0.8rem;
    color: var(--navy);
    display: block;
    margin-top: 4px;
}

/* Result Page */
.result-top {
    background: linear-gradient(135deg, var(--ink) 0%, var(--ink-mid) 100%);
    color: #fff;
    text-align: center;
    padding: 40px 16px 32px;
}

/* Media Container */
.media-container {
    margin-bottom: 12px;
    border-radius: var(--r-md);
    overflow: hidden;
    background: #000;
}

    .media-container video {
        width: 100%;
        display: block;
    }

/* ============================================================
   SAFE AREA & PWA
   ============================================================ */
@supports (padding: max(0px)) {
    .bottom-nav {
        padding-bottom: env(safe-area-inset-bottom, 0px);
        height: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
    }

    .top-bar {
        padding-top: env(safe-area-inset-top, 0px);
        height: calc(var(--bar-h) + env(safe-area-inset-top, 0px));
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================================
   UTILITY
   ============================================================ */
.hidden {
    display: none !important;
}

.skeleton {
    background: linear-gradient(90deg, var(--bg-deep) 25%, var(--bg) 50%, var(--bg-deep) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--r-sm);
}

/* Image Error Fallback */
.img-fallback {
    background: linear-gradient(135deg, var(--ink-mid) 0%, var(--ink-lt) 100%) !important;
    display: flex;
    align-items: center;
    justify-content: center;
}
