:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --orange-700: #c2410c;
  --orange-600: #ea580c;
  --orange-500: #f97316;
  --orange-400: #fb923c;
  --white: #ffffff;
  --shadow-soft: 0 20px 45px rgba(15, 23, 42, 0.14);
  --shadow-card: 0 14px 32px rgba(15, 23, 42, 0.11);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--slate-50);
  color: var(--slate-900);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(15, 23, 42, 0.96);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1200px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-icon {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--orange-500), var(--orange-700));
  color: var(--white);
  font-size: 15px;
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.35);
}

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

.nav-link,
.mobile-link {
  color: var(--slate-200);
  font-weight: 600;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--orange-400);
}

.top-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 260px;
}

.top-search input,
.mobile-search input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.32);
  background: rgba(15, 23, 42, 0.72);
  color: var(--white);
  border-radius: 12px;
  padding: 10px 12px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.top-search input:focus,
.mobile-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--orange-500);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.16);
}

.top-search button,
.mobile-search button,
.primary-button,
.secondary-button,
.filter-button {
  border: 0;
  border-radius: 12px;
  padding: 10px 16px;
  color: var(--white);
  font-weight: 800;
  background: linear-gradient(135deg, var(--orange-500), var(--orange-700));
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.top-search button:hover,
.mobile-search button:hover,
.primary-button:hover,
.filter-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(249, 115, 22, 0.33);
}

.secondary-button {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--white);
  font-size: 28px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

.mobile-panel nav {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.mobile-search {
  display: flex;
  gap: 10px;
}

.hero {
  position: relative;
  height: 70vh;
  min-height: 560px;
  overflow: hidden;
  background: var(--slate-950);
  color: var(--white);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 1s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-image {
  position: absolute;
  inset: 0;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.05);
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(15, 23, 42, 0.76) 42%, rgba(15, 23, 42, 0.18) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.18));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 720px;
  padding-top: 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: #fed7aa;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.hero h2 {
  margin: 0;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.05em;
  text-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.hero p {
  max-width: 640px;
  margin: 20px 0 0;
  color: var(--slate-200);
  font-size: clamp(17px, 2vw, 21px);
}

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

.hero-tags {
  margin-top: 22px;
}

.hero-tags span,
.tag-list span,
.detail-tags span {
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.14);
  color: #fed7aa;
  border: 1px solid rgba(251, 146, 60, 0.28);
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 700;
}

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

.hero-controls {
  position: absolute;
  z-index: 4;
  right: max(24px, calc((100vw - 1200px) / 2));
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-control {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.6);
  color: var(--white);
  font-size: 22px;
  cursor: pointer;
  backdrop-filter: blur(12px);
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.hero-dot.active {
  width: 32px;
  background: var(--orange-500);
}

.section,
.detail-page,
.category-page,
.search-page {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 58px 0;
}

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

.section-kicker {
  color: var(--orange-600);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section h1,
.section h2,
.category-page h1,
.search-page h1,
.detail-page h1 {
  margin: 0;
  color: var(--slate-900);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.section-head p,
.category-intro,
.search-intro,
.detail-lead {
  color: var(--slate-600);
  font-size: 17px;
}

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--slate-200);
}

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

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

.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(2, 6, 23, 0.76));
}

.poster-badge {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--white);
  background: rgba(249, 115, 22, 0.92);
  font-size: 13px;
  font-weight: 900;
}

.card-body {
  padding: 18px;
}

.card-meta {
  display: flex;
  gap: 8px;
  color: var(--orange-600);
  font-size: 13px;
  font-weight: 800;
}

.movie-card h2 {
  margin: 8px 0 8px;
  font-size: 19px;
  line-height: 1.28;
  font-weight: 900;
  color: var(--slate-900);
}

.movie-card p {
  margin: 0 0 14px;
  color: var(--slate-600);
  font-size: 14px;
}

.tag-list span {
  color: var(--orange-700);
  background: #fff7ed;
  border-color: #fed7aa;
}

.feature-band {
  border-radius: 32px;
  padding: 34px;
  background:
    radial-gradient(circle at top left, rgba(249, 115, 22, 0.24), transparent 32%),
    linear-gradient(135deg, var(--slate-950), var(--slate-800));
  color: var(--white);
  box-shadow: var(--shadow-soft);
}

.feature-band .section-head h2,
.feature-band .section-head p {
  color: var(--white);
}

.feature-band .movie-card {
  background: rgba(255, 255, 255, 0.96);
}

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

.category-card {
  display: block;
  min-height: 170px;
  border-radius: var(--radius-lg);
  padding: 24px;
  color: var(--white);
  background:
    radial-gradient(circle at 85% 10%, rgba(255, 255, 255, 0.2), transparent 32%),
    linear-gradient(135deg, var(--slate-900), var(--slate-700));
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.22);
}

