:root {
  --page-bg: #0f172a;
  --panel-bg: #111827;
  --soft-panel: rgba(15, 23, 42, 0.78);
  --card-bg: #ffffff;
  --text-main: #111827;
  --text-muted: #64748b;
  --text-light: #f8fafc;
  --line: rgba(148, 163, 184, 0.22);
  --orange: #f97316;
  --orange-deep: #ea580c;
  --amber: #f59e0b;
  --slate: #1e293b;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
  --radius-lg: 28px;
  --radius-md: 18px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text-main);
  background: #f7f8fb;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #fff;
  background: linear-gradient(90deg, #111827, #334155, #111827);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.22);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}

.brand,
.desktop-nav,
.mobile-nav,
.hero-actions,
.hero-tags,
.hero-controls,
.hero-quick,
.movie-meta,
.tag-row,
.detail-meta,
.breadcrumb,
.center-action {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: #fff;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.35);
}

.brand-copy strong,
.footer-brand {
  display: block;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.brand-copy small {
  display: block;
  margin-top: 2px;
  color: #cbd5e1;
  font-size: 12px;
}

.desktop-nav {
  gap: 8px;
}

.nav-link,
.mobile-link {
  padding: 10px 18px;
  color: #e2e8f0;
  border-radius: 12px;
  font-weight: 700;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: #fff;
  background: var(--orange);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: #fff;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 0 18px 18px;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.36), transparent 34%), linear-gradient(135deg, #0f172a 0%, #1e293b 48%, #0f172a 100%);
}

.hero-shell {
  position: relative;
  min-height: 690px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.24;
  filter: blur(8px) saturate(1.2);
  transform: scale(1.06);
}

.hero-backdrop::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.58), rgba(15, 23, 42, 0.92));
}

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

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) 420px;
  gap: 56px;
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  min-height: 640px;
  margin: 0 auto;
  padding: 74px 0 110px;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 14px;
  padding: 8px 14px;
  color: #fff7ed;
  border: 1px solid rgba(251, 146, 60, 0.42);
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.22);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.hero-copy h1,
.inner-hero h1,
.detail-copy h1 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-copy h1 {
  max-width: 820px;
  font-size: clamp(36px, 6vw, 74px);
}

.hero-copy h2 {
  margin: 22px 0 10px;
  color: #fed7aa;
  font-size: clamp(24px, 3vw, 40px);
}

.hero-copy p {
  max-width: 760px;
  margin: 0;
  color: #dbeafe;
  font-size: 19px;
  line-height: 1.9;
}

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

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

.hero-tags span,
.tag-row span,
.detail-meta span,
.movie-meta span {
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.hero-tags span {
  padding: 8px 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

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

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 900;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 18px 34px rgba(249, 115, 22, 0.32);
}

.ghost-btn {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.ghost-btn.dark {
  color: var(--slate);
  border-color: rgba(15, 23, 42, 0.12);
  background: #fff;
  box-shadow: var(--shadow);
}

.primary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 36px;
  box-shadow: 0 38px 90px rgba(0, 0, 0, 0.36);
  transform: rotate(2deg);
}

.hero-poster::before {
  position: absolute;
  inset: 16px;
  z-index: 2;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 28px;
  pointer-events: none;
}

.hero-poster img {
  aspect-ratio: 3 / 4.25;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 50px;
  z-index: 5;
  gap: 16px;
  transform: translateX(-50%);
}

.hero-arrow,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-arrow {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: #fff;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 30px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  transition: width 0.25s ease, background 0.25s ease;
}

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

.hero-quick {
  position: relative;
  z-index: 6;
  justify-content: center;
  gap: 12px;
  padding: 0 0 34px;
  margin-top: -54px;
}

.hero-quick a {
  padding: 12px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
  font-weight: 800;
}

.section {
  padding: 74px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading h2,
.detail-text h2,
.category-overview-card h2 {
  margin: 0 0 12px;
  color: #0f172a;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.035em;
}

.section-heading p,
.inner-hero p,
.category-overview-card p,
.detail-text p,
.footer-grid p {
  color: var(--text-muted);
  line-height: 1.9;
}

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

.category-card {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  color: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.category-card img,
.overview-cover img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.category-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.88));
}

.category-card strong,
.category-card em {
  position: absolute;
  left: 20px;
  right: 20px;
  z-index: 2;
}

.category-card strong {
  bottom: 82px;
  font-size: 24px;
}

.category-card em {
  bottom: 18px;
  color: #e2e8f0;
  font-size: 13px;
  font-style: normal;
  line-height: 1.55;
}

