:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #f1f5f9;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --brand: #dc2626;
  --brand-dark: #991b1b;
  --brand-soft: #fee2e2;
  --orange: #f97316;
  --slate: #111827;
  --slate-2: #1e293b;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
  --radius: 22px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

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

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

.nav-wrap {
  width: min(var(--container), calc(100% - 32px));
  height: 66px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.brand-icon {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  box-shadow: 0 10px 30px rgba(220, 38, 38, 0.28);
}

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

.nav-links a {
  padding: 10px 14px;
  border-radius: 12px;
  color: #e5e7eb;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transform: translateY(-1px);
}

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

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #fff;
}

.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 660px;
  padding: 88px 0;
  color: #fff;
  background:
    radial-gradient(circle at 12% 18%, rgba(248, 113, 113, 0.25), transparent 32%),
    radial-gradient(circle at 82% 22%, rgba(249, 115, 22, 0.18), transparent 30%),
    linear-gradient(135deg, #0f172a 0%, #7f1d1d 52%, #0f172a 100%);
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.35;
}

.hero-glow {
  position: absolute;
  right: -160px;
  top: 80px;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.24);
  filter: blur(80px);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 500px);
  gap: 48px;
  align-items: center;
}

.hero-copy {
  display: grid;
  gap: 24px;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fecaca;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.eyebrow.dark {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1,
.section-head h2 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-copy h1 {
  font-size: clamp(42px, 7vw, 76px);
}

.hero-copy h1 strong {
  color: #f87171;
  font-weight: 900;
}

.hero-copy p {
  max-width: 660px;
  margin: 0;
  color: #d1d5db;
  font-size: 19px;
}

.hero-search,
.search-panel {
  display: flex;
  width: min(100%, 620px);
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(14px);
}

.hero-search input,
.search-panel input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: none;
  padding: 14px 16px;
  background: transparent;
  color: #fff;
  font-size: 15px;
}

.hero-search input::placeholder,
.search-panel input::placeholder {
  color: rgba(255, 255, 255, 0.68);
}

.hero-search button,
.search-panel button {
  border: 0;
  border-radius: 14px;
  padding: 0 22px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

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

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

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

.btn.primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 14px 32px rgba(220, 38, 38, 0.32);
}

.btn.ghost {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.btn.light {
  border-color: rgba(255, 255, 255, 0.28);
}

.hero-tags a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fee2e2;
  font-size: 14px;
}

.hero-showcase {
  position: relative;
  min-height: 520px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 30px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

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

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

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.86));
}

.hero-slide-content {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  z-index: 2;
  display: grid;
  gap: 10px;
}

.hero-slide-content span {
  color: #fecaca;
  font-size: 13px;
  font-weight: 800;
}

.hero-slide-content h2 {
  margin: 0;
  font-size: 30px;
}

.hero-slide-content p {
  margin: 0;
  color: #e5e7eb;
}

.hero-slide-content a {
  width: fit-content;
  margin-top: 8px;
  padding: 9px 14px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
}

.hero-dots {
  position: absolute;
  z-index: 3;
  right: 24px;
  top: 24px;
  display: flex;
  gap: 8px;
}

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

.hero-dot.is-active {
  width: 26px;
  background: #fff;
}

.feature-strip {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

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

.strip-grid div {
  padding: 18px;
  border-radius: 18px;
  background: var(--surface-soft);
}

.strip-grid strong,
.strip-grid span {
  display: block;
}

.strip-grid strong {
  color: var(--ink);
  font-size: 18px;
}

.strip-grid span {
  color: var(--muted);
  font-size: 14px;
}

.section-block {
  padding: 72px 0;
}

.section-block.light {
  background: #fff;
}

.section-head {
  margin-bottom: 30px;
}

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

.section-head.centered {
  text-align: center;
  display: grid;
  justify-items: center;
}

.section-head h2 {
  margin-top: 14px;
  font-size: clamp(30px, 4vw, 44px);
}

.section-head p {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--muted);
}

.section-head.invert,
.section-head.invert p {
  color: #fff;
}

.text-link {
  color: var(--brand);
  font-weight: 800;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(220, 38, 38, 0.28);
  box-shadow: var(--shadow);
}

.poster-link {
  display: block;
}

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #111827, #7f1d1d);
}

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

.movie-card:hover .poster-frame img {
  transform: scale(1.06);
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.55));
}

.play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  transform: translate(-50%, -50%) scale(0.85);
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.92);
  color: #fff;
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.year-badge,
.score-badge {
  position: absolute;
  z-index: 2;
  top: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.year-badge {
  left: 10px;
  background: rgba(15, 23, 42, 0.68);
}

.score-badge {
  right: 10px;
  background: rgba(220, 38, 38, 0.88);
}

.movie-info {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.movie-info h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
}

.movie-info p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.meta-row {
  color: #475569;
  font-size: 13px;
}

.meta-row span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--surface-soft);
}

.tag-row span {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff7ed;
  color: #c2410c;
  font-size: 12px;
  font-weight: 700;
}

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

.category-card,
.category-overview-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-preview,
.category-cover {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  min-height: 170px;
}

.category-cover {
  grid-template-columns: repeat(4, 1fr);
}

