:root {
  --bg: #101510;
  --panel: #182318;
  --accent: #22c55e;
  --accent2: #fb7185;
  --text: #fff7ed;
  --muted: #b9a99d;
  font-family: "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--bg); }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; object-fit: cover; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 4vw; background: rgba(12,10,10,.92); border-bottom: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(14px); }
.brand { font-size: 24px; font-weight: 900; color: var(--accent); white-space: nowrap; }
nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
nav a { padding: 9px 12px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; color: var(--muted); }
nav a.active, nav a:hover { color: #101010; background: var(--accent2); border-color: var(--accent2); }
.hero { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(240px, 360px) minmax(260px, .85fr); gap: 22px; padding: 42px 4vw 30px; background: radial-gradient(circle at 10% 12%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 34%), var(--bg); }
.hero-copy { display: flex; flex-direction: column; justify-content: center; min-height: 540px; }
.hero-copy span, .section-head span, .page-head span, .watch-info span { color: var(--accent2); font-weight: 900; }
h1 { margin: 14px 0; font-size: clamp(36px, 6vw, 78px); line-height: 1.02; letter-spacing: 0; }
p { color: var(--muted); line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-actions a { min-height: 46px; display: inline-flex; align-items: center; padding: 0 18px; border-radius: 8px; background: var(--accent); color: #111; font-weight: 900; }
.hero-actions a + a { background: transparent; color: var(--text); border: 1px solid rgba(255,255,255,.2); }
.hero-poster { position: relative; min-height: 520px; align-self: center; border-radius: 10px; overflow: hidden; background: var(--panel); box-shadow: 0 30px 80px rgba(0,0,0,.36); }
.hero-poster img { height: 100%; min-height: 520px; opacity: .9; }
.hero-poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 42%, rgba(0,0,0,.82)); }
.hero-poster strong, .hero-poster small { position: absolute; z-index: 1; left: 18px; right: 18px; }
.hero-poster strong { bottom: 58px; font-size: 28px; }
.hero-poster small { bottom: 24px; color: #ffd9c8; }
.rank-panel { padding: 20px; align-self: center; border: 1px solid rgba(255,255,255,.12); background: var(--panel); border-radius: 10px; }
.rank-panel h2 { margin: 0 0 10px; }
.rank-panel .line-item { grid-template-columns: 32px 54px 1fr 40px; min-height: 74px; background: transparent; border-color: rgba(255,255,255,.1); color: var(--text); }
.rank-panel .line-item img { width: 54px; height: 62px; }
.category-strip { display: grid; grid-template-columns: repeat(10, 1fr); border-block: 1px solid rgba(255,255,255,.12); background: var(--panel); }
.category-strip a { min-height: 70px; display: grid; place-items: center; border-right: 1px solid rgba(255,255,255,.1); font-weight: 900; color: var(--muted); }
.category-strip a:hover { color: #111; background: var(--accent2); }
.section, .page { padding: 42px 4vw; }
.section-head, .page-head { margin-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.12); padding-bottom: 14px; }
.section-head h2, .page-head h1 { margin: 6px 0 0; font-size: clamp(30px, 4vw, 54px); }
.grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.movie-card { position: relative; min-width: 0; }
.movie-card img { aspect-ratio: .72; border-radius: 9px; background: var(--panel); }
.movie-card span { position: absolute; left: 8px; top: 8px; max-width: calc(100% - 16px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 4px 7px; border-radius: 6px; background: var(--accent); color: #111; font-size: 12px; font-weight: 900; }
.movie-card strong { display: block; margin-top: 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
small { display: block; margin-top: 4px; color: var(--muted); }
.archive-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.category-page { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.category-page .page-head { grid-column: 1 / -1; }
.category-box { padding: 18px; background: var(--panel); border: 1px solid rgba(255,255,255,.12); border-radius: 10px; }
.category-box h2 { margin: 0 0 12px; }
.line-item { display: grid; grid-template-columns: 68px minmax(0,1fr) 42px; gap: 12px; align-items: center; min-height: 92px; padding: 10px; margin-bottom: 8px; border: 1px solid rgba(255,255,255,.12); color: var(--text); background: rgba(255,255,255,.035); border-radius: 9px; }
.line-item b { color: var(--accent2); font-size: 22px; }
.line-item img { width: 68px; height: 78px; border-radius: 7px; }
.line-item strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line-item small { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.line-item em { color: var(--accent); font-style: normal; font-weight: 900; }
.ranking-list .line-item { grid-template-columns: 46px 74px minmax(0,1fr) 48px; }
.watch-page { padding-bottom: 40px; }
.watch-hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr); gap: 22px; padding: 34px 4vw; }
.player-wrap { background: #000; border-radius: 10px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); }
.player { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.watch-info { padding: 24px; background: var(--panel); border-radius: 10px; border: 1px solid rgba(255,255,255,.12); }
.watch-info h1 { font-size: clamp(30px, 4vw, 52px); }
.watch-info ul { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.watch-info li { padding: 7px 10px; border-radius: 999px; background: rgba(255,255,255,.08); color: var(--text); }
.related-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.footer { display: grid; grid-template-columns: 1.4fr .8fr 1fr; gap: 24px; padding: 34px 4vw; background: #080707; border-top: 1px solid rgba(255,255,255,.12); }
.footer h2, .footer h3 { color: var(--text); }
.footer a { display: block; margin: 8px 0; color: var(--muted); }
@media (max-width: 1180px) { .hero, .watch-hero { grid-template-columns: 1fr; } .grid, .archive-grid, .related-grid { grid-template-columns: repeat(4, 1fr); } .category-strip, .footer { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .topbar { position: static; align-items: flex-start; flex-direction: column; } nav { justify-content: flex-start; } .hero, .section, .page, .watch-hero { padding: 26px 16px; } .grid, .archive-grid, .related-grid, .category-page, .category-strip, .footer { grid-template-columns: 1fr; } .hero-poster, .hero-poster img { min-height: 380px; } h1 { font-size: 36px; } }
