:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: #0f172a;
  --panel-soft: #111827;
  --line: rgba(148, 163, 184, 0.22);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --subtle: #94a3b8;
  --red: #dc2626;
  --orange: #f97316;
  --amber: #f59e0b;
  --shadow: 0 25px 70px rgba(0, 0, 0, 0.38);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(220, 38, 38, 0.18), transparent 34rem),
    linear-gradient(180deg, #020617 0%, #0f172a 46%, #020617 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #1e293b, #7f1d1d);
}

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.94));
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.26);
}

.site-nav {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 12px 26px rgba(220, 38, 38, 0.32);
}

.brand-text {
  display: grid;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 22px;
  letter-spacing: 0.02em;
}

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

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

.nav-link,
.quick-cats a,
.footer-links a {
  color: var(--muted);
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fff;
  background: rgba(220, 38, 38, 0.18);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  color: #fff;
  background: rgba(15, 23, 42, 0.86);
  border-radius: 12px;
  padding: 8px 12px;
}

.quick-cats {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 22px 12px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
}

.quick-cats a {
  flex: 0 0 auto;
  padding: 7px 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  font-size: 13px;
}

.quick-cats a:hover,
.footer-links a:hover {
  color: #fff;
  background: rgba(220, 38, 38, 0.18);
}

.hero-carousel {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 48px;
  padding: 94px max(26px, calc((100vw - 1280px) / 2 + 26px)) 84px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.75s ease;
}

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

.hero-bg,
.page-hero-bg,
.detail-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  filter: saturate(1.08);
}

.hero-bg::after,
.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 16%, rgba(248, 113, 113, 0.26), transparent 28rem),
    linear-gradient(180deg, rgba(2, 6, 23, 0.2), #020617 96%);
}

.hero-copy,
.hero-poster,
.detail-layout,
.page-hero > div:not(.page-hero-bg) {
  position: relative;
  z-index: 2;
}

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

.eyebrow,
.section-heading span,
.page-hero span,
.catalog-content span {
  display: inline-flex;
  color: #fecaca;
  background: rgba(220, 38, 38, 0.18);
  border: 1px solid rgba(248, 113, 113, 0.28);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 20px 0 18px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero-copy p,
.page-hero p,
.lead-text {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
}

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

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

.hero-tags span,
.tag-row span,
.detail-meta span {
  color: #fee2e2;
  background: rgba(127, 29, 29, 0.54);
  border: 1px solid rgba(248, 113, 113, 0.22);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
}

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

.primary-btn,
.secondary-btn,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  padding: 13px 22px;
  box-shadow: 0 15px 30px rgba(220, 38, 38, 0.34);
}

.secondary-btn {
  color: #fff;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(248, 113, 113, 0.26);
  padding: 12px 20px;
}

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

.hero-poster {
  display: block;
  height: 520px;
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow);
}

.hero-dots {
  position: absolute;
  z-index: 4;
  left: max(26px, calc((100vw - 1280px) / 2 + 26px));
  bottom: 34px;
  display: flex;
  gap: 10px;
}

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

.hero-dot.is-active {
  background: linear-gradient(135deg, var(--red), var(--orange));
}

.content-section,
.filter-panel,
.detail-content,
.player-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 54px 22px;
}

.section-heading {
  margin-bottom: 28px;
}

.compact-heading {
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 14px 0 8px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
}

.section-heading p {
  margin: 0;
  color: var(--subtle);
}

.filter-panel {
  margin-top: -54px;
  position: relative;
  z-index: 6;
}

.filter-panel::before,
.story-card,
.catalog-card,
.category-tile,
.movie-card,
.player-shell {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(17, 24, 39, 0.92));
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: var(--shadow);
}

.filter-panel::before {
  content: "";
  position: absolute;
  inset: 30px 22px;
  z-index: -1;
  border-radius: var(--radius);
}

.search-row input {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.24);
  color: #fff;
  background: rgba(2, 6, 23, 0.72);
  border-radius: 16px;
  padding: 16px 18px;
  outline: none;
}

.search-row input:focus {
  border-color: rgba(248, 113, 113, 0.72);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.16);
}

.filter-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}

.filter-group strong {
  color: #fff;
  margin-right: 4px;
}

.filter-group button {
  color: var(--muted);
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.86);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
}

.filter-group button.is-active,
.filter-group button:hover {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--red), var(--orange));
}

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

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

.movie-card {
  border-radius: 24px;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(248, 113, 113, 0.42);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
}

.poster-shade {
  position: absolute;
  inset: auto 0 0;
  height: 44%;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.92), transparent);
}

.year-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  color: #fff;
  background: rgba(220, 38, 38, 0.86);
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 900;
}

