:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #fff7ed;
  --ink: #172033;
  --muted: #64748b;
  --line: #e2e8f0;
  --red: #dc2626;
  --red-dark: #b91c1c;
  --orange: #f97316;
  --slate: #0f172a;
  --slate-soft: #1e293b;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

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

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

button,
input {
  font: inherit;
}

.container {
  width: min(1180px, 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 28px rgba(15, 23, 42, 0.28);
}

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

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

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

.brand-text {
  font-size: 22px;
}

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

.nav-link,
.mobile-link {
  color: rgba(255, 255, 255, 0.82);
  padding: 10px 14px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

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

.mobile-toggle {
  display: none;
  border: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 9px 12px;
}

.mobile-nav {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 16px 18px;
}

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

.hero {
  position: relative;
  overflow: hidden;
  min-height: 600px;
  color: #fff;
  background: radial-gradient(circle at 20% 10%, rgba(248, 113, 113, 0.35), transparent 28%), linear-gradient(120deg, #0f172a 0%, #7f1d1d 48%, #111827 100%);
}

.hero-backdrop {
  position: absolute;
  inset: -12%;
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  filter: blur(28px) saturate(1.2);
  transform: scale(1.08);
  transition: background-image 0.35s ease;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.58), rgba(127, 29, 29, 0.72));
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: center;
  padding: 66px 0;
}

.hero-main {
  min-width: 0;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.72fr);
  gap: 34px;
  align-items: center;
}

.hero-slide.is-active {
  display: grid;
}

.eyebrow,
.section-kicker,
.page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fed7aa;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 16px 0 14px;
  max-width: 760px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.98;
  background: linear-gradient(90deg, #f87171, #fb923c, #fef3c7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-summary {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
  line-height: 1.8;
}

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

.hero-tags span,
.tag-row span,
.meta-line span,
.card-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  color: #475569;
  background: #f1f5f9;
}

.hero-tags span {
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.primary-button,
.ghost-button,
.section-more,
.filter-actions button,
.play-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 14px;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-button,
.section-more,
.play-trigger {
  color: #fff;
  background: linear-gradient(90deg, var(--red), var(--orange));
  box-shadow: 0 16px 30px rgba(220, 38, 38, 0.28);
  padding: 0 22px;
}

.ghost-button {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0 22px;
}

.primary-button:hover,
.ghost-button:hover,
.section-more:hover,
.play-trigger:hover,
.filter-actions button:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  aspect-ratio: 3 / 4;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.hero-poster img,
.poster-link img,
.wide-cover img,
.mini-card img,
.hero-small-card img,
.video-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hero-poster:hover img,
.poster-link:hover img,
.wide-card:hover img,
.mini-card:hover img,
.hero-small-card:hover img {
  transform: scale(1.08);
}

.hero-poster-glow {
  position: absolute;
  inset: auto 12% -9% 12%;
  height: 28%;
  border-radius: 999px;
  background: rgba(248, 113, 113, 0.46);
  filter: blur(32px);
}

.hero-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
}

.hero-controls button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.hero-dot {
  width: 10px !important;
  height: 10px !important;
  min-height: 10px;
  padding: 0 !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.32) !important;
}

.hero-dot.is-active {
  width: 30px !important;
  background: linear-gradient(90deg, var(--red), var(--orange)) !important;
}

.hero-side {
  padding: 18px;
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
}

.hero-side h2 {
  margin: 0 0 14px;
  font-size: 20px;
}

.hero-small-card,
.mini-card {
  position: relative;
  overflow: hidden;
  display: block;
  border-radius: 16px;
  background: #111827;
  aspect-ratio: 16 / 9;
  margin-bottom: 12px;
}

.hero-small-card span,
.mini-card span {
  position: absolute;
  inset: auto 0 0;
  padding: 28px 12px 10px;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78));
}

.page-hero {
  padding: 56px 0 36px;
  background: linear-gradient(135deg, #fff7ed, #eff6ff);
}

.page-title {
  margin: 12px 0 12px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
}

.page-desc {
  max-width: 780px;
  color: var(--muted);
  line-height: 1.8;
  font-size: 18px;
}

.content-section {
  padding: 44px 0;
}

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

.section-head h2 {
  margin: 8px 0 0;
  font-size: clamp(28px, 3vw, 38px);
}

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

.section-more {
  min-width: 116px;
}

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

.movie-card,
.wide-card,
.category-card,
.detail-panel,
.side-panel,
.filter-panel {
  background: var(--surface);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

.movie-card {
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover,
.category-card:hover,
.wide-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.72));
  opacity: 0.9;
}

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

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

