:root {
  color-scheme: light;
  --brand-red: #dc2626;
  --brand-orange: #f97316;
  --brand-amber: #f59e0b;
  --brand-gold: #fde68a;
  --text-dark: #111827;
  --text-muted: #6b7280;
  --line-soft: #f1f5f9;
  --paper: #ffffff;
  --paper-soft: #fff7ed;
  --shadow-soft: 0 24px 60px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text-dark);
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 26%, #fffaf0 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(248, 113, 22, 0.12);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #991b1b;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-orange), var(--brand-amber));
  box-shadow: 0 14px 28px rgba(220, 38, 38, 0.25);
}

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

.nav-links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: #374151;
  font-size: 15px;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: #b91c1c;
  background: #fff1e6;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-orange));
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(120deg, #dc2626 0%, #f97316 48%, #f59e0b 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 44%, rgba(255, 255, 255, 0.22), transparent 42%);
  z-index: 2;
  pointer-events: none;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.7s ease, transform 1.1s ease;
  background-size: cover;
  background-position: center;
}

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

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(127, 29, 29, 0.92), rgba(194, 65, 12, 0.76) 48%, rgba(15, 23, 42, 0.32));
}

.hero-content {
  position: relative;
  z-index: 4;
  max-width: 760px;
  padding: 120px 0 112px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  margin-bottom: 22px;
  border-radius: 999px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(10px);
  font-size: 14px;
  font-weight: 800;
}

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

.hero h1 span,
.hero h2 span {
  color: var(--brand-gold);
}

.hero p {
  max-width: 700px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(17px, 2vw, 21px);
}

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

.button-primary,
.button-secondary,
.button-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 14px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-orange));
  box-shadow: 0 14px 28px rgba(220, 38, 38, 0.24);
}

.button-secondary {
  color: #b91c1c;
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

.button-light {
  color: #b91c1c;
  background: #ffffff;
  box-shadow: 0 18px 36px rgba(127, 29, 29, 0.22);
}

.button-primary:hover,
.button-secondary:hover,
.button-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(220, 38, 38, 0.22);
}

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

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

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

.section {
  padding: 72px 0;
}

.section.compact {
  padding: 42px 0;
}

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

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #dc2626;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-title {
  margin: 5px 0 6px;
  color: #111827;
  font-size: clamp(27px, 4vw, 38px);
  line-height: 1.15;
  font-weight: 950;
}

.section-desc {
  max-width: 760px;
  margin: 0;
  color: var(--text-muted);
}

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

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

.movie-card {
  min-width: 0;
}

.movie-card-link {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(248, 113, 22, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card-link:hover {
  transform: translateY(-6px);
  border-color: rgba(248, 113, 22, 0.35);
  box-shadow: var(--shadow-soft);
}

.poster {
  position: relative;
  min-height: 236px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-color: #fed7aa;
}

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

.movie-grid.large .poster {
  min-height: 206px;
}

.poster-title {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 13px;
  z-index: 2;
  color: #ffffff;
  font-size: 17px;
  line-height: 1.3;
  font-weight: 900;
  text-shadow: 0 4px 14px rgba(15, 23, 42, 0.38);
}

.badge,
.year-badge,
.rank-badge {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
}

.badge {
  left: 12px;
  top: 12px;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-orange));
}

.year-badge {
  right: 12px;
  top: 12px;
  background: rgba(15, 23, 42, 0.72);
}

.rank-badge {
  left: 12px;
  bottom: 12px;
  background: rgba(234, 88, 12, 0.9);
}

.movie-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
}

.movie-title {
  margin: 0;
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
}

.movie-desc {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.movie-meta,
.card-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  color: #6b7280;
  font-size: 13px;
}

.card-tags span,
.meta-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  color: #9a3412;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  font-size: 12px;
  font-weight: 800;
}

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

.channel-card {
  position: relative;
  overflow: hidden;
  min-height: 158px;
  padding: 22px;
  border-radius: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-orange), var(--brand-amber));
  box-shadow: 0 18px 42px rgba(220, 38, 38, 0.18);
}

