:root {
  color-scheme: light;
  --page-bg: #f7f7fb;
  --text: #14151a;
  --muted: #667085;
  --line: rgba(20, 21, 26, 0.10);
  --orange: #f97316;
  --red: #ef4444;
  --yellow: #facc15;
  --blue: #2563eb;
  --green: #10b981;
  --purple: #a855f7;
  --dark: #0b1020;
  --card: #ffffff;
  --shadow: 0 20px 55px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--page-bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 18px 35px rgba(239, 68, 68, 0.20);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--red);
  background: #fff;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease;
}

.site-logo:hover .logo-mark {
  transform: rotate(12deg) scale(1.05);
}

.desktop-nav {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.desktop-nav::-webkit-scrollbar {
  display: none;
}

.nav-link {
  font-size: 15px;
  font-weight: 700;
  opacity: 0.90;
  white-space: nowrap;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--yellow);
  opacity: 1;
}

.header-search,
.mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input {
  width: 230px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  padding: 10px 15px;
  outline: none;
}

.header-search input::placeholder,
.mobile-search input::placeholder {
  color: rgba(255, 255, 255, 0.76);
}

.header-search button,
.mobile-search button {
  border: 0;
  border-radius: 999px;
  color: #111827;
  background: #fff;
  font-weight: 800;
  padding: 10px 16px;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  border: 0;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

.mobile-panel {
  padding: 10px 22px 18px;
  background: rgba(0, 0, 0, 0.10);
  backdrop-filter: blur(18px);
}

.mobile-panel nav {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.mobile-link {
  padding: 10px 0;
  font-weight: 800;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.mobile-link.is-active {
  color: var(--yellow);
}

.hero-carousel {
  position: relative;
  height: 560px;
  overflow: hidden;
  background: var(--dark);
}

.hero-site-title {
  position: absolute;
  left: -999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-slide.is-active img {
  animation: heroZoom 8s ease forwards;
}

@keyframes heroZoom {
  from {
    transform: scale(1.08);
  }

  to {
    transform: scale(1.01);
  }
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.54) 44%, rgba(0, 0, 0, 0.06));
}

.hero-corner {
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-top: 150px solid rgba(249, 115, 22, 0.88);
  border-left: 150px solid transparent;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(650px, calc(100% - 44px));
  top: 50%;
  transform: translateY(-50%);
  margin-left: max(24px, calc((100vw - 1240px) / 2));
  color: #fff;
}

.eyebrow {
  color: var(--orange);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-content h2,
.page-hero h1,
.detail-info h1 {
  margin: 12px 0 18px;
  font-size: clamp(36px, 6vw, 70px);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.hero-content p {
  max-width: 590px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.9;
}

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

.hero-tags span,
.detail-tags span,
.tag-row span {
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.13);
  color: var(--orange);
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
}

.hero-tags span {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-btn,
.ghost-btn,
.ghost-dark-btn,
.text-link,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  padding: 13px 22px;
  box-shadow: 0 18px 30px rgba(249, 115, 22, 0.35);
}

.ghost-btn {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  padding: 12px 20px;
  backdrop-filter: blur(14px);
}

.ghost-dark-btn {
  color: var(--text);
  border: 1px solid var(--line);
  background: #fff;
  padding: 12px 20px;
}

.primary-btn:hover,
.ghost-btn:hover,
.ghost-dark-btn:hover,
.text-link:hover,
.section-more:hover {
  transform: translateY(-2px);
}

.hero-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.20);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(14px);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

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

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

.stats-row,
.page-shell,
.detail-shell,
.footer-inner {
  width: min(1240px, calc(100% - 44px));
  margin: 0 auto;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: -44px;
  position: relative;
  z-index: 10;
}

.stat-card {
  min-height: 112px;
  border-radius: 24px;
  color: #fff;
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stat-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.20);
}

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

.stat-card span {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

.stat-card.orange {
  background: linear-gradient(135deg, var(--orange), var(--red));
}

.stat-card.blue {
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.stat-card.green {
  background: linear-gradient(135deg, #22c55e, #10b981);
}

.stat-card.purple {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
}

.page-shell {
  padding: 48px 0 72px;
}

.page-top {
  padding-top: 34px;
}

.content-section {
  margin-top: 38px;
}

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

.section-heading h2 {
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.section-heading p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 16px;
}

.section-more,
.text-link {
  color: var(--orange);
  font-weight: 950;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 15px 40px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #111827;
}

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

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

.play-chip,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #fff;
  font-weight: 950;
}

.play-chip {
  right: 13px;
  bottom: 13px;
  background: linear-gradient(135deg, var(--orange), var(--red));
  padding: 8px 12px;
}

.rank-badge {
  left: 13px;
  top: 13px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.70);
  backdrop-filter: blur(10px);
}

.movie-card-body {
  padding: 18px;
}

.movie-meta {
  margin-bottom: 8px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 950;
}

.movie-card h3 {
  min-height: 54px;
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.movie-card h3 a:hover {
  color: var(--orange);
}

.movie-card p {
  min-height: 68px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

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

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

.category-tile {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: end;
  border-radius: 24px;
  color: #fff;
  padding: 20px;
  background: var(--dark);
  box-shadow: var(--shadow);
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78));
}

.category-tile:hover img {
  opacity: 0.70;
  transform: scale(1.08);
}

.category-tile span,
.category-tile em {
  position: relative;
  z-index: 2;
}

.category-tile span {
  font-size: 24px;
  font-weight: 950;
}

.category-tile em {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-style: normal;
  font-size: 13px;
  line-height: 1.6;
}

.page-hero {
  overflow: hidden;
  border-radius: 32px;
  color: #fff;
  background:
    radial-gradient(circle at top right, rgba(250, 204, 21, 0.33), transparent 28%),
    linear-gradient(135deg, #101827, #2b1110 48%, #ef4444);
  padding: clamp(34px, 5vw, 70px);
  box-shadow: var(--shadow);
}

.page-hero h1 {
  max-width: 850px;
  color: #fff;
}

.page-hero p:not(.eyebrow) {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.80);
  font-size: 18px;
  line-height: 1.8;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-weight: 800;
}

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

.filter-panel {
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(160px, 0.7fr));
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
}

.filter-panel label {
  display: grid;
  gap: 8px;
}

.filter-panel span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--text);
  padding: 12px 14px;
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(249, 115, 22, 0.70);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.category-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 34px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 22px;
  align-items: center;
  border-radius: 28px;
  background: #fff;
  padding: 20px;
  box-shadow: 0 16px 46px rgba(15, 23, 42, 0.09);
}

