:root {
    --brand-blue: #1153f2;
    --brand-cyan: #1ab5f5;
    --brand-violet: #7e0eeb;
    --brand-magenta: #d62afd;
    --text-strong: #10205f;
    --text-body: #33406e;
    --text-soft: #6c79a8;
    --surface: #ffffff;
    --surface-soft: #f5f8ff;
    --surface-alt: #edf3ff;
    --line: rgba(17, 83, 242, 0.12);
    --shadow: 0 18px 50px rgba(28, 54, 143, 0.12);
    --shadow-soft: 0 12px 32px rgba(21, 78, 211, 0.08);
    --radius: 20px;
    --radius-sm: 14px;
    --gradient-brand: linear-gradient(120deg, var(--brand-blue) 0%, var(--brand-cyan) 30%, var(--brand-violet) 68%, var(--brand-magenta) 100%);
    --gradient-soft: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
    color-scheme: light;
}

:root[data-theme="dark"] {
    --text-strong: #f1f5ff;
    --text-body: #c8d3ff;
    --text-soft: #96a7dd;
    --surface: #111830;
    --surface-soft: #172043;
    --surface-alt: #1b274f;
    --line: rgba(137, 168, 255, 0.16);
    --shadow: 0 18px 50px rgba(3, 8, 26, 0.42);
    --shadow-soft: 0 12px 32px rgba(3, 8, 26, 0.34);
    --gradient-soft: linear-gradient(180deg, #1a2448 0%, #121a37 100%);
    color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(26,181,245,0.18), transparent 28%),
        radial-gradient(circle at top right, rgba(214,42,253,0.16), transparent 24%),
        linear-gradient(180deg, #fbfdff 0%, #f3f7ff 100%);
    color: var(--text-body);
}
:root[data-theme="dark"] body {
    background:
        radial-gradient(circle at top left, rgba(26,181,245,0.10), transparent 28%),
        radial-gradient(circle at top right, rgba(214,42,253,0.10), transparent 24%),
        linear-gradient(180deg, #090d1c 0%, #0f1530 100%);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }

.page-shell { min-height: 100vh; padding-bottom: 88px; }
.main-content { width: min(1200px, calc(100% - 32px)); margin: 0 auto; padding: 24px 0 80px; }

.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: min(1240px, calc(100% - 24px));
    margin: 14px auto 0;
    padding: 14px 18px;
    background: rgba(255,255,255,0.82);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(17,83,242,0.08);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    transition: transform 220ms ease, opacity 180ms ease, box-shadow 180ms ease;
}
:root[data-theme="dark"] .topbar, :root[data-theme="dark"] .nav-mobile, :root[data-theme="dark"] .bottom-nav {
    background: rgba(16, 24, 47, 0.82);
    border-color: rgba(137,168,255,0.12);
}
:root[data-theme="dark"] .nav-toggle,
:root[data-theme="dark"] .is-home-page .nav-toggle {
    background: rgba(16,24,47,0.86);
    border-color: rgba(137,168,255,0.16);
}

.brand-wrap { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand-mark { width: 58px; flex: 0 0 58px; }
.brand-mark img { border-radius: 16px; }
.brand-copy { min-width: 0; }
.brand-name { display: inline-block; color: var(--text-strong); font-size: 1.2rem; font-weight: 800; }
.brand-tagline { margin: 2px 0 0; color: var(--text-soft); font-size: 0.8rem; letter-spacing: 0.12em; }
.nav-points { color: var(--brand-violet); font-weight: 800; }

.nav-desktop { display: none; align-items: center; gap: 10px; }
.nav-desktop a, .nav-desktop .nav-logout-form button { color: var(--text-strong); padding: 10px 14px; border-radius: 999px; font-weight: 600; }
.nav-desktop a:hover, .nav-logout-form button:hover { background: rgba(17,83,242,0.08); }
.nav-logout-form { margin: 0; display: inline-flex; }
.nav-logout-form button { border: 0; background: transparent; cursor: pointer; appearance: none; white-space: nowrap; }
.badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 20px; margin-left: 6px; padding: 0 6px; height: 20px;
    border-radius: 999px; background: var(--gradient-brand); color: white; font-size: 0.75rem;
}

.nav-toggle {
    border: 0; background: rgba(17,83,242,0.08); border-radius: 14px;
    width: 46px; height: 46px; display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; padding: 0 12px;
}
.nav-toggle span { display: block; height: 2px; background: var(--text-strong); border-radius: 999px; }

.nav-mobile {
    display: none;
    width: min(1240px, calc(100% - 24px));
    margin: 10px auto 0;
    padding: 12px;
    background: rgba(255,255,255,0.92);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
}
.nav-mobile-backdrop {
    position: fixed;
    inset: 0;
    z-index: 54;
    background: rgba(8, 14, 36, 0.20);
    backdrop-filter: blur(6px);
}
.nav-mobile-backdrop[hidden] { display: none; }
.nav-mobile.is-open { display: grid; gap: 8px; }
.nav-mobile a, .nav-mobile .nav-logout-form button {
    padding: 12px 14px;
    background: var(--surface-soft);
    border-radius: 14px;
    color: var(--text-strong);
    font-weight: 600;
    text-align: left;
    width: 100%;
}

.bottom-nav {
    position: fixed;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: min(520px, calc(100% - 24px));
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 10px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(17,83,242,0.08);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    z-index: 25;
    transition: transform 220ms ease, opacity 180ms ease;
}
.bottom-nav a {
    text-align: center;
    padding: 12px 8px;
    color: var(--text-strong);
    font-weight: 700;
    border-radius: 14px;
}
.bottom-nav a:hover { background: rgba(17,83,242,0.08); }
.bottom-nav a.is-active {
    color: white;
    background: var(--gradient-brand);
    box-shadow: 0 10px 24px rgba(126,14,235,0.20);
}
:root[data-theme="dark"] .nav-desktop a:hover,
:root[data-theme="dark"] .nav-logout-form button:hover,
:root[data-theme="dark"] .bottom-nav a:hover {
    background: rgba(137,168,255,0.12);
}

.hero, .detail-hero, .two-column, .player-stack, .stats-grid, .card-grid, .category-grid {
    display: grid;
    gap: 20px;
}

.detail-hero,
.detail-main,
.detail-cover-wrap,
.detail-cover,
.flip-inner,
.flip-front,
.flip-back,
.player-stack,
.two-column,
.player-box,
.subtitle-panel,
.panel {
    min-width: 0;
}

.detail-cover-wrap,
.detail-cover,
.flip-inner,
.flip-front,
.flip-back {
    max-width: 100%;
}

.hero {
    grid-template-columns: 1fr;
    align-items: center;
    padding: 24px 0 16px;
}
.hero-copy h1, .section h1, .detail-main h1, .auth-panel h1 {
    margin: 0 0 14px;
    color: var(--text-strong);
    font-size: clamp(2rem, 6vw, 3.8rem);
    line-height: 1.02;
}
.hero-text, .detail-summary { font-size: 1.02rem; line-height: 1.7; max-width: 58ch; }
.detail-main h1,
.detail-summary,
.quote-bubble,
.comment-card p,
.review-card p {
    overflow-wrap: anywhere;
    word-break: break-word;
}
.hero-art, .feature-cover, .panel, .work-card, .category-card, .auth-panel, .feature-panel, .script-card {
    background: rgba(255,255,255,0.8);
    border: 1px solid rgba(17,83,242,0.08);
    box-shadow: var(--shadow);
}
:root[data-theme="dark"] .hero-art, :root[data-theme="dark"] .feature-cover, :root[data-theme="dark"] .panel, :root[data-theme="dark"] .work-card, :root[data-theme="dark"] .category-card, :root[data-theme="dark"] .auth-panel, :root[data-theme="dark"] .feature-panel, :root[data-theme="dark"] .script-card {
    background: rgba(16,24,47,0.8);
}
.hero-art {
    border-radius: 26px;
    overflow: hidden;
}
.hero-art img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.hero-actions, .action-row, .price-row, .chips, .comment-head, .section-head, .order-head, .checkout-summary, .script-card__top {
    display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
}

.button {
    display: inline-flex; justify-content: center; align-items: center;
    min-height: 48px; padding: 0 18px; border-radius: 14px; border: 1px solid transparent;
    font-weight: 700; cursor: pointer; transition: 180ms ease;
    max-width: 100%;
    min-width: 0;
    text-align: center;
}
.button.primary {
    color: white;
    background: var(--gradient-brand);
    box-shadow: 0 10px 26px rgba(126,14,235,0.25);
}
.button.primary:hover { transform: translateY(-1px); }
.button:disabled {
    opacity: 0.52;
    cursor: not-allowed;
    transform: none;
}
.button.ghost, .button.icon-button {
    color: var(--text-strong);
    background: rgba(17,83,242,0.08);
    border-color: rgba(17,83,242,0.08);
}
.button.danger {
    color: #fff;
    background: linear-gradient(120deg, #e53972, #7e0eeb);
    border-color: rgba(229,57,114,0.12);
    box-shadow: 0 10px 24px rgba(229,57,114,0.18);
}
.button.text-button {
    min-height: auto; padding: 0; background: none; color: var(--brand-blue); border: 0;
}
.button.full { width: 100%; }

.eyebrow {
    margin: 0 0 10px;
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--brand-violet);
    font-weight: 800;
}

.section { padding-top: 28px; }
.compact-top { padding-top: 12px; }
.section-head { justify-content: space-between; margin-bottom: 18px; }
.section-head h2 { margin: 0; color: var(--text-strong); font-size: 1.7rem; }
.section-head.slim h2 { font-size: 1.2rem; }
.stack-mobile { flex-direction: column; align-items: flex-start; }

.card-grid { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.category-grid, .stats-grid, .two-column, .player-stack { grid-template-columns: 1fr; }

.work-card, .category-card, .panel, .feature-panel, .auth-panel, .script-card {
    border-radius: 22px;
    overflow: hidden;
}
.work-card-cover img, .category-card img, .detail-cover img {
    aspect-ratio: 4 / 5;
    object-fit: cover;
    width: 100%;
}
.work-card-body, .category-copy, .panel, .auth-panel, .feature-body, .script-card {
    padding: 18px;
}
.work-card {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    align-items: start;
}
.work-card-cover {
    padding: 14px 0 14px 14px;
}
.work-card-cover img {
    height: 126px;
    aspect-ratio: 3 / 4;
    border-radius: 16px;
}
.work-card-body {
    padding: 14px 14px 14px 12px;
}
.work-card-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.82rem;
}
.work-card h3 {
    margin: 6px 0 6px;
    font-size: 1rem;
}
.work-card-body p {
    margin: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
.work-card-meta, .muted, .brand-tagline, .comment-head span, .order-head span, .order-head em, .small {
    color: var(--text-soft);
}
.work-card h3, .category-copy h3, .review-card h3 { color: var(--text-strong); margin: 10px 0 8px; }
.work-card-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-top: 12px; }
.work-card-foot strong, .price-row strong, .stat-card strong { color: var(--text-strong); font-size: 1.25rem; }
.category-card { position: relative; }
.category-copy a, .work-card-foot a { color: var(--brand-blue); font-weight: 700; }

.feature-panel {
    display: grid;
    grid-template-columns: 1fr;
    overflow: hidden;
    background: linear-gradient(120deg, rgba(255,255,255,0.92) 0%, rgba(247,250,255,0.96) 100%);
}
.feature-cover img { width: 100%; height: 100%; object-fit: cover; }
.chips { margin: 18px 0; }
.chip {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(17,83,242,0.08);
    color: var(--text-strong);
    font-size: 0.92rem;
}

.detail-cover-wrap {
    position: relative;
    width: 100%;
}
.detail-cover {
    position: relative;
    width: 100%;
    border-radius: 28px;
    overflow: hidden;
    cursor: pointer;
    min-height: 320px;
    perspective: 1200px;
    background: var(--surface);
    box-shadow: var(--shadow);
}
.gallery-open-button {
    position: absolute;
    right: 14px;
    top: 14px;
    z-index: 3;
    max-width: calc(100% - 28px);
    border: 0;
    border-radius: 999px;
    padding: 9px 12px;
    color: white;
    background: rgba(15, 30, 122, 0.62);
    backdrop-filter: blur(12px);
    font-weight: 700;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 320px;
    transition: transform 0.7s ease;
    transform-style: preserve-3d;
}
.flip-card.is-flipped .flip-inner { transform: rotateY(180deg); }
.flip-front, .flip-back { position: absolute; inset: 0; backface-visibility: hidden; }
.detail-cover img {
    display: block;
    max-width: 100%;
    height: 100%;
}
.flip-back {
    display: grid;
    place-items: center;
    padding: 24px;
    transform: rotateY(180deg);
    background: radial-gradient(circle at top left, rgba(26,181,245,0.24), transparent 32%), var(--gradient-brand);
}
.quote-bubble {
    padding: 18px 20px;
    border-radius: 18px;
    background: rgba(255,255,255,0.9);
    color: var(--text-strong);
    font-size: 1.1rem;
    line-height: 1.6;
    box-shadow: 0 12px 30px rgba(18, 39, 117, 0.22);
}
.gallery-open {
    overflow: hidden;
}
.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 18px;
}
.gallery-lightbox[hidden] {
    display: none;
}
.gallery-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 10, 28, 0.76);
    backdrop-filter: blur(16px);
}
.gallery-dialog {
    position: relative;
    z-index: 1;
    width: min(980px, 100%);
    min-height: min(720px, calc(100vh - 36px));
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) 54px;
    align-items: center;
    gap: 10px;
}
.gallery-figure {
    margin: 0;
    display: grid;
    gap: 12px;
}
.gallery-figure img {
    width: 100%;
    max-height: calc(100vh - 160px);
    object-fit: contain;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}
