:root {
  --red-900: #7f1d1d;
  --red-800: #991b1b;
  --red-700: #b91c1c;
  --red-600: #dc2626;
  --red-500: #ef4444;
  --amber-500: #f59e0b;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-100: #f1f5f9;
  --gray-950: #030712;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --white: #ffffff;
  --shadow: 0 18px 42px rgba(15, 23, 42, 0.15);
  --soft-shadow: 0 12px 28px rgba(15, 23, 42, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--gray-900);
  background: linear-gradient(180deg, #fff7f7 0%, #f8fafc 28%, #ffffff 100%);
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #fff;
  background: linear-gradient(90deg, var(--red-900), var(--red-700));
  box-shadow: 0 12px 32px rgba(127, 29, 29, 0.28);
}

.header-inner {
  max-width: 1240px;
  height: 68px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #fff;
  color: var(--red-800);
  display: grid;
  place-items: center;
  font-size: 21px;
  font-weight: 900;
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.18);
}

.brand-name {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.05;
}

.brand-subtitle {
  display: block;
  margin-top: 3px;
  color: #fee2e2;
  font-size: 12px;
  font-weight: 500;
}

.nav-list {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 1;
}

.nav-list a {
  color: #fff1f2;
  font-size: 15px;
  font-weight: 650;
  padding: 9px 12px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-list a:hover,
.nav-list a.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.mobile-nav {
  display: none;
  padding: 8px 20px 18px;
  background: linear-gradient(180deg, var(--red-800), var(--red-700));
}

.mobile-nav a {
  display: block;
  color: #fff;
  padding: 12px 8px;
  border-radius: 10px;
  font-weight: 650;
}

.mobile-nav a:hover {
  background: rgba(255, 255, 255, 0.14);
}

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

.main {
  min-height: 72vh;
}

.hero {
  position: relative;
  min-height: 580px;
  background: linear-gradient(90deg, var(--gray-950), var(--gray-800));
  color: #fff;
  overflow: hidden;
}

.hero-track {
  position: relative;
  min-height: 580px;
}

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

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

.hero-slide-bg {
  position: absolute;
  inset: 0;
}

.hero-slide-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  transform: scale(1.02);
}

.hero-slide-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 74% 28%, rgba(239, 68, 68, 0.36), transparent 34%),
    linear-gradient(0deg, rgba(17, 24, 39, 0.98) 0%, rgba(17, 24, 39, 0.62) 45%, rgba(17, 24, 39, 0.28) 100%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.98) 0%, rgba(17, 24, 39, 0.68) 45%, rgba(17, 24, 39, 0.28) 100%);
}

.hero-content {
  position: relative;
  max-width: 1240px;
  min-height: 580px;
  margin: 0 auto;
  padding: 72px 20px 104px;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: min(680px, 100%);
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 6px 13px;
  border-radius: 999px;
  color: #fff;
  background: rgba(220, 38, 38, 0.9);
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(185, 28, 28, 0.30);
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-desc {
  margin: 0 0 24px;
  color: #e5e7eb;
  font-size: clamp(16px, 2.1vw, 20px);
  max-width: 660px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.hero-meta span,
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  font-size: 13px;
  font-weight: 700;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 12px;
  border: 0;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: var(--red-600);
  box-shadow: 0 16px 34px rgba(220, 38, 38, 0.32);
}

.btn-primary:hover {
  background: var(--red-700);
}

.btn-light {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
}

.btn-soft {
  color: var(--red-700);
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.hero-controls {
  position: absolute;
  right: 36px;
  bottom: 36px;
  z-index: 2;
  display: flex;
  gap: 10px;
}

.hero-control {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  font-size: 22px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
  background: rgba(255, 255, 255, 0.30);
  transform: translateY(-2px);
}

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

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

.hero-dot.is-active {
  width: 34px;
  background: var(--red-500);
}

.section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 54px 20px 0;
}

.section.compact {
  padding-top: 34px;
}

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

.section-title {
  margin: 0;
  color: var(--gray-900);
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.2;
  font-weight: 900;
}

.section-kicker {
  color: var(--red-600);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-desc {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--gray-600);
}

.more-link {
  color: var(--red-600);
  font-weight: 800;
  white-space: nowrap;
}

.more-link:hover {
  color: var(--red-800);
}

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

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

.movie-card {
  min-width: 0;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.cover-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(145deg, #fecaca, #7f1d1d);
}

.cover-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

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

.card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  color: #fff;
  background: rgba(220, 38, 38, 0.88);
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

.card-play {
  position: absolute;
  inset: auto 10px 10px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(90deg, rgba(220, 38, 38, 0.95), rgba(127, 29, 29, 0.92));
  font-weight: 900;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .card-play {
  opacity: 1;
  transform: translateY(0);
}

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

.card-title {
  margin: 0 0 7px;
  color: var(--gray-900);
  font-size: 15px;
  line-height: 1.35;
  font-weight: 900;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-title a:hover {
  color: var(--red-700);
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--gray-500);
  font-size: 12px;
  font-weight: 700;
}

.card-line {
  margin: 9px 0 0;
  color: var(--gray-600);
  font-size: 13px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.category-card {
  padding: 22px;
  border-radius: 20px;
  color: #fff;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.28), transparent 32%),
    linear-gradient(135deg, var(--red-800), var(--red-600));
  box-shadow: var(--soft-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:nth-child(2n) {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.24), transparent 32%),
    linear-gradient(135deg, #92400e, var(--red-700));
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.category-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 21px;
  font-weight: 900;
}

.category-card span {
  color: #fee2e2;
  font-size: 14px;
}

.filter-panel {
  margin-bottom: 26px;
  padding: 18px;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--soft-shadow);
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px 140px;
  gap: 12px;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  color: var(--gray-800);
  background: #fff;
  padding: 0 12px;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--red-500);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.14);
}

.empty-message {
  display: none;
  padding: 28px;
  border-radius: 18px;
  color: var(--gray-600);
  background: #fff;
  box-shadow: var(--soft-shadow);
  text-align: center;
}

.empty-message.is-visible {
  display: block;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 54px 82px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.rank-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--soft-shadow);
}

.rank-num {
  height: 54px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--red-700), var(--amber-500));
  font-size: 18px;
  font-weight: 950;
}

