/* ==========================================================================
   夜幕短剧 · Nocturne Drama
   单文件样式表：设计令牌 → 基础 → 通用组件 → 页面模块 → 响应式
   ========================================================================== */

/* -------------------------------------------------------------------------
   1. 设计令牌
   ---------------------------------------------------------------------- */
:root {
    --bg: #08090d;
    --bg-soft: #0c0e14;
    --surface: #11141c;
    --surface-2: #161a24;
    --surface-3: #1c2029;
    --line: rgba(255, 255, 255, .07);
    --line-2: rgba(255, 255, 255, .13);
    --text: #f3f5f9;
    --text-dim: #a9b1c1;
    --text-mute: #737c8f;
    --brand: #ff3b5c;
    --brand-2: #ff7a45;
    --gold: #ffc24b;
    --grad: linear-gradient(135deg, #ff3b5c 0%, #ff7a45 100%);
    --grad-soft: linear-gradient(135deg, rgba(255, 59, 92, .16), rgba(255, 122, 69, .1));
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --shadow-card: 0 16px 34px -22px rgba(0, 0, 0, .95);
    --shadow-hover: 0 26px 44px -22px rgba(255, 59, 92, .45);
    --header-h: 64px;
    --ease: cubic-bezier(.2, .7, .3, 1);
}

/* -------------------------------------------------------------------------
   2. 基础
   ---------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* hidden 属性必须始终隐藏（否则自定义 display 会覆盖 UA 样式，不可见但仍拦截点击） */
[hidden] {
    display: none !important;
}

html {
    color-scheme: dark;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
    font-size: 15px;
    line-height: 1.6;
    letter-spacing: .01em;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(900px 500px at 8% -10%, rgba(255, 59, 92, .14), transparent 62%),
        radial-gradient(700px 420px at 92% 4%, rgba(90, 120, 255, .1), transparent 60%),
        var(--bg);
    pointer-events: none;
}

img {
    max-width: 100%;
    display: block;
    border: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    cursor: pointer;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure {
    margin: 0;
}

ul, ol {
    padding: 0;
    list-style: none;
}

::selection {
    background: rgba(255, 59, 92, .32);
    color: #fff;
}

:focus-visible {
    outline: 2px solid rgba(255, 59, 92, .75);
    outline-offset: 2px;
}

@media (min-width: 1024px) {
    ::-webkit-scrollbar {
        width: 10px;
        height: 10px;
    }
    ::-webkit-scrollbar-track {
        background: #07080c;
    }
    ::-webkit-scrollbar-thumb {
        background: #232936;
        border-radius: 8px;
    }
    ::-webkit-scrollbar-thumb:hover {
        background: #2f3646;
    }
}

/* -------------------------------------------------------------------------
   3. 布局与通用组件
   ---------------------------------------------------------------------- */
.shell {
    width: min(1280px, calc(100% - 48px));
    margin-inline: auto;
}

.site-main {
    padding-bottom: 24px;
}

.section {
    margin-top: 56px;
}

.section:last-of-type {
    margin-bottom: 72px;
}

.dot {
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--text-mute);
    vertical-align: middle;
    margin: 0 2px;
}

/* 按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    padding: 0 18px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: transform .2s var(--ease), box-shadow .25s, background .25s, border-color .25s, color .25s;
}

.btn:active {
    transform: translateY(1px) scale(.99);
}

.btn--primary {
    background: var(--grad);
    color: #fff;
    box-shadow: 0 12px 26px -14px rgba(255, 59, 92, .8);
}

.btn--primary:hover {
    box-shadow: 0 16px 32px -12px rgba(255, 59, 92, .85);
    transform: translateY(-1px);
}

.btn--ghost {
    background: rgba(255, 255, 255, .05);
    border-color: var(--line-2);
    color: var(--text-dim);
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, .09);
    color: var(--text);
}

.btn--lg {
    height: 46px;
    padding: 0 24px;
    border-radius: 12px;
    font-size: 15px;
}

.btn--sm {
    height: 34px;
    padding: 0 14px;
    font-size: 13px;
    border-radius: 9px;
}

.btn--block {
    width: 100%;
}

.btn.is-disabled {
    opacity: .45;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* 标签 */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--line);
    color: var(--text-dim);
    font-size: 13px;
    white-space: nowrap;
    transition: color .2s, background .2s, border-color .2s;
}

.chip:hover {
    color: var(--text);
    background: rgba(255, 255, 255, .09);
    border-color: var(--line-2);
}

.chip.is-active {
    color: #ff9db0;
    background: rgba(255, 59, 92, .13);
    border-color: rgba(255, 59, 92, .42);
}

.chip em {
    font-style: normal;
    font-size: 11px;
    color: var(--text-mute);
}

.chip.is-active em {
    color: rgba(255, 157, 176, .75);
}

.chip--sm {
    height: 28px;
    padding: 0 12px;
    font-size: 12px;
    border-radius: 8px;
}

