:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.82);
  --panel-strong: rgba(30, 41, 59, 0.88);
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --accent: #f59e0b;
  --accent-light: #fbbf24;
  --accent-dark: #b45309;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(245, 158, 11, 0.16), transparent 32rem),
    radial-gradient(circle at 88% 22%, rgba(59, 130, 246, 0.12), transparent 30rem),
    linear-gradient(180deg, #020617 0%, #0f172a 42%, #020617 100%);
}

body.is-menu-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.9);
  backdrop-filter: blur(18px);
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  min-height: 72px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.03em;
  color: #fff;
  white-space: nowrap;
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  color: #0f172a;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.28);
}

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

.desktop-nav a,
.mobile-nav a {
  color: var(--soft);
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.desktop-nav a {
  padding: 10px 16px;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.mobile-nav a:hover,
.mobile-nav a.is-active {
  color: var(--accent-light);
  background: rgba(245, 158, 11, 0.08);
}

.menu-toggle {
  width: 42px;
  height: 42px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: rgba(15, 23, 42, 0.82);
}

.menu-toggle span {
  width: 19px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
}

.mobile-nav {
  display: none;
  padding: 0 22px 18px;
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.95);
}

.mobile-nav a {
  display: block;
  padding: 13px 14px;
}

.page-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 22px 76px;
}

.section-stack {
  display: grid;
  gap: 72px;
}

.hero {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #020617;
}

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

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

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  filter: saturate(1.08) contrast(1.04);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.54) 48%, rgba(2, 6, 23, 0.72)),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.18) 44%, rgba(2, 6, 23, 0.52) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  min-height: 72vh;
  max-width: 1180px;
  margin: 0 auto;
  padding: 82px 22px 90px;
  display: flex;
  align-items: flex-end;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--accent-light);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 99px;
  background: var(--accent);
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.7rem, 8vw, 6.4rem);
  line-height: 0.94;
  letter-spacing: -0.065em;
  text-wrap: balance;
}

.hero p {
  max-width: 650px;
  margin: 0 0 28px;
  color: var(--soft);
  font-size: clamp(1rem, 2.3vw, 1.24rem);
  line-height: 1.85;
}

.hero-meta,
.movie-meta-line,
.detail-meta,
.breadcrumb,
.result-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-meta span,
.movie-meta-line span,
.detail-meta span,
.breadcrumb a,
.breadcrumb span,
.result-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--soft);
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(10px);
  font-size: 0.84rem;
}

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

.btn-primary,
.btn-secondary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  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, color 0.2s ease;
}

.btn-primary {
  color: #0f172a;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  box-shadow: 0 18px 42px rgba(245, 158, 11, 0.25);
}

.btn-secondary {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.74);
}

.btn-ghost {
  color: var(--accent-light);
  border: 1px solid rgba(245, 158, 11, 0.32);
  background: rgba(245, 158, 11, 0.08);
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-ghost:hover {
  transform: translateY(-2px);
}

.hero-control {
  position: absolute;
  z-index: 5;
  top: 50%;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(12px);
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
  background: rgba(0, 0, 0, 0.6);
  transform: translateY(-50%) scale(1.06);
}

.hero-control.prev {
  left: 22px;
}

.hero-control.next {
  right: 22px;
}

.hero-dots {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 30px;
  display: flex;
  align-items: center;
  gap: 9px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(203, 213, 225, 0.55);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  width: 32px;
  background: var(--accent);
}

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

.section-head h1,
.section-head h2,
.content-panel h2,
.detail-info h1,
.player-section h2 {
  margin: 0;
  color: var(--text);
  letter-spacing: -0.04em;
}

.section-head h1 {
  font-size: clamp(2.2rem, 5vw, 4.3rem);
  line-height: 1;
}

.section-head h2,
.content-panel h2,
.player-section h2 {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.section-head p,
.lead-text {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.85;
}

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

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

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

.movie-card,
.category-card,
.content-panel,
.search-panel,
.player-section,
.detail-hero {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.78), rgba(15, 23, 42, 0.72));
  box-shadow: var(--shadow);
}