.category-card:hover img,
.overview-cover:hover img {
  transform: scale(1.08);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 14px;
  margin: 0 0 26px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

.search-box {
  display: grid;
  gap: 8px;
}

.search-box span {
  color: #334155;
  font-size: 13px;
  font-weight: 900;
}

.search-box input,
.filter-select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  outline: none;
  background: #f8fafc;
  font: inherit;
}

.search-box input {
  padding: 0 16px;
}

.filter-select {
  align-self: end;
  padding: 0 12px;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 22px;
  background: var(--card-bg);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #0f172a;
}

.poster-link img {
  aspect-ratio: 3 / 4.15;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.poster-glow {
  position: absolute;
  inset: auto 0 0;
  height: 48%;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.72));
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  padding: 6px 10px;
  color: #fff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.25);
  font-size: 12px;
  font-weight: 900;
}

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

.movie-meta span,
.detail-meta span {
  padding: 5px 8px;
  color: #475569;
  background: #f1f5f9;
}

.movie-card h2 {
  min-height: 54px;
  margin: 12px 0 8px;
  color: #0f172a;
  font-size: 18px;
  line-height: 1.48;
}

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

.movie-card p {
  min-height: 66px;
  margin: 0 0 14px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.58;
}

.tag-row span {
  padding: 5px 8px;
  color: #9a3412;
  background: #ffedd5;
}

.large-tags span {
  padding: 8px 11px;
}

.center-action {
  justify-content: center;
  margin-top: 28px;
}

.inner-hero,
.detail-hero {
  padding: 70px 0 28px;
}

.inner-hero h1 {
  max-width: 900px;
  color: #0f172a;
  font-size: clamp(36px, 6vw, 64px);
}

.inner-hero p {
  max-width: 760px;
  font-size: 18px;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 20px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
}

.overview-cover {
  overflow: hidden;
  border-radius: 18px;
  background: #0f172a;
}

.overview-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.overview-links a {
  padding: 7px 10px;
  color: #9a3412;
  border-radius: 999px;
  background: #ffedd5;
  font-size: 13px;
  font-weight: 800;
}

.breadcrumb {
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  color: #64748b;
  font-size: 14px;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

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

.detail-poster img {
  aspect-ratio: 3 / 4.15;
  object-fit: cover;
}

.detail-copy h1 {
  color: #0f172a;
  font-size: clamp(34px, 5vw, 60px);
}

.detail-copy .lead {
  max-width: 840px;
  color: #334155;
  font-size: 20px;
  line-height: 1.85;
}

.detail-meta {
  margin: 20px 0;
}

.player-section {
  padding: 44px 0 16px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.22);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 14px;
  padding: 28px;
  color: #fff;
  border: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.2), rgba(2, 6, 23, 0.78));
  cursor: pointer;
}

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

.play-circle {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  padding-left: 4px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 20px 42px rgba(249, 115, 22, 0.35);
  font-size: 34px;
}

.player-overlay strong {
  font-size: clamp(22px, 4vw, 38px);
  text-align: center;
}

.detail-text {
  padding-top: 48px;
}

.detail-text h2 {
  font-size: clamp(24px, 3vw, 34px);
}

.detail-text p {
  margin: 0 0 26px;
  color: #334155;
  font-size: 17px;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 36px;
  padding: 54px 0;
}

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

.footer-grid a {
  display: block;
  margin: 10px 0;
  color: #cbd5e1;
}

.footer-grid a:hover {
  color: #fb923c;
}

.footer-brand {
  color: #fff;
  margin-bottom: 12px;
}

.footer-bottom {
  padding: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  text-align: center;
  font-size: 14px;
}

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

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

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

  .hero-content {
    grid-template-columns: minmax(0, 1fr) 340px;
  }
}

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

  .menu-toggle {
    display: block;
  }

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

  .hero-shell {
    min-height: 780px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: 760px;
    padding-top: 42px;
  }

  .hero-poster {
    max-width: 320px;
    margin: 0 auto;
  }

  .hero-quick {
    flex-wrap: wrap;
  }

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

  .filter-panel,
  .detail-layout,
  .category-overview-card {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 560px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

  .site-nav {
    min-height: 66px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

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

  .brand-copy small {
    display: none;
  }

  .hero-shell {
    min-height: 720px;
  }

  .hero-content {
    min-height: 680px;
    padding-bottom: 88px;
  }

  .hero-copy p,
  .detail-copy .lead {
    font-size: 16px;
  }

  .hero-actions,
  .hero-controls {
    flex-wrap: wrap;
  }

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

  .section {
    padding: 52px 0;
  }

  .movie-card h2,
  .movie-card p {
    min-height: auto;
  }
}