/* 面包屑 */
.breadcrumb {
    margin: 26px 0 0;
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--text-mute);
}

.breadcrumb__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb__item:not(:last-child)::after {
    content: "/";
    color: rgba(255, 255, 255, .18);
}

.breadcrumb__item a {
    color: var(--text-mute);
    transition: color .2s;
}

.breadcrumb__item a:hover {
    color: var(--brand);
}

.breadcrumb__item.is-current span {
    color: var(--text-dim);
}

/* -------------------------------------------------------------------------
   4. 页头
   ---------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--header-h);
    background: rgba(8, 9, 13, .72);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border-bottom: 1px solid transparent;
    transition: background .3s, border-color .3s, box-shadow .3s;
}

.site-header.is-scrolled {
    background: rgba(7, 8, 12, .92);
    border-bottom-color: var(--line);
    box-shadow: 0 14px 30px -24px rgba(0, 0, 0, .9);
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 22px;
    height: 100%;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.brand__mark {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    box-shadow: 0 8px 20px -10px rgba(255, 59, 92, .7);
}

.brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand__name {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: .02em;
}

.brand__tagline {
    font-size: 10.5px;
    color: var(--text-mute);
    letter-spacing: .18em;
    margin-top: 3px;
}

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

.nav__list {
    display: flex;
    align-items: center;
    gap: 2px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px 0;
}

.nav__list::-webkit-scrollbar {
    display: none;
}

.nav__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 34px;
    padding: 0 12px;
    border-radius: 9px;
    color: var(--text-dim);
    font-size: 13.5px;
    white-space: nowrap;
    transition: color .2s, background .2s;
}

.nav__link:hover {
    color: var(--text);
    background: rgba(255, 255, 255, .06);
}

.nav__link.is-active {
    color: #fff;
    background: rgba(255, 59, 92, .14);
    box-shadow: inset 0 0 0 1px rgba(255, 59, 92, .26);
}

.nav__link--more {
    color: var(--text-mute);
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.btn--app {
    padding: 0 14px;
}

.menu-btn {
    display: none;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--line);
    padding: 0;
    place-items: center;
}

.menu-btn__line {
    display: block;
    width: 16px;
    height: 1.6px;
    border-radius: 2px;
    background: var(--text-dim);
    margin: 2.6px 0;
}

/* 全部分类 / 移动端菜单（仅移动端使用，桌面端不渲染该遮罩） */
@media (max-width: 960px) {
.mobile-menu {
    position: fixed;
    inset: var(--header-h) 0 0;
    z-index: 45;
    display: flex;
    justify-content: flex-end;
    background: rgba(5, 6, 9, .62);
    backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity .25s var(--ease);
}

.mobile-menu.is-open {
    opacity: 1;
}

.mobile-menu__sheet {
    width: min(420px, 100%);
    height: 100%;
    overflow-y: auto;
    padding: 22px;
    background: linear-gradient(180deg, #12151d, #0c0e13);
    border-left: 1px solid var(--line);
    transform: translateX(18px);
    transition: transform .3s var(--ease);
}

.mobile-menu.is-open .mobile-menu__sheet {
    transform: translateX(0);
}

.mobile-menu__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.mobile-menu__title {
    font-size: 15px;
    font-weight: 700;
}

.mobile-menu__close {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: rgba(255, 255, 255, .06);
    color: var(--text-dim);
}

.mobile-menu__cats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 20px;
}

.mobile-menu__cat {
    display: flex;
    flex-direction: column;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--line);
    font-size: 13px;
    color: var(--text-dim);
    transition: color .2s, border-color .2s, background .2s;
}

.mobile-menu__cat:hover,
.mobile-menu__cat.is-active {
    color: #fff;
    border-color: rgba(255, 59, 92, .38);
    background: rgba(255, 59, 92, .1);
}

.mobile-menu__cat em {
    font-style: normal;
    font-size: 11px;
    color: var(--text-mute);
    margin-top: 2px;
}

.mobile-menu__foot {
    margin-top: 16px;
    font-size: 12px;
    color: var(--text-mute);
    line-height: 1.8;
}
}

/* -------------------------------------------------------------------------
   5. 首页 Hero
   ---------------------------------------------------------------------- */
.hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.hero__bg {
    position: absolute;
    inset: -8% -4% 0;
    background-image: var(--poster, none);
    background-size: cover;
    background-position: center 28%;
    filter: blur(26px) saturate(120%);
    opacity: .5;
    transform: scale(1.06);
    z-index: -2;
}

.hero__scrim {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(70% 90% at 12% 20%, rgba(8, 9, 13, .94), rgba(8, 9, 13, .55) 60%, rgba(8, 9, 13, .2) 100%),
        linear-gradient(180deg, rgba(8, 9, 13, .55) 0%, rgba(8, 9, 13, .18) 45%, var(--bg) 100%),
        linear-gradient(90deg, rgba(8, 9, 13, .96) 0%, rgba(8, 9, 13, .55) 52%, rgba(8, 9, 13, .8) 100%);
}

