:root {
  color-scheme: dark;
  --bg: #05070d;
  --bg-soft: #0b1020;
  --panel: rgba(17, 24, 39, 0.78);
  --panel-strong: rgba(12, 18, 34, 0.94);
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --orange: #f97316;
  --cyan: #06b6d4;
  --rose: #fb7185;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(249, 115, 22, 0.18), transparent 28rem),
    radial-gradient(circle at 80% 5%, rgba(6, 182, 212, 0.16), transparent 30rem),
    linear-gradient(180deg, #05070d 0%, #0b1020 46%, #060914 100%);
  color: var(--text);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(8, 12, 24, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--orange), var(--cyan));
  color: white;
  box-shadow: 0 10px 34px rgba(249, 115, 22, 0.24);
}

.brand-mark.small {
  width: 31px;
  height: 31px;
  border-radius: 10px;
}

.brand-text {
  font-size: 21px;
  background: linear-gradient(90deg, #fb923c, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #cbd5e1;
  font-size: 14px;
}

.nav-link {
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover {
  color: #fb923c;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.75);
  cursor: pointer;
}

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

.hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(234, 88, 12, 0.24), transparent 34%, rgba(8, 145, 178, 0.20)),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.03) 0 1px, transparent 1px 62px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 62px);
  opacity: 0.95;
}

.hero-slider {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  align-items: center;
  gap: 42px;
  padding: 72px 0 64px;
}

.hero-slide.is-active {
  display: grid;
  animation: fadeLift 0.65s ease both;
}

@keyframes fadeLift {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.eyebrow {
  margin: 0 0 12px;
  color: #67e8f9;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0;
  font-size: clamp(34px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.gradient-text {
  background: linear-gradient(90deg, #fb923c, #22d3ee, #fda4af);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy p {
  max-width: 760px;
  margin: 20px 0 0;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.8;
}

.hero-actions,
.filter-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--cyan));
  color: white;
  box-shadow: 0 18px 50px rgba(249, 115, 22, 0.24);
}

.btn-ghost {
  background: rgba(15, 23, 42, 0.64);
  border-color: var(--line);
  color: #e2e8f0;
}

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

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

.hero-tags span,
.tag-row span,
.tag-row a,
.meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid rgba(148, 163, 184, 0.20);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.58);
  color: #cbd5e1;
  font-size: 12px;
}

.hero-poster {
  position: relative;
  border-radius: 30px;
  padding: 12px;
  background: linear-gradient(145deg, rgba(249, 115, 22, 0.28), rgba(6, 182, 212, 0.24));
  box-shadow: var(--shadow);
}

.hero-poster img {
  aspect-ratio: 4 / 5.2;
  object-fit: cover;
  border-radius: 22px;
}

.hero-mini-card {
  position: absolute;
  left: -18px;
  bottom: 28px;
  max-width: 260px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(8, 13, 25, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.35);
}

.hero-mini-card strong {
  display: block;
  margin-bottom: 6px;
}

.hero-mini-card span {
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.6;
}

.hero-dots {
  position: absolute;
  z-index: 4;
  left: 0;
  bottom: 26px;
  display: flex;
  gap: 9px;
}

.hero-dot {
  width: 36px;
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.34);
  cursor: pointer;
}

.hero-dot.is-active {
  background: linear-gradient(90deg, var(--orange), var(--cyan));
}

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

.section {
  padding: 76px 0 0;
}

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

.section-head h2,
.page-title h1,
.detail-title h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
}

.section-head p,
.page-title p {
  max-width: 780px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.section-link {
  color: #fb923c;
  font-weight: 800;
  white-space: nowrap;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.58);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(251, 146, 60, 0.48);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.32);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.9);
}

.poster-link img {
  aspect-ratio: 3 / 4.2;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.poster-glow {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.68));
}

.rank-num {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 10px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--orange), var(--cyan));
  color: white;
  font-size: 14px;
}

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

.card-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: #94a3b8;
  font-size: 12px;
}