.gallery-figure figcaption {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: white;
    font-weight: 700;
}
.gallery-close,
.gallery-nav {
    border: 0;
    color: white;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
    cursor: pointer;
}
.gallery-close {
    position: absolute;
    right: 0;
    top: 0;
    z-index: 2;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    font-size: 1.4rem;
}
.gallery-nav {
    width: 54px;
    height: 64px;
    border-radius: 16px;
    font-size: 2rem;
}

.player-panel, .panel, .feature-panel { border-radius: 24px; }
.player-stack { gap: 18px; }
.player-box, .subtitle-panel {
    position: relative;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255,255,255,0.84);
    border: 1px solid rgba(17,83,242,0.08);
    box-shadow: var(--shadow-soft);
}
.player-box audio { width: 100%; }
.player-watermark {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.82);
    color: var(--brand-violet);
    font-size: 0.8rem;
    font-weight: 700;
    pointer-events: none;
    backdrop-filter: blur(10px);
    animation: watermark-drift 7s ease-in-out infinite alternate;
}
.subtitle-list {
    max-height: 320px;
    overflow: auto;
    display: grid;
    gap: 10px;
}
.subtitle-line {
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--surface-soft);
}
.subtitle-line.is-active {
    background: linear-gradient(120deg, rgba(17,83,242,0.12), rgba(214,42,253,0.12));
    color: var(--text-strong);
    font-weight: 700;
}