.hero__inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 322px;
    align-items: start;
    gap: 44px;
    padding: 44px 0 40px;
}

.hero__content {
    min-width: 0;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    letter-spacing: .16em;
    color: #ffa9b9;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.hero__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 4px rgba(255, 59, 92, .18);
    animation: pulse 2.4s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(255, 59, 92, .16); }
    50% { box-shadow: 0 0 0 8px rgba(255, 59, 92, .04); }
}

.hero__h1 {
    font-size: clamp(19px, 1.8vw, 23px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .02em;
    margin-bottom: 0;
}

.hero__h1-sub {
    display: inline;
    margin: 0 0 0 10px;
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: .14em;
    color: var(--text-mute);
}

.hero__feature {
    margin-top: 20px;
    max-width: 640px;
}

.hero__feature-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .18em;
    color: #ff8fa3;
}

.hero__feature-label::before {
    content: "";
    width: 18px;
    height: 1px;
    background: var(--grad);
}

.hero__title {
    font-size: clamp(30px, 3.2vw, 44px);
    font-weight: 800;
    line-height: 1.16;
    letter-spacing: -.01em;
}

.hero__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 13px;
    color: var(--text-dim);
}

.hero__desc {
    margin-top: 14px;
    max-width: 560px;
    font-size: 14px;
    line-height: 1.85;
    color: var(--text-dim);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.hero__rank {
    align-self: stretch;
    display: flex;
    align-items: center;
}

.rank-card {
    width: 100%;
    padding: 18px;
    border-radius: 20px;
    background: rgba(17, 20, 28, .74);
    border: 1px solid var(--line);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    box-shadow: 0 24px 50px -30px rgba(0, 0, 0, .95);
}

.rank-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.rank-card__title {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .04em;
}

.rank-card__tag {
    font-size: 10.5px;
    letter-spacing: .1em;
    color: #ffb4c0;
    background: rgba(255, 59, 92, .14);
    border: 1px solid rgba(255, 59, 92, .28);
    border-radius: 999px;
    padding: 3px 8px;
}

.rank-list__item + .rank-list__item {
    margin-top: 4px;
}

.rank-list__link {
    display: grid;
    grid-template-columns: 22px 44px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 8px 6px;
    border-radius: 10px;
    transition: background .2s;
}

.rank-list__link:hover {
    background: rgba(255, 255, 255, .05);
}

.rank-list__num {
    font-style: normal;
    font-size: 14px;
    font-weight: 800;
    text-align: center;
    color: var(--text-mute);
    font-variant-numeric: tabular-nums;
}

.rank-list__num.is-top {
    background: linear-gradient(135deg, #ff4d6a, #ff9a5c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.rank-list__thumb {
    width: 44px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
    background: #14171f;
}

.rank-list__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.rank-list__text strong {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rank-list__text small {
    font-size: 11px;
    color: var(--text-mute);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

/* -------------------------------------------------------------------------
   6. 区块标题
   ---------------------------------------------------------------------- */
.sec-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.sec-head__title {
    position: relative;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: .01em;
    padding-left: 14px;
    line-height: 1.3;
}

.sec-head__title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 3px;
    border-radius: 3px;
    background: var(--grad);
}

.sec-head__sub {
    margin-top: 6px;
    padding-left: 14px;
    font-size: 12.5px;
    color: var(--text-mute);
}

.sec-head__more {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 12.5px;
    color: var(--text-mute);
    transition: color .2s;
}

.sec-head__more:hover {
    color: var(--brand);
}

/* -------------------------------------------------------------------------
   7. 视频卡片
   ---------------------------------------------------------------------- */
.grid {
    display: grid;
    gap: 22px 16px;
}

.grid--cards {
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
}

.card {
    min-width: 0;
}

.card__link {
    display: block;
}

.card__poster {
    position: relative;
    aspect-ratio: 2 / 3;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(160deg, #1b1f29, #0d1016);
    box-shadow: var(--shadow-card);
    transition: transform .35s var(--ease), box-shadow .35s;
}

.card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .55s var(--ease);
}

.card__veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6, 7, 10, .92) 0%, rgba(6, 7, 10, .34) 40%, rgba(6, 7, 10, 0) 70%);
}

.card__play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 44px;
    height: 44px;
    margin: -22px 0 0 -22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 59, 92, .86);
    box-shadow: 0 10px 24px -8px rgba(255, 59, 92, .9);
    opacity: 0;
    transform: scale(.86);
    transition: opacity .25s, transform .25s;
}

.card__badge {
    position: absolute;
    left: 8px;
    bottom: 8px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    line-height: 1.5;
    color: #eef1f6;
    background: rgba(8, 9, 13, .72);
    border: 1px solid rgba(255, 255, 255, .16);
    backdrop-filter: blur(6px);
}

