:root {
  --bg: #020617;
  --panel: #0f172a;
  --panel-soft: rgba(15, 23, 42, 0.82);
  --card: #1e293b;
  --line: rgba(148, 163, 184, 0.18);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --muted-deep: #64748b;
  --accent: #f59e0b;
  --accent-light: #fbbf24;
  --danger: #f87171;
  --radius: 24px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.16), transparent 32rem),
    radial-gradient(circle at 90% 18%, rgba(51, 65, 85, 0.66), transparent 34rem),
    linear-gradient(180deg, #020617 0%, #0f172a 52%, #020617 100%);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

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

button,
input {
  font: inherit;
}

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

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

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

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

.logo-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #111827;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.26);
}

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

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  transition: color 0.2s ease, background 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: #fff;
  background: rgba(245, 158, 11, 0.13);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: #fff;
  background: rgba(15, 23, 42, 0.85);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: #fff;
}

.hero-shell {
  width: min(1440px, calc(100% - 32px));
  min-height: 70vh;
  margin: 22px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
}

.hero-slider {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 32px;
  background: #0f172a;
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.65s ease, transform 0.8s ease;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hero-bg {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(15, 23, 42, 0.82) 45%, rgba(2, 6, 23, 0.3) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.05) 64%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(680px, calc(100% - 42px));
  height: 100%;
  min-height: 70vh;
  padding: clamp(34px, 7vw, 92px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: var(--accent-light);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-content h1,
.hero-content h2 {
  margin: 12px 0 0;
  color: #fff;
  font-size: clamp(38px, 7vw, 82px);
  line-height: 0.94;
  letter-spacing: -0.06em;
}

.hero-title {
  color: #fff;
}

.hero-content p,
.page-hero p,
.detail-info p,
.spotlight-card p,
.category-tile p,
.category-card-large p,
.content-panel p,
.site-footer p {
  color: var(--muted);
  line-height: 1.78;
}

.hero-content p {
  max-width: 700px;
  margin: 22px 0 0;
  font-size: 17px;
}

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

.hero-tags {
  margin-top: 24px;
}

.hero-tags span,
.detail-tags span,
.movie-tags span,
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 999px;
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.1);
  font-size: 12px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.btn-primary {
  color: #111827;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
}

.btn-ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 23, 42, 0.62);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  color: #fff;
  background: rgba(15, 23, 42, 0.7);
  transform: translateY(-50%);
  cursor: pointer;
}

.hero-control:hover {
  background: rgba(245, 158, 11, 0.86);
}

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

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

.hero-dots {
  position: absolute;
  left: clamp(32px, 7vw, 92px);
  bottom: 28px;
  z-index: 5;
  display: flex;
  gap: 9px;
}

.hero-dot {
  width: 28px;
  height: 5px;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.32);
  cursor: pointer;
}

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

.hero-side,
.side-panel,
.spotlight-card,
.content-panel,
.search-panel,
.category-card-large,
.category-tile {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.18);
}

.hero-side {
  padding: 18px;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-side-head,
.section-head,
.movie-meta,
.footer-inner,
.crumbs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hero-side-head {
  padding: 4px 4px 10px;
  color: #fff;
  font-weight: 800;
}

.hero-side-head a,
.section-link {
  color: var(--accent-light);
  font-size: 14px;
  font-weight: 800;
}

.mini-card {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: rgba(30, 41, 59, 0.58);
  transition: background 0.2s ease, transform 0.2s ease;
}

.mini-card:hover {
  transform: translateX(3px);
  background: rgba(30, 41, 59, 0.9);
}

.mini-card img {
  height: 86px;
  border-radius: 14px;
  object-fit: cover;
}

.mini-title {
  overflow: hidden;
  color: #fff;
  font-weight: 800;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mini-meta {
  margin-top: 5px;
  color: var(--muted-deep);
  font-size: 13px;
}

.mini-card strong,
.mini-card > span {
  color: var(--accent-light);
}

.section {
  padding: 54px 0 0;
}

.narrow-section {
  padding-top: 28px;
}

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

.section-head.compact {
  margin-bottom: 16px;
}

.section-head h2,
.page-hero h1,
.detail-info h1,
.content-panel h2,
.side-panel h2,
.category-card-large h2,
.spotlight-card h2 {
  margin: 7px 0 0;
  color: #fff;
  line-height: 1.08;
}

.section-head h2 {
  font-size: clamp(24px, 4vw, 36px);
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 14px;
}

.search-panel input {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 16px;
  outline: none;
  padding: 14px 16px;
  color: #fff;
  background: rgba(2, 6, 23, 0.72);
}

.search-panel input:focus {
  border-color: rgba(245, 158, 11, 0.58);
}

.search-panel button {
  border: 0;
  border-radius: 16px;
  padding: 0 18px;
  color: #111827;
  font-weight: 800;
  background: var(--accent);
  cursor: pointer;
}

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

.category-tile {
  min-height: 148px;
  padding: 20px;
  overflow: hidden;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-tile::after {
  content: "";
  position: absolute;
  right: -38px;
  bottom: -42px;
  width: 110px;
  height: 110px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.12);
}

.category-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.42);
}