body.immersive-body {
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
    background: #050817;
    color: white;
}
.immersive-player {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 18px;
    padding: 18px;
    overflow: hidden;
}
.immersive-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    background: #050817;
}
.immersive-bg-image {
    position: absolute;
    inset: -44px;
    width: calc(100% + 88px);
    height: calc(100% + 88px);
    object-fit: cover;
    opacity: 0;
    filter: blur(36px);
    transform: scale(1.12);
    transition: opacity 1.6s ease;
}
.immersive-bg-image.is-visible { opacity: 1; }
.immersive-bg-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 12%, rgba(26,181,245,0.30), transparent 30%),
        radial-gradient(circle at 78% 22%, rgba(214,42,253,0.22), transparent 28%),
        linear-gradient(180deg, rgba(4,8,24,0.58) 0%, rgba(4,8,24,0.48) 40%, rgba(4,8,24,0.82) 100%);
    backdrop-filter: blur(2px);
}
.immersive-header {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
}
.immersive-title {
    min-width: 0;
    text-align: center;
    display: grid;
    gap: 3px;
}
.immersive-title span,
.immersive-kicker {
    color: rgba(226, 236, 255, 0.72);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.immersive-title strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.98rem;
}
.immersive-pill,
.immersive-play-button {
    min-height: 44px;
    border: 1px solid rgba(255,255,255,0.18);
    color: white;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(18px);
    cursor: pointer;
    box-shadow: 0 14px 40px rgba(0,0,0,0.16);
}
.immersive-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    border-radius: 999px;
    font-weight: 800;
}
.immersive-pill:hover,
.immersive-play-button:hover { background: rgba(255,255,255,0.18); }
.immersive-stage {
    position: relative;
    z-index: 1;
    width: min(920px, 100%);
    align-self: center;
    justify-self: center;
    display: grid;
    justify-items: center;
    gap: 18px;
    text-align: center;
    padding: 14px 0;
}
.immersive-stage h1 {
    margin: 0;
    max-width: 18ch;
    color: white;
    font-size: 2.4rem;
    line-height: 1.12;
    text-shadow: 0 18px 60px rgba(0,0,0,0.34);
}
.immersive-subtitle-box {
    width: min(860px, 100%);
    display: grid;
    gap: 10px;
    padding: 18px 20px;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(4, 8, 24, 0.34);
    backdrop-filter: blur(18px);
    box-shadow: 0 24px 80px rgba(0,0,0,0.22);
}
.immersive-subtitle-current,
.immersive-subtitle-next {
    margin: 0;
    overflow-wrap: anywhere;
}
.immersive-subtitle-current {
    color: white;
    font-size: 1.5rem;
    line-height: 1.5;
    font-weight: 800;
}
.immersive-subtitle-next {
    min-height: 1.6em;
    color: rgba(226, 236, 255, 0.70);
    font-size: 1rem;
    line-height: 1.6;
}
.immersive-player.subtitle-large .immersive-subtitle-current { font-size: 1.8rem; }
.immersive-player.subtitle-xl .immersive-subtitle-current { font-size: 2.05rem; }
.immersive-control-panel {
    position: relative;
    z-index: 1;
    width: min(980px, 100%);
    justify-self: center;
    display: grid;
    gap: 14px;
    padding: 16px;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(6, 10, 30, 0.58);
    backdrop-filter: blur(22px);
    box-shadow: 0 24px 80px rgba(0,0,0,0.28);
}
.immersive-control-panel audio { display: none; }
.immersive-main-controls {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    align-items: center;
}
.immersive-play-button {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    font-weight: 900;
}
.immersive-play-button:disabled {
    opacity: 0.58;
    cursor: not-allowed;
}
.immersive-progress {
    min-width: 0;
    display: grid;
    gap: 8px;
}
.immersive-progress input[type="range"],
.immersive-range input[type="range"] {
    width: 100%;
    accent-color: var(--brand-cyan);
}
.immersive-time {
    display: flex;
    justify-content: space-between;
    color: rgba(226, 236, 255, 0.76);
    font-size: 0.88rem;
    font-weight: 700;
}
.immersive-secondary-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.immersive-range,
.immersive-select {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    border-radius: 999px;
    color: rgba(226, 236, 255, 0.84);
    background: rgba(255,255,255,0.10);
    font-size: 0.9rem;
    font-weight: 800;
}
.immersive-range { width: min(260px, 100%); }
.immersive-select select {
    width: auto;
    min-height: 34px;
    padding: 4px 8px;
    border: 0;
    border-radius: 999px;
    color: white;
    background: rgba(255,255,255,0.12);
}
.immersive-select select option { color: #10205f; }
.immersive-sleep-note {
    min-height: 1.4em;
    margin: 0;
    color: rgba(226, 236, 255, 0.72);
    font-size: 0.88rem;
}
.immersive-watermark {
    position: fixed;
    right: 22px;
    bottom: 18px;
    z-index: 2;
    padding: 8px 12px;
    border-radius: 999px;
    color: rgba(255,255,255,0.62);
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
    font-size: 0.78rem;
    font-weight: 800;
    pointer-events: none;
    animation: watermark-drift 7s ease-in-out infinite alternate;
}

@media (prefers-reduced-motion: reduce) {
    .immersive-bg-image,
    .immersive-watermark {
        transition: none;
        animation: none;
    }
}

.stack-form { display: grid; gap: 14px; }
input[type="text"], input[type="search"], input[type="password"], textarea, select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(17,83,242,0.14);
    border-radius: 14px;
    background: rgba(255,255,255,0.95);
    color: var(--text-strong);
}
:root[data-theme="dark"] input[type="text"], :root[data-theme="dark"] input[type="search"], :root[data-theme="dark"] input[type="password"], :root[data-theme="dark"] textarea, :root[data-theme="dark"] select {
    background: rgba(9,13,28,0.9);
    border-color: rgba(137,168,255,0.18);
}
:root[data-theme="dark"] input::placeholder,
:root[data-theme="dark"] textarea::placeholder {
    color: rgba(200, 211, 255, 0.56);
}
textarea { resize: vertical; min-height: 120px; }
label { display: grid; gap: 8px; color: var(--text-strong); font-weight: 600; }