.card__rank {
    position: absolute;
    top: 7px;
    left: 7px;
    min-width: 28px;
    height: 28px;
    padding: 0 6px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 800;
    font-style: normal;
    color: #fff;
    background: rgba(8, 9, 13, .72);
    border: 1px solid rgba(255, 255, 255, .14);
    font-variant-numeric: tabular-nums;
    backdrop-filter: blur(6px);
}

.card--top .card__rank {
    background: linear-gradient(135deg, #ffcf5c, #ff8a3d);
    border-color: transparent;
    color: #23140a;
    box-shadow: 0 8px 18px -8px rgba(255, 168, 62, .8);
}

.card__body {
    padding: 10px 2px 0;
}

.card__title {
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.45;
    color: #e9ecf2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.9em;
}

.card__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    font-size: 11.5px;
    color: var(--text-mute);
    white-space: nowrap;
    overflow: hidden;
}

.card__type {
    color: #9aa3b5;
}

.card__dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .2);
    flex: 0 0 auto;
}

.card__views {
    overflow: hidden;
    text-overflow: ellipsis;
}

.card:hover .card__poster {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.card:hover .card__img {
    transform: scale(1.06);
}

.card:hover .card__play {
    opacity: 1;
    transform: scale(1);
}

/* 横向轨道 */
.section--rail .sec-head {
    margin-bottom: 18px;
}

.rail {
    position: relative;
}

.rail__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 172px;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    padding: 4px 2px 10px;
}

.rail__track::-webkit-scrollbar {
    display: none;
}

.rail__track > .card {
    scroll-snap-align: start;
}

.rail__nav {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 40px;
    height: 40px;
    margin-top: -26px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: rgba(12, 14, 19, .82);
    border: 1px solid var(--line-2);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 24px -12px #000;
    transition: background .2s, transform .2s;
}

.rail__nav:hover {
    background: rgba(255, 59, 92, .9);
    border-color: transparent;
}

.rail__nav--prev {
    left: -8px;
}

.rail__nav--next {
    right: -8px;
}

/* -------------------------------------------------------------------------
   8. 分类总览 / APP 推广
   ---------------------------------------------------------------------- */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(142px, 1fr));
    gap: 10px;
}

.cat-tile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    font-size: 13.5px;
    color: var(--text-dim);
    transition: border-color .2s, background .2s, transform .2s, color .2s;
}

.cat-tile:hover {
    color: #fff;
    border-color: rgba(255, 59, 92, .4);
    background: rgba(255, 59, 92, .08);
    transform: translateY(-2px);
}

.cat-tile__name {
    font-weight: 600;
}

.cat-tile__total {
    font-size: 11.5px;
    color: var(--text-mute);
    white-space: nowrap;
}

.app-promo {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: center;
    gap: 26px;
    padding: 38px 40px;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(500px 260px at 88% 10%, rgba(255, 122, 69, .18), transparent 65%),
        radial-gradient(420px 260px at 4% 100%, rgba(255, 59, 92, .16), transparent 62%),
        linear-gradient(135deg, #161a24, #101319);
    border: 1px solid var(--line-2);
    overflow: hidden;
}

.app-promo__eyebrow {
    font-size: 11.5px;
    letter-spacing: .2em;
    color: #ffa9b9;
}

.app-promo__title {
    margin-top: 10px;
    font-size: clamp(22px, 2.4vw, 30px);
    font-weight: 800;
    letter-spacing: -.01em;
}

.app-promo__desc {
    margin-top: 10px;
    max-width: 480px;
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-dim);
}

.app-promo__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 22px;
}

.app-promo__hint {
    font-size: 12px;
    color: var(--text-mute);
}

.app-promo__art {
    justify-self: end;
    width: 100%;
    max-width: 320px;
    filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .55));
}

/* -------------------------------------------------------------------------
   9. 列表页头（分类 / 标签）
   ---------------------------------------------------------------------- */
.page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin: 26px 0 26px;
}

.page-head__eyebrow {
    font-size: 11.5px;
    letter-spacing: .22em;
    color: #ff9db0;
    margin-bottom: 10px;
}

.page-head__title {
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.01em;
}

.page-head__desc {
    margin-top: 12px;
    max-width: 780px;
    font-size: 13.5px;
    line-height: 1.85;
    color: var(--text-mute);
}

.page-head__stat {
    flex: 0 0 auto;
    text-align: right;
    line-height: 1.2;
}

.page-head__stat strong {
    display: block;
    font-size: clamp(30px, 3.6vw, 44px);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.page-head__stat span {
    font-size: 11.5px;
    color: var(--text-mute);
    letter-spacing: .12em;
}

.filter-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.filter-bar__label {
    flex: 0 0 auto;
    font-size: 12px;
    color: var(--text-mute);
    letter-spacing: .08em;
}

.filter-bar__list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 2px;
}

.filter-bar__list::-webkit-scrollbar {
    display: none;
}