.movie-card {
  overflow: hidden;
  border-radius: 20px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.42);
  background: linear-gradient(180deg, rgba(51, 65, 85, 0.82), rgba(15, 23, 42, 0.78));
}

.movie-card-wide {
  display: grid;
  grid-template-columns: 190px 1fr;
}

.movie-poster {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: rgba(15, 23, 42, 0.85);
}

.movie-card-wide .movie-poster {
  aspect-ratio: auto;
  min-height: 220px;
}

.movie-poster img,
.category-card img,
.related-card img,
.ranking-poster img,
.detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.movie-card:hover .movie-poster img,
.category-card:hover img,
.related-card:hover img,
.ranking-row:hover .ranking-poster img {
  transform: scale(1.08);
}

.poster-badge,
.rank-number {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(10px);
  font-size: 0.8rem;
  font-weight: 700;
}

.movie-card-body {
  padding: 18px;
}

.movie-card h3 {
  margin: 12px 0 10px;
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.35;
}

.movie-card h3 a {
  transition: color 0.2s ease;
}

.movie-card:hover h3 a {
  color: var(--accent-light);
}

.movie-card p {
  margin: 0;
  min-height: 3.2em;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.94rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 9px;
  border-radius: 999px;
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.1);
  font-size: 0.78rem;
}

.split-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 30px;
  align-items: stretch;
}

.spotlight-card {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #0f172a;
  box-shadow: var(--shadow);
}

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

.spotlight-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.94), transparent 58%);
}

.spotlight-copy {
  position: absolute;
  z-index: 2;
  left: 26px;
  right: 26px;
  bottom: 26px;
}

.spotlight-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(1.9rem, 4vw, 3.4rem);
  line-height: 1;
}

.spotlight-copy p {
  color: var(--soft);
  line-height: 1.75;
}

.compact-list {
  display: grid;
  gap: 14px;
}

.compact-link,
.ranking-row {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.64);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.compact-link:hover,
.ranking-row:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 158, 11, 0.36);
  background: rgba(30, 41, 59, 0.82);
}

.compact-link img,
.ranking-poster {
  width: 76px;
  height: 96px;
  overflow: hidden;
  border-radius: 12px;
  object-fit: cover;
  background: rgba(2, 6, 23, 0.6);
}

.compact-link strong,
.ranking-row strong {
  display: block;
  color: var(--text);
  line-height: 1.35;
}

.compact-link span,
.ranking-row span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.9rem;
}

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

.category-card {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border-radius: 22px;
  transition: transform 0.24s ease, border-color 0.24s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 158, 11, 0.36);
}

.category-card img {
  position: absolute;
  inset: 0;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.36));
}

.category-card-body {
  position: absolute;
  z-index: 2;
  left: 22px;
  right: 22px;
  bottom: 22px;
}

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

.category-card p {
  margin: 0;
  color: var(--soft);
  line-height: 1.65;
}

.search-panel {
  padding: 26px;
  border-radius: var(--radius-lg);
}

.search-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
}

.search-form input,
.filter-input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  outline: none;
  background: rgba(2, 6, 23, 0.72);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-form input:focus,
.filter-input:focus {
  border-color: rgba(245, 158, 11, 0.72);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin: 26px 0 30px;
}

.filter-chip {
  color: var(--accent-light);
  padding: 10px 14px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.08);
  white-space: nowrap;
}

.search-results {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.search-result-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.72);
}

.search-result-card img {
  width: 110px;
  height: 140px;
  border-radius: 14px;
  object-fit: cover;
  background: rgba(2, 6, 23, 0.6);
}

.search-result-card h2 {
  margin: 0 0 8px;
  font-size: 1.24rem;
}

.search-result-card p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.ranking-list {
  display: grid;
  gap: 14px;
}

.ranking-row {
  position: relative;
  grid-template-columns: 92px 1fr auto;
  padding: 14px;
}

.ranking-poster {
  width: 92px;
  height: 118px;
}

.rank-number {
  left: 8px;
  right: auto;
  top: 8px;
  color: #0f172a;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
}

