:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-strong: rgba(15, 23, 42, 0.94);
  --line: rgba(148, 163, 184, 0.18);
  --line-strong: rgba(245, 158, 11, 0.32);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --gold: #f59e0b;
  --gold-light: #fde68a;
  --red: #ef4444;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 0%, rgba(245, 158, 11, 0.16), transparent 32rem),
    radial-gradient(circle at 88% 16%, rgba(124, 58, 237, 0.16), transparent 34rem),
    linear-gradient(180deg, #020617 0%, #0f172a 52%, #020617 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

img {
  max-width: 100%;
  display: block;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.94), rgba(2, 6, 23, 0.96));
  backdrop-filter: blur(18px);
}

.header-inner,
.footer-inner,
.main-wrap,
.hero-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #111827;
  background: radial-gradient(circle at 30% 30%, #fff7ed, #f59e0b 54%, #b45309 100%);
  box-shadow: 0 0 28px rgba(245, 158, 11, 0.36);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.08;
}

.brand-text strong {
  font-size: 21px;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #fde68a, #fff7ed, #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

.desktop-nav a,
.nav-menu button {
  color: #cbd5e1;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 650;
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.nav-menu button:hover {
  color: var(--gold-light);
}

.nav-menu {
  position: relative;
}

.nav-menu-panel {
  position: absolute;
  top: calc(100% + 18px);
  right: 0;
  width: 180px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.98);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: 0.2s ease;
}

.nav-menu:hover .nav-menu-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-menu-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
}

.nav-menu-panel a:hover {
  background: rgba(245, 158, 11, 0.12);
}

.header-search {
  width: 270px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
}

.header-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  padding: 0 10px;
}

.header-search input::placeholder {
  color: var(--muted-2);
}

.header-search button,
.primary-btn,
.secondary-btn,
.filter-panel button,
.play-overlay {
  border: 0;
  cursor: pointer;
}

.header-search button,
.primary-btn {
  border-radius: 999px;
  color: #111827;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.22);
}

.header-search button {
  padding: 8px 14px;
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: rgba(15, 23, 42, 0.78);
  padding: 8px 11px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

.mobile-nav a {
  display: block;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: #cbd5e1;
}

.mobile-nav.open {
  display: block;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  padding: 52px 0 44px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.54), rgba(2, 6, 23, 0.9)),
    var(--hero-image, none) center / cover no-repeat;
  opacity: 0.82;
  transform: scale(1.04);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  background: linear-gradient(0deg, #020617, transparent);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 34px;
  align-items: center;
}

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

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold-light);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.detail-title h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero h1 span,
.page-hero h1 span {
  display: block;
  background: linear-gradient(90deg, #fde68a, #fff7ed, #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-summary {
  margin: 22px 0 26px;
  max-width: 620px;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.85;
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 22px 0;
}

.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
}

.secondary-btn {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--gold-light);
  background: rgba(15, 23, 42, 0.7);
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.tag-row span,
.meta-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 999px;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.1);
  padding: 6px 10px;
  font-size: 13px;
}

.hero-rail {
  display: grid;
  gap: 16px;
}

.hero-slide {
  display: none;
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.74);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-slide.active {
  display: block;
  animation: fadeUp 0.38s ease both;
}

.hero-poster {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.08));
}

.hero-card-content {
  padding: 24px;
}

.hero-card-content h2 {
  margin: 0 0 10px;
  font-size: 25px;
}

.hero-card-content p {
  margin: 0 0 18px;
  color: #cbd5e1;
  line-height: 1.75;
}

.hero-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.hero-dots button {
  width: 28px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(203, 213, 225, 0.32);
  cursor: pointer;
}

.hero-dots button.active {
  background: var(--gold);
}

.main-wrap {
  padding: 46px 0 70px;
}

.section-block {
  margin-top: 54px;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 40px);
}

.section-heading p:not(.eyebrow) {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold-light);
  font-weight: 800;
}

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

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

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

.movie-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.62);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 158, 11, 0.42);
  box-shadow: 0 24px 70px rgba(245, 158, 11, 0.12);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.9);
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.8), transparent 60%);
}

.play-dot {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fbbf24;
  font-size: 48px;
  opacity: 0;
  transform: scale(0.86);
  transition: 0.25s ease;
}

.movie-card:hover .play-dot {
  opacity: 1;
  transform: scale(1);
}

.year-pill,
.rank-badge {
  position: absolute;
  top: 12px;
  z-index: 2;
  border-radius: 999px;
  color: white;
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(10px);
  font-weight: 800;
  font-size: 12px;
}

