/* 红果短剧 PC 视觉对齐：深色底 + 橙色强调 + 横向剧轨 */
:root {
  --hg-bg: #131414;
  --hg-bg-elev: #181a1a;
  --hg-panel: #292827;
  --hg-panel-2: #323333;
  --hg-orange: #fa7705;
  --hg-orange-2: #ff7e0d;
  --hg-orange-3: #ff9233;
  --hg-text: hsla(0, 0%, 100%, .9);
  --hg-text-2: hsla(0, 0%, 100%, .58);
  --hg-text-3: hsla(0, 0%, 100%, .4);
  --hg-line: hsla(0, 0%, 100%, .06);
  --hg-soft: hsla(0, 0%, 88%, .06);
  --hg-soft-2: hsla(0, 0%, 88%, .08);
  --font: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --container: 1200px;
  --nav-h: 64px;
  --card-w: 186px;
  --cover-h: 255px;
  --card-h: 333px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; background: var(--hg-bg); color: var(--hg-text); }
body {
  font-family: var(--font);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input { font: inherit; color: inherit; }
.seo-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.container { width: min(var(--container), calc(100% - 64px)); margin: 0 auto; }
@media (min-width: 1880px) {
  .container { width: min(1720px, calc(100% - 640px)); }
}

/* ===== Header ===== */
.site-header {
  position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 100;
  background: rgba(19, 20, 20, var(--nav-surface-opacity, 1));
  transition: background .12s ease;
}
.header-inner {
  height: var(--nav-h);
  display: flex; align-items: center; gap: 8px;
}
.brand {
  display: flex; align-items: center; gap: 8px;
  height: 32px; margin-right: 48px; flex-shrink: 0;
}
.brand-logo {
  height: 32px; width: auto; max-width: 180px;
  object-fit: contain; display: block;
}
.brand-logo.is-wordmark { height: 32px; max-width: 180px; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(106deg, var(--hg-orange-2) .27%, var(--hg-orange-3));
  display: grid; place-items: center; font-weight: 700; color: #fff; font-size: 14px;
}
.brand-name { font-size: 18px; font-weight: 600; letter-spacing: .02em; color: #fff; }

.nav { display: flex; align-items: center; height: 100%; gap: 4px; }
.nav > a, .nav-rank > a.trigger {
  display: inline-flex; align-items: center; height: 40px; padding: 0 16px;
  color: hsla(0,0%,100%,.7); font-size: 16px; font-weight: 500; border-radius: 10px;
}
.nav > a.on, .nav > a:hover, .nav-rank:hover > a.trigger { color: #fff; }
.nav-rank { position: relative; height: 64px; display: flex; align-items: center; }
.rank-menu {
  position: absolute; left: -10px; top: 56px; width: 160px;
  background: rgba(38,39,41,.95); backdrop-filter: blur(20px);
  border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.28);
  padding: 4px 0; display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .16s ease, visibility 0s linear .16s;
}
.nav-rank:hover .rank-menu, .nav-rank:focus-within .rank-menu {
  opacity: 1; visibility: visible; pointer-events: auto;
  transition: opacity .16s ease-out, visibility 0s;
}
.rank-menu a {
  display: flex; align-items: center; justify-content: center;
  height: 54px; padding: 16px 24px; white-space: nowrap;
  color: hsla(0,0%,100%,.9); font-size: 16px; font-weight: 500;
}
.rank-menu a:hover { background: hsla(0,0%,100%,.06); color: #fff; }

/* download hover panel */
.nav-dl {
  position: relative; height: 64px; display: flex; align-items: center; margin-left: 4px;
}
.nav-dl .trigger {
  display: inline-flex; align-items: center; height: 40px; padding: 0 16px;
  color: hsla(0,0%,100%,.7); font-size: 16px; font-weight: 500; cursor: pointer;
}
.nav-dl:hover .trigger { color: #fff; }
.dl-pop {
  position: absolute; left: 50%; top: 56px; transform: translateX(-50%);
  width: 310px; height: 308px; background: var(--hg-panel-2); border-radius: 12px;
  overflow: hidden; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .16s ease, visibility 0s linear .16s;
  box-shadow: 0 20px 48px rgba(0,0,0,.45);
}
.nav-dl:hover .dl-pop {
  opacity: 1; visibility: visible; pointer-events: auto;
  transition: opacity .16s ease-out;
}
.dl-pop-logo {
  position: absolute; top: 48px; left: 50%; transform: translateX(-50%);
  height: 32px; width: auto; max-width: 108px; object-fit: contain;
}
.dl-pop-qr {
  position: absolute; top: 96px; left: 50%; transform: translateX(-50%);
  width: 120px; height: 120px; padding: 6px; background: #fff; border-radius: 8px;
}
.dl-pop-qr img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.dl-pop-tip {
  position: absolute; left: 40px; right: 40px; top: 232px; margin: 0;
  text-align: center; font-size: 12px; line-height: 22px;
  color: hsla(0,0%,100%,.9); opacity: .6;
}

.header-actions { margin-left: auto; display: flex; align-items: center; height: 40px; }
.header-search {
  width: 280px; height: 40px; display: flex; align-items: center;
  background: var(--hg-soft-2); border-radius: 12px; overflow: hidden;
}
.header-search input {
  flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent;
  padding: 7px 4px 7px 16px; color: hsla(0,0%,100%,.7); font-size: 14px;
  caret-color: var(--hg-orange);
}
.header-search input::placeholder { color: hsla(0,0%,100%,.4); }
.header-search button {
  width: 40px; height: 40px; border: 0; background: transparent; cursor: pointer;
  display: grid; place-items: center;
}
.header-search button svg { opacity: .4; }

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 100vh; padding-top: var(--nav-h);
  background: var(--hg-bg); overflow: hidden;
  --unfold: 0;
}
.hero-bg {
  position: absolute; left: 50%; top: 64px; transform: translate3d(-50%, calc(var(--unfold) * -40px), 0);
  width: min(1552px, 100%); height: 560px;
  opacity: calc(0.22 - var(--unfold) * 0.12);
  pointer-events: none; overflow: hidden; transition: opacity .05s linear;
}
.hero-strip {
  position: absolute; display: flex; gap: 8px; width: max-content;
  transform: rotate(-2.81deg); opacity: .95;
}
.hero-strip img {
  width: 120px; height: 164px; object-fit: cover; border-radius: 8px; flex: 0 0 auto;
  background: #292827;
}
.hero-strip.s1 { left: 8%; top: -40px; animation: stripL 80s linear infinite; }
.hero-strip.s2 { left: -2%; top: 150px; animation: stripR 110s linear infinite; }
.hero-strip.s3 { left: 10%; top: 320px; animation: stripL 95s linear infinite; }
@keyframes stripL { from { transform: rotate(-2.81deg) translateX(0); } to { transform: rotate(-2.81deg) translateX(-50%); } }
@keyframes stripR { from { transform: rotate(-2.81deg) translateX(-50%); } to { transform: rotate(-2.81deg) translateX(0); } }
.hero-mask {
  position: absolute; inset: 0 0 0 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(19,20,20,.15), rgba(19,20,20,.78) 55%, #131414 92%),
    linear-gradient(180deg, rgba(19,20,20,.35), rgba(19,20,20,0) 30%, rgba(19,20,20,.9) 78%, #131414);
  pointer-events: none;
}
.hero-center {
  position: relative; z-index: 3;
  display: flex; flex-direction: column; align-items: center;
  padding: 140px 20px 220px; text-align: center;
  opacity: calc(1 - var(--unfold) * 1.2);
  transform: translate3d(0, calc(var(--unfold) * -36px), 0);
  transition: opacity .05s linear;
}
/* 红果同款：居中横版 Logo，高度约 40px */
.hero-logo-img {
  display: block;
  height: 40px; width: auto; max-width: 200px;
  margin: 0 auto 18px; object-fit: contain;
}
.hero-slogan-main {
  margin: 0 0 12px; font-size: clamp(36px, 4.6vw, 52px); font-weight: 700;
  letter-spacing: .06em; color: #fff; line-height: 1.2;
}
.hero-brand {
  margin: 0 0 12px; font-size: clamp(42px, 5vw, 64px); font-weight: 700;
  letter-spacing: .04em; color: #fff; line-height: 1.1;
}
.hero-brand span {
  background: linear-gradient(106.86deg, #ff7e0d .27%, #ff9233);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-slogan {
  margin: 0 0 28px; color: hsla(0,0%,100%,.7); font-size: 16px; line-height: 26px;
  max-width: 420px; font-weight: 400;
}
.btn-orange {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 190px; height: 44px; padding: 0 24px; border: 0; border-radius: 12px;
  background: linear-gradient(106.86deg, #ff7e0d .27%, #ff9233);
  color: hsla(0,0%,100%,.95) !important; font-weight: 500; font-size: 16px;
  box-shadow: 0 10px 28px rgba(250,119,5,.28);
  cursor: pointer;
}
.btn-orange:hover { filter: brightness(1.05); }
.btn-play svg { display: block; }
.hero-scroll {
  margin-top: 56px; display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: hsla(0,0%,100%,.4); font-size: 18px;
}
.hero-scroll .chev {
  width: 20px; height: 20px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); animation: bob 1.4s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: rotate(45deg) translate(0,0); opacity:.4 } 50% { transform: rotate(45deg) translate(4px,4px); opacity:1 } }

/* 红果式：扇形折叠 → 滚动展开为第一轨 */
.scatter-layer {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 6;
  height: 360px; pointer-events: none;
}
.scatter-card {
  position: absolute; left: 50%; bottom: 36px;
  width: 148px;
  pointer-events: auto;
  transform-origin: 50% 100%;
  will-change: transform, opacity;
  text-decoration: none; color: inherit;
}
.scatter-cover {
  width: 148px; height: 204px; border-radius: 12px; overflow: hidden;
  background: #292827; position: relative;
  box-shadow: 0 30px 76px rgba(0,0,0,.5), 0 8px 22px rgba(0,0,0,.28);
}
.scatter-cover img { width: 100%; height: 100%; object-fit: cover; }
.scatter-cover.empty { background: linear-gradient(160deg, #323333, #1a1b1b); }
.scatter-badge {
  position: absolute; right: 8px; bottom: 8px; z-index: 1;
  color: #fff; font-size: 12px; font-weight: 600; text-shadow: 0 1px 2px rgba(0,0,0,.4);
}
.scatter-title {
  margin-top: 10px; width: 140px;
  color: hsla(0,0%,100%,.9); font-size: 14px; line-height: 20px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  opacity: var(--title-op, 0);
}
.scatter-card:hover .scatter-cover img { transform: scale(1.04); }
.scatter-cover img { transition: transform .2s ease; }

.home-feed {
  position: relative; z-index: 5;
  margin-top: -120px;
  padding-top: 8px;
  background: linear-gradient(180deg, transparent 0, var(--hg-bg) 100px);
}
.home-feed.is-locked { pointer-events: none; }
.is-first-rail .first-rail-slot {
  opacity: var(--rail-op, 0);
  transform: translateY(calc((1 - var(--rail-op, 0)) * 24px));
  transition: none;
}
.unfold-section:not(.is-first-rail) {
  opacity: calc(0.15 + var(--feed-show, 0) * 0.85);
  transform: translate3d(0, calc((1 - var(--feed-show, 0)) * 56px), 0);
  filter: blur(calc((1 - var(--feed-show, 0)) * 6px));
  transition: opacity .4s ease, transform .4s ease, filter .4s ease;
}
.unfold-section.is-in { --feed-show: 1; }

/* ===== Sections / Rails ===== */
.site-main { position: relative; z-index: 3; background: var(--hg-bg); padding-bottom: 80px; }
.section { margin-bottom: 68px; }
.section-hd {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px;
}
.section-title {
  margin: 0; color: #fff; font-size: 24px; font-weight: 600; line-height: 34px;
  display: inline-flex; align-items: center; gap: 4px;
}
.section-title .arrow { opacity: .9; font-size: 22px; }
.section-more { color: var(--hg-text-2); font-size: 14px; }
.section-more:hover { color: hsla(0,0%,100%,.9); }

.rail-wrap { position: relative; }
.rail {
  display: flex; gap: 24px; overflow-x: auto; overflow-y: hidden;
  padding-bottom: 4px; scroll-behavior: smooth; scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail-mask {
  position: absolute; top: 0; width: 64px; height: var(--card-h); pointer-events: none; z-index: 2;
}
.rail-mask.left { left: -1px; background: linear-gradient(90deg, #131414, rgba(19,20,20,0)); }
.rail-mask.right { right: -1px; background: linear-gradient(270deg, #131414, rgba(19,20,20,0)); }
.rail-arrow {
  position: absolute; top: calc(var(--cover-h) / 2); transform: translateY(-50%);
  width: 56px; height: 72px; border: 0; background: transparent; cursor: pointer;
  opacity: 0; z-index: 3; color: #fff; font-size: 42px; line-height: 1;
  display: grid; place-items: center; transition: opacity .16s ease;
}
.rail-wrap:hover .rail-arrow { opacity: .85; }
.rail-arrow:hover { opacity: 1; }
.rail-arrow.prev { left: 4px; }
.rail-arrow.next { right: 4px; }

.drama-card {
  flex: 0 0 var(--card-w); width: var(--card-w); height: var(--card-h); display: block;
}
.drama-cover {
  position: relative; width: 100%; height: var(--cover-h);
  border-radius: 12px; overflow: hidden; background: var(--hg-soft);
}
.drama-cover img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .2s ease-out, opacity .2s ease-out;
}
.drama-card:hover .drama-cover img { transform: scale(1.06); }
.drama-cover:after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 72px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.45));
  pointer-events: none;
}
.drama-badge {
  position: absolute; right: 10px; bottom: 10px; z-index: 1;
  color: #fff; font-size: 13px; font-weight: 600; line-height: 18px;
  text-shadow: 0 1px 2px rgba(0,0,0,.36);
}
.drama-title {
  margin: 16px 0 0; width: calc(100% - 8px);
  color: hsla(0,0%,100%,.9); font-size: 18px; font-weight: 400; line-height: 25px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.drama-tags {
  display: flex; align-items: center; gap: 6px; margin-top: 12px; min-height: 25px; overflow: hidden;
}
.drama-tags span {
  flex: 0 0 auto; max-width: 72px; height: 25px; padding: 4px 8px;
  background: var(--hg-soft); border-radius: 4px;
  color: hsla(0,0%,100%,.5); font-size: 12px; line-height: 17px; opacity: .8;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.view-all-card {
  flex: 0 0 136px; width: 136px; height: var(--cover-h);
  display: flex; align-items: center; justify-content: center; gap: 4px;
  background: hsla(0,0%,100%,.03); border-radius: 12px; color: #fff;
}
.view-all-card:hover { background: hsla(0,0%,100%,.06); }
.view-all-card span { font-size: 14px; opacity: .7; }

.grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px 24px;
}
.grid .drama-card { width: auto; flex: none; height: auto; }
.grid .drama-cover { height: auto; aspect-ratio: 186 / 255; }

/* ===== Rank ===== */
.page-head { padding: 96px 0 12px; }
.page-head h1 { margin: 0; font-size: 32px; font-weight: 700; color: #fff; }
.page-head p { margin: 10px 0 0; color: var(--hg-text-2); font-size: 14px; }
.rank-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 20px 0 28px; }
.rank-tabs a {
  padding: 10px 16px; border-radius: 999px; background: var(--hg-soft);
  color: var(--hg-text-2); font-size: 14px; font-weight: 500;
}
.rank-tabs a.on, .rank-tabs a:hover { background: rgba(250,119,5,.18); color: var(--hg-orange); }
.rank-layout { display: grid; grid-template-columns: 1.45fr .7fr; gap: 28px; }
.rank-item {
  display: grid; grid-template-columns: 120px 1fr auto; gap: 18px; align-items: start;
  padding: 18px; margin-bottom: 14px; border-radius: 14px;
  background: hsla(0,0%,100%,.03); border: 1px solid transparent;
}
.rank-item:hover { background: hsla(0,0%,100%,.05); border-color: rgba(250,119,5,.2); }
.rank-cover { border-radius: 10px; overflow: hidden; aspect-ratio: 3/4; background: var(--hg-soft); }
.rank-cover img { width: 100%; height: 100%; object-fit: cover; }
.rank-no {
  display: inline-flex; min-width: 28px; height: 28px; align-items: center; justify-content: center;
  border-radius: 8px; background: var(--hg-soft); color: var(--hg-text-2); font-weight: 700; margin-bottom: 8px;
}
.rank-item:nth-child(-n+3) .rank-no { background: rgba(250,119,5,.18); color: var(--hg-orange); }
.rank-name { margin: 0 0 8px; font-size: 20px; font-weight: 700; color: #fff; }
.rank-heat { color: var(--hg-orange); font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.rank-blurb {
  color: var(--hg-text-2); font-size: 13px; line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.rank-side {
  position: sticky; top: 88px; align-self: start;
  background: var(--hg-panel); border-radius: 14px; padding: 18px;
}
.rank-side h3 { margin: 0 0 12px; font-size: 16px; color: #fff; }
.side-row {
  display: flex; gap: 10px; align-items: center; padding: 8px 0;
  border-bottom: 1px solid hsla(0,0%,100%,.04);
}
.side-row:last-child { border-bottom: 0; }
.side-idx { width: 22px; font-weight: 700; color: var(--hg-text-2); }
.side-row:nth-child(-n+3) .side-idx { color: var(--hg-orange); }
.side-row img { width: 42px; height: 56px; object-fit: cover; border-radius: 6px; background: var(--hg-soft); }
.side-row .t { flex: 1; font-size: 13px; font-weight: 500; color: hsla(0,0%,100%,.9); }

/* ===== Detail landing (红果详情) ===== */
.detail-landing {
  padding: 96px 0 12px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(80,70,50,.22), transparent 60%),
    var(--hg-bg);
}
.detail-landing-inner {
  display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: start;
  margin-bottom: 28px;
}
.detail-info .drama-tags { margin: 12px 0 16px; }
.detail-content-fold { max-width: 640px; }
.ep-strip {
  display: flex; align-items: flex-start; gap: 10px; margin: 8px 0 28px;
}
.ep-strip-inner {
  display: flex; flex-wrap: wrap; gap: 10px; flex: 1;
}
.ep-chip {
  position: relative;
  min-width: 44px; height: 44px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; background: var(--hg-soft); font-size: 14px; font-weight: 500;
}
.ep-chip.is-more { display: none; }
.ep-strip.is-open .ep-chip.is-more { display: inline-flex; }
.ep-chip.locked { opacity: .55; }
.ep-chip .lock {
  position: absolute; top: 4px; left: 4px; width: 10px; height: 10px;
  border: 1.5px solid hsla(0,0%,100%,.55); border-radius: 2px;
  box-shadow: inset 0 -3px 0 hsla(0,0%,100%,.25);
}
.ep-more {
  width: 44px; height: 44px; border: 0; border-radius: 10px;
  background: var(--hg-soft); color: #fff; font-size: 18px; cursor: pointer;
}
.related-section { padding-top: 8px; }

/* ===== Play page（竖屏短剧完整显示） ===== */
.play-page {
  padding: 80px 24px 40px;
  background: #0a0a0a;
  min-height: calc(100vh - 64px);
}
.play-layout {
  max-width: 1480px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start;
}
.play-stage {
  min-width: 0;
  display: flex; justify-content: center; align-items: flex-start;
  background: #000; border-radius: 12px; min-height: calc(100vh - 120px);
  padding: 12px;
}
.play-player {
  position: relative; background: #000; border-radius: 12px; overflow: hidden;
  display: grid; place-items: center;
  width: min(420px, 100%);
  height: min(calc(100vh - 140px), 780px);
  max-height: calc(100vh - 140px);
}
.play-player.is-portrait {
  aspect-ratio: 9 / 16;
  width: auto;
  height: min(calc(100vh - 140px), 780px);
  max-width: 100%;
}
.play-player.is-landscape {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  max-height: calc(100vh - 140px);
}
.play-ep-label {
  position: absolute; left: 16px; top: 14px; z-index: 2;
  color: #fff; font-size: 14px; font-weight: 600; text-shadow: 0 1px 4px rgba(0,0,0,.6);
}
.play-frame, .play-video {
  width: 100%; height: 100%; border: 0; background: #000;
  object-fit: contain; object-position: center center;
}
.play-side {
  background: #121212; border-radius: 12px; padding: 16px 16px 20px;
  max-height: calc(100vh - 100px); overflow: auto;
}
.play-crumb {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  color: var(--hg-text-3); font-size: 12px; margin-bottom: 14px;
}
.play-crumb a:hover { color: #fff; }
.play-crumb em { font-style: normal; color: var(--hg-text-2); }
.play-meta { display: flex; gap: 12px; margin-bottom: 14px; }
.play-thumb {
  width: 72px; height: 96px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: var(--hg-soft);
}
.play-thumb img { width: 100%; height: 100%; object-fit: cover; }
.play-title { margin: 0 0 8px; font-size: 18px; font-weight: 700; color: #fff; line-height: 1.35; }
.play-intro { margin-bottom: 16px; color: var(--hg-text-2); font-size: 13px; line-height: 1.7; }
.play-intro .label { color: hsla(0,0%,100%,.75); margin-right: 6px; }
.play-intro .txt { display: inline; margin: 0; }
.intro-more {
  border: 0; background: transparent; color: #4ea1ff; cursor: pointer; padding: 0; font-size: 13px;
}
.ep-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.ep-tab {
  border: 0; background: transparent; color: var(--hg-text-2); padding: 6px 8px;
  font-size: 13px; cursor: pointer; border-radius: 6px;
}
.ep-tab.on, .ep-tab:hover { color: #fff; background: hsla(0,0%,100%,.06); }
.ep-grid {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px;
}
.ep-cell {
  position: relative; height: 40px;
  display: grid; place-items: center;
  border-radius: 8px; background: hsla(0,0%,100%,.06); font-size: 14px; font-weight: 500;
}
.ep-cell.on {
  background: linear-gradient(106.86deg, #ff7e0d .27%, #ff9233); color: #fff;
}
.ep-cell.locked { opacity: .55; }
.ep-cell .lock {
  position: absolute; top: 4px; left: 5px; width: 9px; height: 9px;
  border: 1.4px solid hsla(0,0%,100%,.55); border-radius: 2px;
}
.ep-cell .playing {
  position: absolute; right: 6px; bottom: 6px; width: 10px; height: 10px;
  background: currentColor;
  clip-path: polygon(0 20%, 25% 20%, 25% 80%, 0 80%, 0 20%, 40% 0, 40% 100%, 55% 100%, 55% 0, 70% 20%, 85% 20%, 85% 80%, 100% 80%, 100% 20%, 70% 20%);
  opacity: .9;
}
.play-rec { margin-top: 22px; }
.play-rec-hd { font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 10px; }
.play-rec-rail {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
}
.play-rec-rail::-webkit-scrollbar { display: none; }
.play-rec-card {
  flex: 0 0 72px; width: 72px; height: 96px; border-radius: 8px; overflow: hidden; background: var(--hg-soft);
}
.play-rec-card img { width: 100%; height: 100%; object-fit: cover; }

.play-page .float-dl { display: none; }
body:has(.play-page) .float-dl { display: none; }

/* ===== Detail legacy ===== */
.detail-hero { padding: 96px 0 28px; }
.detail-grid { display: grid; grid-template-columns: 220px 1fr; gap: 28px; }
.detail-cover {
  border-radius: 14px; overflow: hidden; aspect-ratio: 3/4; background: var(--hg-soft);
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
}
.detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.detail-title { margin: 0 0 10px; font-size: 32px; font-weight: 700; color: #fff; }
.detail-sub { color: var(--hg-text-2); margin-bottom: 14px; }
.detail-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 18px 0; }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 20px; border-radius: 12px;
  border: 1px solid hsla(0,0%,100%,.12); color: #fff; background: transparent; font-weight: 500;
}
.btn-ghost:hover { background: hsla(0,0%,100%,.06); }
.detail-content { color: var(--hg-text-2); font-size: 14px; line-height: 1.8; max-width: 720px; }
.player-box {
  margin-top: 20px; background: #000; border-radius: 16px; overflow: hidden;
  aspect-ratio: 16/9; display: grid; place-items: center;
}
.player-box video, .player-box iframe { width: 100%; height: 100%; border: 0; }
.player-lock { text-align: center; padding: 40px 20px; color: #fff; }
.player-lock p { color: var(--hg-text-2); margin: 8px 0 18px; }
.ep-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.ep-list a {
  min-width: 64px; height: 36px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; background: var(--hg-soft); font-size: 13px; font-weight: 500;
}
.ep-list a.on { background: linear-gradient(106.86deg, #ff7e0d .27%, #ff9233); color: #fff; }
.ep-list a.locked { opacity: .45; }

.type-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 24px; }
.type-pills a {
  padding: 8px 14px; border-radius: 999px; background: var(--hg-soft);
  color: var(--hg-text-2); font-size: 14px; font-weight: 500;
}
.type-pills a.on { background: rgba(250,119,5,.2); color: var(--hg-orange); }
.pager { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.pager a, .pager span {
  min-width: 36px; height: 36px; padding: 0 10px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; background: var(--hg-soft); font-size: 14px;
}
.pager .current { background: linear-gradient(106.86deg, #ff7e0d .27%, #ff9233); color: #fff; font-weight: 700; }
.empty { padding: 80px 20px; text-align: center; color: var(--hg-text-2); font-size: 18px; }

/* Download page */
.dl-page {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px;
  align-items: center; padding: 110px 0 60px;
}
.dl-title { margin: 0 0 12px; font-size: 48px; font-weight: 700; color: #fff; }
.dl-lead { color: var(--hg-text-2); font-size: 16px; margin: 0 0 24px; }
.dl-card {
  background: var(--hg-panel-2); border-radius: 16px; padding: 28px; text-align: center;
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
}
.dl-card img.qr { width: 160px; height: 160px; margin: 12px auto; border-radius: 10px; background: #fff; padding: 8px; }

.detail-play-hint {
  margin: 12px 0 0; color: var(--hg-text-2); font-size: 13px; line-height: 1.5;
}

/* Download QR modal */
.dl-modal[hidden] { display: none !important; }
.dl-modal {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; padding: 24px;
}
.dl-modal-mask {
  position: absolute; inset: 0; background: rgba(0,0,0,.62);
  backdrop-filter: blur(2px);
}
.dl-modal-panel {
  position: relative; z-index: 1; width: min(400px, 100%);
  background: #1c1d1d; border: 1px solid hsla(0,0%,100%,.08);
  border-radius: 18px; padding: 28px 24px 22px; text-align: center;
  box-shadow: 0 24px 60px rgba(0,0,0,.55);
}
.dl-modal-close {
  position: absolute; top: 10px; right: 12px;
  width: 32px; height: 32px; border: 0; border-radius: 8px;
  background: transparent; color: hsla(0,0%,100%,.55); font-size: 22px; line-height: 1;
  cursor: pointer;
}
.dl-modal-close:hover { color: #fff; background: hsla(0,0%,100%,.06); }
.dl-modal-logo { margin: 0 auto 12px; width: 48px; height: 48px; }
.dl-modal-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 10px; }
.dl-modal-title { margin: 0 0 8px; font-size: 20px; font-weight: 700; color: #fff; }
.dl-modal-tip { margin: 0 0 18px; color: var(--hg-text-2); font-size: 13px; line-height: 1.6; }
.dl-modal-qr {
  width: 180px; height: 180px; margin: 0 auto 14px; padding: 8px;
  border-radius: 12px; background: #fff; overflow: hidden;
}
.dl-modal-qr img { width: 100%; height: 100%; object-fit: cover; }
.dl-modal-qr-empty {
  height: 100%; display: grid; place-items: center; padding: 12px;
  color: #888; font-size: 13px; line-height: 1.5; text-align: center;
}
.dl-modal-actions {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 8px;
}
.dl-modal-actions .btn-orange,
.dl-modal-actions .btn-ghost { min-width: 0; }

/* Play page becomes download gate */
.play-page-gate { padding: 40px 0 72px; }
.play-gate-card {
  display: grid; grid-template-columns: 220px 1fr; gap: 28px;
  background: var(--hg-panel-2); border-radius: 18px; padding: 28px;
  box-shadow: 0 18px 40px rgba(0,0,0,.3);
}
.play-gate-cover {
  width: 220px; aspect-ratio: 3/4; border-radius: 12px; overflow: hidden; background: #292827;
}
.play-gate-cover img { width: 100%; height: 100%; object-fit: cover; }
.play-gate-title { margin: 0 0 10px; font-size: 28px; font-weight: 700; color: #fff; line-height: 1.3; }
.play-gate-lead { margin: 0 0 10px; color: #fff; font-size: 15px; }
.play-gate-intro { margin: 0 0 18px; color: var(--hg-text-2); font-size: 13px; line-height: 1.7; }
.play-gate-qr-wrap { margin: 8px 0 20px; text-align: left; }
.play-gate-qr {
  width: 160px; height: 160px; border-radius: 10px; background: #fff; padding: 8px; margin-bottom: 10px;
}
.play-gate-qr-empty {
  width: 160px; height: 160px; display: grid; place-items: center; text-align: center;
  border-radius: 10px; background: #292827; color: var(--hg-text-2); font-size: 13px; padding: 12px; margin-bottom: 10px;
}
.play-gate-qr-wrap p { margin: 0; color: var(--hg-text-2); font-size: 13px; line-height: 1.5; max-width: 420px; }

/* Float side download */
.float-dl {
  position: fixed; right: 24px; top: 50%; transform: translateY(-50%);
  width: 168px; z-index: 40;
}
.float-dl-inner {
  background: var(--hg-panel-2); border-radius: 14px; padding: 16px; text-align: center;
  box-shadow: 0 16px 40px rgba(0,0,0,.4);
}
.float-dl-title { font-weight: 600; margin-bottom: 10px; color: #fff; }
.float-dl-qr {
  width: 120px; height: 120px; margin: 0 auto 10px; border-radius: 8px;
  overflow: hidden; background: #fff; padding: 6px;
}
.float-dl-qr img { width: 100%; height: 100%; object-fit: cover; }
.float-dl p { font-size: 12px; color: var(--hg-text-2); margin: 0 0 12px; line-height: 1.5; }
.float-dl .btn-orange { width: 100%; min-width: 0; height: 36px; font-size: 13px; box-shadow: none; }

/* Footer */
.site-footer {
  border-top: 1px solid hsla(0,0%,100%,.06);
  background: #0f1010; padding: 36px 0 48px; color: var(--hg-text-2);
}
.footer-inner { display: grid; gap: 14px; text-align: center; }
.footer-brand strong { display: block; color: #fff; font-size: 16px; margin-bottom: 4px; }
.footer-links { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.footer-links a:hover { color: var(--hg-orange); }
.footer-copy { font-size: 12px; opacity: .75; }

@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
  .float-dl { display: none; }
  .play-layout { grid-template-columns: 1fr; }
  .play-side { max-height: none; }
  .play-gate-card { grid-template-columns: 1fr; }
  .play-gate-cover { width: 160px; margin: 0 auto; }
  :root { --card-w: 160px; --cover-h: 220px; --card-h: 300px; }
}
@media (max-width: 860px) {
  .rank-layout, .detail-grid, .detail-landing-inner, .dl-page, .play-gate-card { grid-template-columns: 1fr; }
  .header-search { width: 160px; }
  .brand-name { display: none; }
  .nav > a, .nav-rank > a.trigger, .nav-dl .trigger { padding: 0 10px; font-size: 14px; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .hero-bg { opacity: .14; }
  .rank-side { position: static; }
  .scatter-layer { height: 240px; }
  .scatter-cover { width: 110px; height: 152px; }
  .scatter-card { width: 110px; }
  .scatter-title { width: 110px; font-size: 12px; }
  .play-stage { min-height: auto; }
  .play-player.is-portrait { height: min(70vh, 640px); }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .container { width: calc(100% - 32px); }
  .nav-dl, .header-search { display: none; }
  .hero-brand { font-size: 36px; }
  .ep-grid { grid-template-columns: repeat(5, 1fr); }
}