.category-cover-stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.category-cover-stack img {
  height: 92px;
  width: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.category-overview-card h2 {
  font-size: 25px;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.category-overview-card p {
  color: var(--muted);
  line-height: 1.75;
  margin: 8px 0 14px;
}

.detail-shell {
  padding-bottom: 76px;
}

.detail-hero {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 32px;
  align-items: center;
  overflow: hidden;
  border-radius: 34px;
  padding: 28px;
  color: #fff;
  background:
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.38), transparent 32%),
    linear-gradient(135deg, #0b1020, #22101a 55%, #431407);
  box-shadow: var(--shadow);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 26px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
}

.detail-info h1 {
  color: #fff;
}

.detail-one-line {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.80);
  font-size: 18px;
  line-height: 1.9;
}

.player-section {
  margin-top: 30px;
}

.movie-player-box {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #000;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.26);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.72));
  text-align: center;
}

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

.player-play-icon {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 20px 45px rgba(239, 68, 68, 0.40);
  font-size: 34px;
}

.player-overlay strong {
  max-width: 80%;
  font-size: clamp(22px, 4vw, 40px);
  line-height: 1.2;
  font-weight: 950;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 26px;
  margin-top: 34px;
}

.detail-content article,
.detail-meta-card {
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 16px 46px rgba(15, 23, 42, 0.08);
  padding: 28px;
}

.detail-content h2,
.detail-meta-card h2 {
  margin: 0 0 14px;
  font-size: 26px;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.detail-content p {
  color: #3f4656;
  font-size: 17px;
  line-height: 2;
  margin-bottom: 24px;
}

.detail-meta-card dl {
  display: grid;
  gap: 14px;
}

.detail-meta-card dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.detail-meta-card dd {
  font-weight: 900;
  line-height: 1.5;
}

.site-footer {
  margin-top: 50px;
  color: #d1d5db;
  background: #0b1020;
}

.footer-inner {
  padding: 40px 0;
  display: grid;
  gap: 14px;
}

.footer-logo {
  color: #fff;
}

.site-footer p {
  max-width: 720px;
  color: #9ca3af;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: #fff;
  font-weight: 800;
}

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

@media (max-width: 1120px) {
  .header-search {
    display: none;
  }

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

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

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

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

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

  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .header-inner {
    justify-content: space-between;
  }

  .site-logo {
    font-size: 21px;
  }

  .hero-carousel {
    height: 600px;
  }

  .hero-content {
    top: 54%;
    width: calc(100% - 44px);
  }

  .hero-shade {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.88));
  }

  .hero-arrow {
    display: none;
  }

  .stats-row,
  .page-shell,
  .detail-shell,
  .footer-inner {
    width: min(100% - 28px, 1240px);
  }

  .movie-grid,
  .category-grid,
  .category-overview-grid,
  .detail-hero,
  .detail-content {
    grid-template-columns: 1fr;
  }

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

  .detail-poster {
    max-width: 360px;
  }
}

@media (max-width: 560px) {
  .hero-carousel {
    height: 610px;
  }

  .stats-row {
    grid-template-columns: 1fr;
    margin-top: -30px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

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

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

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

  .mobile-search input {
    width: 100%;
  }

  .detail-hero,
  .detail-content article,
  .detail-meta-card,
  .page-hero {
    padding: 22px;
    border-radius: 24px;
  }
}
