:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.82);
  --panel-strong: rgba(15, 23, 42, 0.96);
  --panel-soft: rgba(30, 41, 59, 0.64);
  --line: rgba(245, 158, 11, 0.24);
  --text: #fafafa;
  --muted: #cbd5e1;
  --subtle: #94a3b8;
  --gold: #f59e0b;
  --gold-light: #fcd34d;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.17), transparent 34rem),
    radial-gradient(circle at 75% 8rem, rgba(252, 211, 77, 0.08), transparent 26rem),
    linear-gradient(180deg, #020617 0%, #0f172a 54%, #020617 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.28), rgba(15, 23, 42, 0.88));
}

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(2, 6, 23, 0.86);
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  backdrop-filter: blur(18px);
}

.site-header__inner {
  width: min(1240px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.site-logo__mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #111827;
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3);
}

.site-logo__text,
.footer-logo {
  font-size: 20px;
  background: linear-gradient(90deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-nav,
.mobile-nav,
.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-link,
.footer-links a,
.section-link {
  color: var(--muted);
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.footer-links a:hover,
.section-link:hover {
  color: var(--gold-light);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.68);
  color: var(--text);
}

.mobile-menu-button span {
  width: 18px;
  height: 2px;
  display: block;
  margin: 4px auto;
  background: var(--text);
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 12px 0 18px;
  flex-wrap: wrap;
}

.mobile-nav.is-open {
  display: flex;
}

.hero {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.hero__slides,
.hero-slide,
.hero-slide__backdrop,
.hero-slide__shade {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.hero-slide__backdrop {
  background-size: cover;
  background-position: center;
  filter: blur(8px) saturate(1.12);
  transform: scale(1.08);
  opacity: 0.46;
}

.hero-slide__shade {
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98) 0%, rgba(2, 6, 23, 0.68) 48%, rgba(2, 6, 23, 0.18) 100%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.45) 0%, rgba(2, 6, 23, 0.92) 100%);
}

.hero-slide__inner {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 32px));
  min-height: 720px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.54fr);
  align-items: center;
  gap: 54px;
  padding: 58px 0 110px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: max-content;
  margin-bottom: 14px;
  padding: 6px 12px;
  border: 1px solid rgba(245, 158, 11, 0.32);
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.1);
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-slide h1,
.page-hero h1,
.ranking-hero h1,
.detail-copy h1 {
  font-size: clamp(42px, 8vw, 84px);
  line-height: 0.96;
  margin: 0 0 24px;
  letter-spacing: -0.06em;
}

.hero-slide__summary {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.8;
}

.hero-slide__meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0;
}

.hero-slide__meta span,
.detail-meta span,
.movie-card__tags span {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.7);
  color: var(--muted);
  font-size: 12px;
}

.hero-slide__actions,
.detail-copy .button,
.ranking-hero .button {
  margin-top: 28px;
}

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

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

.button--primary {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #111827;
  box-shadow: 0 18px 44px rgba(245, 158, 11, 0.25);
}

.button--ghost {
  margin-left: 12px;
  border: 1px solid rgba(245, 158, 11, 0.34);
  background: rgba(15, 23, 42, 0.68);
  color: var(--gold-light);
}

.hero-slide__poster {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.24);
  box-shadow: var(--shadow);
}

.hero-slide__poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(2, 6, 23, 0.75));
}

.hero__panel {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 34px;
  width: min(1240px, calc(100% - 32px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
}

.hero-search,
.inline-search {
  display: flex;
  gap: 10px;
  padding: 6px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.68);
}

.hero-search input,
.inline-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  padding: 0 14px;
}

.hero-search button {
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  background: var(--gold);
  color: #111827;
  font-weight: 800;
}

.hero-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-categories a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.7);
  color: var(--muted);
  font-size: 13px;
}

.hero-categories a:hover {
  color: var(--gold-light);
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(203, 213, 225, 0.35);
}

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

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

.section {
  padding: 70px 0;
}

.section--tight {
  padding-top: 54px;
}

.section--split {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 34px;
  align-items: start;
}

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

.section__head--simple {
  align-items: center;
}

.section__head h2,
.content-panel h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.category-grid,
.movie-grid,
.category-card-grid {
  display: grid;
  gap: 22px;
}

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

.category-tile,
.category-card,
.movie-card,
.ranking-item,
.content-panel {
  border: 1px solid rgba(148, 163, 184, 0.15);
  background: var(--panel);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
}

.category-tile {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: var(--radius);
}

.category-tile img {
  position: absolute;
  inset: 0;
  transition: transform 0.35s ease;
}

.category-tile:hover img {
  transform: scale(1.06);
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.2), rgba(2, 6, 23, 0.94));
}

.category-tile span {
  position: absolute;
  z-index: 2;
  left: 18px;
  right: 18px;
  bottom: 18px;
}

.category-tile strong,
.category-card h2,
.movie-card h3,
.ranking-item strong {
  display: block;
  color: var(--text);
}

.category-tile em,
.ranking-item em {
  display: block;
  margin-top: 6px;
  color: var(--subtle);
  font-style: normal;
  font-size: 13px;
  line-height: 1.55;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.42);
}

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

.movie-card__cover img {
  transition: transform 0.35s ease;
}

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

.movie-card__play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.92);
  color: #111827;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.movie-card__body {
  padding: 16px;
}

