:root {
  color-scheme: dark;
  --bg: #0a0b10;
  --bg-soft: #10131d;
  --panel: rgba(17, 24, 39, 0.88);
  --panel-strong: rgba(31, 41, 55, 0.96);
  --red: #991b1b;
  --red-dark: #7f1d1d;
  --red-soft: #ef4444;
  --gold: #facc15;
  --text: #f8fafc;
  --muted: #cbd5e1;
  --line: rgba(248, 250, 252, 0.12);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(185, 28, 28, 0.28), transparent 36%),
    radial-gradient(circle at 80% 20%, rgba(250, 204, 21, 0.12), transparent 28%),
    linear-gradient(180deg, #08090f 0%, #111827 52%, #07080c 100%);
  color: var(--text);
  min-height: 100vh;
}

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;
  background: linear-gradient(90deg, rgba(127, 29, 29, 0.96), rgba(185, 28, 28, 0.94), rgba(127, 29, 29, 0.96));
  color: #fff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
}

.nav-shell {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #7f1d1d;
  font-weight: 900;
  background: linear-gradient(135deg, #fde047, #ef4444);
  box-shadow: 0 12px 24px rgba(250, 204, 21, 0.18);
}

.brand-text strong {
  display: block;
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #fde68a, #fff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text em {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: #fecaca;
  font-style: normal;
}

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

.desktop-nav a,
.mobile-nav a {
  color: #fee2e2;
  padding: 10px 13px;
  border-radius: 999px;
  font-size: 14px;
  transition: 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
  color: #450a0a;
  background: #facc15;
}

.mobile-menu-btn {
  display: none;
  border: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  width: 42px;
  height: 42px;
  font-size: 20px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 10px 16px 18px;
  background: rgba(69, 10, 10, 0.96);
}

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

.hero {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  background: #08090f;
}

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

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.05);
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 72% 50%, rgba(250, 204, 21, 0.24), transparent 20%), linear-gradient(180deg, transparent 0%, rgba(8, 9, 15, 0.88) 100%);
}

.hero-grid {
  position: relative;
  z-index: 2;
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: center;
  gap: 56px;
  padding: 70px 0 86px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fde68a;
  font-weight: 800;
  letter-spacing: 0.12em;
  font-size: 13px;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1 {
  margin: 14px 0 0;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.03;
  letter-spacing: -0.04em;
}

.hero-copy h2 {
  margin: 18px 0 0;
  color: #fde68a;
  font-size: clamp(26px, 3vw, 42px);
}

.hero-copy p,
.page-hero p,
.footer-grid p {
  color: var(--muted);
  line-height: 1.8;
}

.hero-copy p {
  max-width: 680px;
  font-size: 18px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #fee2e2;
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(248, 113, 113, 0.24);
  font-size: 12px;
}

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

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

.primary-btn,
.ghost-btn,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s ease;
}

.primary-btn,
.ghost-btn {
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
}

.primary-btn {
  color: #450a0a;
  background: linear-gradient(135deg, #fde047, #f97316);
  box-shadow: 0 14px 30px rgba(249, 115, 22, 0.24);
}

.ghost-btn {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.08);
}

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

.hero-poster {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transform: rotate(2deg);
}

.hero-poster img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.hero-poster span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  color: #450a0a;
  background: #facc15;
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 13px;
  font-weight: 900;
}

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

.hero-dots button {
  width: 28px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
}

.hero-dots button.active {
  background: #facc15;
}

.search-panel,
.section-block,
.page-hero,
.detail-head,
.player-section,
.detail-content {
  margin-top: 34px;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 1fr);
  align-items: center;
  gap: 24px;
  padding: 26px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(127, 29, 29, 0.8), rgba(31, 41, 55, 0.78));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.search-panel h2,
.section-title h2,
.rank-panel h2 {
  margin: 8px 0 0;
  font-size: clamp(24px, 3vw, 34px);
}

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

.search-box {
  position: relative;
}

.search-box.full {
  width: 100%;
}

.search-box input {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  outline: none;
  padding: 0 18px;
  font-size: 16px;
}

.search-box input::placeholder {
  color: #fecaca;
}

.search-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 10px);
  z-index: 20;
  display: none;
  max-height: 390px;
  overflow: auto;
  padding: 10px;
  border-radius: 20px;
  background: rgba(8, 9, 15, 0.98);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.search-results.open {
  display: block;
}

.search-result-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
}

.search-result-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.search-result-item img {
  width: 54px;
  height: 74px;
  border-radius: 10px;
  object-fit: cover;
}

.search-result-item strong {
  display: block;
}

.search-result-item span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.pill-row {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill-row a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fee2e2;
  font-size: 13px;
}

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