.category-preview img,
.category-cover img {
  width: 100%;
  height: 100%;
  min-height: 160px;
  border-radius: 16px;
  object-fit: cover;
  background: linear-gradient(135deg, #111827, #7f1d1d);
}

.category-card h3,
.category-overview-card h2 {
  margin: 0 0 8px;
}

.category-card p,
.category-overview-card p {
  margin: 0 0 12px;
  color: var(--muted);
}

.red-zone {
  color: #fff;
  background: linear-gradient(135deg, #dc2626, #f97316);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.rank-poster {
  position: relative;
  display: block;
}

.rank-poster span {
  position: absolute;
  z-index: 3;
  left: -6px;
  top: -6px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  background: #fff;
  color: var(--brand);
  font-weight: 900;
}

.rank-poster img {
  width: 88px;
  aspect-ratio: 2 / 3;
  border-radius: 14px;
  object-fit: cover;
  background: #111827;
}

.rank-item h3,
.rank-item p {
  margin: 0;
}

.rank-item p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.rank-item .meta-row span {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.rank-list {
  display: grid;
  gap: 10px;
  padding-left: 0;
  list-style: none;
}

.rank-list li a {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.rank-list li[hidden],
.movie-card[hidden] {
  display: none;
}

.rank-num {
  color: var(--brand);
  font-weight: 900;
}

.rank-list em {
  color: var(--muted);
  font-style: normal;
  font-size: 14px;
}

.page-hero {
  padding: 54px 0 62px;
  color: #fff;
  background:
    radial-gradient(circle at 16% 30%, rgba(248, 113, 113, 0.26), transparent 28%),
    linear-gradient(135deg, #0f172a, #7f1d1d);
}

.page-hero h1 {
  margin-top: 16px;
  font-size: clamp(36px, 6vw, 58px);
}

.page-hero p {
  max-width: 760px;
  color: #d1d5db;
  font-size: 18px;
}

.breadcrumbs {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 24px;
  color: #fecaca;
  font-size: 14px;
}

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

.toolbar label {
  display: grid;
  width: min(100%, 560px);
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}

.toolbar input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  outline: none;
  font-size: 15px;
}

.toolbar input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
}

.search-panel {
  margin-top: 22px;
  background: rgba(255, 255, 255, 0.14);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 42px 0 72px;
  color: #fff;
  background: #0f172a;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.24;
  filter: blur(16px);
  transform: scale(1.08);
}

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

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(127, 29, 29, 0.86));
}

.detail-hero > .container {
  position: relative;
  z-index: 2;
}

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

.detail-poster img {
  width: 260px;
  aspect-ratio: 2 / 3;
  border-radius: 24px;
  object-fit: cover;
  background: linear-gradient(135deg, #111827, #7f1d1d);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
}

.detail-copy {
  display: grid;
  gap: 18px;
}

.detail-copy h1 {
  font-size: clamp(38px, 6vw, 68px);
}

.detail-one-line {
  max-width: 820px;
  margin: 0;
  color: #e5e7eb;
  font-size: 19px;
}

.detail-meta span {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.detail-tags span {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.player-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--shadow);
}

.player-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}

.player-head h2 {
  margin: 10px 0 0;
}

.source-label {
  padding: 7px 12px;
  border-radius: 999px;
  background: #ecfeff;
  color: #0f766e;
  font-weight: 900;
}

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

.video-shell video {
  width: 100%;
  height: 100%;
  background: #020617;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.2), rgba(2, 6, 23, 0.72));
  color: #fff;
  cursor: pointer;
}

.play-overlay span {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 16px 40px rgba(220, 38, 38, 0.42);
  font-size: 28px;
}

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

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

.player-status {
  margin: 0;
  padding: 14px 24px 20px;
  color: var(--muted);
}

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

.content-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.content-card h2 {
  margin: 14px 0 12px;
}

.content-card p {
  margin: 0;
  color: #334155;
}

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

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

.site-footer p {
  max-width: 460px;
  color: #94a3b8;
}

.site-footer h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 16px;
}

.site-footer a {
  display: block;
  margin: 8px 0;
  color: #cbd5e1;
}

.footer-brand {
  color: #fff;
}

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

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

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 74px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: 18px;
    background: #111827;
    box-shadow: var(--shadow);
  }

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

  .hero-grid,
  .detail-grid,
  .article-grid,
  .footer-grid,
  .rank-grid {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
    padding: 60px 0;
  }

  .hero-showcase {
    min-height: 460px;
  }

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

  .section-head.split,
  .toolbar,
  .player-head {
    align-items: start;
    flex-direction: column;
  }

  .detail-poster img {
    width: min(100%, 260px);
  }
}

@media (max-width: 640px) {
  .container,
  .nav-wrap {
    width: min(100% - 24px, var(--container));
  }

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

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

  .hero-search,
  .search-panel {
    flex-direction: column;
  }

  .hero-search button,
  .search-panel button {
    min-height: 44px;
  }

  .rank-list li a {
    grid-template-columns: 52px 1fr;
  }

  .rank-list em {
    grid-column: 2;
  }

  .movie-info h3 {
    font-size: 15px;
  }

  .movie-info p,
  .tag-row {
    display: none;
  }
}
