:root {
  color-scheme: light;
  --bg: #f9fafb;
  --surface: #ffffff;
  --surface-soft: #fff7ed;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --rose: #e11d48;
  --rose-dark: #be123c;
  --amber: #f59e0b;
  --amber-soft: #fef3c7;
  --blue: #2563eb;
  --purple: #9333ea;
  --shadow: 0 20px 50px rgba(17, 24, 39, 0.12);
  --radius: 26px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.22), transparent 30rem),
    radial-gradient(circle at top right, rgba(225, 29, 72, 0.16), transparent 26rem),
    var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.85);
}

.header-inner,
.footer-inner,
.page-wrap,
.hero-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 22px;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--amber));
  box-shadow: 0 12px 24px rgba(225, 29, 72, 0.28);
}

.brand-name {
  font-size: 1.15rem;
  white-space: nowrap;
}

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

.main-nav a {
  padding: 9px 12px;
  border-radius: 999px;
  color: #4b5563;
  font-weight: 700;
  transition: 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--rose);
  background: #fff1f2;
}

.header-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  min-width: 280px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.05);
}

.header-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 10px 14px;
  background: transparent;
}

.header-search button,
.button,
.player-start {
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--amber));
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button {
  padding: 10px 16px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  box-shadow: 0 14px 28px rgba(225, 29, 72, 0.24);
}

.button.secondary {
  color: var(--ink);
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(17, 24, 39, 0.12);
}

.button:hover,
.header-search button:hover,
.player-start:hover {
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #fff1f2;
  color: var(--rose);
  font-size: 1.25rem;
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: 640px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #ffffff;
  background: #111827;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.96) 0%, rgba(17, 24, 39, 0.72) 48%, rgba(17, 24, 39, 0.35) 100%),
    radial-gradient(circle at 70% 20%, rgba(245, 158, 11, 0.35), transparent 24rem),
    radial-gradient(circle at 20% 80%, rgba(225, 29, 72, 0.34), transparent 24rem);
  z-index: 1;
}

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

.hero-slide-bg.active {
  opacity: 1;
}

.hero-slide-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  filter: saturate(1.1);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 50px;
  padding: 80px 0;
}

.hero-copy {
  align-self: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  color: #fffbeb;
  font-weight: 800;
}

.hero-copy h1 {
  margin: 18px 0 16px;
  font-size: clamp(2.4rem, 6vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.08em;
}

.hero-copy p {
  max-width: 760px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.08rem;
}

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

.hero-tags,
.card-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.card-tags span,
.detail-tags span {
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff1f2;
  color: var(--rose-dark);
  font-size: 0.78rem;
  font-weight: 800;
}

.hero-tags span {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.hero-panel {
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(20px);
  overflow: hidden;
}

.hero-poster {
  position: relative;
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.35), rgba(245, 158, 11, 0.35));
}

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

.hero-poster::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(to top, rgba(17, 24, 39, 0.86), transparent);
}

.hero-panel-body {
  padding: 22px;
}

.hero-panel-body strong {
  display: block;
  font-size: 1.35rem;
}

.hero-panel-body p {
  margin: 8px 0 16px;
  color: rgba(255, 255, 255, 0.78);
}

.hero-dots {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}

.hero-dots button {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}

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

.page-wrap {
  padding: 52px 0;
}

.section {
  margin-top: 46px;
}

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

.section-heading span {
  color: var(--rose);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.section-heading h2,
.page-title h1 {
  margin: 4px 0 0;
  font-size: clamp(1.8rem, 3vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.05em;
}

.section-heading p,
.page-title p {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--muted);
}

.section-more {
  white-space: nowrap;
  color: var(--rose);
  font-weight: 900;
}

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

.movie-card {
  background: var(--surface);
  border: 1px solid rgba(229, 231, 235, 0.86);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: #fecdd3;
  box-shadow: var(--shadow);
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(225, 29, 72, 0.2), rgba(245, 158, 11, 0.26)),
    #111827;
}

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

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

.poster-shade {
  position: absolute;
  inset: auto 0 0 0;
  height: 48%;
  background: linear-gradient(to top, rgba(17, 24, 39, 0.76), transparent);
}

