:root {
  color-scheme: light;
  --bg: #f8fafc;
  --panel: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --soft: #e2e8f0;
  --brand: #dc2626;
  --brand-dark: #991b1b;
  --accent: #f97316;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #fff;
  background: linear-gradient(90deg, #0f172a, #1e293b, #0f172a);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.35);
}

.site-nav {
  max-width: 1220px;
  height: 68px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 12px 25px rgba(220, 38, 38, 0.28);
}

.brand-name {
  font-size: 22px;
  background: linear-gradient(90deg, #f87171, #fb923c);
  -webkit-background-clip: text;
  color: transparent;
}

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

.nav-link,
.mobile-link {
  border-radius: 12px;
  color: #cbd5e1;
  transition: 0.22s ease;
}

.nav-link {
  padding: 10px 14px;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: #fff;
  background: var(--brand);
}

.menu-button {
  width: 42px;
  height: 42px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.menu-button span {
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  padding: 10px 22px 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.mobile-nav.is-open {
  display: grid;
  gap: 8px;
}

.mobile-link {
  padding: 12px 14px;
}

.hero-slider {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  color: #fff;
  background: #0f172a;
}

.hero-track {
  position: relative;
  min-height: 680px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.hero-content {
  width: min(1160px, calc(100% - 44px));
  margin: 0 auto;
  padding: 88px 0 150px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #fca5a5;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-content h1,
.hero-content h2 {
  max-width: 820px;
  margin: 0 0 18px;
  line-height: 1.05;
  font-size: clamp(38px, 7vw, 76px);
  font-weight: 900;
  letter-spacing: -0.06em;
}

.hero-content h2 {
  font-size: clamp(32px, 5vw, 58px);
}

.hero-content p {
  max-width: 720px;
  margin: 0 0 24px;
  color: #e2e8f0;
  font-size: 18px;
  line-height: 1.8;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #fee2e2;
  background: rgba(220, 38, 38, 0.18);
  border: 1px solid rgba(248, 113, 113, 0.32);
  font-size: 12px;
  font-weight: 700;
}

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

.primary-button,
.secondary-button,
.ghost-button,
.watch-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 13px;
  font-weight: 800;
  transition: 0.22s ease;
}

.primary-button,
.watch-link {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 14px 28px rgba(220, 38, 38, 0.25);
}

.secondary-button {
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(12px);
}

.ghost-button {
  color: #fee2e2;
  border: 1px solid rgba(248, 113, 113, 0.45);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.watch-link:hover {
  transform: translateY(-2px);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 124px;
  z-index: 3;
  width: min(1160px, calc(100% - 44px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-controls button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  color: #fff;
  background: rgba(15, 23, 42, 0.55);
  cursor: pointer;
}

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

.hero-dot {
  width: 12px !important;
  height: 12px !important;
  min-width: 12px;
  border-radius: 999px !important;
  padding: 0;
  opacity: 0.55;
}

.hero-dot.is-active {
  width: 30px !important;
  opacity: 1;
  background: var(--brand);
}

.hero-search-bar {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 4;
  width: min(1160px, calc(100% - 44px));
  transform: translateX(-50%);
  display: grid;
  gap: 12px;
}

.search-panel {
  display: flex;
  gap: 10px;
  padding: 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.search-input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--soft);
  border-radius: 14px;
  outline: 0;
  color: var(--ink);
  background: #fff;
}

.search-input:focus {
  border-color: #f87171;
  box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.15);
}

.search-button {
  min-width: 84px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: var(--brand);
  cursor: pointer;
}

.hero-category-links,
.category-switches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-category-links a,
.category-switches a {
  padding: 9px 13px;
  border-radius: 999px;
  color: #fff;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.feature-strip {
  width: min(1160px, calc(100% - 44px));
  margin: -34px auto 0;
  position: relative;
  z-index: 6;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feature-item {
  min-height: 112px;
  padding: 22px;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}

.feature-item strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
}

.feature-item span {
  color: var(--muted);
  line-height: 1.6;
}

.content-section {
  width: min(1160px, calc(100% - 44px));
  margin: 0 auto;
  padding: 72px 0;
}

.alt-section {
  width: 100%;
  padding-left: max(22px, calc((100% - 1160px) / 2));
  padding-right: max(22px, calc((100% - 1160px) / 2));
  background: #f1f5f9;
}

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

.section-heading h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  letter-spacing: -0.04em;
}

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

.section-heading > a {
  flex: 0 0 auto;
  color: var(--brand);
  font-weight: 800;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
  transition: 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(145deg, #111827, #334155);
}

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

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

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  font-weight: 900;
}

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

.card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.card-meta span,
.detail-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #f1f5f9;
}

.movie-card h2 {
  margin: 12px 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card h2 a:hover {
  color: var(--brand);
}

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

.movie-card .watch-link {
  width: 100%;
  margin-top: 14px;
}

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

.category-card,
.category-overview-card {
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.category-main {
  display: grid;
  gap: 10px;
  padding: 22px;
}

.category-main span,
.category-overview-body h2 {
  font-size: 22px;
  font-weight: 900;
}

.category-main strong {
  color: var(--muted);
  font-weight: 500;
  line-height: 1.65;
}

.mini-links,
.category-sample-links {
  display: grid;
  gap: 8px;
  padding: 0 22px 22px;
}

.mini-links a,
.category-sample-links a {
  color: var(--brand);
  font-weight: 700;
}

.page-hero {
  min-height: 360px;
  display: flex;
  align-items: center;
  color: #fff;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  background-size: cover;
  background-position: center;
}

.page-hero > div {
  width: min(1160px, calc(100% - 44px));
  margin: 0 auto;
  padding: 84px 0;
}

.page-hero h1 {
  max-width: 820px;
  margin: 0 0 16px;
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 900;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #e2e8f0;
  font-size: 18px;
  line-height: 1.8;
}

.slim-hero {
  min-height: 300px;
}

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

.category-overview-card {
  overflow: hidden;
}

.category-cover-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 10px;
  background: #0f172a;
}

.category-cover-row img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 14px;
}

.category-overview-body {
  padding: 22px;
}

.category-overview-body h2 {
  margin: 0 0 10px;
}

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

.category-switches {
  margin: 18px 0 24px;
}

.category-switches a {
  color: #334155;
  background: #fff;
  border-color: #e2e8f0;
}

.category-switches a:hover {
  color: #fff;
  background: var(--brand);
}

.detail-layout {
  width: min(1160px, calc(100% - 44px));
  margin: 0 auto;
  padding: 34px 0 0;
}

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

.breadcrumb a {
  color: var(--brand);
  font-weight: 800;
}

.detail-card {
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
}

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

.movie-video,
.player-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.movie-video {
  object-fit: contain;
  background: #020617;
}

.player-cover {
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: min(7vw, 70px);
  color: #fff;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.big-play {
  flex: 0 0 auto;
  width: 92px;
  height: 92px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 20px 40px rgba(220, 38, 38, 0.35);
  cursor: pointer;
  font-size: 34px;
}

.player-cover h1 {
  max-width: 760px;
  margin: 0 0 14px;
  font-size: clamp(30px, 5vw, 58px);
  line-height: 1.1;
  font-weight: 900;
}

.player-cover p {
  max-width: 760px;
  margin: 0;
  color: #e2e8f0;
  line-height: 1.8;
  font-size: 18px;
}

.detail-info {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  padding: 28px;
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.18);
}

.detail-copy h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.detail-tags {
  margin: 18px 0;
}

.lead-text {
  padding: 18px;
  border-radius: 18px;
  color: #7f1d1d;
  background: #fee2e2;
  line-height: 1.8;
  font-weight: 700;
}

.detail-copy section {
  margin-top: 24px;
}

.detail-copy section h2 {
  margin-bottom: 10px;
  font-size: 24px;
}

.detail-copy section p {
  color: #334155;
  line-height: 1.95;
}

.related-section {
  width: 100%;
}

.site-footer {
  margin-top: 40px;
  color: #cbd5e1;
  background: #0f172a;
}

.footer-inner {
  width: min(1160px, calc(100% - 44px));
  margin: 0 auto;
  padding: 48px 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 38px;
}

.footer-brand {
  margin-bottom: 12px;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
}

.site-footer p {
  max-width: 430px;
  margin: 0;
  line-height: 1.75;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 18px;
}

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

.footer-links a:hover {
  color: #f87171;
}

.footer-bottom {
  width: min(1160px, calc(100% - 44px));
  margin: 0 auto;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  font-size: 14px;
}

.is-filtered-out {
  display: none !important;
}

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

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

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

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

  .menu-button {
    display: flex;
  }

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

  .hero-content {
    padding-top: 70px;
    padding-bottom: 230px;
  }

  .hero-controls {
    bottom: 184px;
  }

  .search-panel {
    flex-direction: column;
  }

  .search-button {
    min-height: 44px;
  }

  .movie-grid,
  .category-grid,
  .category-overview-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

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

  .player-cover {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }

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

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

@media (max-width: 560px) {
  .site-nav,
  .content-section,
  .detail-layout,
  .footer-inner,
  .footer-bottom,
  .feature-strip,
  .hero-content,
  .hero-controls,
  .hero-search-bar,
  .page-hero > div {
    width: min(100% - 28px, 1160px);
  }

  .brand-name {
    font-size: 18px;
  }

  .hero-slider,
  .hero-track {
    min-height: 820px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .feature-strip {
    grid-template-columns: 1fr;
  }

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

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

  .movie-card p,
  .tag-row {
    display: none;
  }

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

  .player-shell {
    aspect-ratio: 4 / 3;
  }

  .player-cover p {
    display: none;
  }
}