.category-card strong {
  display: block;
  font-size: 24px;
  margin-bottom: 12px;
}

.category-card span {
  color: var(--slate-200);
}

.rank-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.rank-row {
  display: grid;
  grid-template-columns: 52px 70px 1fr;
  gap: 14px;
  align-items: center;
  border-radius: var(--radius-md);
  padding: 12px;
  background: var(--white);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row:hover {
  transform: translateX(4px);
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.14);
}

.rank-index {
  color: var(--orange-600);
  font-size: 22px;
  font-weight: 900;
  text-align: center;
}

.rank-row img {
  width: 70px;
  height: 96px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-info strong,
.rank-info em {
  display: block;
}

.rank-info strong {
  color: var(--slate-900);
  font-size: 18px;
  font-weight: 900;
}

.rank-info em {
  margin-top: 6px;
  color: var(--slate-500);
  font-style: normal;
  font-size: 14px;
}

.page-hero {
  padding: 70px 0 34px;
  background:
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.16), transparent 28%),
    linear-gradient(180deg, var(--white), var(--slate-50));
}

.category-page,
.search-page,
.detail-page {
  padding: 34px 0 70px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--slate-500);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--orange-600);
  font-weight: 700;
}

.filter-bar {
  display: grid;
  grid-template-columns: 1fr 160px 160px 120px;
  gap: 12px;
  margin: 28px 0;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--slate-900);
  box-shadow: var(--shadow-card);
}

.filter-bar select {
  color: var(--white);
}

.empty-state {
  display: none;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--white);
  color: var(--slate-600);
  box-shadow: var(--shadow-card);
}

.empty-state.show {
  display: block;
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 28px 70px rgba(2, 6, 23, 0.32);
}

.player-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  background: #000000;
}

.player-overlay img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.64;
  filter: blur(0.2px) saturate(1.08);
}

.player-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.22), rgba(2, 6, 23, 0.78));
}

.player-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.player-play {
  position: relative;
  z-index: 4;
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 999px;
  padding-left: 6px;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange-500), var(--orange-700));
  font-size: 36px;
  box-shadow: 0 18px 36px rgba(249, 115, 22, 0.36);
}

.detail-panel,
.content-panel {
  border-radius: 28px;
  background: var(--white);
  padding: 26px;
  box-shadow: var(--shadow-card);
}

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

.detail-facts {
  display: grid;
  gap: 10px;
  color: var(--slate-600);
}

.detail-facts strong {
  color: var(--slate-900);
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.detail-tags span {
  color: var(--orange-700);
  background: #fff7ed;
}

.content-panel {
  margin-top: 28px;
}

.content-panel h2 {
  margin: 0 0 14px;
  color: var(--slate-900);
  font-size: 25px;
  font-weight: 900;
}

.content-panel p {
  margin: 0 0 18px;
  color: var(--slate-700);
  font-size: 16px;
}

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

.site-footer {
  background: var(--slate-900);
  color: var(--slate-300);
  margin-top: 20px;
}

.footer-grid {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0;
  display: grid;
  grid-template-columns: 1.25fr 0.8fr 0.8fr 1fr;
  gap: 30px;
}

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

.footer-grid p,
.footer-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-grid li + li {
  margin-top: 8px;
}

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

.footer-bottom {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--slate-500);
  font-size: 14px;
}

@media (max-width: 1100px) {
  .main-nav,
  .top-search {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

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

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

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

  .detail-panel {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 22px;
  }

  .detail-panel img {
    margin-bottom: 0;
  }
}

@media (max-width: 760px) {
  .header-inner {
    width: min(100% - 24px, 1200px);
    height: 64px;
  }

  .brand,
  .footer-brand {
    font-size: 18px;
  }

  .hero {
    min-height: 620px;
    height: 82vh;
  }

  .hero-content {
    align-items: flex-end;
    padding-bottom: 92px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-controls {
    left: 16px;
    right: auto;
    bottom: 22px;
  }

  .section {
    padding: 42px 0;
  }

  .section-head {
    display: block;
  }

  .movie-grid,
  .related-grid,
  .rank-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .feature-band {
    padding: 24px;
    border-radius: 24px;
  }

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

  .detail-panel {
    display: block;
  }

  .detail-panel img {
    max-width: 260px;
    margin: 0 auto 20px;
  }
}

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

  .mobile-search {
    display: grid;
  }

  .rank-row {
    grid-template-columns: 44px 56px 1fr;
  }

  .rank-row img {
    width: 56px;
    height: 78px;
  }
}