/* -------------------------------------------------------------------------
   10. 详情页
   ---------------------------------------------------------------------- */
.detail {
    display: grid;
    grid-template-columns: 306px minmax(0, 1fr);
    gap: 38px;
    align-items: start;
    margin: 28px 0 8px;
}

.detail__poster {
    position: sticky;
    top: calc(var(--header-h) + 20px);
}

.detail__poster-frame {
    position: relative;
    aspect-ratio: 2 / 3;
    border-radius: 18px;
    overflow: hidden;
    background: var(--surface-2);
    border: 1px solid var(--line);
    box-shadow: 0 30px 60px -34px #000;
}

.detail__poster-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail__poster-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 7px;
    font-size: 11.5px;
    font-weight: 600;
    color: #fff;
    background: rgba(8, 9, 13, .74);
    border: 1px solid rgba(255, 255, 255, .16);
    backdrop-filter: blur(6px);
}

.detail__poster-cta {
    margin-top: 14px;
}

.detail__poster-note {
    margin-top: 10px;
    text-align: center;
    font-size: 11.5px;
    color: var(--text-mute);
}

.detail__main {
    min-width: 0;
    padding-top: 6px;
}

.detail__eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: #ff9db0;
    letter-spacing: .06em;
}

.detail__eyebrow a:hover {
    text-decoration: underline;
}

.detail__eyebrow-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .26);
}

.detail__title {
    margin-top: 10px;
    font-size: clamp(28px, 3.4vw, 42px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.015em;
}

.spec {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 26px;
    margin: 24px 0 0;
    padding: 18px 20px;
    border-radius: 14px;
    background: var(--surface);
    border: 1px solid var(--line);
}

.spec__row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 13px;
    min-width: 0;
}

.spec dt {
    flex: 0 0 58px;
    color: var(--text-mute);
    font-size: 12.5px;
}

.spec dd {
    color: var(--text);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.spec dd a {
    color: #ff9db0;
}

.spec dd a:hover {
    text-decoration: underline;
}

.detail__intro {
    margin-top: 18px;
    max-width: 760px;
    font-size: 13.5px;
    line-height: 1.9;
    color: var(--text-dim);
}

.detail__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

/* 面板 */
.panel {
    margin-top: 44px;
    padding: 24px 26px 26px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(20, 24, 32, .82), rgba(12, 15, 20, .92));
    border: 1px solid var(--line);
}

.panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.panel__title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: .01em;
}

.panel__count {
    margin-left: 10px;
    font-size: 12px;
    font-weight: 400;
    color: var(--text-mute);
}

.panel__hint {
    font-size: 12px;
    color: var(--text-mute);
}

.panel__link {
    font-size: 12.5px;
    color: var(--text-mute);
    transition: color .2s;
}

.panel__link:hover {
    color: var(--brand);
}

.panel__empty {
    padding: 26px 0 10px;
    font-size: 13px;
    color: var(--text-mute);
}

/* 选集 */
.eps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 9px;
}

.eps.is-collapsed {
    max-height: 292px;
    overflow: hidden;
}

.eps.is-collapsed::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 96px;
    background: linear-gradient(180deg, rgba(13, 16, 22, 0), rgba(13, 16, 22, .96));
    pointer-events: none;
}

.eps__item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--line);
    font-size: 12.5px;
    color: var(--text-dim);
    transition: color .2s, border-color .2s, background .2s;
    min-width: 0;
}

.eps__item:hover {
    color: #fff;
    border-color: rgba(255, 59, 92, .36);
    background: rgba(255, 59, 92, .1);
}

.eps__item.is-current {
    color: #fff;
    border-color: rgba(255, 59, 92, .5);
    background: var(--grad-soft);
}

.eps__num {
    flex: 0 0 auto;
    min-width: 22px;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    color: var(--text-mute);
}

.eps__item.is-current .eps__num {
    color: #ff9db0;
}

.eps__label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.eps-more {
    display: flex;
    justify-content: center;
    margin-top: 16px;
}

/* 简介 */
.story {
    font-size: 13.5px;
    line-height: 1.95;
    color: var(--text-dim);
}

.story p + p {
    margin-top: 12px;
}

.story--clamp p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* -------------------------------------------------------------------------
   11. 播放页
   ---------------------------------------------------------------------- */
.page-play .site-main {
    padding-bottom: 8px;
}

.player-section {
    margin-top: 22px;
}

.player {
    border-radius: 18px;
    overflow: hidden;
    background: #000;
    border: 1px solid var(--line);
    box-shadow: 0 34px 70px -40px #000;
}

.player__stage {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.player__video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    display: block;
}

.player__loading {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 12.5px;
    color: var(--text-dim);
    background: rgba(8, 9, 13, .7);
    border: 1px solid var(--line);
}

.player__error {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 8px;
    padding: 24px;
    text-align: center;
    background: rgba(6, 7, 10, .82);
}

