:root {
  color-scheme: dark;
  --bg: #0f172a;
  --bg-soft: #111827;
  --panel: #1e293b;
  --panel-light: #263447;
  --line: rgba(148, 163, 184, 0.18);
  --text: #ffffff;
  --muted: #cbd5e1;
  --dim: #94a3b8;
  --red: #dc2626;
  --red-bright: #ef4444;
  --orange: #ea580c;
  --shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96));
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
}

.site-nav {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.brand-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 12px 24px rgba(220, 38, 38, 0.32);
  color: white;
  font-size: 18px;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: 23px;
  letter-spacing: 0.03em;
}

.brand-copy small {
  color: var(--muted);
  font-size: 12px;
}

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

.nav-link,
.mobile-nav-link {
  color: #e2e8f0;
  font-weight: 650;
  transition: color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}

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

.nav-link:hover,
.nav-link.is-active {
  color: white;
  background: rgba(239, 68, 68, 0.16);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(148, 163, 184, 0.14);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: white;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 14px;
}

.mobile-nav.is-open {
  display: grid;
  gap: 8px;
}

.mobile-nav-link {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.72);
}

.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  background: rgba(239, 68, 68, 0.18);
}

.hero {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  background: linear-gradient(90deg, #7f1d1d, #7c2d12, #7f1d1d);
}

.hero-stage {
  position: relative;
  min-height: 600px;
}

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

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.38;
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.55) 46%, rgba(0, 0, 0, 0.18) 100%),
    linear-gradient(0deg, #0f172a 0%, transparent 45%);
}

.hero-content {
  position: relative;
  width: min(1240px, calc(100% - 32px));
  min-height: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 1240px;
  padding: 72px 0 116px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: #fecaca;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.detail-info h1,
.page-hero h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-desc {
  max-width: 760px;
  margin: 24px 0 18px;
  color: #e2e8f0;
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.6;
}

.hero-tags,
.detail-meta,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-tags span,
.detail-meta span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

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

.primary-button,
.ghost-button,
.section-more,
.pager-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.primary-button {
  min-height: 50px;
  padding: 0 26px;
  color: white;
  background: linear-gradient(90deg, var(--red), var(--orange));
  box-shadow: 0 18px 36px rgba(220, 38, 38, 0.35);
}

.primary-button.light {
  background: white;
  color: #7f1d1d;
}

.ghost-button {
  min-height: 50px;
  padding: 0 24px;
  color: white;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.primary-button:hover,
.ghost-button:hover,
.pager-link:hover {
  transform: translateY(-2px) scale(1.02);
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  width: 36px;
  background: white;
}

.hero-picks {
  position: absolute;
  right: max(16px, calc((100vw - 1240px) / 2));
  bottom: 38px;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 12px;
  width: min(420px, 42vw);
}

.hero-pick {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.64);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.hero-pick img {
  width: 58px;
  height: 76px;
  border-radius: 12px;
  object-fit: cover;
}

.hero-pick strong,
.hero-pick em {
  display: block;
}

.hero-pick strong {
  color: white;
  font-size: 14px;
}

.hero-pick em {
  margin-top: 5px;
  color: var(--dim);
  font-size: 12px;
  font-style: normal;
}

.content-section {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0;
}

.dark-band {
  width: 100%;
  max-width: none;
  padding: 64px max(16px, calc((100vw - 1240px) / 2));
  background: linear-gradient(90deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.92));
}

.section-heading,
.category-overview-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.section-heading h2,
.category-overview-head h2,
.text-card h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.02em;
}

.section-heading p,
.category-overview-head p,
.text-card p,
.page-hero p,
.detail-info p,
.footer-inner p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.section-more {
  color: #f87171;
  white-space: nowrap;
}

.section-more:hover {
  color: white;
}

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

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

.movie-card {
  min-width: 0;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  border-color: rgba(239, 68, 68, 0.44);
  box-shadow: var(--shadow);
}

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #111827;
}

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

.movie-card:hover img {
  transform: scale(1.08);
}

.poster-shade {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent 55%);
  transition: opacity 0.25s ease;
}

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

.card-year,
.card-type,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  color: white;
  font-size: 12px;
  font-weight: 800;
}

.card-year {
  top: 10px;
  left: 10px;
  background: var(--red);
}

.card-type {
  right: 10px;
  bottom: 10px;
  background: rgba(15, 23, 42, 0.82);
}

.rank-badge {
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, #f97316, #dc2626);
}