.rank-cover {
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(145deg, #fecaca, #7f1d1d);
}

.rank-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-title {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 900;
  color: var(--gray-900);
}

.rank-title:hover {
  color: var(--red-700);
}

.rank-desc {
  margin: 0;
  color: var(--gray-600);
  font-size: 13px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.detail-hero {
  color: #fff;
  background:
    radial-gradient(circle at 70% 20%, rgba(239, 68, 68, 0.32), transparent 28%),
    linear-gradient(120deg, var(--gray-950), var(--gray-800));
}

.detail-hero-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 54px 20px;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.detail-poster {
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: linear-gradient(145deg, #fecaca, #7f1d1d);
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.28);
}

.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.detail-intro {
  max-width: 820px;
  margin: 0 0 20px;
  color: #e5e7eb;
  font-size: 18px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 24px;
}

.detail-tags span {
  padding: 5px 11px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 13px;
  font-weight: 800;
}

.player-shell {
  position: relative;
  max-width: 1240px;
  margin: 38px auto 0;
  padding: 0 20px;
}

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.22);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.28)),
    var(--poster-image);
  background-size: cover;
  background-position: center;
  transition: opacity 0.25s ease;
}

.player-shell.is-playing .player-overlay {
  opacity: 0;
  pointer-events: none;
}

.play-button {
  width: 92px;
  height: 92px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--red-600), var(--red-800));
  box-shadow: 0 22px 52px rgba(220, 38, 38, 0.42);
  font-size: 34px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.play-button:hover {
  transform: scale(1.06);
  box-shadow: 0 28px 64px rgba(220, 38, 38, 0.50);
}

.content-grid {
  max-width: 1240px;
  margin: 0 auto;
  padding: 42px 20px 0;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.9fr);
  gap: 26px;
}

.article-panel,
.side-panel {
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.article-panel {
  padding: 28px;
}

.article-panel h2,
.side-panel h2 {
  margin: 0 0 14px;
  color: var(--gray-900);
  font-size: 24px;
  font-weight: 950;
}

.article-panel p {
  margin: 0 0 18px;
  color: var(--gray-700);
  line-height: 1.85;
}

.side-panel {
  padding: 20px;
  align-self: start;
}

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

.related-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 14px;
  transition: background 0.2s ease;
}

.related-item:hover {
  background: #fef2f2;
}

.related-thumb {
  aspect-ratio: 2 / 3;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(145deg, #fecaca, #7f1d1d);
}

.related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-title {
  display: block;
  color: var(--gray-900);
  font-weight: 900;
  line-height: 1.35;
}

.related-meta {
  display: block;
  margin-top: 4px;
  color: var(--gray-500);
  font-size: 12px;
  font-weight: 700;
}

.breadcrumb {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 20px 0;
  color: var(--gray-600);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--red-600);
  font-weight: 800;
}

.page-hero {
  max-width: 1240px;
  margin: 0 auto;
  padding: 46px 20px 4px;
}

.page-title {
  margin: 0;
  color: var(--gray-900);
  font-size: clamp(34px, 4.8vw, 54px);
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.page-desc {
  max-width: 780px;
  margin: 14px 0 0;
  color: var(--gray-600);
  font-size: 17px;
}

.site-footer {
  margin-top: 66px;
  color: #d1d5db;
  background: linear-gradient(180deg, var(--gray-800), var(--gray-950));
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 42px 20px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 28px;
}

.footer-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 19px;
  font-weight: 900;
  margin-bottom: 12px;
}

.footer-title .brand-mark {
  width: 34px;
  height: 34px;
  font-size: 17px;
  background: var(--red-600);
  color: #fff;
}

.footer-inner p {
  margin: 0;
  color: #9ca3af;
}

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

.footer-links a {
  color: #d1d5db;
}

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

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 20px;
  text-align: center;
  color: #9ca3af;
  font-size: 13px;
}

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

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

@media (max-width: 840px) {
  .header-inner {
    height: 64px;
  }

  .nav-list {
    display: none;
  }

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

  .brand-subtitle {
    display: none;
  }

  .hero,
  .hero-track,
  .hero-content {
    min-height: 520px;
  }

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

  .hero-controls {
    right: 20px;
    bottom: 24px;
  }

  .hero-dots {
    left: 20px;
    bottom: 38px;
    transform: none;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

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

  .rank-list {
    grid-template-columns: 1fr;
  }

  .detail-hero-inner {
    grid-template-columns: 180px minmax(0, 1fr);
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .header-inner {
    padding: 0 14px;
  }

  .brand {
    min-width: 0;
  }

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

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

  .hero-content {
    padding-top: 46px;
  }

  .hero-actions,
  .inline-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

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

  .category-grid {
    grid-template-columns: 1fr;
  }

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

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

  .rank-num {
    height: 46px;
    font-size: 16px;
  }

  .detail-hero-inner {
    grid-template-columns: 1fr;
    padding-top: 34px;
  }

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

  .player-shell,
  .content-grid,
  .section,
  .page-hero {
    padding-left: 14px;
    padding-right: 14px;
  }

  .article-panel {
    padding: 20px;
  }
}