.comment-list, .review-list { display: grid; gap: 14px; margin-top: 18px; }
.comment-card, .review-card, .cart-row, .order-card, .stat-card, .checkout-box, .redeem-box, .script-line {
    padding: 16px;
    border: 1px solid rgba(17,83,242,0.08);
    border-radius: 18px;
    background: var(--gradient-soft);
}
:root[data-theme="dark"] .comment-card,
:root[data-theme="dark"] .review-card,
:root[data-theme="dark"] .cart-row,
:root[data-theme="dark"] .order-card,
:root[data-theme="dark"] .stat-card,
:root[data-theme="dark"] .checkout-box,
:root[data-theme="dark"] .redeem-box,
:root[data-theme="dark"] .script-line,
:root[data-theme="dark"] .activity-row,
:root[data-theme="dark"] .ledger-line,
:root[data-theme="dark"] .redemption-line,
:root[data-theme="dark"] .notification-row,
:root[data-theme="dark"] .dashboard-order-line,
:root[data-theme="dark"] .order-work-row,
:root[data-theme="dark"] .order-summary-item,
:root[data-theme="dark"] .profile-page .panel,
:root[data-theme="dark"] .password-page .panel,
:root[data-theme="dark"] .preferences-page .panel {
    border-color: rgba(137,168,255,0.16);
    background: linear-gradient(180deg, rgba(26,36,72,0.92), rgba(18,26,55,0.94));
}
:root[data-theme="dark"] .script-vote-box {
    border-color: rgba(137,168,255,0.18);
    background: linear-gradient(135deg, rgba(26,181,245,0.12), rgba(214,42,253,0.12));
}
:root[data-theme="dark"] .script-vote-meter {
    background: rgba(200,211,255,0.14);
}
:root[data-theme="dark"] .button.ghost,
:root[data-theme="dark"] .filter-pill,
:root[data-theme="dark"] .chip,
:root[data-theme="dark"] .review-state {
    background: rgba(137,168,255,0.12);
    border-color: rgba(137,168,255,0.16);
    color: var(--text-strong);
}
:root[data-theme="dark"] .empty-card {
    background: rgba(16,24,47,0.82);
    border-color: rgba(137,168,255,0.18);
    color: var(--text-soft);
}
:root[data-theme="dark"] .redeem-box {
    background: linear-gradient(135deg, rgba(26,36,72,0.96) 0%, rgba(18,26,55,0.96) 48%, rgba(40,24,68,0.90) 100%);
}
.comment-head { justify-content: space-between; }
.order-card, .checkout-box, .redeem-box { margin-bottom: 14px; }
.order-items { display: grid; gap: 8px; margin-top: 12px; }
.cart-row {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}
.cart-row img, .mini-row img { width: 64px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; }
.mini-row {
    display: grid;
    grid-template-columns: 68px 1fr;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid rgba(17,83,242,0.08);
}
.mini-row:first-of-type { border-top: 0; padding-top: 0; }

