:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-strong: rgba(15, 23, 42, 0.95);
  --line: rgba(250, 204, 21, 0.16);
  --line-soft: rgba(148, 163, 184, 0.16);
  --text: #f8fafc;
  --muted: #94a3b8;
  --gold: #facc15;
  --gold-strong: #f59e0b;
  --rose: #fb7185;
  --green: #34d399;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(250, 204, 21, 0.18), transparent 28rem),
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.14), transparent 24rem),
    linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

img {
  display: block;
}

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

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

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.logo-mark {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--gold), var(--gold-strong));
  color: #0f172a;
  box-shadow: 0 20px 50px rgba(250, 204, 21, 0.28);
}

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

.nav-link,
.mobile-nav a {
  color: #cbd5e1;
  padding: 10px 14px;
  border-radius: 999px;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-nav a:hover {
  color: #111827;
  background: linear-gradient(135deg, var(--gold), var(--gold-strong));
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.menu-button span {
  width: 18px;
  height: 2px;
  background: #ffffff;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  background: var(--panel-strong);
}

.mobile-nav.is-open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.hero {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background: radial-gradient(circle at 20% 20%, rgba(250, 204, 21, 0.18), transparent 32rem);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.75s ease, transform 1.4s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.05);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.82) 42%, rgba(2, 6, 23, 0.28) 100%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0) 38%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  align-items: center;
  min-height: 720px;
  padding: 96px 0 72px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(250, 204, 21, 0.11);
  color: #fde68a;
  font-size: 14px;
  font-weight: 700;
}

.hero h1,
.page-hero h1,
.detail-title h1 {
  font-size: clamp(40px, 7vw, 78px);
  line-height: 0.96;
  margin: 0 0 22px;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.hero h1 span,
.accent-text {
  color: var(--gold);
}

.hero-text,
.page-lead,
.detail-summary {
  max-width: 760px;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.9;
}

.hero-meta,
.detail-meta,
.card-tags,
.filter-row,
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-meta span,
.detail-meta span,
.card-tags span,
.breadcrumbs a,
.breadcrumbs span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: rgba(15, 23, 42, 0.66);
  color: #cbd5e1;
  padding: 7px 10px;
  font-size: 13px;
}

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

.btn-primary,
.btn-secondary,
.filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-strong));
  color: #111827;
  box-shadow: 0 20px 45px rgba(245, 158, 11, 0.25);
}

.btn-secondary,
.filter-chip {
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.72);
}

.btn-primary:hover,
.btn-secondary:hover,
.filter-chip:hover,
.filter-chip.active {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(250, 204, 21, 0.18);
}

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

.hero-dot {
  width: 42px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  transition: background 0.25s ease, width 0.25s ease;
}

.hero-dot.active {
  width: 68px;
  background: var(--gold);
}

.section {
  padding: 72px 0;
}

.section.alt {
  background: rgba(15, 23, 42, 0.34);
}

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

.section-kicker {
  margin-bottom: 8px;
  color: var(--gold);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section h2,
.page-hero h2,
.detail-block h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  margin-top: 26px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.24);
}

.search-input {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 18px;
  padding: 0 18px;
  outline: none;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.78);
}

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

.grid-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.video-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.96));
  box-shadow: 0 24px 80px rgba(2, 6, 23, 0.25);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.video-card:hover {
  transform: translateY(-6px);
  border-color: rgba(250, 204, 21, 0.55);
  box-shadow: 0 30px 90px rgba(250, 204, 21, 0.12);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #0f172a;
}

.poster-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.video-card:hover img,
.category-card:hover img,
.rank-row:hover img {
  transform: scale(1.06);
}

.card-year,
.card-type {
  position: absolute;
  top: 12px;
  z-index: 2;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 900;
}

.card-year {
  left: 12px;
  color: #111827;
  background: var(--gold);
}

.card-type {
  right: 12px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(10px);
}

.card-content {
  padding: 18px;
}

