/* =====================================================================
   皮肤布局：aurora —— 暗色影院（单列叙事流）
   ---------------------------------------------------------------------
   只写本皮肤的外壳与首页版式；通用组件（按钮/表单/分页/内页）仍由 site.css 提供，
   色板由 themes/aurora.css 提供。加载顺序：site.css → themes → skins。
   ===================================================================== */

/* ---------- 顶部票根细栏 + 吸顶导航 ---------- */
.cn-rail {
    background: #04050a;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    font-size: 11px; letter-spacing: .12em;
    color: var(--muted);
}
.cn-rail-inner {
    max-width: var(--max-width); margin: 0 auto;
    padding: 7px var(--gutter);
    display: flex; align-items: center; gap: 14px;
}
.cn-rail-mark {
    color: var(--accent-2); font-weight: 700;
    text-transform: uppercase; letter-spacing: .22em;
}
.cn-rail-text {
    flex: 1; min-width: 0; overflow: hidden;
    text-overflow: ellipsis; white-space: nowrap;
}
.cn-rail-date { font-variant-numeric: tabular-nums; }

.cn-header {
    position: sticky; top: 0; z-index: 40;
    background: var(--panel-glass);
    -webkit-backdrop-filter: saturate(180%) blur(22px);
    backdrop-filter: blur(22px);
    border-bottom: 1px solid var(--line-soft);
}
.cn-nav { padding: 14px var(--gutter); gap: 30px; }
.cn-logo {
    font-size: 21px; font-weight: 800;
    letter-spacing: -.04em;
}
.cn-account { gap: 16px; }
.cn-join {
    padding: 7px 16px; border-radius: var(--radius-pill);
    background: var(--accent-grad); color: #0b0d13 !important;
    font-weight: 700; font-size: 13px;
}
.cn-join:hover { opacity: .9; color: #0b0d13 !important; }

/* ---------- 首屏：16:9 横版横幅（视频完整显示，不裁切） ---------- */
.cn-hero {
    margin: 0 var(--hero-bleed);
    border-radius: 0;
}
/* 有轮播时才做成横版横幅：容器锁 16:9，视频 object-fit:contain 完整显示不裁切。
   contain 必然留边，所以 slides 底色压成近黑，避免露出页面渐变。 */
.cn-hero:not(.cn-hero-plain) {
    /* 高度取「16:9 高度」与「86vh」的较小值：窄屏严格 16:9，大屏不超过一屏视口的 86%，
       宽度仍由负 margin 出血撑满，所以实际比例 1.78~2.05，正好贴合横版素材 854×412(≈2.07:1)。 */
    height: min(56.25vw, 86vh);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: stretch;
    background: #04050a;
}
.cn-hero:not(.cn-hero-plain) .hero-slides { background: #04050a; }
.cn-hero:not(.cn-hero-plain) .hero-video { object-fit: contain; }
.cn-hero:not(.cn-hero-plain) .cn-hero-content { padding-bottom: 84px; }
.cn-hero-content {
    /* 注意：下面的 padding 是百分比，按整条出血 hero（≈视口宽）计算，
       宽屏时左右各几百 px；此处若再限制 max-width，border-box 下内容盒会被吃光
       （2560 宽实测：760 - 688×2 → 内容 0，搜索框塌成 14px）。
       因此容器不设宽上限，左边距仍由 padding 与 1240 内容区对齐，行宽交给内部元素各自限制。 */
    max-width: none;
    padding: 0 calc((100% - min(100%, var(--max-width))) / 2 + var(--gutter)) 96px;
    gap: 16px;
}
.cn-hero-eyebrow {
    margin: 0; font-size: 11px; letter-spacing: .3em;
    text-transform: uppercase; color: var(--accent-2); font-weight: 700;
}
.cn-hero-content h1 { max-width: 760px; font-size: 76px; line-height: 1.02; }
.hero-description { font-size: 19px; }

.cn-search {
    margin-top: 18px; max-width: 560px;
    background: rgba(10, 12, 18, .72);
    border-color: rgba(255, 255, 255, .16);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}
.cn-hero-scroll {
    position: absolute; left: 50%; bottom: 26px; z-index: 2;
    transform: translateX(-50%);
    display: flex; align-items: center; gap: 10px;
    font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
    color: rgba(255, 255, 255, .55);
}
.cn-hero-scroll span {
    width: 1px; height: 34px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .7));
}
.cn-hero-plain { min-height: 62vh; }

/* ---------- 区块外壳 ---------- */
.cn-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 64px var(--gutter);
}
.cn-section + .cn-section { padding-top: 0; }
.cn-section-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 20px; margin-bottom: 26px;
}
.cn-section-head h2 {
    margin: 0; font-size: 34px; letter-spacing: -.035em;
}
.cn-kicker {
    margin: 0 0 8px; font-size: 11px; font-weight: 700;
    letter-spacing: .26em; text-transform: uppercase; color: var(--accent-2);
}
.cn-more {
    font-size: 13px; color: var(--muted);
    border-bottom: 1px solid var(--line);
    padding-bottom: 2px; white-space: nowrap;
}
.cn-more:hover { color: var(--accent-2); border-color: var(--accent-2); }