.player__error-title {
    font-size: 15px;
    font-weight: 700;
}

.player__error-text {
    font-size: 12.5px;
    color: var(--text-mute);
}

.player__error-actions {
    display: flex;
    gap: 10px;
    margin-top: 6px;
}

.player__stage--empty {
    background-image:
        linear-gradient(180deg, rgba(6, 7, 10, .58), rgba(6, 7, 10, .9)),
        var(--poster, none);
    background-size: cover;
    background-position: center;
}

.player__placeholder {
    text-align: center;
    padding: 30px 24px;
    max-width: 420px;
}

.player__placeholder-mark {
    display: inline-grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 59, 92, .18);
    border: 1px solid rgba(255, 59, 92, .4);
    margin-bottom: 14px;
}

.player__placeholder-title {
    font-size: 15px;
    font-weight: 700;
}

.player__placeholder-text {
    margin-top: 6px;
    font-size: 12.5px;
    color: var(--text-mute);
    line-height: 1.8;
}

.player__placeholder-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}

.player__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 13px 18px;
    background: #0c0f15;
    border-top: 1px solid var(--line);
}

.player__now {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    color: var(--text-mute);
    min-width: 0;
}

.player__now strong {
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 46vw;
}

.player__source {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid var(--line-2);
    color: var(--text-mute);
}

.player__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.play-head {
    margin-top: 26px;
}

.play-head__title {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
    font-size: clamp(22px, 2.6vw, 30px);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -.01em;
}

.play-head__ep {
    font-size: 13px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 8px;
    color: #ff9db0;
    background: rgba(255, 59, 92, .12);
    border: 1px solid rgba(255, 59, 92, .3);
}

.play-head__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    font-size: 12.5px;
    color: var(--text-mute);
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.meta-item + .meta-item::before {
    content: "";
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .2);
    margin-right: 4px;
}

/* -------------------------------------------------------------------------
   12. 分页
   ---------------------------------------------------------------------- */
.pager {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 40px 0 4px;
}

.pager__list {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pager__btn {
    display: inline-flex;
    align-items: center;
    height: 38px;
    padding: 0 16px;
    border-radius: 10px;
    font-size: 13px;
    color: var(--text-dim);
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--line);
    transition: color .2s, border-color .2s, background .2s;
}

.pager__btn:hover {
    color: #fff;
    border-color: rgba(255, 59, 92, .4);
    background: rgba(255, 59, 92, .1);
}

.pager__btn.is-disabled {
    opacity: .35;
    pointer-events: none;
}

.pager__num {
    display: grid;
    place-items: center;
    min-width: 38px;
    height: 38px;
    padding: 0 6px;
    border-radius: 10px;
    font-size: 13px;
    color: var(--text-dim);
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--line);
    font-variant-numeric: tabular-nums;
    transition: color .2s, border-color .2s, background .2s;
}

.pager__num:hover {
    color: #fff;
    border-color: rgba(255, 59, 92, .4);
}

.pager__num.is-current {
    color: #fff;
    font-weight: 700;
    background: var(--grad);
    border-color: transparent;
    box-shadow: 0 10px 22px -14px rgba(255, 59, 92, .9);
}

.pager__gap {
    min-width: 20px;
    text-align: center;
    color: var(--text-mute);
    font-size: 13px;
}

/* -------------------------------------------------------------------------
   13. 空状态
   ---------------------------------------------------------------------- */
.empty {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 54px 24px 58px;
    text-align: center;
    border-radius: 18px;
    background: rgba(255, 255, 255, .02);
    border: 1px dashed var(--line-2);
}

.empty__icon {
    width: 88px;
    height: 88px;
    opacity: .65;
    margin-bottom: 4px;
}

.empty__title {
    font-size: 16px;
    font-weight: 700;
}

.empty__text {
    font-size: 13px;
    color: var(--text-mute);
    max-width: 420px;
    line-height: 1.8;
}

.empty .btn {
    margin-top: 8px;
}

/* -------------------------------------------------------------------------
   14. 下载页
   ---------------------------------------------------------------------- */
.dl-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: center;
    gap: 30px;
    margin-top: 30px;
    padding: 44px 44px 40px;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(560px 300px at 82% 6%, rgba(255, 122, 69, .2), transparent 64%),
        radial-gradient(460px 280px at 0% 100%, rgba(255, 59, 92, .18), transparent 62%),
        linear-gradient(135deg, #171b25, #0f1218);
    border: 1px solid var(--line-2);
    overflow: hidden;
}

.dl-hero__eyebrow {
    font-size: 11.5px;
    letter-spacing: .2em;
    color: #ffa9b9;
}