.card-body {
  padding: 16px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--subtle);
  font-size: 12px;
  font-weight: 800;
}

.card-body h3,
.rank-main h2 {
  margin: 10px 0 8px;
  color: #fff;
  line-height: 1.25;
}

.card-body h3 {
  font-size: 18px;
}

.card-body p,
.rank-main p,
.story-card p,
.catalog-content em,
.site-footer p {
  color: var(--muted);
}

.card-body p {
  min-height: 50px;
  margin: 0 0 12px;
  font-size: 14px;
}

.tag-row {
  min-height: 28px;
  margin-bottom: 14px;
}

.text-link {
  color: #fecaca;
  font-size: 14px;
}

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

.category-tile {
  display: block;
  border-radius: 24px;
  padding: 24px;
}

.category-index {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  font-weight: 900;
  margin-bottom: 18px;
}

.category-tile strong {
  display: block;
  font-size: 24px;
  margin-bottom: 8px;
}

.category-tile em {
  display: block;
  min-height: 24px;
  color: var(--subtle);
  font-style: normal;
  margin-bottom: 12px;
}

.category-tile ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.category-tile li a,
.catalog-links a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  padding: 5px 0;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  padding: 98px max(22px, calc((100vw - 1280px) / 2 + 22px));
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(127, 29, 29, 0.72), rgba(15, 23, 42, 0.92));
}

.small-hero,
.rank-hero {
  min-height: 320px;
}

.category-hero {
  min-height: 390px;
}

.catalog-card {
  display: grid;
  grid-template-columns: 210px 1fr;
  min-height: 320px;
  border-radius: 24px;
  overflow: hidden;
}

.catalog-content {
  padding: 24px;
}

.catalog-content h2 {
  margin: 14px 0 8px;
  font-size: 28px;
}

.catalog-links {
  display: grid;
  gap: 3px;
  margin: 18px 0;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 70px 96px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
}

.rank-num {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  font-size: 20px;
  font-weight: 900;
}

.rank-poster {
  height: 128px;
  border-radius: 18px;
  overflow: hidden;
}

.small-btn {
  padding: 10px 16px;
}

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

.detail-layout {
  max-width: 1280px;
  width: 100%;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  align-items: center;
  gap: 46px;
}

.detail-poster {
  height: 500px;
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow);
}

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

.breadcrumb a {
  color: #fecaca;
}

.breadcrumb em {
  font-style: normal;
}

.detail-meta {
  margin: 20px 0;
}

.detail-tags {
  margin-bottom: 28px;
}

.player-section {
  padding-top: 64px;
}

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 30px;
  overflow: hidden;
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  color: #fff;
  border: 0;
  background: radial-gradient(circle at center, rgba(220, 38, 38, 0.36), rgba(2, 6, 23, 0.62));
  cursor: pointer;
}

.play-overlay span {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 18px 36px rgba(220, 38, 38, 0.35);
  font-size: 30px;
}

.play-overlay strong {
  font-size: 22px;
}

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

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

.story-card {
  border-radius: 24px;
  padding: 28px;
}

.story-card h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.story-card p {
  margin: 0;
}

.site-footer {
  margin-top: 36px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), #020617);
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 22px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
}

.footer-brand {
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 10px;
}

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

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

.is-hidden {
  display: none !important;
}

.empty-tip {
  grid-column: 1 / -1;
  color: var(--muted);
  text-align: center;
  border: 1px dashed rgba(148, 163, 184, 0.28);
  border-radius: 18px;
  padding: 34px;
}

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

  .hero-slide {
    grid-template-columns: 1fr 300px;
  }
}

@media (max-width: 840px) {
  .site-nav {
    flex-wrap: wrap;
  }

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

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

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

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

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 66px;
  }

  .hero-poster {
    height: 300px;
  }

  .filter-groups,
  .category-grid,
  .catalog-grid,
  .detail-content,
  .footer-grid,
  .detail-layout {
    grid-template-columns: 1fr;
  }

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

  .catalog-cover {
    height: 300px;
  }

  .rank-row {
    grid-template-columns: 44px 72px minmax(0, 1fr);
  }

  .rank-row .primary-btn {
    grid-column: 2 / -1;
    justify-self: start;
  }

  .detail-poster {
    height: 420px;
    max-width: 310px;
  }
}

@media (max-width: 620px) {
  .brand-text strong {
    font-size: 18px;
  }

  .hero-copy h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 38px;
  }

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

  .card-body {
    padding: 13px;
  }

  .card-body p,
  .tag-row {
    display: none;
  }

  .page-hero,
  .detail-hero {
    padding-left: 18px;
    padding-right: 18px;
  }

  .content-section,
  .filter-panel,
  .detail-content,
  .player-section {
    padding-left: 18px;
    padding-right: 18px;
  }
}