.play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  color: white;
  background: rgba(239, 68, 68, 0.92);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.88);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-mark {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.movie-card-body {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.movie-card-body strong {
  overflow: hidden;
  color: white;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.movie-card-body em {
  display: -webkit-box;
  min-height: 42px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card-body.compact em {
  min-height: 0;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--dim);
  font-size: 12px;
}

.card-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.category-tile,
.category-overview-card,
.text-card,
.player-card,
.filter-panel {
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
}

.category-tile {
  min-height: 170px;
  padding: 22px;
  border-radius: 22px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  border-color: rgba(239, 68, 68, 0.4);
  background: linear-gradient(135deg, rgba(127, 29, 29, 0.72), rgba(30, 41, 59, 0.96));
}

.category-tile span,
.category-tile strong,
.category-tile em {
  display: block;
}

.category-tile span {
  margin-bottom: 16px;
  color: #fecaca;
  font-weight: 900;
  font-size: 20px;
}

.category-tile strong {
  color: #f8fafc;
  font-weight: 650;
  line-height: 1.55;
}

.category-tile em {
  margin-top: 14px;
  color: var(--dim);
  font-size: 13px;
  font-style: normal;
  line-height: 1.5;
}

.cta-band {
  width: min(1240px, calc(100% - 32px));
  margin: 34px auto 78px;
  padding: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-radius: 30px;
  background: linear-gradient(90deg, #7f1d1d, #c2410c);
  box-shadow: var(--shadow);
}

.cta-band h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3vw, 42px);
}

.cta-band p {
  margin: 0;
  color: #fee2e2;
  line-height: 1.7;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(234, 88, 12, 0.28), transparent 34rem),
    linear-gradient(90deg, #7f1d1d, #1e293b 62%, #0f172a);
}

.compact-hero {
  padding: 78px max(16px, calc((100vw - 1240px) / 2));
}

.compact-hero > div {
  max-width: 880px;
}

.slim-actions {
  margin-top: 24px;
}

.stacked-sections {
  display: grid;
  gap: 32px;
}

.category-overview-card {
  padding: 26px;
  border-radius: 28px;
}

.filter-panel {
  margin-bottom: 26px;
  padding: 18px;
  border-radius: 22px;
}

.wide-filter {
  display: grid;
  gap: 14px;
}

.filter-input {
  width: 100%;
  height: 52px;
  padding: 0 18px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 999px;
  color: white;
  background: rgba(15, 23, 42, 0.9);
  outline: 0;
  font-size: 16px;
}

.filter-input:focus {
  border-color: rgba(248, 113, 113, 0.75);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.62);
  cursor: pointer;
}

.filter-chip.is-active,
.filter-chip:hover {
  color: white;
  background: rgba(220, 38, 38, 0.9);
  border-color: rgba(220, 38, 38, 0.9);
}

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

.rank-row {
  display: grid;
  grid-template-columns: 54px 74px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.62);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.rank-row:hover {
  transform: translateX(4px);
  border-color: rgba(239, 68, 68, 0.44);
  background: rgba(30, 41, 59, 0.94);
}

.rank-number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  font-weight: 900;
}

.rank-row img {
  width: 74px;
  height: 96px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-info {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.rank-info strong {
  font-size: 18px;
}

.rank-info em,
.rank-info span {
  overflow: hidden;
  color: var(--muted);
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-info span,
.rank-views {
  color: var(--dim);
  font-size: 13px;
}

.rank-views {
  padding-right: 12px;
  font-weight: 800;
}

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

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  filter: blur(2px);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #0f172a 0%, rgba(15, 23, 42, 0.42) 62%, rgba(15, 23, 42, 0.76) 100%);
}

.detail-wrap {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 32px));
  min-height: 560px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  padding: 54px 0;
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 26px;
  object-fit: cover;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 22px;
  color: var(--dim);
  font-size: 14px;
}

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

.detail-info p {
  max-width: 850px;
  margin: 20px 0;
  color: #e2e8f0;
  font-size: 20px;
}

.detail-meta {
  margin-bottom: 14px;
}

.tag-row span {
  color: #fecaca;
  background: rgba(127, 29, 29, 0.5);
}

.detail-section {
  padding-bottom: 28px;
}

.player-card {
  padding: 18px;
  border-radius: 28px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #020617;
  aspect-ratio: 16 / 9;
}

.movie-player {
  width: 100%;
  height: 100%;
  display: block;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 14px;
  border: 0;
  color: white;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.72));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.big-play {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 20px 44px rgba(220, 38, 38, 0.42);
  font-size: 34px;
}

.player-overlay strong {
  max-width: min(720px, calc(100% - 48px));
  font-size: clamp(24px, 3vw, 42px);
  text-align: center;
}

.detail-grid-section {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 22px;
  padding-top: 26px;
}

.text-card {
  padding: 26px;
  border-radius: 26px;
}

.text-card p {
  color: #dbeafe;
  font-size: 16px;
}

.pager-section {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.pager-link {
  min-height: 44px;
  padding: 0 18px;
  background: rgba(30, 41, 59, 0.92);
  color: #fecaca;
  border: 1px solid var(--line);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #020617;
}

.footer-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 26px;
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.footer-links a {
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(148, 163, 184, 0.1);
}

.footer-links a:hover {
  color: white;
  background: rgba(220, 38, 38, 0.7);
}

.footer-bottom {
  padding: 18px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  text-align: center;
}

[hidden] {
  display: none !important;
}

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

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

  .hero-picks {
    display: none;
  }
}

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

  .menu-toggle {
    display: block;
  }

  .hero,
  .hero-stage,
  .hero-content {
    min-height: 560px;
  }

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

  .detail-wrap,
  .detail-grid-section,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

  .pager-section,
  .section-heading,
  .category-overview-head,
  .cta-band {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .rank-views {
    display: none;
  }
}

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

  .brand-copy strong {
    font-size: 19px;
  }

  .hero-content {
    padding-bottom: 86px;
  }

  .hero-tags span,
  .detail-meta span,
  .tag-row span {
    min-height: 30px;
    padding: 5px 10px;
    font-size: 13px;
  }

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

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

  .movie-card-body strong {
    font-size: 14px;
  }

  .movie-card-body em {
    font-size: 12px;
  }

  .content-section,
  .dark-band {
    padding-top: 42px;
    padding-bottom: 42px;
  }

  .compact-hero {
    padding-top: 52px;
    padding-bottom: 52px;
  }

  .detail-info p {
    font-size: 17px;
  }

  .player-card,
  .text-card,
  .category-overview-card,
  .cta-band {
    padding: 16px;
    border-radius: 20px;
  }

  .rank-row {
    grid-template-columns: 38px 54px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
  }

  .rank-row img {
    width: 54px;
    height: 74px;
  }
}