/* ---------- 横向海报轨（正在热映） ---------- */
.poster-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 196px;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 14px;
    /* 横滑轨不画滚动条：拖拽/触控板/触屏照常横滑，暗底上不再出现一条灰条 */
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.poster-rail-item { scroll-snap-align: start; }
.poster-rail::-webkit-scrollbar { display: none; }

/* ---------- 海报卡 ---------- */
.poster-grid {
    display: grid; gap: 26px 18px;
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
}
.poster-grid-wide { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.poster-card { display: flex; flex-direction: column; gap: 8px; }
.poster-art {
    position: relative; display: block;
    aspect-ratio: 2 / 3;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-soft);
    box-shadow: inset 0 0 0 1px var(--line-soft);
    transition: transform var(--motion), box-shadow var(--motion);
}
.poster-art img { width: 100%; height: 100%; object-fit: cover; }
.poster-card:hover .poster-art {
    transform: translateY(-4px);
    box-shadow: 0 22px 44px -22px rgba(109, 94, 252, .8);
}
.poster-fallback {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%;
    background: var(--accent-soft); color: var(--muted);
    font-size: 34px; font-weight: 700;
}
.poster-flag {
    position: absolute; left: 8px; top: 8px;
    padding: 3px 9px; border-radius: var(--radius-pill);
    background: var(--hot); color: #fff;
    font-size: 10px; font-weight: 700; letter-spacing: .04em;
}
.poster-flag-rank { background: rgba(6, 7, 12, .78); color: #fff; }
.poster-title {
    margin: 0; font-size: 14px; font-weight: 600; line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
.poster-title a:hover { color: var(--accent-2); }
.poster-meta {
    margin: 0; font-size: 12px; color: var(--muted);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.poster-foot {
    margin-top: auto; display: flex; align-items: center;
    justify-content: space-between; gap: 8px;
}
.poster-price { font-size: 12px; font-weight: 600; color: var(--text-soft); }
.poster-price.is-free { color: var(--hot-text); }
.poster-rating { font-size: 12px; color: var(--star); }

/* ---------- 本期榜单：纵向名次表 ---------- */
.cn-chart {
    list-style: none; margin: 0; padding: 0;
    display: grid; gap: 0;
    /* 纵向单列：1→5 自上而下扫读，不做双列交错 */
    grid-template-columns: 1fr;
}
.cn-chart-row {
    display: grid;
    grid-template-columns: 44px 64px minmax(0, 1fr) auto;
    align-items: center; gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line-soft);
}
.cn-chart-no {
    font-family: var(--font-display);
    font-size: 28px; font-weight: 800; line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.4px var(--accent);
}
.cn-chart-art {
    width: 64px; height: 64px; border-radius: 16px;
    overflow: hidden; background: var(--bg-soft);
    box-shadow: inset 0 0 0 1px var(--line-soft);
}
.cn-chart-art img { width: 100%; height: 100%; object-fit: cover; }
.cn-chart-body { min-width: 0; }
.cn-chart-body h3 {
    margin: 0 0 4px; font-size: 15px; font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cn-chart-meta {
    margin: 0; display: flex; gap: 10px;
    font-size: 12px; color: var(--muted);
}
.cn-stars { color: var(--star); }
.cn-chart-price { font-size: 12.5px; font-weight: 600; color: var(--text-soft); white-space: nowrap; }
.cn-chart-price.is-free { color: var(--hot-text); }

/* ---------- 年份 / 片厂索引 ---------- */
.cn-index-section {
    display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
    border-top: 1px solid var(--line-soft);
}
.cn-index-title { font-size: 20px; margin: 0 0 20px; letter-spacing: -.02em; }
.cn-year-flow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.cn-year {
    display: inline-flex; align-items: baseline; justify-content: space-between; gap: 6px;
    padding: 6px 12px; border-radius: var(--radius-pill);
    border: 1px solid var(--line-soft); font-size: 14px;
    font-variant-numeric: tabular-nums;
}
.cn-year em {
    font-style: normal; font-size: 11px; color: var(--muted);
}
.cn-year:hover { border-color: var(--accent-2); color: var(--accent-2); }

.cn-studios { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.cn-studios a {
    display: flex; align-items: center; gap: 12px;
    padding: 9px 0; border-bottom: 1px solid var(--line-soft);
}
.cn-studio-mark {
    width: 30px; height: 30px; border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-soft); color: var(--muted);
    font-size: 13px; font-weight: 700; text-transform: uppercase;
    overflow: hidden; flex: 0 0 30px;
}
.cn-studio-mark img { width: 100%; height: 100%; object-fit: cover; }
.cn-studio-name {
    flex: 1; min-width: 0; font-size: 14px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cn-studio-count { font-size: 12px; color: var(--muted); }
.cn-studios a:hover .cn-studio-name { color: var(--accent-2); }

/* ---------- 页脚：三栏 ---------- */
.cn-footer {
    border-top: 1px solid var(--line-soft);
    background: #05060a;
    margin-top: 40px;
}
.cn-footer-inner {
    max-width: var(--max-width); margin: 0 auto;
    padding: 48px var(--gutter) 64px;
    display: grid; grid-template-columns: 1.4fr 1fr 1.4fr;
    gap: 40px; align-items: start;
}
.cn-footer-logo {
    font-family: var(--font-display); font-size: 20px; font-weight: 800;
    letter-spacing: -.03em;
    background: var(--accent-grad);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.cn-footer-brand p { margin: 10px 0 0; font-size: 13px; color: var(--muted); max-width: 30ch; }
.cn-footer-links { display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.cn-footer-links a { color: var(--text-soft); }
.cn-footer-links a:hover { color: var(--accent-2); }
.cn-footer-note {
    display: flex; flex-direction: column; gap: 6px;
    font-size: 12px; color: var(--muted); text-align: right;
}

/* ---------- 内页（列表/详情/榜单等仍用 site.css 的组件，这里只做影院化微调） ---------- */
.skin-aurora .site-main { padding-top: 0; }
.skin-aurora .section { padding: 48px 0; }
.skin-aurora .game-grid,
.skin-aurora .rank-list { gap: 26px 18px; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); }
.skin-aurora .game-card,
.skin-aurora .rank-item .game-card {
    display: flex; flex-direction: column; gap: 8px;
    background: transparent; border: 0; padding: 0;
}
.skin-aurora .game-card:hover { background: transparent; box-shadow: none; transform: none; }
.skin-aurora .game-card-icon,
.skin-aurora .rank-item .game-card-icon {
    width: 100%; border-radius: var(--radius);
    transition: transform var(--motion), box-shadow var(--motion);
}
.skin-aurora .game-card:hover .game-card-icon {
    transform: translateY(-4px);
    box-shadow: 0 22px 44px -22px rgba(109, 94, 252, .8);
}
.skin-aurora .game-card-body { padding: 0; gap: 6px; }
.skin-aurora .game-card-title { font-size: 14px; min-height: 2.7em; }
.skin-aurora .game-card-meta { font-size: 12px; }
.skin-aurora .game-card-price {
    background: transparent; border: 0; padding: 0;
    font-size: 12px; color: var(--text-soft);
}
.skin-aurora .game-card-price.is-free { background: transparent; color: var(--hot-text); }
.skin-aurora .game-card-badge { left: 8px; top: 8px; bottom: auto; }
.skin-aurora .rank-item { padding-left: 0; }
.skin-aurora .rank-no {
    top: 6px; left: 6px; transform: none;
    font-size: 30px; -webkit-text-stroke: 1.4px #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .8);
}
.skin-aurora .game-card-rating { font-size: 12px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
    .cn-hero-content h1 { font-size: 54px; }
    .cn-chart { grid-template-columns: 1fr; }
    .cn-index-section { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 720px) {
    .cn-rail-text { display: none; }
    .cn-hero.cn-hero-plain { min-height: 78vh; }
    .cn-hero-content { padding: 0 var(--gutter) 72px; }
    /* 横版横幅在手机上只有 ≈56vw 高，文案必须压缩，否则会顶穿 16:9 容器 */
    .cn-hero:not(.cn-hero-plain) { min-height: 200px; }
    .cn-hero:not(.cn-hero-plain) .cn-hero-content { padding-bottom: 14px; gap: 8px; }
    .cn-hero:not(.cn-hero-plain) .cn-hero-eyebrow,
    .cn-hero:not(.cn-hero-plain) .hero-description { display: none; }
    .cn-hero:not(.cn-hero-plain) .cn-hero-content h1 { font-size: 22px; line-height: 1.15; }
    .cn-hero:not(.cn-hero-plain) .cn-search { margin-top: 2px; }
    .cn-hero:not(.cn-hero-plain) .cn-search input { height: 32px; }
    .cn-hero:not(.cn-hero-plain) .hero-nav { left: auto; right: 14px; top: 12px; bottom: auto; justify-content: flex-end; }
    .cn-hero-content h1 { font-size: 38px; }
    .hero-description { font-size: 15px; }
    .cn-search { max-width: none; }
    .cn-hero-scroll { display: none; }
    .cn-section { padding: 40px var(--gutter); }
    .cn-section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
    .cn-section-head h2 { font-size: 24px; }
    .poster-rail { grid-auto-columns: 42vw; gap: 12px; }
    .poster-grid,
    .skin-aurora .game-grid,
    .skin-aurora .rank-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
    .cn-chart-row { grid-template-columns: 34px 52px minmax(0, 1fr) auto; gap: 12px; }
    .cn-chart-art { width: 52px; height: 52px; border-radius: 12px; }
    .cn-chart-no { font-size: 20px; }
    .cn-footer-inner { grid-template-columns: 1fr; gap: 26px; padding: 36px var(--gutter) 48px; }
    .cn-footer-note { text-align: left; }
}