.card-title {
  display: -webkit-box;
  min-height: 54px;
  margin-bottom: 8px;
  overflow: hidden;
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.5;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-title:hover {
  color: var(--gold);
}

.card-line {
  display: -webkit-box;
  min-height: 66px;
  margin-bottom: 14px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.card-tags span {
  padding: 5px 8px;
  font-size: 12px;
  color: #fde68a;
  border-color: rgba(250, 204, 21, 0.18);
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  padding: 24px;
  border: 1px solid var(--line-soft);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(250, 204, 21, 0.12), transparent),
    linear-gradient(180deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.96));
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: rgba(250, 204, 21, 0.56);
}

.category-icon {
  margin-bottom: 20px;
  font-size: 42px;
}

.category-card h2,
.category-card h3 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 950;
}

.category-card p {
  color: #cbd5e1;
  line-height: 1.7;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 62px 72px minmax(0, 1fr) 58px;
  align-items: center;
  gap: 16px;
  min-height: 94px;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.72);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.rank-row:hover {
  transform: translateX(6px);
  border-color: rgba(250, 204, 21, 0.5);
  background: rgba(30, 41, 59, 0.95);
}

.rank-index {
  display: inline-flex;
  justify-content: center;
  color: var(--gold);
  font-size: 24px;
  font-weight: 950;
}

.rank-row img {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.rank-main {
  display: grid;
  gap: 6px;
}

.rank-main strong {
  color: #ffffff;
  font-size: 17px;
}

.rank-main em {
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-score {
  color: #111827;
  background: var(--gold);
  border-radius: 999px;
  padding: 6px 10px;
  text-align: center;
  font-weight: 950;
}

.page-hero {
  padding: 90px 0 46px;
}

.page-hero-card {
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid var(--line-soft);
  border-radius: 34px;
  background:
    radial-gradient(circle at top right, rgba(250, 204, 21, 0.18), transparent 24rem),
    rgba(15, 23, 42, 0.72);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 30px;
  align-items: start;
}

.player-panel,
.detail-panel,
.side-panel {
  border: 1px solid var(--line-soft);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.76);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.24);
}

.player-panel {
  overflow: hidden;
}

.player-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-wrap video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.25), rgba(2, 6, 23, 0.74));
  transition: opacity 0.25s ease;
}

.player-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.play-button {
  width: 92px;
  height: 92px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), var(--gold-strong));
  color: #111827;
  font-size: 32px;
  font-weight: 950;
  box-shadow: 0 25px 70px rgba(250, 204, 21, 0.36);
  transition: transform 0.25s ease;
}

.play-button:hover {
  transform: scale(1.08);
}

.detail-title,
.detail-panel,
.side-panel {
  padding: 26px;
}

.detail-title h1 {
  margin-bottom: 20px;
}

.detail-block {
  margin-top: 22px;
}

.detail-block p {
  color: #cbd5e1;
  line-height: 1.95;
}

.detail-cover {
  width: 100%;
  border-radius: 22px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.related-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.related-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.36);
}

.related-item:hover {
  border-color: rgba(250, 204, 21, 0.5);
}

.related-item img {
  width: 72px;
  height: 92px;
  border-radius: 14px;
  object-fit: cover;
}

.related-item strong {
  display: block;
  color: #ffffff;
  line-height: 1.45;
}

.related-item span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.hidden-by-search {
  display: none !important;
}

.empty-state {
  display: none;
  padding: 34px;
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.72);
  text-align: center;
}

.empty-state.is-visible {
  display: block;
}

.site-footer {
  margin-top: 60px;
  padding: 52px 0;
  border-top: 1px solid var(--line-soft);
  background: rgba(2, 6, 23, 0.86);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
}

.footer-grid p,
.footer-links a {
  color: var(--muted);
  line-height: 1.8;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links strong {
  margin-bottom: 4px;
  color: #ffffff;
}

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

@media (max-width: 1024px) {
  .grid-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .detail-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: inline-flex;
  }

  .hero,
  .hero-content {
    min-height: 640px;
  }

  .hero h1,
  .page-hero h1,
  .detail-title h1 {
    letter-spacing: -0.04em;
  }

  .search-panel {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: grid;
  }

  .grid-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

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

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

  .rank-score {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .grid-cards {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    display: grid;
  }

  .btn-primary,
  .btn-secondary,
  .filter-chip {
    width: 100%;
  }
}
