:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-strong: rgba(15, 23, 42, 0.94);
  --line: rgba(56, 189, 248, 0.18);
  --line-soft: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --cyan: #22d3ee;
  --cyan-strong: #06b6d4;
  --blue: #3b82f6;
  --purple: #8b5cf6;
  --gold: #facc15;
  --red: #ef4444;
  --radius: 22px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.16), transparent 34rem),
    radial-gradient(circle at top right, rgba(139, 92, 246, 0.16), transparent 32rem),
    linear-gradient(180deg, #020617 0%, #0f172a 54%, #020617 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(37, 99, 235, 0.22);
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 64, 175, 0.88), rgba(15, 23, 42, 0.96));
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.28);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--cyan), #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(34, 211, 238, 0.14);
  color: var(--cyan);
  box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.3);
  font-size: 0.85rem;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  overflow: hidden;
  white-space: nowrap;
}

.desktop-nav a,
.mobile-nav a,
.footer-links a {
  color: #dbeafe;
  font-weight: 700;
  font-size: 0.95rem;
  transition: color 0.22s ease, transform 0.22s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.mobile-nav a:hover,
.footer-links a:hover {
  color: var(--cyan);
}

.mobile-nav-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.72);
  color: var(--text);
  cursor: pointer;
}

.mobile-nav-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--text);
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  border-top: 1px solid rgba(59, 130, 246, 0.25);
}

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

.hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
}

.hero-stage {
  position: relative;
  height: 70vh;
  min-height: 540px;
  overflow: hidden;
}

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

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(2, 6, 23, 0.52) 48%, rgba(2, 6, 23, 0.18) 100%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.22) 54%, rgba(2, 6, 23, 0.42) 100%);
}

.hero-content {
  position: absolute;
  left: max(32px, calc((100vw - 1180px) / 2));
  bottom: 110px;
  width: min(680px, calc(100% - 64px));
}

.eyebrow,
.panel-kicker,
.section-heading span,
.category-card span,
.overview-category-card span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--cyan);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-content h1,
.hero-content h2 {
  margin: 0 0 18px;
  color: var(--text);
  font-size: clamp(2.6rem, 6vw, 5.8rem);
  line-height: 0.96;
  font-weight: 950;
  letter-spacing: -0.06em;
  text-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
}

.hero-content p {
  margin: 0 0 28px;
  max-width: 680px;
  color: #dbeafe;
  font-size: clamp(1rem, 2vw, 1.24rem);
  line-height: 1.85;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.72);
}

.hero-actions,
.hero-category-links,
.footer-links,
.detail-meta,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.primary-button,
.ghost-button,
.site-search button,
.filter-panel button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  color: white;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.primary-button,
.site-search button {
  background: linear-gradient(90deg, var(--cyan-strong), var(--blue));
  box-shadow: 0 16px 38px rgba(6, 182, 212, 0.3);
}

.primary-button:hover,
.site-search button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 20px 44px rgba(6, 182, 212, 0.42);
}

.ghost-button {
  background: rgba(15, 23, 42, 0.62);
  box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.22);
}

.ghost-button:hover {
  transform: translateY(-2px);
  background: rgba(30, 41, 59, 0.85);
}

.hero-dots {
  position: absolute;
  right: max(32px, calc((100vw - 1180px) / 2));
  bottom: 120px;
  display: flex;
  gap: 8px;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
  transition: width 0.24s ease, background 0.24s ease;
}

.hero-dots button.is-active {
  width: 34px;
  background: var(--cyan);
}

.hero-search-panel,
.page-hero,
.filter-panel,
.text-panel,
.side-panel,
.side-poster,
.player-card,
.category-card a,
.overview-category-card a,
.movie-card,
.wide-card a {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero-search-panel {
  position: relative;
  z-index: 5;
  width: min(1180px, calc(100% - 32px));
  margin: -84px auto 0;
  padding: 26px;
  border-radius: 28px;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 18px;
  align-items: center;
}

.hero-search-panel h2,
.section-heading h2,
.page-hero h1,
.text-panel h2,
.side-panel h2 {
  margin: 0;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.hero-search-panel h2 {
  font-size: clamp(1.45rem, 3vw, 2.25rem);
}

.site-search {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.site-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 999px;
  padding: 0 18px;
  background: rgba(2, 6, 23, 0.58);
  color: var(--text);
  outline: none;
}

.site-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(34, 211, 238, 0.8);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
}

.hero-category-links {
  grid-column: 1 / -1;
}

.hero-category-links a,
.tag-list a,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.7);
  color: #bfdbfe;
  font-size: 0.88rem;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.2);
}