.dl-hero__title {
    margin-top: 12px;
    font-size: clamp(28px, 3.2vw, 40px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.01em;
}

.dl-hero__desc {
    margin-top: 14px;
    max-width: 520px;
    font-size: 14px;
    line-height: 1.85;
    color: var(--text-dim);
}

.dl-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.dl-hero__meta {
    margin-top: 16px;
    font-size: 12px;
    color: var(--text-mute);
}

.dl-hero__notice {
    margin-top: 10px;
    font-size: 12px;
    color: #ffb27a;
}

.dl-hero__art {
    justify-self: end;
    width: 100%;
    max-width: 360px;
    filter: drop-shadow(0 26px 44px rgba(0, 0, 0, .55));
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.feature-card {
    padding: 20px 20px 22px;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    transition: border-color .2s, transform .2s;
}

.feature-card:hover {
    border-color: rgba(255, 59, 92, .32);
    transform: translateY(-3px);
}

.feature-card__icon {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    color: #ff9db0;
    background: rgba(255, 59, 92, .1);
    border: 1px solid rgba(255, 59, 92, .22);
    margin-bottom: 14px;
}

.feature-card__title {
    font-size: 15px;
    font-weight: 700;
}

.feature-card__text {
    margin-top: 8px;
    font-size: 12.5px;
    line-height: 1.85;
    color: var(--text-mute);
}

.step-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    counter-reset: step;
}

.step-item {
    position: relative;
    padding: 22px 22px 22px 24px;
    border-radius: 16px;
    background: linear-gradient(160deg, #14171f, #0f1217);
    border: 1px solid var(--line);
}

.step-item__num {
    display: inline-grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    background: var(--grad);
    margin-bottom: 12px;
}

.step-item__title {
    font-size: 14.5px;
    font-weight: 700;
}

.step-item__text {
    margin-top: 8px;
    font-size: 12.5px;
    line-height: 1.85;
    color: var(--text-mute);
}

.faq {
    display: grid;
    gap: 10px;
    max-width: 940px;
}

.faq__item {
    border-radius: 13px;
    background: var(--surface);
    border: 1px solid var(--line);
    overflow: hidden;
    transition: border-color .2s;
}

.faq__item[open] {
    border-color: rgba(255, 59, 92, .3);
}

.faq__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.faq__q::-webkit-details-marker {
    display: none;
}

.faq__q::after {
    content: "+";
    flex: 0 0 auto;
    font-size: 18px;
    font-weight: 400;
    color: var(--text-mute);
    transition: transform .2s;
}

.faq__item[open] .faq__q::after {
    content: "−";
    color: #ff9db0;
}

.faq__a {
    padding: 0 20px 18px;
    font-size: 13px;
    line-height: 1.9;
    color: var(--text-mute);
}

.dl-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    padding: 30px 34px;
    border-radius: 20px;
    background: var(--grad-soft);
    border: 1px solid rgba(255, 59, 92, .26);
}

.dl-cta__title {
    font-size: clamp(19px, 2.2vw, 25px);
    font-weight: 800;
}

.dl-cta__text {
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-dim);
}

/* -------------------------------------------------------------------------
   15. 页脚
   ---------------------------------------------------------------------- */
.site-footer {
    margin-top: 80px;
    background: linear-gradient(180deg, #0a0c11, #06070a);
    border-top: 1px solid var(--line);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
    gap: 36px;
    padding: 46px 0 40px;
}

.brand--footer {
    margin-bottom: 14px;
}

.brand--footer .brand__name {
    font-size: 15px;
}

.site-footer__desc {
    max-width: 340px;
    font-size: 12.5px;
    line-height: 1.85;
    color: var(--text-mute);
}

.site-footer__app {
    display: inline-block;
    margin-top: 14px;
    font-size: 12.5px;
    color: #ff9db0;
    border-bottom: 1px solid rgba(255, 59, 92, .4);
    padding-bottom: 2px;
}

.site-footer__title {
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .1em;
    color: var(--text-dim);
    margin-bottom: 14px;
}

.site-footer__links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
}

.site-footer__links a {
    font-size: 12.5px;
    color: var(--text-mute);
    transition: color .2s;
}

.site-footer__links a:hover {
    color: var(--brand);
}

.site-footer__note {
    font-size: 12px;
    line-height: 1.9;
    color: var(--text-mute);
    max-width: 320px;
}

.site-footer__bar {
    border-top: 1px solid var(--line);
    padding: 16px 0 20px;
}

.site-footer__bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 11.5px;
    color: var(--text-mute);
}

/* -------------------------------------------------------------------------
   16. 回到顶部 / 轻提示
   ---------------------------------------------------------------------- */
.to-top {
    position: fixed;
    right: 20px;
    bottom: 24px;
    z-index: 40;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--text-dim);
    background: rgba(16, 19, 26, .9);
    border: 1px solid var(--line-2);
    backdrop-filter: blur(10px);
    box-shadow: 0 12px 26px -14px #000;
    transition: color .2s, border-color .2s, transform .2s;
}

