:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.82);
  --panel-strong: rgba(15, 23, 42, 0.96);
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --subtle: #94a3b8;
  --gold: #facc15;
  --orange: #f97316;
  --red: #ef4444;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  --radius: 24px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 0%, rgba(250, 204, 21, 0.16), transparent 28rem),
    radial-gradient(circle at 82% 12%, rgba(239, 68, 68, 0.12), transparent 32rem),
    linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
  color: var(--text);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

button,
input {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(2, 6, 23, 0.76);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(20px);
}

.nav-wrap {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  color: #111827;
  box-shadow: 0 12px 32px rgba(249, 115, 22, 0.28);
}

.brand-text,
.footer-brand {
  font-size: 22px;
  background: linear-gradient(90deg, var(--gold), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover {
  color: var(--gold);
  background: rgba(250, 204, 21, 0.09);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.8);
  color: var(--text);
  border-radius: 12px;
  padding: 8px 10px;
}

.hero {
  position: relative;
  min-height: 78vh;
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 1.2s ease;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98) 0%, rgba(2, 6, 23, 0.76) 42%, rgba(2, 6, 23, 0.5) 100%),
    var(--hero-image) center / cover no-repeat,
    radial-gradient(circle at 70% 20%, rgba(250, 204, 21, 0.24), transparent 28rem),
    linear-gradient(135deg, #111827, #020617);
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 0%, rgba(2, 6, 23, 0.94) 100%),
    radial-gradient(circle at 28% 50%, rgba(250, 204, 21, 0.14), transparent 28rem);
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 48px;
  align-items: center;
  padding: 88px 0 96px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow,
.page-hero span,
.section-title span {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  background: rgba(250, 204, 21, 0.14);
  color: var(--gold);
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero h1,
.page-hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero p,
.page-hero p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.75;
}

.hero-meta,
.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}

.hero-meta span {
  color: #e2e8f0;
  border-right: 1px solid rgba(226, 232, 240, 0.35);
  padding-right: 12px;
}

.hero-meta span:last-child {
  border-right: 0;
}

.hero-tags span,
.tag-row span {
  border: 1px solid rgba(250, 204, 21, 0.22);
  background: rgba(15, 23, 42, 0.62);
  color: #fde68a;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  background: linear-gradient(135deg, var(--gold), var(--orange));
  color: #111827;
  box-shadow: 0 16px 34px rgba(249, 115, 22, 0.26);
}

.btn.ghost {
  border: 1px solid rgba(250, 204, 21, 0.3);
  color: var(--gold);
  background: rgba(15, 23, 42, 0.56);
}

.hero-panel {
  padding: 24px;
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(250, 204, 21, 0.18);
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow);
}

.hero-panel h2 {
  margin: 0 0 16px;
  color: var(--gold);
}

.hero-panel a {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  color: #f8fafc;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.hero-panel a span {
  color: var(--subtle);
  white-space: nowrap;
}

.hero-dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 34px;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.hero-dots button {
  width: 34px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.35);
  cursor: pointer;
}

.hero-dots button.active {
  background: linear-gradient(90deg, var(--gold), var(--orange));
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: -40px;
  position: relative;
  z-index: 5;
}

