:root {
  color-scheme: light;
  --site-red: #dc2626;
  --site-orange: #ea580c;
  --site-dark: #0f172a;
  --site-muted: #64748b;
  --site-bg: #f8fafc;
  --site-card: #ffffff;
}

body {
  background: var(--site-bg);
  color: var(--site-dark);
}

img {
  max-width: 100%;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 68px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  color: #b91c1c;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: #fff;
  box-shadow: 0 16px 32px rgba(220, 38, 38, 0.22);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 650;
  color: #334155;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--site-red);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #f1f5f9;
  color: #334155;
  align-items: center;
  justify-content: center;
}

.mobile-nav {
  display: none;
  padding: 12px 20px 18px;
  border-top: 1px solid #e2e8f0;
  background: #fff;
}

.mobile-nav a {
  display: block;
  padding: 10px 0;
  font-weight: 650;
  color: #334155;
}

main {
  padding-top: 68px;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border-radius: 0 0 36px 36px;
  background: #111827;
  color: #fff;
}

.hero-slide {
  display: none;
  min-height: 620px;
  position: relative;
  isolation: isolate;
}

.hero-slide.active {
  display: block;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  opacity: 0.58;
  z-index: -2;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 78% 20%, rgba(248, 113, 113, 0.26), transparent 32%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.72) 48%, rgba(15, 23, 42, 0.35) 100%);
}

.hero-content {
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 420px);
  align-items: center;
  gap: 40px;
  padding: 84px 20px 76px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(36px, 7vw, 72px);
  line-height: 1.02;
  max-width: 850px;
  font-weight: 900;
  letter-spacing: -0.04em;
  margin: 0 0 20px;
}

.hero p {
  max-width: 720px;
  font-size: 18px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.86);
  margin: 0 0 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: #fff;
  box-shadow: 0 18px 36px rgba(220, 38, 38, 0.28);
}

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

.hero-card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  padding: 18px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px);
}

.hero-poster {
  aspect-ratio: 3 / 4;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(135deg, #991b1b, #fb923c);
}

.hero-poster img,
.poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(248, 250, 252, 0.12);
  color: inherit;
}

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

.hero-dot {
  width: 34px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
}

.hero-dot.active {
  background: #fff;
}

.section {
  padding: 58px 0;
}

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

.section-title {
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.15;
  font-weight: 900;
  color: #1e293b;
  margin: 0;
}

.section-subtitle {
  color: var(--site-muted);
  margin: 8px 0 0;
}

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

.movie-card {
  background: var(--site-card);
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.poster {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #fee2e2, #fed7aa);
}

.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.72));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster::after {
  opacity: 1;
}

.card-body {
  padding: 14px;
}

.card-title {
  font-weight: 850;
  color: #1e293b;
  line-height: 1.35;
  min-height: 2.7em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-line {
  color: #64748b;
  font-size: 13px;
  line-height: 1.55;
  margin-top: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: #94a3b8;
  margin-top: 12px;
}

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

.category-card {
  min-height: 170px;
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(135deg, #fff, #fff7ed);
  border: 1px solid #fed7aa;
  box-shadow: 0 12px 30px rgba(234, 88, 12, 0.08);
}

.category-card h2,
.category-card h3 {
  font-size: 22px;
  font-weight: 900;
  margin: 0 0 12px;
  color: #9a3412;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 54px 82px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 12px;
}

.rank-num {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, #ef4444, #f97316);
}

.rank-thumb {
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;
  background: #fee2e2;
}

.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.detail-hero {
  background: #0f172a;
  color: #fff;
  border-radius: 0 0 34px 34px;
  overflow: hidden;
}

.detail-hero-inner {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 30px;
  align-items: center;
  padding: 54px 20px;
}

.detail-cover {
  aspect-ratio: 3 / 4;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  background: linear-gradient(135deg, #991b1b, #fb923c);
}

.detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-title {
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.06;
  font-weight: 950;
  margin: 0 0 16px;
}

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

.content-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 26px;
  padding: 26px;
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.06);
  margin-bottom: 22px;
}

.content-card h2 {
  font-size: 24px;
  font-weight: 900;
  color: #1e293b;
  margin: 0 0 14px;
}

.content-card p {
  color: #475569;
  line-height: 1.9;
  margin: 0;
}

.player {
  position: relative;
  background: #020617;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(2, 6, 23, 0.22);
  margin-bottom: 24px;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: radial-gradient(circle at center, rgba(239, 68, 68, 0.18), rgba(2, 6, 23, 0.76));
  z-index: 2;
}

.player.is-playing .player-cover {
  display: none;
}

.player-start {
  width: 92px;
  height: 92px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: #fff;
  font-size: 30px;
  box-shadow: 0 20px 50px rgba(239, 68, 68, 0.35);
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px;
  gap: 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 16px;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
}

.search-panel input,
.search-panel select {
  height: 46px;
  border-radius: 14px;
  border: 1px solid #cbd5e1;
  padding: 0 14px;
  outline: none;
  color: #334155;
  background: #fff;
}

.search-panel input:focus,
.search-panel select:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 28px;
}

.footer a:hover {
  color: #fff;
}

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

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

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

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

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

  .mobile-nav.open {
    display: block;
  }

  .hero,
  .hero-slide {
    min-height: auto;
    border-radius: 0 0 24px 24px;
  }

  .hero-content {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 48px;
  }

  .hero-card {
    max-width: 320px;
  }

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

  .category-grid,
  .rank-list,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 46px 70px minmax(0, 1fr);
  }

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

  .detail-cover {
    max-width: 240px;
  }

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