.score,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-weight: 900;
}

.score {
  right: 12px;
  bottom: 12px;
  padding: 5px 10px;
  color: #111827;
  background: #fbbf24;
}

.rank-badge {
  left: 12px;
  top: 12px;
  padding: 6px 10px;
  color: #ffffff;
  background: rgba(225, 29, 72, 0.92);
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  margin: 10px 0 8px;
  font-size: 1.08rem;
  line-height: 1.32;
}

.card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.compact .card-body p {
  display: none;
}

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

.category-card {
  min-height: 220px;
  padding: 24px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 241, 242, 0.86)),
    var(--surface);
  border: 1px solid #ffe4e6;
  box-shadow: 0 12px 30px rgba(225, 29, 72, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: 0.22s ease;
}

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

.category-card h2,
.category-card h3 {
  margin: 0 0 8px;
  font-size: 1.45rem;
}

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

.category-card span {
  color: var(--rose);
  font-weight: 900;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 14px;
  margin: 26px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.05);
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: #374151;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  outline: 0;
  background: #ffffff;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--muted);
  font-weight: 700;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 30px;
  align-items: start;
}

.player-shell {
  overflow: hidden;
  border-radius: 30px;
  background: #050505;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.28);
}

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

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.9), rgba(5, 5, 5, 0.48)),
    radial-gradient(circle at center, rgba(245, 158, 11, 0.15), transparent 22rem);
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
}

.player-start {
  position: relative;
  z-index: 2;
  min-width: 136px;
  padding: 15px 24px;
  border-radius: 999px;
  box-shadow: 0 20px 45px rgba(225, 29, 72, 0.32);
}

.movie-player.is-playing .player-cover {
  opacity: 0;
  visibility: hidden;
}

.player-meta,
.detail-body,
.side-card {
  background: var(--surface);
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 26px;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.07);
}

.player-meta {
  padding: 24px;
}

.player-meta h1 {
  margin: 12px 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.06em;
}

.player-meta p {
  margin: 0;
  color: var(--muted);
}

.detail-body {
  margin-top: 24px;
  padding: 28px;
}

.detail-body h2,
.side-card h2 {
  margin: 0 0 12px;
  font-size: 1.4rem;
}

.detail-body p {
  color: #374151;
}

.side-card {
  padding: 18px;
  margin-bottom: 20px;
}

.side-poster {
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.2), rgba(245, 158, 11, 0.25));
}

.side-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

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

.related-list a {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 16px;
  background: #f9fafb;
  transition: 0.2s ease;
}

.related-list a:hover {
  background: #fff1f2;
}

.related-list img {
  width: 64px;
  height: 82px;
  border-radius: 12px;
  object-fit: cover;
  background: #111827;
}

.related-list strong {
  display: block;
  line-height: 1.28;
}

.related-list span {
  color: var(--muted);
  font-size: 0.86rem;
}

.site-footer {
  margin-top: 36px;
  padding: 42px 0;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

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

.footer-inner p {
  color: var(--muted);
}

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

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  background: #f9fafb;
  color: #4b5563;
  font-weight: 700;
}

.hidden-by-filter,
img.image-missing {
  display: none !important;
}

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

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

  .main-nav {
    display: none;
    width: 100%;
    order: 4;
    padding-top: 12px;
  }

  .main-nav.open {
    display: flex;
    flex-wrap: wrap;
  }

  .header-search {
    order: 3;
    width: 100%;
    min-width: 0;
    margin-left: 0;
  }

  .hero {
    min-height: auto;
  }

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

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

  .hero-panel {
    max-width: 480px;
  }

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

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

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .header-inner,
  .footer-inner,
  .page-wrap,
  .hero-inner {
    width: min(100% - 22px, 1180px);
  }

  .brand-name {
    font-size: 1rem;
  }

  .hero-copy h1 {
    font-size: 2.55rem;
  }

  .hero-actions {
    display: grid;
  }

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

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

  .player-meta,
  .detail-body {
    padding: 20px;
  }
}
