:root {
  color-scheme: light;
  --sunset-50: #fff7ed;
  --sunset-100: #ffedd5;
  --sunset-500: #f97316;
  --sunset-600: #ea580c;
  --sunset-700: #c2410c;
  --twilight-500: #7c3aed;
  --twilight-600: #6d28d9;
  --golden-400: #facc15;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #f8fafc;
  --line: #e5e7eb;
  --card: #ffffff;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.10);
  --shadow-xl: 0 25px 70px rgba(15, 23, 42, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 24rem, #f8fafc 100%);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 210px;
}

.brand-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, var(--sunset-500), var(--twilight-500));
  box-shadow: 0 14px 30px rgba(249, 115, 22, 0.28);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong,
.footer-logo {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-text small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

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

.nav-link {
  color: #374151;
  font-size: 14px;
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--sunset-600);
}

.menu-toggle {
  display: none;
  border: 0;
  border-radius: 12px;
  padding: 9px 11px;
  background: #f3f4f6;
  color: #374151;
  font-size: 18px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 14px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.mobile-nav.is-open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mobile-nav a {
  padding: 10px 12px;
  border-radius: 12px;
  background: #f9fafb;
  color: #374151;
  font-size: 14px;
  font-weight: 700;
}

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

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  margin: 28px 0 48px;
}

.hero-main {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border-radius: 34px;
  background: #111827;
  box-shadow: var(--shadow-xl);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}

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

.hero-image,
.detail-backdrop {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(249, 115, 22, 0.42), transparent 32%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.46) 50%, rgba(0, 0, 0, 0.18)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.65), transparent 38%);
}

.hero-content {
  position: absolute;
  left: clamp(26px, 6vw, 74px);
  right: clamp(22px, 8vw, 180px);
  bottom: clamp(40px, 9vw, 82px);
  color: #ffffff;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--sunset-700);
  background: var(--sunset-100);
  font-size: 13px;
  font-weight: 800;
}

.hero-kicker {
  color: #ffffff;
  background: rgba(249, 115, 22, 0.92);
}

.hero-content h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(38px, 7vw, 78px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.hero-content p {
  max-width: 660px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 17px;
  line-height: 1.8;
}

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

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

.hero-tags span,
.detail-meta span,
.tag-row span {
  border-radius: 999px;
  padding: 7px 11px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

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

.primary-btn,
.ghost-btn,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  color: #ffffff;
  background: linear-gradient(135deg, var(--sunset-500), var(--twilight-500));
  box-shadow: 0 16px 35px rgba(249, 115, 22, 0.25);
}

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

.primary-btn:hover,
.ghost-btn:hover,
.section-more:hover,
.movie-card:hover {
  transform: translateY(-3px);
}

.hero-dots {
  position: absolute;
  left: clamp(26px, 6vw, 74px);
  bottom: 24px;
  display: flex;
  gap: 9px;
  z-index: 5;
}

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

.hero-dot.is-active {
  width: 42px;
  background: #ffffff;
}

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.side-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 24px;
  padding: 18px;
  color: #ffffff;
  background: linear-gradient(135deg, #111827, #7c2d12);
}

.side-title span {
  font-size: 18px;
  font-weight: 900;
}

.side-title a {
  color: var(--golden-400);
  font-size: 13px;
  font-weight: 800;
}

.side-stack,
.rank-grid {
  display: grid;
  gap: 14px;
}

.content-section,
.search-strip {
  margin: 44px 0;
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-head p {
  max-width: 650px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.section-more {
  flex: 0 0 auto;
  color: var(--sunset-700);
  background: var(--sunset-100);
}

.filter-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 26px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
}

.filter-title span {
  display: block;
  font-size: 18px;
  font-weight: 900;
}

.filter-title small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.filter-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 150px 150px;
  gap: 10px;
  width: min(650px, 100%);
}

.filter-controls input,
.filter-controls select {
  height: 44px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
  color: #374151;
  background: #ffffff;
  outline: none;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.86);
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  box-shadow: var(--shadow-xl);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #111827, #7c2d12);
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 54%);
}

.play-dot,
.rank-badge {
  position: absolute;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 900;
}

.play-dot {
  right: 12px;
  bottom: 12px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.94);
}

.rank-badge {
  left: 12px;
  top: 12px;
  min-width: 34px;
  height: 34px;
  border-radius: 12px;
  padding: 0 8px;
  background: linear-gradient(135deg, var(--golden-400), var(--sunset-500));
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22);
}

.card-body {
  padding: 16px;
}

.card-meta {
  color: #6b7280;
  font-size: 12px;
  font-weight: 700;
}

.card-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 8px;
  color: #d1d5db;
}

