:root {
  color-scheme: dark;
  font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
  --bg: #091617;
  --panel: #102324;
  --panel2: #173033;
  --ink: #f1f7f2;
  --muted: #a9bbb6;
  --line: rgba(241, 247, 242, 0.13);
  --sea: #3fd1bd;
  --lime: #b8df65;
  --coral: #f06d56;
  --blue: #6aa7ff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(63, 209, 189, 0.12), transparent 360px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px) 0 0 / 80px 80px,
    var(--bg);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1,h2,h3,p { margin-top: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  min-height: 72px;
  padding: 0 clamp(16px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(9, 22, 23, 0.9);
  backdrop-filter: blur(18px);
}
.brand { display: grid; gap: 2px; font-weight: 950; white-space: nowrap; }
.brand span { color: var(--sea); font-size: 1.16rem; }
.brand small { color: var(--muted); font-size: 0.72rem; text-transform: uppercase; }
.nav { display: flex; justify-content: center; gap: clamp(10px,2vw,26px); overflow-x: auto; color: var(--muted); font-weight: 850; font-size: 0.9rem; white-space: nowrap; }
.nav a { padding: 26px 0 23px; border-bottom: 2px solid transparent; }
.nav a.active,.nav a:hover { color: var(--ink); border-color: var(--sea); }
.header-cta { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border: 1px solid rgba(184,223,101,.42); border-radius: 999px; color: var(--lime); font-weight: 950; background: rgba(184,223,101,.08); white-space: nowrap; }

.portal-hero {
  width: min(1360px, calc(100% - 32px));
  display: grid;
  grid-template-columns: minmax(300px, .95fr) minmax(260px, .68fr) minmax(320px, .9fr);
  gap: 16px;
  margin: 26px auto 0;
}
.hero-copy,.hero-display,.hero-list,.ranking,.filters,.detail-copy {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255,255,255,.07), rgba(255,255,255,.025));
}
.hero-copy { min-height: 430px; display: grid; align-content: center; padding: clamp(24px,4vw,46px); }
.hero-display { min-height: 430px; overflow: hidden; }
.hero-display a,.hero-display img { width: 100%; height: 100%; }
.hero-display img { object-fit: cover; }
.hero-list { padding: 14px; }
.eyebrow { margin: 0 0 10px; color: var(--lime); font-size: .74rem; font-weight: 950; text-transform: uppercase; letter-spacing: 0; }
h1 { margin-bottom: 14px; font-size: clamp(2.1rem, 4.9vw, 4.7rem); line-height: 1.04; letter-spacing: 0; }
h2 { margin-bottom: 0; font-size: clamp(1.35rem,2.5vw,2.2rem); line-height: 1.15; }
.hero-copy p:not(.eyebrow),.page-title p,.wide p,.wide span,.card-body p,.footer-grid p,.detail-copy p,.summary { color: var(--muted); line-height: 1.72; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); font-weight: 950; }
.button.primary { color: #061313; background: var(--sea); border-color: var(--sea); }
.button.secondary { background: rgba(255,255,255,.06); }

.wide-list,#heroList { display: grid; gap: 10px; }
.wide a { display: grid; grid-template-columns: 84px 1fr; gap: 12px; align-items: center; min-height: 118px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.04); }
.wide-cover { aspect-ratio: 2/3; border-radius: 7px; overflow: hidden; background: var(--panel2); }
.wide-cover img { width: 100%; height: 100%; object-fit: cover; }
.wide strong { display: block; margin-bottom: 4px; }
.wide p,.wide span { margin: 0; font-size: .82rem; }

.channel-grid {
  width: min(1360px, calc(100% - 32px));
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 12px;
  margin: 16px auto 0;
}
.channel-grid a { min-height: 96px; display: grid; align-content: center; gap: 6px; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.04); }
.channel-grid strong { color: var(--sea); }
.channel-grid span { color: var(--muted); font-size: .86rem; }