.hero-category-links a:hover,
.tag-list a:hover {
  color: var(--cyan);
  box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.52);
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.standard-page {
  padding-top: 40px;
}

.content-section {
  margin: 0 0 72px;
}

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

.section-heading h2 {
  font-size: clamp(1.8rem, 4vw, 2.65rem);
}

.section-more {
  color: var(--cyan);
  font-weight: 900;
}

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

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

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.55);
  background: rgba(30, 41, 59, 0.86);
}

.movie-card a {
  display: block;
  height: 100%;
}

.poster-wrap {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #020617;
}

.movie-card.is-compact .poster-wrap {
  aspect-ratio: 3 / 4;
}

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

.movie-card:hover .poster-wrap img,
.wide-card:hover img,
.category-card:hover img,
.overview-category-card:hover img {
  transform: scale(1.08);
}

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.92), transparent 56%);
  opacity: 0.84;
}

.year-badge,
.rank-badge,
.play-chip {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 950;
}

.year-badge {
  top: 12px;
  right: 12px;
  min-height: 28px;
  padding: 0 10px;
  background: rgba(250, 204, 21, 0.95);
  color: #111827;
}

.rank-badge {
  top: 12px;
  left: 12px;
  width: 34px;
  height: 34px;
  background: var(--red);
  color: #fff;
}

.play-chip {
  left: 12px;
  bottom: 12px;
  min-height: 30px;
  padding: 0 11px;
  background: rgba(6, 182, 212, 0.92);
  color: white;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

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

.card-copy {
  padding: 14px 15px 16px;
}

.card-copy h2,
.card-copy h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 900;
  line-height: 1.38;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta,
.card-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.65;
}

.card-desc {
  margin-top: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.wide-card a {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  overflow: hidden;
  border-radius: 20px;
  transition: transform 0.24s ease, border-color 0.24s ease;
}

.wide-card a:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.55);
}

.wide-card img {
  width: 130px;
  height: 130px;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.wide-card div {
  padding: 18px 18px 18px 0;
}

.wide-card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  font-weight: 900;
}

.wide-card p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wide-card span {
  color: var(--cyan);
  font-weight: 900;
  font-size: 0.9rem;
}

.glow-section {
  position: relative;
  padding: 30px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(139, 92, 246, 0.1));
}

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

.category-card a,
.overview-category-card a {
  position: relative;
  min-height: 210px;
  display: block;
  overflow: hidden;
  border-radius: 24px;
}

.category-card img,
.overview-category-card img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
  opacity: 0.72;
  transition: transform 0.7s ease, opacity 0.3s ease;
}

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

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

.category-card h3,
.overview-category-card h2 {
  margin: 0 0 10px;
  font-size: 1.45rem;
  font-weight: 950;
}

.category-card p,
.overview-category-card li {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.62;
}

.overview-category-card ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.page-hero {
  margin: 0 0 28px;
  padding: clamp(28px, 6vw, 56px);
  border-radius: 30px;
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.14), transparent 28rem),
    radial-gradient(circle at top right, rgba(139, 92, 246, 0.16), transparent 26rem),
    rgba(15, 23, 42, 0.78);
}

.page-hero h1 {
  margin-bottom: 14px;
  font-size: clamp(2.1rem, 5vw, 4.4rem);
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #cbd5e1;
  font-size: 1.08rem;
  line-height: 1.9;
}

.filter-panel {
  margin: 0 0 28px;
  padding: 18px;
  border-radius: 22px;
  display: grid;
  grid-template-columns: 1fr 190px;
  gap: 14px;
}