.category-tile span {
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.category-tile p {
  margin: 10px 0 0;
  font-size: 14px;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.86);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 158, 11, 0.36);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.28);
}

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

.movie-cover {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #0f172a;
}

.movie-cover img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.48s ease;
}

.movie-card:hover .movie-cover img {
  transform: scale(1.08);
}

.cover-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 44%, rgba(2, 6, 23, 0.88) 100%);
}

.play-mark {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 999px;
  color: #111827;
  background: var(--accent-light);
  transform: translateY(10px);
  opacity: 0;
  transition: opacity 0.24s ease, transform 0.24s ease;
}

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

.rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  display: grid;
  min-width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  color: #111827;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
}

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

.movie-tags {
  margin-bottom: 10px;
}

.movie-tags span {
  min-height: 22px;
  padding: 3px 8px;
  font-size: 11px;
}

.movie-card h3 {
  margin: 0;
  color: #fff;
  font-size: 16px;
  line-height: 1.35;
}

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

.movie-card p {
  min-height: 44px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.movie-meta {
  margin-top: 12px;
  color: var(--muted-deep);
  font-size: 12px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 26px;
  align-items: start;
}

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

.ranking-list.slim .mini-card {
  grid-template-columns: 58px minmax(0, 1fr) auto;
}

.ranking-list.slim .mini-card img {
  height: 74px;
}

.spotlight-card {
  display: grid;
  grid-template-columns: 38% minmax(0, 1fr);
  gap: 22px;
  padding: 20px;
}

.spotlight-card img {
  height: 100%;
  min-height: 330px;
  border-radius: 20px;
  object-fit: cover;
}

.spotlight-card h2 {
  font-size: clamp(28px, 4vw, 44px);
}

.spotlight-card p {
  margin: 18px 0 24px;
}

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

.page-hero,
.detail-hero {
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.12), transparent 34%),
    rgba(15, 23, 42, 0.78);
  box-shadow: var(--shadow);
}

.page-hero {
  padding: clamp(32px, 6vw, 74px);
}

.page-hero h1 {
  max-width: 920px;
  font-size: clamp(36px, 7vw, 70px);
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 760px;
  margin: 18px 0 0;
}

.crumbs {
  justify-content: flex-start;
  flex-wrap: wrap;
  color: var(--muted-deep);
  font-size: 14px;
}

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

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

.category-card-large {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  padding: 18px;
}

.category-card-cover {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  overflow: hidden;
  border-radius: 18px;
}

.category-card-cover img {
  height: 110px;
  object-fit: cover;
}

.category-card-large h2 {
  margin-top: 4px;
  font-size: 26px;
}

.category-layout {
  grid-template-columns: minmax(0, 1fr) 330px;
}

.side-panel {
  padding: 18px;
}

.sticky-panel {
  position: sticky;
  top: 92px;
}

.detail-hero {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  padding: clamp(20px, 4vw, 34px);
}

.detail-poster img {
  aspect-ratio: 3 / 4;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.36);
}

.detail-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.detail-info h1 {
  margin-top: 18px;
  font-size: clamp(34px, 5vw, 64px);
  letter-spacing: -0.05em;
}

.detail-info p {
  max-width: 820px;
  margin: 18px 0 0;
  font-size: 17px;
}

.badge-row,
.detail-tags {
  margin-top: 18px;
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 28px;
  background: #000;
  box-shadow: var(--shadow);
}

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  border: 0;
  padding: 0;
  background: #000;
  cursor: pointer;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.player-cover img {
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.25), rgba(2, 6, 23, 0.62));
}

.player-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.player-icon {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 86px;
  height: 86px;
  margin: auto;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #111827;
  font-size: 34px;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  box-shadow: 0 20px 50px rgba(245, 158, 11, 0.35);
}

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

.content-panel h2 {
  font-size: 26px;
}

.content-panel p {
  margin-top: 14px;
  font-size: 16px;
}

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

.footer-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
  align-items: flex-start;
}

.footer-inner p {
  max-width: 520px;
  margin: 12px 0 0;
  font-size: 14px;
}

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

.footer-links a {
  color: var(--muted);
  font-size: 14px;
}

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

@media (max-width: 1180px) {
  .hero-shell,
  .split-section,
  .category-layout,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .hero-side,
  .side-panel,
  .sticky-panel {
    position: static;
  }

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

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

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

  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(2, 6, 23, 0.96);
  }

  .site-nav.open {
    display: flex;
  }

  .hero-shell {
    min-height: auto;
  }

  .hero-slider,
  .hero-content {
    min-height: 620px;
  }

  .hero-control {
    display: none;
  }

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

  .category-overview,
  .detail-hero,
  .category-card-large,
  .spotlight-card {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    max-width: 260px;
  }
}

@media (max-width: 640px) {
  .container,
  .header-inner,
  .footer-inner,
  .hero-shell {
    width: min(100% - 24px, 1240px);
  }

  .hero-content {
    width: 100%;
    padding: 28px;
  }

  .hero-content h1,
  .hero-content h2 {
    font-size: 43px;
  }

  .hero-dots {
    left: 28px;
  }

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

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

  .page-hero,
  .detail-hero,
  .content-panel,
  .side-panel {
    border-radius: 22px;
  }

  .footer-inner {
    display: grid;
  }

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