* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #f8fafc;
  color: #1f2937;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, #1e293b, #334155, #1e293b);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.22);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #fb923c, #ea580c);
  box-shadow: 0 14px 32px rgba(249, 115, 22, 0.35);
  font-size: 18px;
}

.brand-copy {
  display: grid;
  line-height: 1.2;
}

.brand-copy strong {
  font-size: 20px;
  letter-spacing: 0.08em;
}

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

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

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

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  background: #f97316;
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.28);
}

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

.menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #ffffff;
  border-radius: 99px;
}

.hero-section {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #1e293b 0%, #334155 45%, #7c2d12 100%);
}

.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
}

.hero-glow::before,
.hero-glow::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  filter: blur(60px);
}

.hero-glow::before {
  left: 8%;
  top: 14%;
  background: #f97316;
}

.hero-glow::after {
  right: 8%;
  bottom: 8%;
  background: #3b82f6;
}

.hero-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 660px;
  padding: 86px 0 76px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 450px;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  padding: 8px 14px;
  border-radius: 999px;
  color: #fed7aa;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.hero-copy h1 {
  margin: 22px 0 18px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-copy p {
  margin: 0 0 14px;
  max-width: 720px;
  color: #e2e8f0;
  font-size: 20px;
}

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

.button-primary,
.button-ghost,
.hero-mini-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 800;
  transition: 0.25s ease;
}

.button-primary,
.hero-mini-button {
  color: #ffffff;
  background: linear-gradient(90deg, #f97316, #ea580c);
  box-shadow: 0 16px 34px rgba(234, 88, 12, 0.35);
}

.button-primary:hover,
.hero-mini-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 20px 42px rgba(234, 88, 12, 0.42);
}

.button-ghost {
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.button-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
}

.hero-search {
  display: flex;
  gap: 10px;
  max-width: 640px;
  margin-top: 28px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
}

.hero-search input,
.search-panel input,
.search-panel select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0 14px;
  outline: none;
  background: #ffffff;
  color: #0f172a;
  font-size: 15px;
}

.hero-search input {
  border: 0;
}

.hero-search button,
.search-panel button {
  flex: 0 0 auto;
  border: 0;
  min-height: 48px;
  border-radius: 12px;
  padding: 0 18px;
  color: #ffffff;
  background: linear-gradient(90deg, #f97316, #ea580c);
  font-weight: 800;
  cursor: pointer;
}

.hero-carousel {
  position: relative;
  min-height: 500px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 28px;
  background: #0f172a;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.45);
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  pointer-events: none;
  transition: 0.6s ease;
}

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

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

.hero-slide-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.9));
}

.hero-slide-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide-content {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 28px;
  z-index: 1;
}

.hero-slide-content h2 {
  margin: 14px 0 8px;
  font-size: 30px;
  line-height: 1.2;
}

.hero-slide-content p {
  margin: 0 0 18px;
  color: #e2e8f0;
}

.hero-dots {
  position: absolute;
  left: 28px;
  top: 28px;
  z-index: 2;
  display: flex;
  gap: 8px;
}

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

.hero-dot.active {
  width: 28px;
  background: #f97316;
}

.section {
  padding: 74px 0;
}

.section-alt {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
}

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

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

.section-heading h2,
.page-hero h1,
.detail-hero h1 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-heading p,
.page-hero p,
.detail-hero p {
  margin: 10px 0 0;
  color: #64748b;
  font-size: 17px;
}

.link-more {
  color: #ea580c;
  font-weight: 800;
}

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

.stat-card,
.category-card,
.search-panel,
.content-card {
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.stat-card {
  padding: 24px;
  transition: 0.25s ease;
}

.stat-card:hover,
.category-card:hover,
.movie-card:hover,
.wide-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
}

.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #ea580c);
  font-size: 24px;
  margin-bottom: 14px;
}

.stat-card strong {
  display: block;
  color: #0f172a;
  font-size: 24px;
}

.stat-card span {
  color: #64748b;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
  transition: 0.25s ease;
}

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

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

.movie-card:hover .poster-frame img,
.category-card:hover img,
.wide-card:hover img {
  transform: scale(1.06);
}

.poster-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(15, 23, 42, 0.8));
}

.poster-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 1;
  padding: 5px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(249, 115, 22, 0.92);
  font-size: 12px;
  font-weight: 800;
}

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

.movie-meta-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #f97316;
  font-size: 13px;
  font-weight: 800;
}