.movie-card h3 {
  margin: 10px 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card h3 a:hover {
  color: #fb923c;
}

.movie-card p {
  margin: 0 0 14px;
  min-height: 58px;
  color: #b6c2d2;
  line-height: 1.65;
  font-size: 14px;
}

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

.category-tile {
  min-height: 150px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(6, 182, 212, 0.18), transparent 58%),
    rgba(15, 23, 42, 0.66);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(6, 182, 212, 0.46);
}

.category-tile h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.category-tile p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 48px 88px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.58);
}

.rank-item img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
}

.rank-index {
  font-size: 24px;
  font-weight: 900;
  color: #fb923c;
  text-align: center;
}

.rank-copy h3 {
  margin: 0 0 6px;
  font-size: 19px;
}

.rank-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.rank-score {
  color: #67e8f9;
  font-weight: 900;
  white-space: nowrap;
}

.page-title {
  padding: 64px 0 28px;
}

.filter-panel {
  margin: 10px 0 30px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.64);
}

.search-input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 16px;
  outline: 0;
  background: rgba(2, 6, 23, 0.48);
  color: #e2e8f0;
  font-size: 15px;
}

.search-input:focus {
  border-color: rgba(251, 146, 60, 0.58);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.08);
}

.filter-chip {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.36);
  color: #cbd5e1;
  cursor: pointer;
}

.filter-chip.is-active {
  background: linear-gradient(135deg, var(--orange), var(--cyan));
  color: white;
  border-color: transparent;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 28px;
  color: #94a3b8;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #fb923c;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 34px;
  align-items: start;
  padding: 34px 0 20px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  padding: 12px;
  background: linear-gradient(145deg, rgba(249, 115, 22, 0.22), rgba(6, 182, 212, 0.20));
  box-shadow: var(--shadow);
}

.detail-poster img {
  border-radius: 20px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-title h1 {
  margin-bottom: 16px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 18px;
}

.detail-title p {
  color: #cbd5e1;
  font-size: 17px;
  line-height: 1.85;
}

.player-box {
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: black;
  box-shadow: var(--shadow);
}

.video-stage {
  position: relative;
  background: #000;
}

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

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(0,0,0,0.28), rgba(0,0,0,0.64));
  cursor: pointer;
  z-index: 4;
}

.play-layer.is-hidden {
  display: none;
}

.play-button {
  width: 78px;
  height: 78px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--cyan));
  color: white;
  font-size: 28px;
  box-shadow: 0 18px 55px rgba(249, 115, 22, 0.32);
  cursor: pointer;
}

.player-caption {
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  background: rgba(8, 13, 25, 0.92);
}

.player-caption strong {
  font-size: 18px;
}

.content-panel {
  margin-top: 26px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.58);
}

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

.content-panel p {
  color: #cbd5e1;
  line-height: 1.9;
}

.site-footer {
  margin-top: 86px;
  border-top: 1px solid var(--line);
  background: rgba(3, 7, 18, 0.76);
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 28px;
}

.footer-grid p,
.footer-grid a,
.copyright {
  color: #94a3b8;
  line-height: 1.7;
}

.footer-grid h3 {
  margin: 0 0 12px;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 7px;
}

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

.copyright {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  font-size: 13px;
}

.hidden-by-search {
  display: none !important;
}

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

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

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

  .hero-poster {
    max-width: 460px;
    margin: 0 auto;
  }
}

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

  .nav-links {
    position: absolute;
    top: 70px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(8, 13, 25, 0.96);
  }

  .nav-links.is-open {
    display: flex;
  }

  .hero {
    min-height: auto;
  }

  .hero-slide {
    padding: 48px 0 72px;
  }

  .hero-mini-card {
    left: 12px;
    right: 12px;
    max-width: none;
  }

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

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

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

  .rank-item {
    grid-template-columns: 36px 68px minmax(0, 1fr);
  }

  .rank-score {
    grid-column: 3;
  }

  .content-panel {
    padding: 20px;
  }
}

@media (max-width: 460px) {
  .movie-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-copy p,
  .detail-title p {
    font-size: 15px;
  }
}