.year-badge,
.card-rank,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 28px;
  padding: 0 9px;
  color: #fff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(15, 23, 42, 0.78);
}

.year-badge {
  right: 10px;
  top: 10px;
}

.card-rank,
.rank-badge {
  left: 10px;
  top: 10px;
  background: linear-gradient(90deg, var(--red), var(--orange));
}

.card-body {
  padding: 14px;
}

.card-title,
.wide-title {
  display: -webkit-box;
  overflow: hidden;
  min-height: 44px;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-title:hover,
.wide-title:hover {
  color: var(--red);
}

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

.compact span {
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

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

.category-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 18px;
  padding: 22px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card h2 {
  margin: 0 0 10px;
  font-size: 28px;
}

.category-card p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.7;
}

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

.category-preview img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
}

.filter-panel {
  margin-bottom: 24px;
  padding: 18px;
}

.search-box {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}

.search-box input {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 16px;
  outline: 0;
  background: #f8fafc;
}

.search-box input:focus {
  border-color: #fb923c;
  box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.14);
}

.filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.filter-actions button {
  min-height: 36px;
  padding: 0 14px;
  color: #475569;
  background: #f1f5f9;
}

.filter-actions button.is-active {
  color: #fff;
  background: linear-gradient(90deg, var(--red), var(--orange));
}

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

.wide-card {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  overflow: hidden;
}

.wide-cover {
  position: relative;
  overflow: hidden;
  background: #111827;
  aspect-ratio: 3 / 4;
}

.wide-body {
  padding: 18px;
}

.wide-title {
  min-height: auto;
  font-size: 20px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  padding: 32px 0 48px;
}

.player-card {
  overflow: hidden;
  border-radius: 24px;
  background: #000;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
}

.video-player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-player video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.58));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.video-player.is-playing .player-overlay {
  opacity: 0;
  visibility: hidden;
}

.play-trigger {
  gap: 10px;
  min-height: 54px;
  padding: 0 28px;
  font-size: 18px;
}

.detail-panel,
.side-panel {
  padding: 24px;
  margin-top: 22px;
}

.detail-title {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 48px);
}

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

.breadcrumb a:hover {
  color: var(--red);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.info-box {
  padding: 14px;
  border-radius: 16px;
  background: #f8fafc;
}

.info-box b {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 13px;
}

.text-block {
  margin-top: 24px;
}

.text-block h2,
.side-panel h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.text-block p {
  margin: 0;
  color: #475569;
  line-height: 1.95;
  text-indent: 2em;
}

.side-panel {
  position: sticky;
  top: 94px;
}

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

.side-panel .mini-card {
  margin-bottom: 0;
}

.site-footer {
  color: #cbd5e1;
  background: #0b1220;
  padding-top: 42px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 28px;
}

.footer-grid p {
  max-width: 520px;
  color: #94a3b8;
  line-height: 1.8;
}

.footer-grid h3 {
  margin: 0 0 14px;
  color: #fff;
}

.footer-grid a:not(.footer-brand) {
  display: block;
  margin: 8px 0;
  color: #94a3b8;
}

.footer-grid a:hover {
  color: #f87171;
}

.footer-brand {
  color: #fff;
  font-size: 24px;
}

.footer-bottom {
  margin-top: 32px;
  padding: 18px;
  text-align: center;
  color: #64748b;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.no-results {
  display: none;
  padding: 28px;
  text-align: center;
  color: var(--muted);
  border-radius: 18px;
  background: #fff;
}

.no-results.is-visible {
  display: block;
}

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

  .hero-inner,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .hero-side {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .hero-side h2 {
    grid-column: 1 / -1;
  }

  .side-panel {
    position: static;
  }
}

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

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

  .brand-text {
    font-size: 19px;
  }

  .hero {
    min-height: auto;
  }

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

  .hero-poster {
    max-width: 420px;
  }

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

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

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

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

  .wide-card {
    grid-template-columns: 120px minmax(0, 1fr);
  }

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

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

  .hero-inner {
    padding: 38px 0;
  }

  .hero-summary {
    font-size: 16px;
  }

  .hero-side {
    grid-template-columns: 1fr;
  }

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

  .card-body {
    padding: 12px;
  }

  .card-body p {
    display: none;
  }

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

  .wide-cover {
    aspect-ratio: 16 / 9;
  }
}