.to-top:hover {
    color: #fff;
    border-color: rgba(255, 59, 92, .45);
    transform: translateY(-2px);
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 40px;
    z-index: 70;
    transform: translate(-50%, 10px);
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 13px;
    color: #fff;
    background: rgba(18, 21, 29, .94);
    border: 1px solid var(--line-2);
    box-shadow: 0 18px 40px -18px #000;
    opacity: 0;
    transition: opacity .25s, transform .25s;
    pointer-events: none;
}

.toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* -------------------------------------------------------------------------
   17. 响应式
   ---------------------------------------------------------------------- */
@media (max-width: 1180px) {
    .hero__inner {
        grid-template-columns: minmax(0, 1fr) 290px;
        gap: 32px;
    }

    .detail {
        grid-template-columns: 262px minmax(0, 1fr);
        gap: 30px;
    }

    .dl-hero {
        grid-template-columns: minmax(0, 1fr) 300px;
        padding: 36px;
    }
}

@media (max-width: 1024px) {
    .app-promo {
        grid-template-columns: minmax(0, 1fr) 260px;
        padding: 32px;
    }

    .site-footer__grid {
        grid-template-columns: 1.4fr 1fr 1fr;
        gap: 28px;
    }

    .site-footer__grid > :last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 960px) {
    .nav {
        display: none;
    }

    .menu-btn {
        display: grid;
    }

    .hero__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 26px;
        padding: 44px 0 40px;
        min-height: 0;
    }

    .hero__rank {
        align-self: auto;
    }

    .rank-card {
        max-width: 520px;
    }

    .detail {
        grid-template-columns: minmax(0, 1fr);
    }

    .detail__poster {
        position: static;
        display: grid;
        grid-template-columns: 190px minmax(0, 1fr);
        align-items: start;
        gap: 0 18px;
    }

    .detail__poster-frame {
        grid-row: span 2;
    }

    .detail__poster-cta {
        align-self: start;
        margin-top: 0;
    }

    .detail__poster-note {
        text-align: left;
        margin-top: 0;
        align-self: start;
        padding-top: 10px;
    }

    .app-promo {
        grid-template-columns: minmax(0, 1fr);
    }

    .app-promo__art {
        justify-self: center;
        max-width: 280px;
    }

    .dl-hero {
        grid-template-columns: minmax(0, 1fr);
        padding: 30px;
    }

    .dl-hero__art {
        justify-self: center;
        max-width: 300px;
    }
}

@media (max-width: 720px) {
    .shell {
        width: calc(100% - 32px);
    }

    .brand__tagline {
        display: none;
    }

    .hero__h1 {
        font-size: 18px;
    }

    .hero__title {
        font-size: 28px;
    }

    .grid--cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px 11px;
    }

    .card__poster {
        border-radius: 11px;
    }

    .card__title {
        font-size: 12.5px;
    }

    .card__meta {
        font-size: 10.5px;
    }

    .sec-head {
        align-items: flex-start;
    }

    .sec-head__title {
        font-size: 18px;
    }

    .sec-head__more {
        margin-top: 2px;
    }

    .section {
        margin-top: 42px;
    }

    .page-head {
        margin: 22px 0 20px;
    }

    .page-head__stat {
        display: none;
    }

    .panel {
        padding: 18px 16px 20px;
        margin-top: 32px;
        border-radius: 16px;
    }

    .panel__title {
        font-size: 16px;
    }

    .eps {
        grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
        gap: 8px;
    }

    .spec {
        grid-template-columns: minmax(0, 1fr);
        padding: 14px 16px;
    }

    .detail__title {
        font-size: 26px;
    }

    .detail__poster {
        grid-template-columns: 132px minmax(0, 1fr);
        gap: 0 14px;
    }

    .detail__poster-cta {
        height: 42px;
        font-size: 13.5px;
        padding: 0 12px;
    }

    .player__bar {
        padding: 12px 14px;
    }

    .player__now strong {
        max-width: 60vw;
    }

    .app-promo,
    .dl-hero {
        border-radius: 18px;
        padding: 24px 20px;
    }

    .app-promo__desc,
    .dl-hero__desc {
        font-size: 13px;
    }

    .feature-grid,
    .step-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .site-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
        padding: 36px 0 28px;
    }

    .site-footer__grid > :first-child {
        grid-column: 1 / -1;
    }

    .site-footer__grid > :last-child {
        grid-column: 1 / -1;
    }

    .to-top {
        right: 14px;
        bottom: 18px;
        width: 38px;
        height: 38px;
    }
}

@media (max-width: 420px) {
    .grid--cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .btn--app span {
        display: none;
    }

    .btn--app {
        padding: 0 12px;
    }

    .hero__actions .btn,
    .detail__actions .btn {
        flex: 1 1 auto;
    }

    .pager__num {
        min-width: 32px;
        height: 34px;
        font-size: 12px;
    }

    .pager__btn {
        height: 34px;
        padding: 0 12px;
        font-size: 12px;
    }

    .mobile-menu__cats {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* -------------------------------------------------------------------------
   18. 动效偏好
   ---------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
}
