:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --orange-600: #ea580c;
  --orange-500: #f97316;
  --orange-400: #fb923c;
  --amber-300: #fcd34d;
  --rose-500: #f43f5e;
  --blue-600: #2563eb;
  --green-600: #16a34a;
  --shadow-card: 0 20px 45px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 10px 25px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f8fafc;
  color: #1e293b;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(90deg, var(--slate-900), var(--slate-800), var(--slate-900));
  color: #ffffff;
  box-shadow: 0 14px 35px rgba(2, 6, 23, 0.22);
}

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

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--orange-500), var(--rose-500));
  box-shadow: 0 10px 22px rgba(249, 115, 22, 0.32);
  font-size: 15px;
}

.logo-text {
  font-size: 22px;
}

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

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 12px;
  color: #e2e8f0;
  font-weight: 700;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  background: linear-gradient(135deg, var(--orange-500), var(--rose-500));
  color: #ffffff;
  transform: translateY(-1px);
}

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

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #ffffff;
  border-radius: 99px;
}

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

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: var(--slate-950);
  color: #ffffff;
}

.hero-slider {
  position: relative;
  min-height: 620px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.025);
  transition: opacity 0.8s ease, transform 1.3s ease;
  pointer-events: none;
}

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

.hero-content {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 110px 0 130px;
  max-width: 780px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.16);
  color: var(--amber-300);
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 22px;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(38px, 7vw, 74px);
  line-height: 1.05;
  letter-spacing: -0.05em;
  font-weight: 950;
}

.hero-summary {
  max-width: 720px;
  margin: 24px 0 0;
  color: #e2e8f0;
  font-size: clamp(17px, 2vw, 22px);
}

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

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

.hero-tags span,
.tag-row span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 6px 11px;
  font-size: 13px;
  font-weight: 700;
}

.tag-row span,
.detail-tags span {
  background: #ffedd5;
  color: #c2410c;
}

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

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

.primary-button {
  background: linear-gradient(135deg, var(--orange-500), var(--rose-500));
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(249, 115, 22, 0.32);
}

.ghost-button {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.inline-button,
.filter-button {
  background: #ffffff;
  color: var(--slate-800);
  border: 1px solid #e2e8f0;
}

.primary-button:hover,
.ghost-button:hover,
.inline-button:hover,
.filter-button:hover,
.filter-button.active {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.filter-button.active {
  background: linear-gradient(135deg, var(--orange-500), var(--rose-500));
  color: #ffffff;
  border-color: transparent;
}

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

.hero-dot {
  width: 42px;
  height: 5px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  cursor: pointer;
}

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

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

.section {
  padding: 74px 0;
}

.section.alt {
  background: #ffffff;
}

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

.section-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--orange-600);
  font-weight: 950;
  letter-spacing: 0.1em;
}

.section-header h2,
.page-hero h1,
.detail-title h1 {
  margin: 0;
  color: var(--slate-900);
  font-weight: 950;
  letter-spacing: -0.04em;
}

.section-header h2 {
  font-size: clamp(30px, 4vw, 46px);
}

.section-header p,
.page-hero p {
  margin: 10px 0 0;
  max-width: 760px;
  color: var(--slate-600);
  font-size: 17px;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #1e293b, #0f172a);
}

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

.movie-card:hover img,
.category-feature:hover img,
.related-card:hover img {
  transform: scale(1.065);
}

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

.poster-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.72);
  color: #ffffff;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 900;
}

.poster-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--orange-500), var(--rose-500));
  color: #ffffff;
  box-shadow: 0 12px 25px rgba(249, 115, 22, 0.34);
}

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

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--orange-600);
  font-size: 13px;
  font-weight: 900;
}

.movie-card h3 {
  margin: 8px 0 8px;
  color: var(--slate-900);
  font-size: 18px;
  line-height: 1.32;
  font-weight: 950;
}

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

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 24px;
  padding: 26px;
  background: linear-gradient(135deg, var(--slate-900), var(--slate-700));
  color: #ffffff;
  box-shadow: var(--shadow-card);
}