.auth-shell { display: grid; place-items: center; min-height: calc(100vh - 220px); }
.auth-panel {
    width: min(100%, 520px);
    background: rgba(255,255,255,0.9);
}
.captcha-box {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 12px; border-radius: 18px; background: var(--surface-soft);
}
.captcha-image svg { max-width: 100%; height: auto; }

.stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat-card span { color: var(--text-soft); }

.filter-row {
    display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px;
}
.filter-pill {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(17,83,242,0.08);
    color: var(--text-strong);
    font-weight: 700;
}
.filter-pill.is-active { color: white; background: var(--gradient-brand); }

.search-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    width: 100%;
}

.flash-stack {
    width: min(1200px, calc(100% - 32px));
    margin: 16px auto 0;
    display: grid;
    gap: 10px;
}
.flash {
    padding: 14px 16px;
    border-radius: 16px;
    color: var(--text-strong);
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(17,83,242,0.1);
    box-shadow: var(--shadow-soft);
}

.empty-card {
    padding: 22px;
    border-radius: 20px;
    background: rgba(255,255,255,0.88);
    border: 1px dashed rgba(17,83,242,0.18);
    color: var(--text-soft);
}
:root[data-theme="dark"] .feature-panel,
:root[data-theme="dark"] .auth-panel,
:root[data-theme="dark"] .flash,
:root[data-theme="dark"] .age-gate-card {
    background: rgba(16,24,47,0.88);
    border-color: rgba(137,168,255,0.18);
}
:root[data-theme="dark"] .mini-row {
    border-color: rgba(137,168,255,0.14);
}
:root[data-theme="dark"] .age-gate-body {
    background: linear-gradient(135deg, #080d1c 0%, #101830 48%, #211439 100%);
}

.age-gate-card { max-width: 740px; margin: 0 auto; }
.checkout-summary { justify-content: space-between; padding: 16px 0 22px; }
.checkout-summary div { display: grid; gap: 6px; }
.checkout-summary span { color: var(--text-soft); }

.age-gate-body {
    background: linear-gradient(135deg, #f8fbff 0%, #eef4ff 48%, #f8f2ff 100%);
}
.age-gate {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}
.age-gate-card {
    position: relative;
    z-index: 2;
    width: min(100%, 560px);
    padding: 28px;
    border-radius: 28px;
    background: rgba(255,255,255,0.86);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(17,83,242,0.08);
    box-shadow: var(--shadow);
}
.age-gate-bg {
    position: fixed;
    inset: 0;
    opacity: 0.24;
}
.age-gate-bg img { width: 100%; height: 100%; object-fit: cover; }
.age-gate-logo { width: 140px; margin-bottom: 18px; }
.choice-grid { display: grid; gap: 12px; margin: 18px 0 12px; }
.choice-card {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px; border-radius: 16px; background: var(--surface-soft);
    color: var(--text-strong); font-weight: 700;
}

.heart-rating { display: flex; gap: 6px; }
.heart-btn {
    border: 0;
    background: transparent;
    font-size: 1.55rem;
    line-height: 1;
    padding: 2px;
    color: rgba(214, 42, 253, 0.2);
    cursor: pointer;
}
.heart-btn::before {
    content: "\2665";
}
.heart-btn.is-on::before {
    background: linear-gradient(120deg, var(--brand-blue), var(--brand-cyan), var(--brand-violet), var(--brand-magenta));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.script-card {
    display: grid;
    gap: 12px;
}
.script-lines {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}
.script-vote-card {
    display: grid;
    gap: 14px;
}
.script-card-cover img,
.script-detail-cover {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 16px;
}
.script-detail-head {
    display: grid;
    gap: 18px;
    align-items: start;
}
.script-detail-cover {
    max-width: 320px;
}
.script-vote-box {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(26,181,245,0.10), rgba(214,42,253,0.10));
}
.script-vote-box-detail {
    margin: 18px 0;
}
.script-vote-meta,
.script-vote-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
.script-vote-meta strong {
    color: var(--text-strong);
}
.script-vote-meta span {
    color: var(--text-soft);
}
.script-vote-meter {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(17,83,242,0.10);
}
.script-vote-meter span {
    display: block;
    width: var(--vote-level, 0%);
    height: 100%;
    border-radius: inherit;
    background: var(--gradient-brand);
    transition: width 240ms ease;
}
.script-vote-form {
    margin: 0;
}

.user-center-hero {
    align-items: flex-start;
}
.user-center-nav {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
}
.dashboard-stats {
    margin-bottom: 20px;
}
.account-stat-card small {
    display: block;
    margin-top: 6px;
}
.dashboard-primary,
.dashboard-secondary,
.dashboard-activity,
.dashboard-social {
    margin-top: 20px;
}
.dashboard-panel {
    min-width: 0;
}
.activity-list {
    display: grid;
    gap: 12px;
}
.activity-row,
.ledger-line,
.redemption-line,
.notification-row,
.dashboard-order-line {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    padding: 14px;
    border: 1px solid rgba(17,83,242,0.08);
    border-radius: 16px;
    background: var(--gradient-soft);
}
.activity-row {
    display: grid;
}
.activity-row strong,
.ledger-line strong,
.redemption-line strong,
.notification-row strong,
.dashboard-order-line strong {
    color: var(--text-strong);
}
.activity-row p,
.ledger-line p,
.redemption-line p,
.notification-row p {
    margin: 6px 0 0;
}
.notification-row.is-unread {
    border-color: rgba(214,42,253,0.22);
    box-shadow: 0 12px 28px rgba(126,14,235,0.10);
}
.device-session-list {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}
.device-session-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(17,83,242,0.10);
    border-radius: 16px;
    background: var(--gradient-soft);
}
.device-session-row.is-current {
    border-color: rgba(26,181,245,0.28);
    box-shadow: 0 12px 28px rgba(26,181,245,0.10);
}
.device-session-row strong {
    color: var(--text-strong);
}
.device-session-row p {
    margin: 7px 0 0;
}
.device-session-row form {
    flex: 0 0 auto;
}
.device-user-agent {
    max-width: 680px;
    overflow-wrap: anywhere;
    color: var(--text-soft);
    font-size: 0.86rem;
}
.soft-pill {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    margin-left: 8px;
    padding: 0 9px;
    border-radius: 999px;
    color: var(--brand-blue);
    background: rgba(17,83,242,0.10);
    font-size: 0.78rem;
    font-weight: 800;
}
.soft-pill.admin {
    color: var(--brand-violet);
    background: rgba(126,14,235,0.10);
}
.library-filter-panel {
    display: grid;
    gap: 14px;
    margin-bottom: 20px;
}
.library-filter-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.filter-label {
    color: var(--text-strong);
    font-weight: 800;
}
.library-card-status,
.saved-work-insights,
.follow-work-insights {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 12px;
}
.review-state.is-reviewed {
    background: linear-gradient(120deg, rgba(26,181,245,0.18), rgba(17,83,242,0.14));
}
.review-state.is-pending {
    background: linear-gradient(120deg, rgba(214,42,253,0.14), rgba(126,14,235,0.12));
}
.order-timeline {
    display: grid;
    gap: 16px;
}
.order-card-head {
    align-items: flex-start;
}
.order-identity {
    display: grid;
    gap: 4px;
    min-width: 0;
}
.order-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 14px 0;
}
.order-summary-item {
    padding: 12px;
    border-radius: 14px;
    background: rgba(17,83,242,0.06);
}
.order-summary-item span {
    display: block;
    color: var(--text-soft);
    font-size: 0.86rem;
}
.order-summary-item strong {
    color: var(--text-strong);
    font-size: 1.1rem;
}
.order-work-list {
    display: grid;
    gap: 10px;
}
.order-work-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 16px;
    background: var(--surface-soft);
}
.order-work-main {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-width: 0;
    color: var(--text-strong);
    font-weight: 700;
}
.order-work-main img {
    width: 48px;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 10px;
}
.saved-work-actions .action-row,
.library-card-actions .action-row {
    justify-content: flex-end;
}
.profile-page form p,
.password-page form p,
.preferences-page form p {
    margin: 0;
}
.profile-page form p label,
.password-page form p label,
.preferences-page form p label {
    margin-bottom: 8px;
}