.year-pill {
  right: 12px;
  padding: 6px 10px;
}

.rank-badge {
  left: 12px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: var(--gold-light);
}

.card-body {
  padding: 15px;
}

.card-body h2 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.35;
}

.card-body h2 a:hover {
  color: var(--gold-light);
}

.card-line {
  margin: 0 0 12px;
  min-height: 44px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.card-meta,
.detail-meta,
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted-2);
  font-size: 13px;
}

.card-meta span:not(:last-child)::after,
.detail-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 8px;
  color: rgba(148, 163, 184, 0.5);
}

.tag-row {
  margin-top: 12px;
}

.wide-card {
  display: grid;
  grid-template-columns: 145px 1fr;
  align-items: stretch;
}

.wide-card .poster-link {
  height: 100%;
  aspect-ratio: auto;
}

.wide-card .card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 166px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(140deg, rgba(245, 158, 11, 0.15), transparent 46%),
    rgba(15, 23, 42, 0.72);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.42);
}

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

.category-tile p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.category-tile span {
  position: absolute;
  right: 18px;
  bottom: 14px;
  color: rgba(245, 158, 11, 0.45);
  font-size: 42px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 62px 0 34px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 18% 0%, rgba(245, 158, 11, 0.15), transparent 32rem),
    linear-gradient(180deg, rgba(15, 23, 42, 0.62), rgba(2, 6, 23, 0));
}

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

.page-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.85;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 180px 130px;
  gap: 12px;
  margin-bottom: 24px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.72);
}

.filter-panel input,
.filter-panel select {
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 16px;
  outline: 0;
  color: var(--text);
  background: rgba(2, 6, 23, 0.48);
  padding: 13px 14px;
}

.filter-panel button {
  border-radius: 16px;
  color: #111827;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  font-weight: 900;
}

.no-results {
  display: none;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--muted);
  background: rgba(15, 23, 42, 0.68);
  text-align: center;
}

.detail-hero {
  padding: 42px 0 30px;
}

.detail-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 32px;
  align-items: start;
}

.detail-poster {
  position: sticky;
  top: 96px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: var(--shadow);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.detail-title {
  padding: 10px 0 0;
}

.breadcrumb {
  margin-bottom: 18px;
}

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

.detail-title h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.detail-title .lead {
  margin: 22px 0;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.85;
}

.detail-meta {
  margin: 18px 0;
  font-size: 15px;
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 28px;
  background: #000;
  box-shadow: var(--shadow);
}

.player-shell video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--gold-light);
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.54), rgba(2, 6, 23, 0.22));
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.play-overlay span {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #111827;
  background: linear-gradient(135deg, #fff7ed, #f59e0b);
  font-size: 34px;
  box-shadow: 0 0 48px rgba(245, 158, 11, 0.4);
}

.player-shell.is-playing .play-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.content-panel {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: 1fr 0.7fr;
  gap: 24px;
}

.article-box,
.side-box {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.66);
  padding: 24px;
}

.article-box h2,
.side-box h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.article-box p {
  margin: 0 0 18px;
  color: #cbd5e1;
  line-height: 1.9;
}

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

.side-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.34);
}

.side-item img {
  width: 72px;
  height: 98px;
  border-radius: 12px;
  object-fit: cover;
}

.side-item strong {
  display: block;
  margin-bottom: 6px;
}

.side-item span {
  color: var(--muted);
  font-size: 13px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.72), rgba(2, 6, 23, 0.98));
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding: 44px 0;
}

.footer-about p {
  max-width: 520px;
  color: var(--muted);
  line-height: 1.8;
}

.footer-links h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

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

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

.footer-bottom {
  padding: 18px 16px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  text-align: center;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .movie-grid,
  .category-tile-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

@media (max-width: 920px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .mobile-toggle {
    display: inline-flex;
  }

  .hero-inner,
  .detail-grid,
  .content-panel,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 38px;
  }

  .detail-poster {
    position: relative;
    top: auto;
    max-width: 420px;
  }

  .movie-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .header-inner {
    height: 66px;
  }

  .brand-text strong {
    font-size: 18px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 40px;
  }

  .movie-grid,
  .movie-grid.compact,
  .category-tile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
  }

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

  .wide-card {
    grid-template-columns: 108px 1fr;
  }

  .card-body {
    padding: 12px;
  }

  .card-body h2 {
    font-size: 15px;
  }

  .card-line {
    min-height: 0;
    font-size: 13px;
  }

  .play-overlay span {
    width: 72px;
    height: 72px;
    font-size: 26px;
  }
}
