/* ==========================================================================
   Skeleton 01 · 「侧栏杂志」
   左竖导航 + 拼贴首屏 + 横排精选 + 海报矩阵 + 双栏榜单
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; font-weight: 700; }
p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }

:root {
  --brand: #2f6df6;
  --brand-2: #5fd0f0;
  --accent: #ff8a4c;
  --bg: #f4f8fd;
  --surface: #ffffff;
  --ink: #16233a;
  --ink-2: #41536c;
  --muted: #7d8ca3;
  --line: #e5eefb;
  --line-2: #cfdcef;
  --brand-soft: #eaf2ff;
  --rail: 236px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-1: 0 2px 10px rgba(24, 45, 78, .06);
  --shadow-2: 0 18px 40px -18px rgba(24, 45, 78, .28);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------------------------------------------------------------- 左侧栏 */

.rail {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--rail);
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 26px 18px 18px;
  background: var(--surface);
  border-right: 1px solid var(--line);
  z-index: 60;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 40px; height: 40px; flex: 0 0 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: grid; place-items: center;
  box-shadow: 0 8px 18px -8px var(--brand);
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font-size: 18px; font-weight: 800; letter-spacing: .5px; white-space: nowrap; }
.brand-sub { font-size: 11px; color: var(--muted); letter-spacing: 2px; text-transform: uppercase; }

.rail-nav { display: flex; flex-direction: column; gap: 4px; }
.rail-nav a {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--ink-2);
  font-size: 14.5px;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.rail-nav a::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--line-2); transition: inherit;
}
.rail-nav a:hover { background: var(--brand-soft); color: var(--brand); }
.rail-nav a.is-active { background: var(--brand); color: #fff; box-shadow: 0 8px 18px -10px var(--brand); }
.rail-nav a.is-active::before { background: #fff; }

.rail-rank { margin-top: auto; }
.rail-rank h3 { font-size: 12px; letter-spacing: 2px; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.rail-rank li { display: flex; gap: 8px; font-size: 13px; padding: 4px 0; color: var(--ink-2); }
.rail-rank li span { color: var(--brand); font-weight: 700; font-variant-numeric: tabular-nums; }
.rail-rank li a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail-rank li a:hover { color: var(--brand); }

.rail-foot { font-size: 11px; color: var(--muted); line-height: 1.6; border-top: 1px solid var(--line); padding-top: 12px; }

/* ---------------------------------------------------------------- 移动顶栏 */

.topbar {
  display: none;
  position: sticky; top: 0; z-index: 70;
  align-items: center; justify-content: space-between;
  gap: 12px;
  height: 56px;
  padding: 0 14px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar .brand-name { font-size: 16px; }
.topbar .brand-mark { width: 32px; height: 32px; flex-basis: 32px; border-radius: 9px; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand);
}
.icon-btn svg { width: 20px; height: 20px; }

.drawer {
  position: fixed; inset: 0 30% 0 0;
  max-width: 320px;
  background: #fff;
  z-index: 90;
  padding: 18px;
  transform: translateX(-104%);
  transition: transform .3s var(--ease);
  box-shadow: var(--shadow-2);
  overflow-y: auto;
}
.drawer.is-open { transform: none; }

/* 移动端频道条：换行展示，不做横向滚动，避免出现被切掉半个的字 */
.mobile-strip {
  display: none;
  position: sticky; top: 56px; z-index: 65;
  flex-wrap: wrap;
  gap: 8px;
  padding: 9px 14px 10px;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.mobile-strip a {
  flex: 0 0 auto;
  padding: 8px 15px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
}
.drawer .rail-nav { margin-top: 18px; }
.mask {
  position: fixed; inset: 0; background: rgba(15, 30, 52, .38);
  opacity: 0; pointer-events: none; transition: opacity .3s var(--ease); z-index: 80;
}
.mask.is-open { opacity: 1; pointer-events: auto; }

/* ---------------------------------------------------------------- 主区域 */

.stage {
  margin-left: var(--rail);
  padding: 22px clamp(16px, 3vw, 40px) 0;
  max-width: 1560px;
}

.stage-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 20px;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 6px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 13px; color: var(--ink-2);
  transition: all .2s var(--ease);
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }

.search {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 8px 7px 16px;
  min-width: 250px;
}
.search input {
  border: 0; outline: 0; background: transparent;
  font-size: 14px; width: 100%; color: var(--ink);
}
.search button {
  padding: 7px 16px; border-radius: 999px;
  background: var(--brand); color: #fff; font-size: 13px; white-space: nowrap;
}

/* ---------------------------------------------------------------- 首屏拼贴 */

.hero-mosaic {
  display: grid;
  grid-template-columns: 1.62fr 1fr;
  grid-template-rows: repeat(2, minmax(148px, 1fr));
  gap: 14px;
  margin-bottom: 34px;
}

.hero-main, .hero-side {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink);
  box-shadow: var(--shadow-1);
  isolation: isolate;
}
.hero-main { grid-row: span 2; min-height: 380px; }
.hero-side { min-height: 176px; }

.hero-main img, .hero-side img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease);
}
.hero-main:hover img, .hero-side:hover img { transform: scale(1.05); }