.movie-card h3 {
  display: -webkit-box;
  min-height: 52px;
  margin: 10px 0 8px;
  overflow: hidden;
  font-size: 18px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.movie-card p {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row span {
  color: var(--sunset-700);
  background: var(--sunset-50);
}

.movie-card.compact {
  display: grid;
  grid-template-columns: 134px minmax(0, 1fr);
  min-height: 116px;
}

.movie-card.compact .poster-link {
  height: 100%;
  aspect-ratio: auto;
}

.movie-card.compact .card-body {
  padding: 14px;
}

.movie-card.compact h3 {
  min-height: auto;
  margin: 7px 0 6px;
  font-size: 16px;
}

.movie-card.compact p {
  min-height: auto;
  margin-bottom: 8px;
  font-size: 13px;
}

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

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

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

.category-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border-radius: 26px;
  padding: 22px;
  color: #ffffff;
  background:
    radial-gradient(circle at 15% 20%, rgba(250, 204, 21, 0.28), transparent 35%),
    linear-gradient(135deg, #111827, #7c2d12 48%, #6d28d9);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.category-card span {
  position: relative;
  z-index: 2;
  display: block;
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: 900;
}

.category-card strong {
  position: relative;
  z-index: 2;
  display: block;
  max-width: 360px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.7;
}

.mini-posters {
  position: absolute;
  right: -10px;
  bottom: -18px;
  display: flex;
  gap: 8px;
  opacity: 0.72;
  transform: rotate(-8deg);
}

.mini-posters img {
  width: 70px;
  height: 96px;
  border: 3px solid rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  margin: 28px 0 30px;
  color: #ffffff;
  background:
    radial-gradient(circle at 20% 30%, rgba(249, 115, 22, 0.35), transparent 32%),
    linear-gradient(135deg, #111827, #6d28d9 60%, #7c2d12);
  box-shadow: var(--shadow-xl);
}

.page-hero {
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  padding: clamp(28px, 6vw, 64px);
}

.page-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 690px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.8;
}

.detail-main {
  width: min(1180px, calc(100% - 32px));
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 22px 0;
  color: var(--muted);
  font-size: 14px;
}

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

.detail-hero {
  min-height: 560px;
}

.detail-backdrop,
.detail-shade {
  position: absolute;
  inset: 0;
}

.detail-shade {
  background:
    radial-gradient(circle at 22% 24%, rgba(249, 115, 22, 0.36), transparent 35%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.45) 58%, rgba(0, 0, 0, 0.2));
}

.detail-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: clamp(22px, 5vw, 54px);
  align-items: end;
  min-height: 560px;
  padding: clamp(24px, 5vw, 64px);
}

.detail-poster {
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.34);
  border-radius: 28px;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.35);
}

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

.detail-info h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.detail-info .lead {
  max-width: 760px;
  margin: 20px 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 18px;
  line-height: 1.75;
}

.detail-meta span {
  background: rgba(255, 255, 255, 0.16);
}

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

.detail-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

.player-section {
  margin: 34px 0;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #050505;
  box-shadow: var(--shadow-xl);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.28), rgba(0, 0, 0, 0.58));
  cursor: pointer;
}

.player-overlay span {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sunset-500), var(--twilight-500));
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
  font-size: 28px;
}

.player-overlay strong {
  font-size: 18px;
}

.player-card.is-playing .player-overlay {
  display: none;
}

.text-panel {
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 28px;
  padding: clamp(24px, 5vw, 42px);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.text-panel p {
  margin: 0 0 26px;
  color: #374151;
  font-size: 16px;
  line-height: 2;
}

.text-panel p:last-child {
  margin-bottom: 0;
}

.site-footer {
  margin-top: 70px;
  padding: 44px 0 28px;
  color: #d1d5db;
  background: #111827;
}

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

.footer-logo {
  color: #ffffff;
}

.footer-inner p {
  color: #9ca3af;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.footer-links a {
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
}

.footer-links a:hover {
  background: rgba(249, 115, 22, 0.55);
}

.footer-copy {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #9ca3af;
  font-size: 13px;
}

@media (max-width: 1120px) {
  .hero-shell {
    grid-template-columns: 1fr;
  }

  .hero-side {
    display: grid;
    grid-template-columns: 1fr 2fr;
  }

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

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

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

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

  .menu-toggle {
    display: inline-flex;
  }

  .hero-main {
    min-height: 520px;
  }

  .hero-content {
    right: 24px;
  }

  .hero-side,
  .side-stack,
  .footer-inner,
  .detail-layout,
  .filter-panel,
  .section-head {
    grid-template-columns: 1fr;
    display: grid;
  }

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

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

  .detail-layout {
    min-height: auto;
    padding-top: 80px;
  }

  .detail-poster {
    width: min(260px, 82vw);
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  main,
  .page-main,
  .detail-main,
  .header-inner,
  .mobile-nav,
  .footer-inner,
  .footer-copy {
    width: min(100% - 22px, 1180px);
  }

  .brand {
    min-width: 0;
  }

  .brand-text small {
    display: none;
  }

  .hero-shell {
    margin-top: 18px;
  }

  .hero-main {
    min-height: 520px;
    border-radius: 24px;
  }

  .hero-content h1 {
    font-size: 38px;
  }

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

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

  .movie-card.compact {
    grid-template-columns: 118px minmax(0, 1fr);
  }

  .category-card {
    min-height: 190px;
  }

  .page-hero,
  .detail-hero,
  .player-card,
  .text-panel {
    border-radius: 24px;
  }

  .detail-info h1 {
    font-size: 38px;
  }
}