.ranking-score {
  color: var(--accent-light);
  font-size: 1.1rem;
  font-weight: 900;
  padding-right: 8px;
}

.detail-page {
  display: grid;
  gap: 34px;
}

.breadcrumb {
  margin-bottom: 12px;
}

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

.detail-hero {
  display: grid;
  grid-template-columns: minmax(220px, 330px) 1fr;
  gap: 30px;
  padding: 26px;
  border-radius: var(--radius-lg);
}

.detail-cover {
  overflow: hidden;
  border-radius: 20px;
  background: rgba(2, 6, 23, 0.72);
  aspect-ratio: 3 / 4;
}

.detail-info h1 {
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 0.98;
}

.detail-info p {
  color: var(--soft);
  line-height: 1.85;
}

.detail-meta {
  margin: 20px 0;
}

.player-section {
  padding: 24px;
  border-radius: var(--radius-lg);
}

.video-shell {
  position: relative;
  overflow: hidden;
  margin-top: 18px;
  border-radius: 22px;
  background: #000;
  aspect-ratio: 16 / 9;
  box-shadow: 0 20px 72px rgba(0, 0, 0, 0.45);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  gap: 14px;
  border: 0;
  color: #fff;
  background: radial-gradient(circle at center, rgba(2, 6, 23, 0.16), rgba(2, 6, 23, 0.62));
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.play-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-icon {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #0f172a;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  box-shadow: 0 20px 54px rgba(245, 158, 11, 0.32);
  font-size: 2rem;
  transform: translateY(6px);
}

.play-overlay span:last-child {
  font-size: 1.08rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.content-panel {
  padding: 28px;
  border-radius: var(--radius-lg);
}

.content-panel p {
  margin: 16px 0 0;
  color: var(--soft);
  line-height: 1.95;
  font-size: 1.02rem;
}

.content-panel + .content-panel {
  margin-top: 22px;
}

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

.related-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.74);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.related-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.36);
}

.related-card img {
  aspect-ratio: 3 / 4;
}

.related-card strong,
.related-card span {
  display: block;
  padding: 0 12px;
}

.related-card strong {
  margin-top: 12px;
  line-height: 1.35;
}

.related-card span {
  margin: 7px 0 14px;
  color: var(--muted);
  font-size: 0.86rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.92);
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 46px 22px;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.9fr;
  gap: 34px;
}

.footer-logo {
  margin-bottom: 16px;
}

.site-footer p,
.site-footer li,
.site-footer a {
  color: var(--muted);
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 1rem;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a:hover {
  color: var(--accent-light);
}

.footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 22px 34px;
  color: #64748b;
  border-top: 1px solid var(--line);
  text-align: center;
}

.empty-state {
  display: none;
  padding: 28px;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 18px;
  text-align: center;
}

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

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

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

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

  .split-panel,
  .detail-hero {
    grid-template-columns: 1fr;
  }

  .detail-cover {
    max-width: 340px;
  }
}

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

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

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

  .hero {
    min-height: 76vh;
  }

  .hero-inner {
    min-height: 76vh;
    padding: 72px 18px 86px;
  }

  .hero-control {
    display: none;
  }

  .section-head {
    display: block;
  }

  .movie-grid,
  .movie-grid.feature-grid,
  .movie-grid.two-col,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .movie-card-wide {
    display: block;
  }

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

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

  .search-form,
  .filter-bar {
    grid-template-columns: 1fr;
  }

  .ranking-row,
  .search-result-card {
    grid-template-columns: 86px 1fr;
  }

  .ranking-score {
    display: none;
  }

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

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

@media (max-width: 480px) {
  .header-inner,
  .page-main,
  .hero-inner,
  .footer-inner,
  .footer-bottom {
    padding-left: 16px;
    padding-right: 16px;
  }

  .site-logo span:last-child {
    max-width: 8.2em;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .movie-grid,
  .movie-grid.feature-grid,
  .movie-grid.two-col,
  .category-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .detail-hero,
  .player-section,
  .content-panel,
  .search-panel {
    padding: 18px;
  }
}