.hero-main::after, .hero-side::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(9, 20, 36, 0) 34%, rgba(9, 20, 36, .78) 100%);
}
.hero-body { position: absolute; inset: auto 0 0 0; z-index: 2; padding: 22px 24px; color: #fff; }
.hero-side .hero-body { padding: 16px 18px; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; letter-spacing: 1px;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .3);
  padding: 3px 10px; border-radius: 999px; margin-bottom: 8px;
  backdrop-filter: blur(6px);
}
.hero-main h1, .hero-main h2 { font-size: clamp(22px, 2.4vw, 34px); }
.hero-side h3 { font-size: clamp(15px, 1.4vw, 18px); }
.hero-body p {
  font-size: 13.5px; color: rgba(255, 255, 255, .82);
  margin-top: 8px; max-width: 52ch;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; font-size: 12.5px; color: rgba(255, 255, 255, .7); }
.hero-meta b { color: var(--accent); font-size: 15px; }

/* ---------------------------------------------------------------- 区块标题 */

.block { margin-bottom: 38px; }
.block-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 14px; margin-bottom: 16px;
}
.block-title { display: flex; align-items: baseline; gap: 10px; }
.block-title h2 { font-size: 21px; letter-spacing: .4px; }
.block-title h2::before {
  content: ""; display: inline-block; width: 4px; height: 17px;
  border-radius: 2px; background: var(--brand);
  margin-right: 10px; vertical-align: -2px;
}
.block-title span { font-size: 12.5px; color: var(--muted); letter-spacing: 1px; }
.block-more { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.block-more:hover { color: var(--brand); }

/* ---------------------------------------------------------------- 横排精选 */

.row-wide { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.wide-card {
  display: flex; gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.wide-card:hover {
  transform: translateY(-3px);
  border-color: transparent;
  box-shadow: var(--shadow-2);
}
.wide-thumb {
  position: relative;
  flex: 0 0 116px; height: 116px;
  border-radius: var(--radius-sm); overflow: hidden;
  background: var(--brand-soft);
}
.wide-thumb img { width: 100%; height: 100%; object-fit: cover; }
.wide-thumb .badge { position: absolute; top: 6px; left: 6px; }
.wide-info { min-width: 0; display: flex; flex-direction: column; }
.wide-info h3 { font-size: 15.5px; margin-bottom: 4px; }
.wide-info h3 a:hover { color: var(--brand); }
.wide-info p {
  font-size: 12.5px; color: var(--muted); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.wide-foot { margin-top: auto; display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.wide-foot .score { color: var(--accent); font-weight: 700; font-size: 14px; }

.badge {
  display: inline-block; padding: 2px 8px; border-radius: 6px;
  background: var(--accent); color: #fff; font-size: 11px; font-weight: 600;
  letter-spacing: .5px;
}
.badge--soft { background: var(--brand-soft); color: var(--brand); }

/* ---------------------------------------------------------------- 海报矩阵 */

.grid-poster {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 18px 16px;
}

.p-card { position: relative; }
.p-figure {
  display: block;
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--brand-soft);
  box-shadow: var(--shadow-1);
}
.p-figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.p-card:hover .p-figure img { transform: scale(1.06); }
.p-figure .badge { position: absolute; top: 9px; left: 9px; z-index: 2; }
.p-score {
  position: absolute; right: 9px; bottom: 9px; z-index: 2;
  background: rgba(9, 20, 36, .62); color: #ffd166;
  font-size: 12.5px; font-weight: 700;
  padding: 2px 8px; border-radius: 8px;
  backdrop-filter: blur(4px);
}
.p-card h3 { font-size: 14px; margin: 9px 2px 2px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-card h3 a:hover { color: var(--brand); }
.p-card .p-sub { font-size: 12px; color: var(--muted); margin: 0 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------------------------------------------------------- 榜单 */

.rank-board {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 24px;
}
.rank-col h3 { font-size: 15px; margin-bottom: 12px; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.rank-col h3 em { font-style: normal; font-size: 11px; color: var(--muted); letter-spacing: 1px; font-weight: 400; }
.rank-list li {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 0; border-bottom: 1px dashed var(--line);
  font-size: 14px;
}
.rank-list li:last-child { border-bottom: 0; }
.rank-no {
  flex: 0 0 22px; text-align: center;
  font-size: 13px; font-weight: 800; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.rank-list li:nth-child(1) .rank-no { color: #e8534a; }
.rank-list li:nth-child(2) .rank-no { color: #f0932b; }
.rank-list li:nth-child(3) .rank-no { color: #c9a227; }
.rank-list a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-list a:hover { color: var(--brand); }
.rank-tag { font-size: 11.5px; color: var(--muted); }
.rank-val { font-size: 12px; color: var(--brand); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- 专题 */

.topic-wall { display: grid; grid-template-columns: 1.25fr 1fr; gap: 16px; }
.topic {
  position: relative; border-radius: var(--radius); overflow: hidden;
  min-height: 210px; display: flex; align-items: flex-end;
  background: var(--ink);
}
.topic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: transform .7s var(--ease); }
.topic:hover img { transform: scale(1.04); }
.topic-info { position: relative; z-index: 2; padding: 20px 22px; color: #fff;
  background: linear-gradient(180deg, transparent, rgba(9, 20, 36, .8) 65%); width: 100%; }
.topic-info h3 { font-size: 18px; margin-bottom: 6px; }
.topic-info p { font-size: 13px; color: rgba(255, 255, 255, .8); }
.topic-tags { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.topic-tags span {
  font-size: 11.5px; padding: 2px 9px; border-radius: 999px;
  background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .26);
}

/* ---------------------------------------------------------------- 面包屑 */

.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); padding: 4px 0 16px; }
.crumb a:hover { color: var(--brand); }
.crumb i { font-style: normal; opacity: .55; }

/* ---------------------------------------------------------------- 频道页 */

.page-head {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px clamp(18px, 2.4vw, 30px);
  margin-bottom: 22px;
}
.page-head h1 { font-size: clamp(21px, 2.2vw, 27px); }
.page-head .lead { margin-top: 8px; font-size: 13.5px; color: var(--muted); max-width: 76ch; }
.page-stat { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 16px; }
.page-stat div { font-size: 12.5px; color: var(--muted); }
.page-stat b { display: block; font-size: 19px; color: var(--brand); font-variant-numeric: tabular-nums; }

.filter-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin-bottom: 18px;
}
.filter-bar .label { font-size: 13px; color: var(--muted); margin-right: 4px; }

/* ---------------------------------------------------------------- 详情页 */

.detail-hero {
  display: grid; grid-template-columns: 268px minmax(0, 1fr);
  gap: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 26px;
}
.detail-poster {
  border-radius: var(--radius-sm); overflow: hidden;
  box-shadow: var(--shadow-2);
  align-self: start;
}
.detail-poster img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.detail-main h1 { font-size: clamp(22px, 2.6vw, 31px); }
.detail-sub { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.tag {
  font-size: 12px; padding: 3px 10px; border-radius: 6px;
  background: var(--brand-soft); color: var(--brand);
}
.detail-score { display: flex; align-items: baseline; gap: 8px; margin: 14px 0; }
.detail-score b { font-size: 32px; color: var(--accent); font-variant-numeric: tabular-nums; }
.detail-score span { font-size: 12.5px; color: var(--muted); }
.detail-intro { font-size: 14px; color: var(--ink-2); line-height: 1.85; }
.detail-intro p + p { margin-top: 10px; }

.action-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 20px; border-radius: 999px;
  font-size: 14px; font-weight: 600;
  transition: all .2s var(--ease);
  border: 1px solid transparent;
}
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 10px 22px -12px var(--brand); }
.btn--primary:hover { filter: brightness(1.06); }
.btn--ghost { border-color: var(--line); color: var(--ink-2); background: var(--surface); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn.is-on { background: var(--accent); color: #fff; border-color: transparent; }

.episode-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 26px; }
.episode-box h2 { font-size: 17px; margin-bottom: 14px; }
.episode-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 8px; }
.episode-grid a {
  text-align: center; padding: 8px 4px; border-radius: 8px;
  background: var(--bg); border: 1px solid var(--line);
  font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums;
}
.episode-grid a:hover, .episode-grid a.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }

.split-2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.panel h2 { font-size: 16.5px; margin-bottom: 12px; }
.panel .prose { font-size: 13.5px; color: var(--ink-2); line-height: 1.85; }
.panel .prose p + p { margin-top: 9px; }

.cast-list { display: flex; flex-wrap: wrap; gap: 14px; }
.cast { width: 74px; text-align: center; font-size: 12px; color: var(--muted); }
.cast span {
  display: grid; place-items: center;
  width: 74px; height: 74px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand);
  font-size: 17px; font-weight: 700; margin-bottom: 6px;
}

.review-list li { padding: 12px 0; border-bottom: 1px dashed var(--line); }
.review-list li:last-child { border-bottom: 0; }
.review-head { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.review-head b { color: var(--ink); font-size: 13px; }
.review-list p { font-size: 13.5px; color: var(--ink-2); margin-top: 6px; }

/* ---------------------------------------------------------------- 底部 */

.site-foot {
  margin-left: var(--rail);
  margin-top: 44px;
  background: #0f1c2e;
  color: rgba(255, 255, 255, .62);
  padding: 42px clamp(16px, 3vw, 40px) 22px;
}
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 28px; max-width: 1560px; }
.foot-brand { color: #fff; font-size: 17px; font-weight: 800; margin-bottom: 10px; }
.foot-desc { font-size: 13px; line-height: 1.8; max-width: 40ch; }
.foot-col h4 { color: #fff; font-size: 14px; margin-bottom: 12px; }
.foot-col a { display: block; font-size: 13px; padding: 3px 0; color: rgba(255, 255, 255, .62); }
.foot-col a:hover { color: #fff; }
.foot-bottom {
  max-width: 1560px; margin-top: 30px; padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 12px; display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between;
}

/* ---------------------------------------------------------------- 频道附加模块 */

.faq li { padding: 13px 0; border-bottom: 1px dashed var(--line); }
.faq li:last-child { border-bottom: 0; }
.faq h3 { font-size: 14.5px; margin-bottom: 5px; color: var(--ink); }
.faq p { font-size: 13px; color: var(--ink-2); line-height: 1.8; }

.channel-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); gap: 10px; }
.channel-nav a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 12px 15px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); font-size: 13.5px; font-weight: 600;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.channel-nav a:hover { border-color: var(--brand); color: var(--brand); }
.channel-nav a span { font-size: 12px; font-weight: 400; color: var(--muted); }

.genre-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.genre-item { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; background: var(--bg); }
.genre-item h3 { font-size: 14px; margin-bottom: 5px; }
.genre-item p { font-size: 12.8px; color: var(--ink-2); line-height: 1.75; }

/* ---------------------------------------------------------------- 其它组件 */

.to-top {
  position: fixed; right: 20px; bottom: 24px; z-index: 50;
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--brand); box-shadow: var(--shadow-2);
  opacity: 0; pointer-events: none; transition: opacity .25s var(--ease);
}
.to-top.is-on { opacity: 1; pointer-events: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------------------------------------------------------------- 响应式 */

@media (max-width: 1200px) {
  .row-wide { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .topic-wall { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
  :root { --rail: 0px; }
  .rail { display: none; }
  .topbar { display: flex; }
  .mobile-strip { display: flex; }
  .stage { margin-left: 0; padding: 16px 16px 0; }
  .site-foot { margin-left: 0; }
  .hero-mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 260px 170px; }
  .hero-main { grid-column: span 2; grid-row: auto; min-height: 260px; }
  .detail-hero { grid-template-columns: 208px minmax(0, 1fr); gap: 18px; }
  .split-2 { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  body { font-size: 14.5px; -webkit-tap-highlight-color: rgba(15, 30, 52, .06); }
  .drawer .rail-nav a { min-height: 44px; font-size: 15px; }
  .chip { padding: 9px 16px; }
  .btn { padding: 12px 22px; }
  .stage-head { flex-direction: column; align-items: stretch; gap: 12px; }
  .stage-head .chip-row { display: none; }
  .search { min-width: 0; }

  /* 移动端首屏：16:9 横幅 + 两张并排竖版，密度更高，不再出现被裁一半的图 */
  .hero-mosaic {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 10px; margin-bottom: 24px;
  }
  .hero-main {
    grid-column: 1 / -1; display: block;
    aspect-ratio: 16 / 9; min-height: 0; margin: 0;
  }
  .hero-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .hero-main .hero-body { padding: 14px 16px; }
  .hero-main h1 { font-size: 21px; }
  .hero-main p { display: none; }
  .hero-main .hero-meta { margin-top: 8px; gap: 10px; }
  .hero-main .hero-kicker { margin-bottom: 6px; }

  .hero-side {
    position: relative; display: block;
    aspect-ratio: 3 / 4; height: auto; min-height: 0; margin: 0;
    border: 0; box-shadow: var(--shadow-1);
  }
  .hero-side img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .hero-side::after {
    display: block;
    background: linear-gradient(180deg, rgba(9, 20, 36, 0) 42%, rgba(9, 20, 36, .82) 100%);
  }
  .hero-side .hero-body {
    position: absolute; inset: auto 0 0 0; padding: 10px 12px;
    color: #fff; background: none; display: block;
  }
  .hero-side .hero-kicker {
    margin-bottom: 5px; padding: 2px 8px; font-size: 11px;
    background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .3);
    color: #fff; backdrop-filter: blur(4px);
  }
  .hero-side h3 { font-size: 14px; }
  .hero-side .hero-meta { margin-top: 4px; color: rgba(255, 255, 255, .78); font-size: 11.5px; }
  .hero-side .hero-meta b { color: #ffd166; font-size: 13px; }

  .row-wide { grid-template-columns: 1fr; }
  .rank-board { grid-template-columns: 1fr; padding: 18px; }
  .grid-poster { grid-template-columns: repeat(3, 1fr); gap: 14px 10px; }
  .detail-hero {
    display: block; grid-template-columns: none;
    padding: 0; overflow: hidden;
  }
  .detail-poster {
    width: 100%; border-radius: 0; box-shadow: none;
  }
  .detail-poster img { aspect-ratio: 3 / 2; object-fit: cover; }
  .detail-main { padding: 16px 16px 18px; }
  .detail-main h1 { font-size: 22px; }
  .detail-score b { font-size: 26px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .foot-desc { grid-column: span 2; }
  .site-foot { padding-top: 30px; }
  .wide-thumb { flex-basis: 96px; height: 96px; }
}

@media (max-width: 480px) {
  .stage { padding: 12px 12px 0; }
  .grid-poster { grid-template-columns: repeat(2, 1fr); }
  .block-title h2 { font-size: 18px; }
  .detail-hero { padding: 16px; }
  .hero-body { padding: 14px 16px; }
  .episode-grid { grid-template-columns: repeat(4, 1fr); }
  .page-stat { gap: 14px; }
  .foot-bottom { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