.movie-card h3,
.wide-card h3 {
  margin: 8px 0 8px;
  color: #0f172a;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card p,
.wide-card p {
  margin: 0 0 14px;
  color: #64748b;
  font-size: 14px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-row span,
.meta-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  color: #475569;
  background: #f1f5f9;
  font-size: 12px;
  font-weight: 700;
}

.category-card {
  display: grid;
  gap: 16px;
  padding: 24px;
  transition: 0.25s ease;
}

.category-card h3 {
  margin: 0;
  color: #0f172a;
  font-size: 24px;
}

.category-card p {
  margin: 0;
  color: #64748b;
}

.category-card span {
  color: #ea580c;
  font-weight: 800;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #1e293b, #334155 45%, #7c2d12);
  padding: 82px 0;
}

.page-hero h1,
.detail-hero h1,
.page-hero p,
.detail-hero p {
  color: #ffffff;
}

.page-hero p,
.detail-hero p {
  max-width: 820px;
  color: #e2e8f0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #fed7aa;
  font-weight: 700;
}

.breadcrumb a:hover {
  color: #ffffff;
}

.search-panel {
  margin-bottom: 30px;
  padding: 18px;
  display: grid;
  grid-template-columns: 1.6fr repeat(3, minmax(130px, 0.5fr)) auto;
  gap: 12px;
}

.wide-list {
  display: grid;
  gap: 18px;
}

.wide-card {
  display: grid;
  grid-template-columns: 164px minmax(0, 1fr);
  gap: 20px;
  padding: 16px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.18);
  transition: 0.25s ease;
}

.wide-thumb {
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #0f172a, #334155);
}

.wide-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.35s ease;
}

.rank-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: #ea580c;
  font-weight: 800;
}

.rank-line span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  color: #ffffff;
  background: #0f172a;
}

.detail-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.detail-poster {
  position: sticky;
  top: 96px;
  overflow: hidden;
  border-radius: 24px;
  background: #0f172a;
  box-shadow: 0 20px 54px rgba(15, 23, 42, 0.18);
}

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

.detail-meta {
  padding: 18px;
  display: grid;
  gap: 10px;
  background: #ffffff;
}

.content-card {
  padding: 28px;
}

.content-card h2 {
  margin: 0 0 14px;
  color: #0f172a;
  font-size: 26px;
}

.content-card p {
  margin: 0 0 18px;
  color: #475569;
  font-size: 16px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #020617;
  box-shadow: 0 28px 72px rgba(15, 23, 42, 0.28);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0.05), rgba(15, 23, 42, 0.58));
  pointer-events: none;
  transition: 0.25s ease;
}

.play-button {
  pointer-events: auto;
  border: 0;
  width: 92px;
  height: 92px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #ea580c);
  box-shadow: 0 22px 42px rgba(234, 88, 12, 0.4);
  cursor: pointer;
  font-size: 34px;
}

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

.meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.empty-state {
  display: none;
  margin: 22px 0;
  padding: 22px;
  border-radius: 18px;
  color: #64748b;
  background: #ffffff;
  border: 1px solid #e2e8f0;
}

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

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(135deg, #0f172a, #1e293b, #0f172a);
}

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

.footer-brand h2,
.footer-links h3 {
  margin: 0 0 14px;
  color: #ffffff;
}

.footer-brand p {
  margin: 0;
  color: #94a3b8;
}

.footer-links {
  display: grid;
  gap: 8px;
  align-content: start;
}

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

.footer-bottom {
  padding: 18px 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  text-align: center;
  color: #94a3b8;
}

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

  .hero-carousel {
    min-height: 460px;
  }

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

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

  .detail-poster {
    position: static;
  }
}

@media (max-width: 760px) {
  .nav-shell {
    min-height: 68px;
  }

  .menu-button {
    display: block;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 18px;
    background: #1e293b;
    box-shadow: 0 22px 54px rgba(15, 23, 42, 0.38);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-link {
    justify-content: center;
  }

  .hero-shell {
    min-height: auto;
    padding: 56px 0;
  }

  .hero-search,
  .section-heading {
    flex-direction: column;
    align-items: stretch;
  }

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

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

  .footer-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .brand-copy small {
    display: none;
  }

  .movie-grid,
  .stats-grid,
  .category-grid,
  .search-panel {
    grid-template-columns: 1fr;
  }

  .hero-carousel {
    min-height: 420px;
  }

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