.section-title.compact {
  align-items: center;
}

.text-link {
  color: #fde68a;
  font-weight: 800;
}

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

.category-tile,
.category-wide,
.content-card {
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(31, 41, 55, 0.78), rgba(127, 29, 29, 0.34));
  border: 1px solid var(--line);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.22);
}

.category-tile {
  min-height: 148px;
  padding: 22px;
}

.category-tile strong,
.category-wide span {
  display: block;
  font-size: 20px;
  color: #fff;
}

.category-tile span,
.category-wide strong {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  font-weight: 400;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

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

.home-grid {
  grid-template-columns: repeat(4, 1fr);
}

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: rgba(17, 24, 39, 0.86);
  border: 1px solid var(--line);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
  transition: 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(250, 204, 21, 0.38);
}

.poster-wrap {
  position: relative;
  display: block;
  background: rgba(127, 29, 29, 0.22);
}

.poster-wrap img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.poster-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #450a0a;
  background: #facc15;
  font-size: 12px;
  font-weight: 900;
}

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

.movie-card h3 {
  margin: 10px 0 8px;
  font-size: 17px;
  line-height: 1.35;
}

.movie-card p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.rank-panel {
  position: sticky;
  top: 92px;
  padding: 20px;
  border-radius: 26px;
  background: rgba(17, 24, 39, 0.92);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.rank-list {
  display: grid;
  gap: 12px;
}

.rank-item {
  display: grid;
  grid-template-columns: 34px 58px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
}

.rank-item:hover {
  background: rgba(250, 204, 21, 0.12);
}

.rank-num {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #450a0a;
  background: #facc15;
  font-weight: 900;
}

.rank-item img {
  width: 58px;
  height: 78px;
  object-fit: cover;
  border-radius: 12px;
}

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

.rank-text em {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.page-main {
  padding-bottom: 48px;
}

.page-hero {
  padding: 58px;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(127, 29, 29, 0.9), rgba(17, 24, 39, 0.82)), radial-gradient(circle at 80% 15%, rgba(250, 204, 21, 0.22), transparent 25%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.small-hero h1,
.category-hero h1 {
  font-size: clamp(32px, 4vw, 54px);
}

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

.category-wide {
  padding: 24px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  margin-bottom: 22px;
}

.breadcrumb a {
  color: #fde68a;
}

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

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

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

.detail-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(32px, 4vw, 58px);
  line-height: 1.1;
}

.lead-text {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.detail-meta span {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: #fee2e2;
}

.detail-meta a {
  color: #fde68a;
}

.watch-player {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow);
}

.watch-player video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  object-fit: cover;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  color: #fff;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.58));
}

.play-overlay.hidden {
  display: none;
}

.play-icon {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  padding-left: 6px;
  border-radius: 50%;
  color: #7f1d1d;
  background: #facc15;
  box-shadow: 0 18px 50px rgba(250, 204, 21, 0.26);
  font-size: 34px;
}

.content-card {
  padding: 28px;
}

.content-card h2 {
  margin: 0 0 12px;
  font-size: 26px;
}

.content-card p {
  color: var(--muted);
  line-height: 1.9;
  font-size: 16px;
}

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

.site-footer {
  margin-top: 70px;
  padding: 44px 0 24px;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.92), #020617);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 34px;
}

.footer-brand {
  font-size: 24px;
  color: #fde68a;
  font-weight: 900;
}

.footer-grid h3 {
  margin: 0 0 12px;
}

.footer-links {
  display: grid;
  gap: 9px;
}

.footer-links a {
  color: var(--muted);
}

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

.footer-bottom {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: #94a3b8;
  text-align: center;
}

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

  .two-column {
    grid-template-columns: 1fr;
  }

  .rank-panel {
    position: static;
  }

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

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

  .mobile-menu-btn {
    display: block;
  }

  .hero,
  .hero-grid {
    min-height: auto;
  }

  .hero-slide {
    position: relative;
    display: none;
  }

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

  .hero-grid,
  .search-panel,
  .detail-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 28px;
    padding: 46px 0 86px;
  }

  .hero-poster {
    max-width: 280px;
    transform: none;
  }

  .category-grid,
  .movie-grid,
  .home-grid,
  .related-grid,
  .wide-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-hero {
    padding: 34px 24px;
  }

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

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

  .category-grid,
  .movie-grid,
  .home-grid,
  .related-grid,
  .wide-list {
    grid-template-columns: 1fr;
  }

  .search-panel {
    padding: 18px;
    border-radius: 22px;
  }

  .hero-copy p {
    font-size: 15px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .primary-btn,
  .ghost-btn {
    width: 100%;
  }

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