.stats-strip div,
.category-tile,
.movie-card,
.hot-aside,
.rank-row,
.side-card,
.category-card-large,
.toolbar,
.page-hero,
.player-card,
.article-section {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.stats-strip div {
  border-radius: 22px;
  padding: 22px;
}

.stats-strip b {
  display: block;
  font-size: 32px;
  color: var(--gold);
}

.stats-strip span {
  color: var(--subtle);
}

.section-block {
  padding: 66px 0 0;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-title h2 {
  margin: 10px 0 0;
  font-size: clamp(26px, 4vw, 42px);
  letter-spacing: -0.04em;
}

.section-title a {
  color: var(--gold);
  font-weight: 800;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.category-tile {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  justify-content: space-between;
  border-radius: var(--radius);
  padding: 22px;
  overflow: hidden;
  position: relative;
  transition: transform 0.24s ease, border-color 0.24s ease;
}

.category-tile::before,
.category-cover::before {
  content: "";
  position: absolute;
  inset: auto -30px -60px auto;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(250, 204, 21, 0.35), transparent 70%);
}

.category-tile:hover,
.movie-card:hover,
.rank-row:hover,
.category-card-large:hover {
  transform: translateY(-4px);
  border-color: rgba(250, 204, 21, 0.35);
}

.category-tile span {
  color: var(--gold);
  font-weight: 900;
}

.category-tile h2 {
  margin: 0;
  font-size: 24px;
}

.category-tile p {
  color: var(--subtle);
  line-height: 1.65;
  margin: 12px 0;
}

.category-tile b {
  color: #fde68a;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  align-items: start;
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding-bottom: 40px;
}

.movie-grid.compact {
  grid-template-columns: repeat(3, 1fr);
}

.movie-card {
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.24s ease, border-color 0.24s ease;
}

.poster {
  display: block;
  position: relative;
  height: 280px;
  background:
    radial-gradient(circle at 30% 20%, rgba(250, 204, 21, 0.22), transparent 18rem),
    linear-gradient(135deg, #1e293b, #020617);
  overflow: hidden;
}

.poster img {
  transition: transform 0.36s ease;
}

.movie-card:hover .poster img {
  transform: scale(1.06);
}

.rank-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 32px;
  padding: 0 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  color: #111827;
  font-size: 14px;
}

.card-body {
  padding: 18px;
}

.meta-line {
  color: var(--subtle);
  font-size: 13px;
}

.movie-card h2,
.rank-info h2 {
  margin: 8px 0 8px;
  color: #fff;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card h2 a:hover,
.rank-info h2 a:hover,
.category-card-large h2 a:hover {
  color: var(--gold);
}

.movie-card p,
.rank-info p,
.article-section p,
.side-card dd,
.footer-grid p,
.category-card-large p {
  color: var(--muted);
  line-height: 1.7;
}

.hot-aside {
  position: sticky;
  top: 92px;
  border-radius: var(--radius);
  padding: 18px;
}

.section-title.small h2 {
  font-size: 26px;
}

.rank-row {
  display: grid;
  grid-template-columns: 52px 82px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border-radius: 18px;
  padding: 12px;
  margin-bottom: 12px;
  transition: transform 0.24s ease, border-color 0.24s ease;
}

.rank-num {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  color: #111827;
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold), var(--orange));
}

.rank-thumb {
  height: 58px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, #1f2937, #020617);
}

.rank-info h2 {
  font-size: 16px;
  margin: 0 0 4px;
}

.rank-info p {
  margin: 0 0 4px;
  font-size: 13px;
}

.hot-score {
  color: var(--gold);
  font-weight: 900;
  white-space: nowrap;
}

.page-main {
  padding-bottom: 70px;
}

.page-hero {
  border-radius: 32px;
  margin-top: 34px;
  padding: clamp(34px, 6vw, 72px);
  background:
    radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.16), transparent 28rem),
    rgba(15, 23, 42, 0.82);
}

.page-hero.slim {
  padding-bottom: 42px;
}

.page-actions {
  margin-top: 24px;
}

.toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  border-radius: 24px;
  padding: 18px;
  margin: 26px auto;
}

.toolbar label {
  display: grid;
  gap: 8px;
  flex: 1;
  color: var(--subtle);
  font-size: 13px;
}

.toolbar input {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.72);
  color: var(--text);
  border-radius: 16px;
  padding: 14px 16px;
  outline: none;
}

.toolbar input:focus {
  border-color: rgba(250, 204, 21, 0.45);
  box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.08);
}

.toolbar strong {
  color: var(--gold);
  white-space: nowrap;
}