.movie-card__meta {
  min-height: 18px;
  color: var(--subtle);
  font-size: 12px;
}

.movie-card h3 {
  margin: 8px 0;
  font-size: 16px;
  line-height: 1.35;
}

.movie-card p {
  min-height: 60px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.movie-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

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

.ranking-list--large {
  margin-top: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ranking-item {
  display: grid;
  grid-template-columns: 52px 62px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.ranking-item:hover {
  transform: translateX(4px);
  border-color: rgba(245, 158, 11, 0.36);
}

.ranking-item__num {
  color: var(--gold-light);
  font-size: 22px;
  font-weight: 900;
  text-align: center;
}

.ranking-item img {
  width: 62px;
  height: 84px;
  border-radius: 12px;
}

.ranking-item__content {
  min-width: 0;
}

.page-hero,
.ranking-hero {
  position: relative;
  margin-top: 46px;
  padding: 72px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 34px;
  background:
    radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.18), transparent 28rem),
    rgba(15, 23, 42, 0.78);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.page-hero--small p,
.page-hero--category p,
.ranking-hero p {
  max-width: 800px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.inline-search {
  max-width: 620px;
  margin-top: 28px;
}

.inline-search input {
  min-height: 46px;
}

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

.category-card {
  overflow: hidden;
  border-radius: 28px;
}

.category-card__art {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 220px;
}

.category-card__body {
  padding: 26px;
}

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

.category-card p {
  color: var(--muted);
  line-height: 1.75;
}

.ranking-hero {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 42px;
  align-items: center;
}

.ranking-hero__poster {
  aspect-ratio: 2 / 3;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.28);
}

.detail-hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
}

.detail-hero__backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(8px) saturate(1.08);
  opacity: 0.38;
  transform: scale(1.08);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.88)),
    linear-gradient(180deg, rgba(2, 6, 23, 0.3), #020617 100%);
}

.detail-hero__inner {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 80px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--subtle);
  font-size: 14px;
  margin-bottom: 32px;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 42px;
  align-items: end;
}

.detail-poster {
  aspect-ratio: 2 / 3;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.3);
  box-shadow: var(--shadow);
}

.detail-one-line {
  max-width: 850px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.75;
}

.detail-section {
  padding-top: 48px;
  padding-bottom: 48px;
}

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

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

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 10px;
  border: 0;
  background: radial-gradient(circle, rgba(2, 6, 23, 0.1), rgba(2, 6, 23, 0.66));
  color: var(--text);
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-start span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #111827;
  font-size: 34px;
  box-shadow: 0 20px 60px rgba(245, 158, 11, 0.28);
}

.player-start strong {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.75);
}

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

.content-panel {
  padding: 34px;
  border-radius: 28px;
}

.content-panel h2 {
  margin: 0 0 14px;
  font-size: 30px;
}

.content-panel h2:not(:first-child) {
  margin-top: 32px;
}

.content-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
}

.site-footer {
  margin-top: 40px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(2, 6, 23, 0.72);
}

.site-footer__inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0;
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) 1.2fr;
  gap: 30px;
}

.site-footer p {
  max-width: 680px;
  color: var(--subtle);
  line-height: 1.8;
}

.footer-links {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.site-footer__bottom {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 32px;
  color: var(--subtle);
  font-size: 13px;
}

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

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

  .mobile-menu-button {
    display: block;
  }

  .hero-slide__inner,
  .detail-layout,
  .ranking-hero,
  .section--split {
    grid-template-columns: 1fr;
  }

  .hero-slide__poster,
  .detail-poster,
  .ranking-hero__poster {
    max-width: 320px;
  }

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

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

@media (max-width: 760px) {
  .site-header__inner {
    height: 64px;
  }

  .site-logo__text {
    font-size: 16px;
  }

  .hero,
  .hero-slide__inner {
    min-height: 760px;
  }

  .hero-slide__inner {
    padding-top: 36px;
    padding-bottom: 240px;
  }

  .button--ghost {
    margin: 12px 0 0;
  }

  .hero__panel,
  .page-hero,
  .ranking-hero {
    border-radius: 24px;
  }

  .page-hero,
  .ranking-hero {
    padding: 34px 22px;
  }

  .section {
    padding: 46px 0;
  }

  .section__head,
  .site-footer__inner {
    display: block;
  }

  .section-link {
    display: inline-block;
    margin-top: 12px;
  }

  .category-grid,
  .movie-grid,
  .movie-grid--compact,
  .category-card-grid,
  .ranking-list--large {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-card__art {
    height: 170px;
  }

  .ranking-item {
    grid-template-columns: 40px 54px minmax(0, 1fr);
  }

  .ranking-item img {
    width: 54px;
    height: 74px;
  }

  .footer-links {
    justify-content: flex-start;
    margin-top: 24px;
  }
}

@media (max-width: 520px) {
  .category-grid,
  .movie-grid,
  .movie-grid--compact,
  .category-card-grid,
  .ranking-list--large {
    grid-template-columns: 1fr;
  }

  .hero-slide h1,
  .page-hero h1,
  .ranking-hero h1,
  .detail-copy h1 {
    font-size: 42px;
  }

  .hero-slide__meta,
  .detail-meta,
  .hero-categories,
  .mobile-nav {
    gap: 8px;
  }
}
