:root {
  --bg: #f8fafc;
  --paper: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --accent: #dc2626;
  --accent-dark: #991b1b;
  --slate: #0f172a;
  --slate-soft: #1e293b;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.narrow-container {
  width: min(980px, calc(100% - 32px));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #0f172a 0%, #1e293b 54%, #450a0a 100%);
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.24);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-name {
  font-size: 24px;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #ffffff;
  background: var(--accent);
  box-shadow: 0 10px 24px rgba(220, 38, 38, 0.36);
}

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

.nav-link {
  position: relative;
  color: #e2e8f0;
  font-size: 15px;
  font-weight: 650;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  height: 3px;
  border-radius: 999px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fca5a5;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  color: #ffffff;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
}

.mobile-nav {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

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

.mobile-nav-inner {
  display: grid;
  gap: 8px;
  padding: 12px 0 18px;
}

.mobile-nav-link {
  color: #e2e8f0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  background: radial-gradient(circle at 20% 20%, rgba(220, 38, 38, 0.42), transparent 34%), linear-gradient(135deg, #020617 0%, #1e293b 45%, #7f1d1d 100%);
}

.hero-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.86), rgba(15, 23, 42, 0.42));
}

.hero-container {
  position: relative;
  min-height: 560px;
  display: grid;
  align-items: center;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  align-items: center;
  gap: 46px;
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity 0.42s ease, transform 0.42s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 16px;
  padding: 6px 12px;
  color: #fecaca;
  border: 1px solid rgba(252, 165, 165, 0.38);
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.16);
  font-size: 14px;
  font-weight: 700;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-copy p {
  width: min(680px, 100%);
  margin: 22px 0 0;
  color: #e2e8f0;
  font-size: clamp(18px, 2.4vw, 24px);
}

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

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

.hero-tags span,
.tag-row span {
  padding: 6px 12px;
  color: #fee2e2;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

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

.primary-button,
.ghost-button,
.section-more,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 12px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-button {
  color: #ffffff;
  background: var(--accent);
  box-shadow: 0 16px 34px rgba(220, 38, 38, 0.32);
}

.ghost-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

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

.hero-poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.4);
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.55));
}

.hero-poster img,
.poster-link img,
.compact-card img,
.category-card img,
.detail-poster img,
.rank-cover img,
.category-thumb-set img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #1e293b;
}

.hero-dots {
  position: absolute;
  left: 0;
  bottom: 34px;
  display: flex;
  gap: 10px;
}

.hero-dots button {
  width: 38px;
  height: 5px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
}

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

.section {
  padding: 72px 0;
}

.white-section {
  background: #ffffff;
}

.soft-section {
  background: #f1f5f9;
}

.dark-section {
  color: #ffffff;
  background: linear-gradient(135deg, #0f172a, #1e293b 58%, #7f1d1d);
}

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

.section-head h2 {
  margin: 0;
  color: inherit;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
}

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

.dark-section .section-head p,
.light-head p {
  color: #cbd5e1;
}

.section-more,
.text-link {
  min-height: 40px;
  color: var(--accent);
  background: #fee2e2;
}

.dark-section .section-more {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

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

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

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: #1e293b;
  box-shadow: var(--shadow);
}

.wide-card .poster-link {
  aspect-ratio: 16 / 10;
}

.poster-link img {
  transition: transform 0.32s ease;
}

.poster-link:hover img {
  transform: scale(1.08);
}

.poster-shade {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.72));
  transition: opacity 0.24s ease;
}

.poster-link:hover .poster-shade {
  opacity: 1;
}

.year-badge,
.play-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 800;
}

.year-badge {
  top: 10px;
  right: 10px;
  padding: 4px 9px;
  background: var(--accent);
  font-size: 12px;
}

.play-badge {
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: rgba(220, 38, 38, 0.92);
  transform: translate(-50%, -50%) scale(0.86);
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.poster-link:hover .play-badge {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.card-body h2 {
  margin: 12px 0 6px;
  font-size: 17px;
  line-height: 1.35;
}

.card-body h2 a:hover,
.rank-info h2 a:hover {
  color: var(--accent);
}

.card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  margin-top: 10px;
  color: #64748b;
  font-size: 13px;
}

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

.category-card,
.category-overview-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.category-card {
  min-height: 230px;
  padding: 22px;
  color: #ffffff;
}

.category-card img {
  position: absolute;
  inset: 0;
  z-index: 0;
  filter: brightness(0.55);
  transition: transform 0.28s ease;
}

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

.category-card span,
.category-card p {
  position: relative;
  z-index: 1;
}

.category-card span {
  display: block;
  margin-top: 86px;
  font-size: 24px;
  font-weight: 850;
}

.category-card p {
  margin: 8px 0 0;
  color: #e2e8f0;
}

.page-hero {
  padding: 82px 0;
  color: #ffffff;
  background: radial-gradient(circle at 82% 18%, rgba(220, 38, 38, 0.34), transparent 28%), linear-gradient(135deg, #0f172a, #1e293b 56%, #7f1d1d);
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 60px);
  line-height: 1.1;
}

.page-hero p {
  width: min(760px, 100%);
  margin: 18px 0 0;
  color: #dbeafe;
  font-size: 20px;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 22px;
  padding: 18px;
}

.category-thumb-set {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  min-height: 190px;
}

.category-thumb-set img {
  border-radius: 14px;
}

.category-overview-card h2 {
  margin: 4px 0 8px;
  font-size: 26px;
}

.category-overview-card p {
  color: var(--muted);
}

.filter-panel {
  display: flex;
  gap: 16px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 30px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.search-box,
.select-box {
  display: grid;
  gap: 8px;
  color: #334155;
  font-weight: 700;
}

.search-box {
  flex: 1;
}

.search-box input,
.select-box select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 0 14px;
  color: var(--ink);
  background: #ffffff;
  outline: none;
}

.search-box input:focus,
.select-box select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12);
}