.category-list-large {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.category-card-large {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  border-radius: var(--radius);
  padding: 18px;
  transition: transform 0.24s ease, border-color 0.24s ease;
}

.category-cover {
  position: relative;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 20px;
  padding: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 10%, rgba(250, 204, 21, 0.28), transparent 14rem),
    linear-gradient(135deg, #1f2937, #020617);
}

.category-cover span {
  color: var(--gold);
  font-size: 32px;
  font-weight: 900;
}

.category-cover strong {
  color: #fde68a;
}

.category-card-large h2 {
  margin: 0 0 10px;
  font-size: 28px;
}

.mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.mini-links a {
  border-radius: 999px;
  background: rgba(250, 204, 21, 0.1);
  color: #fde68a;
  padding: 8px 12px;
  font-size: 13px;
}

.rank-list {
  display: grid;
  gap: 12px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--subtle);
  padding: 24px 0 0;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--gold);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
  margin-top: 18px;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000;
  aspect-ratio: 16 / 9;
}

.video-player {
  display: block;
  width: 100%;
  height: 100%;
  background: #000;
  position: relative;
  z-index: 1;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  border: 0;
  color: #fff;
  cursor: pointer;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.24), rgba(2, 6, 23, 0.88)),
    var(--poster) center / cover no-repeat,
    linear-gradient(135deg, #111827, #000);
}

.player-cover span {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  color: #111827;
  font-size: 30px;
  box-shadow: 0 18px 50px rgba(249, 115, 22, 0.3);
}

.player-cover b {
  font-size: 18px;
}

.detail-head {
  padding: 30px 0 8px;
}

.detail-head h1 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
  margin: 14px 0;
  letter-spacing: -0.05em;
}

.detail-head p {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.75;
  margin: 0;
}

.tag-row.large span {
  font-size: 14px;
  padding: 8px 12px;
}

.article-section {
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 20px;
}

.article-section h2 {
  margin: 0 0 14px;
  color: var(--gold);
}

.article-section p {
  margin: 0 0 12px;
  font-size: 17px;
}

.review-box {
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.12), rgba(15, 23, 42, 0.82));
}

.detail-side {
  position: sticky;
  top: 92px;
}

.side-card {
  border-radius: var(--radius);
  padding: 16px;
}

.poster-side img {
  height: 420px;
  border-radius: 20px;
  background: linear-gradient(135deg, #1f2937, #020617);
}

.side-card dl {
  margin: 18px 0 0;
  display: grid;
  gap: 10px;
}

.side-card div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.side-card dt {
  color: var(--subtle);
}

.side-card dd {
  margin: 0;
  text-align: right;
}

.side-card a {
  color: var(--gold);
}

.site-footer {
  margin-top: 70px;
  padding: 46px 0 26px;
  background: rgba(2, 6, 23, 0.92);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 28px;
}

.footer-grid h2 {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 18px;
}

.footer-grid a:not(.footer-brand) {
  display: block;
  color: var(--muted);
  margin: 8px 0;
}

.footer-grid a:hover {
  color: var(--gold);
}

.copyright {
  width: min(1180px, calc(100% - 32px));
  margin: 30px auto 0;
  padding-top: 20px;
  color: var(--subtle);
  border-top: 1px solid var(--line);
}

[data-card][hidden] {
  display: none;
}

@media (max-width: 1080px) {
  .hero-content,
  .split-layout,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .hero-panel,
  .hot-aside,
  .detail-side {
    position: static;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .movie-grid,
  .movie-grid.compact {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    inset: 72px 11px auto 11px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(2, 6, 23, 0.96);
  }

  .main-nav.open {
    display: flex;
  }

  .hero {
    min-height: 860px;
  }

  .hero-content {
    padding: 54px 0 90px;
    gap: 26px;
  }

  .hero-panel {
    padding: 18px;
  }

  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
    margin-top: -24px;
  }

  .category-grid,
  .movie-grid,
  .movie-grid.compact,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .category-card-large {
    grid-template-columns: 1fr;
  }

  .poster {
    height: 340px;
  }

  .rank-row {
    grid-template-columns: 42px 70px minmax(0, 1fr);
  }

  .rank-row .hot-score {
    grid-column: 2 / -1;
  }

  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .poster-side img {
    height: 360px;
  }
}