.detail-page {
  padding-top: 28px;
}

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

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

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

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #000;
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: radial-gradient(circle at center, rgba(6, 182, 212, 0.26), rgba(0, 0, 0, 0.56));
  cursor: pointer;
}

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

.play-overlay span {
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan-strong), var(--blue));
  color: white;
  font-size: 2rem;
  box-shadow: 0 24px 70px rgba(6, 182, 212, 0.38);
  transition: transform 0.24s ease;
}

.play-overlay:hover span {
  transform: scale(1.08);
}

.detail-main h1 {
  margin: 26px 0 16px;
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 950;
  letter-spacing: -0.05em;
}

.detail-meta {
  margin-bottom: 18px;
}

.tag-list {
  margin-bottom: 22px;
}

.text-panel {
  margin: 0 0 22px;
  padding: 24px;
  border-radius: 24px;
}

.accent-panel {
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.28), rgba(88, 28, 135, 0.28));
}

.text-panel h2 {
  margin-bottom: 14px;
  font-size: 1.35rem;
}

.text-panel p {
  margin: 0 0 14px;
  color: #d1d5db;
  line-height: 1.9;
}

.text-panel p:last-child {
  margin-bottom: 0;
}

.lead-text {
  color: #e0f2fe;
  font-weight: 800;
}

.detail-side {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 22px;
}

.side-poster,
.side-panel {
  border-radius: 24px;
  overflow: hidden;
}

.side-poster {
  padding: 14px;
}

.side-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 18px;
}

.primary-button.full {
  width: 100%;
  margin-top: 14px;
}

.side-panel {
  padding: 20px;
}

.side-panel h2 {
  margin-bottom: 16px;
  font-size: 1.4rem;
}

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

.side-list .wide-card a {
  grid-template-columns: 96px 1fr;
  gap: 12px;
  border-radius: 16px;
  box-shadow: none;
}

.side-list .wide-card img {
  width: 96px;
  height: 96px;
}

.side-list .wide-card div {
  padding: 12px 12px 12px 0;
}

.side-list .wide-card p {
  -webkit-line-clamp: 1;
}

.site-footer {
  margin-top: 80px;
  border-top: 1px solid rgba(59, 130, 246, 0.18);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.4), rgba(0, 0, 0, 0.82));
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: var(--muted);
}

.footer-inner p {
  margin: 0;
  text-align: center;
  font-size: 0.9rem;
}

[data-movie-card].is-hidden {
  display: none;
}

@media (max-width: 1100px) {
  .desktop-nav {
    gap: 12px;
  }

  .desktop-nav a:nth-child(n+9) {
    display: none;
  }

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

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

  .detail-side {
    position: static;
    grid-template-columns: 260px 1fr;
  }
}

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

  .mobile-nav-button {
    display: block;
  }

  .hero {
    min-height: auto;
  }

  .hero-stage {
    min-height: 560px;
    height: 74vh;
  }

  .hero-content {
    left: 22px;
    bottom: 92px;
    width: calc(100% - 44px);
  }

  .hero-dots {
    left: 22px;
    right: auto;
    bottom: 42px;
  }

  .hero-search-panel {
    grid-template-columns: 1fr;
    margin-top: -36px;
    padding: 20px;
  }

  .site-search {
    flex-direction: column;
  }

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

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

  .wide-card img {
    width: 100px;
    height: 118px;
  }

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

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

@media (max-width: 560px) {
  .header-inner {
    width: calc(100% - 24px);
  }

  .site-logo,
  .footer-logo {
    font-size: 1.16rem;
  }

  .page-shell,
  .hero-search-panel,
  .footer-inner,
  .mobile-nav {
    width: calc(100% - 24px);
  }

  .hero-content h1,
  .hero-content h2 {
    font-size: 2.55rem;
  }

  .hero-content p {
    font-size: 0.98rem;
  }

  .movie-grid,
  .category-grid,
  .overview-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

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

  .glow-section {
    padding: 18px;
  }

  .card-copy {
    padding: 12px;
  }

  .card-desc {
    display: none;
  }

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

  .page-hero,
  .text-panel,
  .side-panel {
    border-radius: 20px;
  }
}
