:root {
  --bg: #030712;
  --panel: rgba(17, 24, 39, .86);
  --line: rgba(148, 163, 184, .18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --accent: #f59e0b;
  --shadow: 0 28px 90px rgba(0, 0, 0, .45);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: radial-gradient(circle at 18% 5%, rgba(245, 158, 11, .14), transparent 30%), linear-gradient(180deg, #020617, #111827 48%, #030712);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(17, 24, 39, .94); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.header-inner { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 38px; height: 38px; border-radius: 16px; display: grid; place-items: center; background: rgba(245, 158, 11, .16); box-shadow: 0 0 28px rgba(245, 158, 11, .22); }
.brand-mark span { width: 0; height: 0; margin-left: 3px; border-top: 8px solid transparent; border-bottom: 8px solid transparent; border-left: 13px solid var(--accent); }
.brand-text { display: grid; }
.brand-text strong { font-size: 20px; line-height: 1.1; }
.brand-text small { color: var(--muted); font-size: 12px; margin-top: 2px; }
.desktop-nav { display: flex; align-items: center; gap: 8px; }
.desktop-nav a, .mobile-nav a { color: #d1d5db; border-radius: 12px; padding: 9px 14px; font-size: 14px; font-weight: 700; transition: .22s ease; }
.desktop-nav a:hover, .mobile-nav a:hover { color: #fff; background: rgba(245, 158, 11, .16); transform: translateY(-1px); }
.menu-toggle { display: none; width: 42px; height: 42px; border: 0; border-radius: 12px; background: rgba(31, 41, 55, .78); align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.menu-toggle span { width: 20px; height: 2px; background: #e5e7eb; border-radius: 2px; }
.mobile-nav { display: none; border-top: 1px solid var(--line); padding: 10px 16px 16px; }
.mobile-nav.is-open { display: grid; gap: 6px; }
.hero-shell { position: relative; height: 640px; overflow: hidden; margin-bottom: 48px; background: #020617; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 900ms ease; pointer-events: none; }
.hero-slide.is-active { opacity: 1; pointer-events: auto; }
.hero-bg { width: 100%; height: 100%; object-fit: cover; opacity: .72; }
.hero-cover { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.92), rgba(0,0,0,.68) 45%, rgba(0,0,0,.12)); }
.hero-bottom { position: absolute; inset: 0; background: linear-gradient(0deg, #030712, transparent 45%); }
.hero-content { position: absolute; inset: 0; display: flex; align-items: center; }
.hero-copy { width: min(680px, 100%); padding-top: 36px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 900; letter-spacing: .08em; font-size: 14px; margin-bottom: 16px; }
.eyebrow::before { content: ""; width: 9px; height: 9px; border-radius: 999px; background: var(--accent); box-shadow: 0 0 18px rgba(245, 158, 11, .8); }
.hero-copy h1, .page-hero h1, .detail-copy h1 { margin: 0; font-weight: 900; letter-spacing: -.04em; }
.hero-copy h1 { font-size: clamp(42px, 7vw, 76px); line-height: .98; }
.hero-copy p, .page-hero p, .detail-copy p { color: #d1d5db; line-height: 1.8; }
.hero-copy p { font-size: clamp(16px, 2vw, 20px); margin: 24px 0; max-width: 650px; }
.hero-meta, .detail-meta, .tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.hero-meta span, .detail-meta span, .tag-row span { border-radius: 999px; padding: 7px 12px; background: rgba(17, 24, 39, .78); border: 1px solid var(--line); color: #e5e7eb; font-size: 13px; font-weight: 800; backdrop-filter: blur(12px); }
.hero-meta span:first-child { background: var(--accent); color: #111827; }
.primary-btn, .ghost-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 16px; padding: 0 24px; font-weight: 900; transition: .24s ease; }
.primary-btn { background: var(--accent); color: #111827; box-shadow: 0 20px 38px rgba(245, 158, 11, .26); }
.primary-btn:hover, .ghost-btn:hover { transform: translateY(-2px) scale(1.02); }
.ghost-btn { color: #f8fafc; border: 1px solid rgba(255,255,255,.24); background: rgba(0,0,0,.26); backdrop-filter: blur(10px); margin-left: 12px; }
.hero-arrow { position: absolute; top: 50%; width: 48px; height: 48px; border: 0; border-radius: 999px; background: rgba(0,0,0,.52); color: white; font-size: 42px; line-height: 1; display: grid; place-items: center; cursor: pointer; z-index: 4; backdrop-filter: blur(10px); }
.hero-prev { left: 22px; }
.hero-next { right: 22px; }
.hero-arrow:hover { background: rgba(245, 158, 11, .82); }
.hero-dots { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 4; }
.hero-dots button { width: 9px; height: 9px; border: 0; border-radius: 999px; padding: 0; background: rgba(255,255,255,.5); transition: .24s ease; }
.hero-dots button.is-active { width: 34px; background: var(--accent); }
.panel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 52px; }
.spotlight-panel, .page-hero, .text-panel, .detail-side { background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); }
.spotlight-panel { overflow: hidden; border-radius: 28px; min-height: 150px; padding: 28px; }
.spotlight-panel span { color: var(--accent); font-weight: 900; font-size: 14px; }
.spotlight-panel strong { display: block; font-size: 24px; margin: 10px 0 8px; }
.spotlight-panel small { color: #cbd5e1; }
.content-section { margin-bottom: 64px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.section-head h2 { margin: 0; font-size: clamp(24px, 3vw, 34px); letter-spacing: -.03em; }
.section-head p { margin: 8px 0 0; color: var(--muted); }
.section-head a { color: var(--accent); font-weight: 900; }
.movie-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.poster-link { display: block; height: 100%; border-radius: 20px; overflow: hidden; background: rgba(17,24,39,.86); border: 1px solid rgba(148,163,184,.12); transition: .24s ease; }
.poster-link:hover { transform: translateY(-6px); border-color: rgba(245, 158, 11, .65); box-shadow: 0 24px 50px rgba(0,0,0,.35); }
.poster-frame { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: #111827; }
.poster-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.poster-link:hover img { transform: scale(1.06); }
.poster-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.86), transparent 58%); }
.heat-badge { position: absolute; top: 10px; right: 10px; border-radius: 999px; padding: 5px 9px; background: rgba(0,0,0,.64); color: #fde68a; font-size: 12px; font-weight: 900; backdrop-filter: blur(10px); }
.play-hover { position: absolute; inset: 0; margin: auto; width: 54px; height: 54px; border-radius: 999px; display: grid; place-items: center; background: rgba(245,158,11,.9); opacity: 0; transform: scale(.8); transition: .24s ease; }
.poster-link:hover .play-hover { opacity: 1; transform: scale(1); }
.card-body { display: grid; gap: 7px; padding: 14px; }
.card-body strong { font-size: 15px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-body small { color: var(--muted); font-size: 12px; }
.card-body em { color: #cbd5e1; font-style: normal; font-size: 13px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.category-grid, .category-overview-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.category-tile, .category-overview-card a { position: relative; overflow: hidden; border-radius: 24px; min-height: 168px; display: flex; align-items: flex-end; background: #111827; border: 1px solid var(--line); }
.category-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .58; transition: .5s ease; }
.category-tile:hover img, .category-overview-card:hover img { transform: scale(1.05); opacity: .72; }
.category-tile span { position: relative; padding: 18px; width: 100%; background: linear-gradient(0deg, rgba(0,0,0,.86), transparent); }
.category-tile strong, .category-overview-card h2 { display: block; font-size: 21px; }
.category-tile small, .category-overview-card p { color: #d1d5db; line-height: 1.6; }
.page-main { padding: 34px 0 70px; }
.page-hero { overflow: hidden; border-radius: 32px; min-height: 260px; display: flex; align-items: center; padding: 42px; margin-bottom: 34px; background: radial-gradient(circle at 75% 18%, rgba(245,158,11,.2), transparent 30%), linear-gradient(135deg, rgba(31,41,55,.9), rgba(2,6,23,.92)); }
.page-hero h1 { font-size: clamp(34px, 5vw, 58px); }
.page-hero p { max-width: 720px; margin: 16px 0 0; }
.filter-bar { display: flex; gap: 12px; margin-top: 24px; max-width: 900px; }
.filter-bar input, .filter-bar select { min-height: 48px; border: 1px solid var(--line); border-radius: 16px; background: rgba(2,6,23,.68); color: #f8fafc; padding: 0 16px; outline: none; }
.filter-bar input { flex: 1; }
.page-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.category-collage { display: grid; grid-template-columns: repeat(2, 1fr); width: 100%; min-height: 210px; }
.category-collage img { width: 100%; height: 105px; object-fit: cover; opacity: .62; }
.category-overview-card a { display: block; min-height: auto; }
.category-overview-body { padding: 20px; }
.category-overview-body h2 { margin: 0 0 8px; }
.category-overview-body p { margin: 0 0 14px; }
.category-overview-body span { color: var(--accent); font-weight: 900; }
.rank-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 56px; }
.rank-card a { display: grid; grid-template-columns: 52px 92px 1fr; align-items: center; gap: 16px; min-height: 126px; padding: 14px; border-radius: 22px; background: rgba(17,24,39,.82); border: 1px solid var(--line); transition: .24s ease; }
.rank-card a:hover { transform: translateY(-3px); border-color: rgba(245,158,11,.7); }
.rank-index { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: rgba(245,158,11,.16); color: #fbbf24; font-weight: 900; font-size: 20px; }
.rank-card img { width: 92px; height: 118px; border-radius: 16px; object-fit: cover; }
.rank-body { min-width: 0; display: grid; gap: 7px; }
.rank-body strong { font-size: 18px; }
.rank-body small, .rank-body em { color: var(--muted); font-style: normal; line-height: 1.5; }
.detail-hero { position: relative; min-height: 620px; display: flex; align-items: end; overflow: hidden; background: #020617; }
.detail-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .44; filter: blur(2px); transform: scale(1.02); }
.detail-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.9), rgba(0,0,0,.52)), linear-gradient(0deg, #030712, transparent 50%); }
.detail-intro { position: relative; display: grid; grid-template-columns: 260px 1fr; align-items: end; gap: 34px; padding: 96px 0 56px; }
.detail-poster { border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,.16); }
.detail-poster img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; color: #cbd5e1; font-size: 14px; margin-bottom: 16px; }
.breadcrumb a { color: var(--accent); }
.breadcrumb em { font-style: normal; }
.detail-copy h1 { font-size: clamp(38px, 6vw, 74px); line-height: 1.02; }
.detail-copy p { max-width: 820px; font-size: 18px; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 28px; padding: 36px 0 76px; }
.player-box { position: relative; overflow: hidden; border-radius: 28px; background: #000; border: 1px solid var(--line); box-shadow: var(--shadow); margin-bottom: 24px; }
.player-box video { width: 100%; aspect-ratio: 16 / 9; display: block; background: #000; }
.player-start { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); min-width: 150px; min-height: 54px; border: 0; border-radius: 999px; background: rgba(245,158,11,.92); color: #111827; font-weight: 900; cursor: pointer; box-shadow: 0 22px 40px rgba(0,0,0,.34); }
.player-start.is-hidden { display: none; }
.text-panel, .detail-side { border-radius: 24px; padding: 24px; margin-bottom: 22px; }
.text-panel h2, .detail-side h2 { margin: 0 0 14px; font-size: 24px; }
.text-panel p { margin: 0; color: #d1d5db; line-height: 2; font-size: 16px; }
.info-panel dl { display: grid; grid-template-columns: 90px 1fr; gap: 12px 16px; margin: 0; }
.info-panel dt { color: var(--muted); }
.info-panel dd { margin: 0; }
.compact-list { display: grid; gap: 14px; }
.compact-card { display: grid; grid-template-columns: 78px 1fr; gap: 12px; align-items: center; padding: 10px; border-radius: 18px; background: rgba(2,6,23,.52); border: 1px solid rgba(148,163,184,.1); transition: .22s ease; }
.compact-card:hover { border-color: rgba(245,158,11,.6); transform: translateX(3px); }
.compact-card img { width: 78px; height: 96px; border-radius: 14px; object-fit: cover; }
.compact-card span { min-width: 0; display: grid; gap: 6px; }
.compact-card strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.compact-card small { color: var(--muted); line-height: 1.45; }
.site-footer { border-top: 1px solid var(--line); background: rgba(17,24,39,.82); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 34px; padding: 44px 0; }
.footer-logo { font-size: 22px; font-weight: 900; margin-bottom: 12px; }
.site-footer p { color: var(--muted); line-height: 1.8; margin: 0; }
.site-footer h2 { font-size: 16px; margin: 0 0 14px; }
.site-footer a { display: block; color: var(--muted); margin: 9px 0; font-size: 14px; }
.site-footer a:hover { color: var(--accent); }
.is-filter-hidden { display: none !important; }
@media (max-width: 1080px) {
  .movie-grid, .page-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .category-grid, .category-overview-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .detail-layout { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: flex; }
  .panel-grid, .rank-list, .footer-grid, .detail-intro { grid-template-columns: 1fr; }
  .detail-poster { width: 220px; }
  .movie-grid, .page-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .category-grid, .category-overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .container { width: min(100% - 22px, 1180px); }
  .hero-shell { height: 560px; }
  .hero-copy h1 { font-size: 38px; }
  .hero-actions, .filter-bar { display: grid; }
  .ghost-btn { margin-left: 0; }
  .movie-grid, .page-grid, .category-grid, .category-overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .page-hero { padding: 28px 18px; border-radius: 24px; }
  .detail-copy h1 { font-size: 34px; }
  .detail-copy p { font-size: 15px; }
  .text-panel, .detail-side { padding: 18px; }
  .info-panel dl { grid-template-columns: 1fr; }
}