.select-box {
  width: 210px;
}

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

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

.home-rank {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rank-item {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 18px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  box-shadow: 0 12px 36px rgba(2, 6, 23, 0.14);
}

.rank-cover {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 16px;
  overflow: hidden;
  background: #1e293b;
}

.rank-cover span {
  position: absolute;
  left: 8px;
  top: 8px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--accent);
  font-weight: 900;
}

.rank-info h2 {
  margin: 4px 0 8px;
  font-size: 22px;
}

.rank-info p {
  margin: 0;
  color: var(--muted);
}

.rank-meta {
  margin-top: 12px;
  color: #64748b;
  font-size: 14px;
}

.rank-meta strong {
  color: var(--accent);
}

.detail-top {
  padding: 60px 0;
  color: #ffffff;
  background: radial-gradient(circle at 80% 20%, rgba(220, 38, 38, 0.34), transparent 30%), linear-gradient(135deg, #020617, #1e293b 56%, #7f1d1d);
}

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

.detail-poster {
  aspect-ratio: 2 / 3;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #fecaca;
  margin-bottom: 18px;
}

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

.detail-copy h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 62px);
  line-height: 1.1;
}

.lead-text {
  margin: 20px 0 0;
  color: #e2e8f0;
  font-size: 21px;
}

.detail-meta {
  padding: 0;
  margin: 26px 0 0;
  list-style: none;
}

.detail-meta li {
  display: grid;
  gap: 2px;
  min-width: 110px;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
}

.detail-meta span {
  color: #cbd5e1;
  font-size: 13px;
}

.detail-meta strong {
  color: #ffffff;
}

.detail-copy .tag-row {
  margin-top: 22px;
}

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

.video-player {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #020617;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.46));
}

.player-overlay[hidden] {
  display: none;
}

.player-overlay span {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.94);
  box-shadow: 0 22px 45px rgba(220, 38, 38, 0.36);
  font-size: 34px;
  text-indent: 4px;
}

.article-container {
  width: min(900px, calc(100% - 32px));
}

.article-container h2 {
  margin: 0 0 12px;
  font-size: 32px;
}

.article-container h2 + p {
  margin: 0 0 32px;
  color: #334155;
  font-size: 18px;
}

.compact-card a {
  display: grid;
  gap: 10px;
}

.compact-card img {
  aspect-ratio: 2 / 3;
  border-radius: 16px;
  background: #1e293b;
  box-shadow: var(--shadow);
}

.compact-card span {
  font-weight: 750;
}

.site-footer {
  color: #cbd5e1;
  background: #0f172a;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 34px;
  padding: 52px 0;
}

.footer-brand {
  margin-bottom: 14px;
  font-size: 22px;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 18px;
}

.site-footer p {
  margin: 0;
  color: #94a3b8;
}

.site-footer ul {
  display: grid;
  gap: 9px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-footer a:hover {
  color: #fca5a5;
}

.footer-bottom {
  padding: 18px 16px;
  color: #94a3b8;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

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

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

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

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

  .hero,
  .hero-container {
    min-height: 720px;
  }

  .hero-stage {
    min-height: 630px;
  }

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

  .hero-poster {
    width: min(280px, 80vw);
  }

  .hero-dots {
    bottom: 22px;
  }

  .section-head,
  .filter-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .select-box {
    width: 100%;
  }

  .movie-grid,
  .wide-grid,
  .category-grid,
  .category-overview-grid,
  .home-rank {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-overview-card,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    width: min(280px, 82vw);
  }
}

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

  .brand-name {
    font-size: 20px;
  }

  .hero,
  .hero-container {
    min-height: 760px;
  }

  .hero-stage {
    min-height: 670px;
  }

  .hero-actions {
    display: grid;
  }

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

  .section {
    padding: 52px 0;
  }

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

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

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

  .page-hero {
    padding: 58px 0;
  }
}