@keyframes watermark-drift {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-10px, 8px, 0); }
}

@media (min-width: 768px) {
    .main-content { width: min(1240px, calc(100% - 56px)); }
    .hero { grid-template-columns: minmax(0, 1.15fr) minmax(420px, 0.95fr); padding-top: 28px; }
    .feature-panel { grid-template-columns: 360px 1fr; }
    .detail-hero { grid-template-columns: 400px 1fr; align-items: start; }
    .player-stack, .two-column { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nav-desktop { display: flex; }
    .nav-toggle, .bottom-nav { display: none; }
    .cart-row { grid-template-columns: 84px 1fr auto auto; }
    .stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .work-card { display: block; }
    .work-card-cover { padding: 0; }
    .work-card-cover img { height: auto; aspect-ratio: 4 / 5; border-radius: 0; }
    .work-card-body { padding: 18px; }
    .work-card-body p {
        display: block;
        overflow: visible;
        -webkit-line-clamp: unset;
        -webkit-box-orient: initial;
    }
    .work-card h3 { font-size: 1.1rem; }
    .work-card-foot { margin-top: 18px; align-items: center; }
}

@media (max-width: 767px) {
    .user-center-hero {
        gap: 12px;
    }
    .user-center-nav {
        justify-content: flex-start;
        width: 100%;
    }
    .user-center-nav .button {
        min-height: 42px;
        padding: 0 12px;
        font-size: 0.9rem;
    }
    .activity-row,
    .ledger-line,
    .redemption-line,
    .notification-row,
    .dashboard-order-line,
    .device-session-row {
        display: grid;
    }
    .device-session-row form,
    .device-session-row .button {
        width: 100%;
    }
    .order-summary-grid {
        grid-template-columns: 1fr;
    }
    .order-card-head {
        display: grid;
    }
    .order-work-row {
        grid-template-columns: 1fr;
        align-items: start;
    }
    .order-work-main {
        grid-template-columns: 54px minmax(0, 1fr);
    }
    .library-filter-row {
        align-items: flex-start;
    }
    .filter-label {
        width: 100%;
    }
    .detail-hero {
        gap: 16px;
    }
    .detail-cover-wrap {
        width: 100%;
        overflow: hidden;
    }
    .detail-cover {
        width: 100%;
        max-width: 100%;
        min-height: 0;
        height: auto;
        border-radius: 20px;
    }
    .detail-cover,
    .flip-inner,
    .detail-cover img {
        aspect-ratio: 16 / 9;
        max-height: 260px;
    }
    .flip-inner {
        min-height: 0;
        height: auto;
    }
    .detail-cover img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .gallery-open-button {
        right: 10px;
        top: 10px;
        padding: 8px 11px;
        font-size: 0.9rem;
    }
    .quote-bubble {
        padding: 14px 16px;
        border-radius: 16px;
        font-size: 0.98rem;
        line-height: 1.55;
    }
    .detail-main h1 {
        margin: 8px 0 10px;
        font-size: clamp(1.55rem, 7vw, 2.05rem);
        line-height: 1.08;
    }
    .detail-summary {
        margin: 0;
        font-size: 0.98rem;
        line-height: 1.75;
    }
    .detail-main .chips {
        gap: 8px;
        margin: 14px 0;
    }
    .detail-main .chip {
        padding: 7px 10px;
        font-size: 0.86rem;
    }
    .detail-main .price-row {
        margin: 4px 0 12px;
    }
    .detail-main .action-row {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
        gap: 10px;
        align-items: stretch;
        width: 100%;
        min-width: 0;
    }
    .detail-main .action-row form,
    .detail-main .action-row .button {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }
    .detail-main .action-row .button {
        min-height: 46px;
        padding: 0 10px;
        border-radius: 14px;
        font-size: 0.95rem;
        white-space: normal;
        text-align: center;
    }
    .player-panel {
        margin-top: 14px;
    }
    .player-stack {
        gap: 12px;
    }
    .player-box,
    .subtitle-panel {
        padding: 14px;
        border-radius: 18px;
        min-width: 0;
    }
    .player-box {
        padding-top: 44px;
    }
    .player-box audio {
        display: block;
        width: 100%;
        max-width: 100%;
    }
    .player-watermark {
        top: 10px;
        left: 12px;
        right: 12px;
        width: fit-content;
        max-width: calc(100% - 24px);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        animation: none;
    }
    .subtitle-list {
        max-height: 220px;
    }
    .section.two-column {
        padding-top: 16px;
    }
    .page-shell {
        padding-bottom: 24px;
    }
    .has-mobile-bottom-nav .page-shell {
        padding-bottom: calc(76px + env(safe-area-inset-bottom));
    }
    .main-content {
        width: min(680px, calc(100% - 24px));
        padding-top: 14px;
        padding-bottom: 36px;
    }
    .has-mobile-bottom-nav .main-content {
        padding-bottom: calc(92px + env(safe-area-inset-bottom));
    }
    .topbar {
        min-height: 56px;
        width: min(100% - 24px, 680px);
        margin-top: 8px;
        padding: 8px 10px;
        border-radius: 16px;
        gap: 10px;
    }
    .brand-mark {
        width: 38px;
        flex-basis: 38px;
    }
    .brand-mark img {
        border-radius: 12px;
    }
    .brand-name {
        font-size: 1rem;
    }
    .brand-tagline {
        display: none;
    }
    .nav-toggle {
        width: 42px;
        height: 42px;
        flex: 0 0 42px;
        border-radius: 14px;
    }
    .is-home-page .topbar {
        position: fixed;
        top: max(10px, env(safe-area-inset-top));
        right: 12px;
        width: auto;
        min-height: 0;
        margin: 0;
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
    }
    .is-home-page .topbar .brand-wrap,
    .is-home-page .topbar .nav-desktop {
        display: none;
    }
    .is-home-page .nav-toggle {
        background: rgba(255,255,255,0.86);
        border: 1px solid rgba(17,83,242,0.08);
        box-shadow: var(--shadow-soft);
        backdrop-filter: blur(16px);
    }
    .is-home-page .main-content {
        padding-top: 8px;
    }
    .is-home-page .hero {
        padding-top: 10px;
    }
    .mobile-nav-hidden .topbar {
        transform: translateY(-86px);
        opacity: 0;
        pointer-events: none;
    }
    .mobile-nav-hidden .bottom-nav {
        transform: translate(-50%, calc(100% + 28px + env(safe-area-inset-bottom)));
        opacity: 0;
        pointer-events: none;
    }
    .nav-mobile {
        position: fixed;
        top: calc(68px + env(safe-area-inset-top));
        left: 12px;
        right: 12px;
        z-index: 60;
        width: auto;
        max-height: min(70vh, 520px);
        overflow: auto;
        margin: 0;
        padding: 12px;
        border: 1px solid rgba(17,83,242,0.10);
    }
    .is-home-page .nav-mobile {
        top: calc(62px + env(safe-area-inset-top));
    }
    .bottom-nav {
        bottom: max(8px, env(safe-area-inset-bottom));
        width: min(560px, calc(100% - 20px));
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 4px;
        padding: 7px;
        border-radius: 18px;
    }
    .bottom-nav a {
        min-width: 0;
        min-height: 46px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 8px 4px;
        border-radius: 13px;
        font-size: 0.88rem;
        white-space: nowrap;
    }
    .immersive-player {
        gap: 12px;
        padding: 14px;
    }
    .immersive-header {
        grid-template-columns: auto auto;
        justify-content: space-between;
    }
    .immersive-title {
        grid-column: 1 / -1;
        grid-row: 2;
        text-align: left;
    }
    .immersive-stage {
        align-self: stretch;
        align-content: center;
        gap: 14px;
        padding: 4px 0;
    }
    .immersive-stage h1 {
        max-width: 100%;
        font-size: 1.55rem;
    }
    .immersive-subtitle-box {
        padding: 15px;
        border-radius: 20px;
    }
    .immersive-subtitle-current { font-size: 1.25rem; }
    .immersive-player.subtitle-large .immersive-subtitle-current { font-size: 1.45rem; }
    .immersive-player.subtitle-xl .immersive-subtitle-current { font-size: 1.65rem; }
    .immersive-main-controls {
        grid-template-columns: 64px minmax(0, 1fr);
        gap: 12px;
    }
    .immersive-play-button {
        width: 64px;
        height: 64px;
    }
    .immersive-control-panel {
        padding: 12px;
        border-radius: 20px;
    }
    .immersive-secondary-controls {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: stretch;
    }
    .immersive-range,
    .immersive-select {
        width: 100%;
        min-width: 0;
        border-radius: 16px;
    }
    .immersive-range { grid-column: 1 / -1; }
    .immersive-watermark {
        right: 14px;
        bottom: 10px;
        max-width: calc(100% - 28px);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .gallery-dialog {
        min-height: auto;
        grid-template-columns: 44px minmax(0, 1fr) 44px;
    }
    .gallery-nav {
        width: 44px;
        height: 54px;
    }
    .gallery-close {
        right: 4px;
        top: -54px;
    }
    .gallery-figure figcaption {
        flex-direction: column;
    }
}

@media (max-width: 380px) {
    .detail-main .action-row {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 1100px) {
    .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