.channel-card::before {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  right: -60px;
  bottom: -70px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.channel-card h2,
.channel-card h3 {
  position: relative;
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 950;
}

.channel-card p {
  position: relative;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
}

.stats-band {
  padding: 52px 0;
  color: #ffffff;
  background: linear-gradient(90deg, #dc2626, #f97316, #f59e0b);
}

.stats-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 18px;
  align-items: center;
}

.stat-card {
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(12px);
}

.stat-card strong {
  display: block;
  font-size: 36px;
  line-height: 1;
  font-weight: 950;
}

.stat-card span {
  color: rgba(255, 255, 255, 0.84);
  font-weight: 800;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 220px 220px;
  gap: 14px;
  margin-bottom: 26px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(248, 113, 22, 0.12);
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.06);
}

.search-input,
.filter-select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #fed7aa;
  border-radius: 16px;
  padding: 0 16px;
  outline: none;
  color: #111827;
  background: #ffffff;
}

.search-input:focus,
.filter-select:focus {
  border-color: #fb923c;
  box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.12);
}

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

.rank-row {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(248, 113, 22, 0.12);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.rank-number {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-orange));
  font-weight: 950;
}

.rank-main h2,
.rank-main h3 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 900;
}

.rank-main p {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 30px 0 18px;
  color: #9a3412;
  font-size: 14px;
  font-weight: 800;
}

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

.detail-top {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  min-height: 420px;
  color: #ffffff;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-soft);
}

.detail-top::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(127, 29, 29, 0.92), rgba(17, 24, 39, 0.76));
}

.detail-info {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 30px;
  align-items: center;
  min-height: 420px;
  padding: clamp(24px, 5vw, 48px);
}

.detail-title {
  margin: 0 0 16px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.detail-summary {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

.detail-poster {
  min-height: 310px;
  border-radius: 28px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.26);
}

.player-section {
  margin-top: 32px;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: 26px;
  align-items: start;
}

.player-card,
.content-card {
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid rgba(248, 113, 22, 0.12);
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.player-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-frame video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.play-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14), rgba(15, 23, 42, 0.48));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-cover span {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 999px;
  color: #dc2626;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.26);
  font-size: 34px;
  transform: translateX(3px);
}

.player-caption,
.content-card {
  padding: 24px;
}

.player-caption h2,
.content-card h2,
.related-title {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 950;
}

.player-caption p,
.content-card p {
  margin: 0 0 14px;
  color: #4b5563;
}

.detail-meta {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  color: #9a3412;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  font-weight: 900;
  font-size: 13px;
}

.related-section {
  padding: 52px 0 80px;
}

.site-footer {
  margin-top: 64px;
  padding: 42px 0;
  color: #fff7ed;
  background: #7f1d1d;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-inner strong {
  display: block;
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 18px;
}

.footer-inner p {
  margin: 0;
  max-width: 720px;
  color: rgba(255, 247, 237, 0.82);
}

.empty-state {
  display: none;
  padding: 30px;
  border-radius: 22px;
  text-align: center;
  color: #9a3412;
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

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

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

  .detail-info,
  .player-section,
  .stats-layout {
    grid-template-columns: 1fr;
  }
}

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

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    border: 1px solid #fed7aa;
  }

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

  .nav-links a {
    border-radius: 14px;
  }

  .hero {
    min-height: 620px;
  }

  .hero-content {
    padding: 96px 0 106px;
  }

  .section-head {
    display: block;
  }

  .section-actions {
    margin-top: 18px;
  }

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

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

  .rank-row {
    grid-template-columns: 54px 1fr;
  }

  .rank-row .button-secondary {
    grid-column: 1 / -1;
  }
}

@media (max-width: 540px) {
  .site-shell {
    width: min(100% - 22px, 1180px);
  }

  .logo {
    font-size: 18px;
  }

  .logo-mark {
    width: 34px;
    height: 34px;
  }

  .movie-grid,
  .movie-grid.large,
  .channel-grid {
    grid-template-columns: 1fr;
  }

  .poster,
  .movie-grid.large .poster {
    min-height: 245px;
  }

  .detail-info {
    padding: 22px;
  }

  .detail-poster {
    min-height: 240px;
  }

  .player-caption,
  .content-card {
    padding: 18px;
  }
}