.category-card:nth-child(3n + 1) {
  background: linear-gradient(135deg, #0f172a, #ea580c);
}

.category-card:nth-child(3n + 2) {
  background: linear-gradient(135deg, #1e293b, #2563eb);
}

.category-card:nth-child(3n + 3) {
  background: linear-gradient(135deg, #111827, #16a34a);
}

.category-card h2,
.category-card h3 {
  margin: 0 0 10px;
  font-size: 26px;
  font-weight: 950;
}

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.category-card a {
  margin-top: 28px;
  font-weight: 950;
  color: #ffffff;
}

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

.rank-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.rank-item a {
  display: grid;
  grid-template-columns: 52px 70px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  border-radius: 18px;
  padding: 12px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rank-item a:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-card);
}

.rank-number {
  font-size: 24px;
  font-weight: 950;
  color: var(--orange-600);
  text-align: center;
}

.rank-item img {
  width: 70px;
  height: 92px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--slate-800);
}

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

.rank-content strong {
  color: var(--slate-900);
  font-size: 17px;
  font-weight: 950;
}

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

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 26px;
  padding: 18px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.search-panel input {
  width: 100%;
  height: 48px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 0 16px;
  font-size: 15px;
  outline: none;
}

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

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-hero {
  padding: 84px 0 56px;
  background: radial-gradient(circle at top left, rgba(249, 115, 22, 0.16), transparent 35%), linear-gradient(135deg, #ffffff, #f8fafc);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--slate-600);
  font-weight: 800;
}

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

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

.category-feature {
  overflow: hidden;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.category-feature img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--slate-900);
  transition: transform 0.3s ease;
}

.category-feature h3 {
  margin: 0;
  padding: 14px;
  font-size: 16px;
  color: var(--slate-900);
}

.detail-hero {
  background: linear-gradient(135deg, var(--slate-950), var(--slate-800));
  color: #ffffff;
  padding: 56px 0;
}

.detail-layout {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.detail-poster {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
  background: var(--slate-900);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

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

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 22px;
}

.detail-meta span,
.detail-meta a {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.11);
  color: #e2e8f0;
  font-weight: 800;
}

.detail-lead {
  margin: 0;
  color: #e2e8f0;
  font-size: 19px;
}

.player-section {
  padding: 62px 0;
  background: #020617;
}

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

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

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.26), rgba(2, 6, 23, 0.74));
  color: #ffffff;
  cursor: pointer;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.play-pulse {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--orange-500), var(--rose-500));
  box-shadow: 0 0 0 16px rgba(249, 115, 22, 0.12);
  font-size: 34px;
}

.detail-content {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 34px;
}

.article-box,
.side-box {
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  padding: 28px;
}

.article-box h2,
.side-box h2 {
  margin: 0 0 16px;
  color: var(--slate-900);
  font-size: 26px;
  font-weight: 950;
}

.article-box p {
  margin: 0 0 20px;
  color: var(--slate-700);
  font-size: 17px;
}

.related-list {
  display: grid;
  gap: 14px;
}

.related-card {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.related-card img {
  width: 78px;
  height: 104px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--slate-900);
  transition: transform 0.3s ease;
}

.related-card strong,
.related-card span {
  display: block;
}

.related-card strong {
  color: var(--slate-900);
  line-height: 1.35;
}

.related-card span {
  margin-top: 6px;
  color: var(--slate-600);
  font-size: 13px;
}

.site-footer {
  background: var(--slate-950);
  color: #cbd5e1;
  padding: 58px 0 26px;
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 34px;
}

.footer-logo {
  color: #ffffff;
  font-size: 24px;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #ffffff;
}

.site-footer p {
  margin: 12px 0 0;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 36px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: #94a3b8;
}

.empty-state {
  display: none;
  padding: 32px;
  border-radius: 22px;
  background: #ffffff;
  color: var(--slate-600);
  text-align: center;
  box-shadow: var(--shadow-soft);
}

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

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

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

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

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

  .menu-toggle {
    display: block;
  }

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

  .mobile-nav .nav-link {
    width: 100%;
    justify-content: center;
  }

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

  .section-header,
  .search-panel {
    grid-template-columns: 1fr;
    display: grid;
    align-items: start;
  }

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

@media (max-width: 620px) {
  .header-inner {
    min-height: 64px;
  }

  .logo-text {
    font-size: 19px;
  }

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

  .hero-content {
    padding: 78px 0 110px;
  }

  .hero-actions,
  .section-actions,
  .detail-actions {
    flex-direction: column;
  }

  .primary-button,
  .ghost-button,
  .inline-button,
  .filter-button {
    width: 100%;
  }

  .movie-grid,
  .movie-grid.large-grid,
  .category-grid,
  .category-feature-grid,
  .rank-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .rank-item a {
    grid-template-columns: 44px 62px minmax(0, 1fr);
  }

  .detail-hero {
    padding: 36px 0;
  }

  .article-box,
  .side-box {
    padding: 22px;
  }
}