.section,.page-title { width: min(1360px, calc(100% - 32px)); margin: 0 auto; padding: 50px 0 0; }
.section.flush { padding-top: 26px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-head a { color: var(--lime); font-weight: 950; }
.split { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(300px,.8fr); gap: 18px; }
.ranking { padding: 20px; align-self: start; }
.ranking ol { display: grid; gap: 10px; padding: 0; margin: 18px 0 0; list-style: none; counter-reset: r; }
.ranking li { counter-increment: r; }
.ranking a { display: grid; grid-template-columns: 38px 1fr auto; gap: 10px; align-items: center; min-height: 54px; padding: 10px; border-radius: 8px; background: rgba(255,255,255,.05); }
.ranking a::before { content: counter(r, decimal-leading-zero); color: var(--coral); font-weight: 950; }
.ranking span { color: var(--sea); font-weight: 950; }

.poster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.card { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: rgba(255,255,255,.045); }
.card a { display: grid; height: 100%; }
.cover { position: relative; aspect-ratio: 2/3; overflow: hidden; background: var(--panel2); }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover span { position: absolute; z-index: 1; left: 9px; top: 9px; padding: 4px 8px; border-radius: 999px; color: #061313; background: var(--lime); font-size: .7rem; font-weight: 950; }
.card-body { display: grid; gap: 7px; padding: 12px; }
.card-body h3 { margin-bottom: 0; font-size: .98rem; line-height: 1.32; }
.card-body p { margin: 0; font-size: .78rem; }
.meta,.tags { display: flex; flex-wrap: wrap; gap: 6px; color: var(--muted); font-size: .76rem; }
.meta b { color: var(--sea); }
.tags em,.count { padding: 4px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-style: normal; background: rgba(255,255,255,.04); }

.page-title { padding-top: 44px; }
.page-title h1 { margin-bottom: 12px; }
.page-title p { max-width: 760px; }
.filters { width: min(1360px, calc(100% - 32px)); display: grid; grid-template-columns: 1.2fr .65fr .65fr .65fr; gap: 12px; margin: 22px auto 0; padding: 14px; }
.filters label { display: grid; gap: 7px; color: var(--muted); font-size: .82rem; font-weight: 850; }
input,select { width: 100%; min-height: 42px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #0d1d1e; padding: 0 12px; font: inherit; }

.detail { width: min(1180px, calc(100% - 32px)); display: grid; grid-template-columns: minmax(230px,330px) 1fr; gap: 20px; margin: 30px auto 0; }
.detail-cover { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--panel2); }
.detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.detail-copy { display: grid; align-content: center; padding: clamp(22px,4vw,44px); }
.big { margin: 6px 0 18px; }
.big span,.big b { padding: 5px 9px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.045); }
.player { position: relative; width: min(1180px, calc(100% - 32px)); min-height: 340px; display: grid; place-items: center; margin: 22px auto 0; border: 1px solid var(--line); border-radius: 8px; background-size: cover; background-position: center; overflow: hidden; }
.player::after { content: ""; position: absolute; inset: 0; background: rgba(5,12,13,.62); }
.player span { position: relative; z-index: 1; width: 76px; height: 76px; border-radius: 50%; background: var(--sea); }
.player span::before { content: ""; position: absolute; left: 31px; top: 23px; border-top: 15px solid transparent; border-bottom: 15px solid transparent; border-left: 24px solid #051010; }

.site-footer { margin-top: 60px; padding: 36px clamp(16px,4vw,56px) 20px; background: #061011; border-top: 1px solid var(--line); }
.footer-grid { width: min(1360px,100%); display: grid; grid-template-columns: minmax(260px,1.25fr) repeat(3,minmax(170px,.8fr)); gap: 26px; margin: 0 auto; }
.footer-grid strong { display: block; margin-bottom: 9px; color: var(--sea); }
.footer-grid nav { display: grid; align-content: start; gap: 9px; color: var(--muted); }
.footer-bottom { width: min(1360px,100%); display: flex; justify-content: space-between; gap: 16px; margin: 26px auto 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; }

@media (max-width: 1060px) {
  .site-header,.portal-hero,.split,.filters,.detail,.footer-grid { grid-template-columns: 1fr; }
  .nav { justify-content: flex-start; }
  .header-cta { justify-self: start; margin-bottom: 12px; }
  .channel-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 580px) {
  .poster-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .channel-grid { grid-template-columns: 1fr; }
  .wide a { grid-template-columns: 72px 1fr; }
  .section-head,.footer-bottom { align-items: flex-start; flex-direction: column; }
}
