:root {
  color-scheme: light;
  --sky: #0284c7;
  --sky-dark: #0369a1;
  --blue: #1d4ed8;
  --cyan: #67e8f9;
  --ink: #0f172a;
  --muted: #64748b;
  --soft: #f8fafc;
  --line: #e2e8f0;
  --card: #ffffff;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f8fafc 0%, #eef7ff 46%, #ffffff 100%);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  backdrop-filter: blur(18px);
}

.site-header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--sky), var(--blue));
  box-shadow: 0 12px 28px rgba(2, 132, 199, 0.28);
}

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  white-space: nowrap;
}

.nav-link {
  padding: 10px 13px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: #475569;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link-active {
  color: var(--sky-dark);
  background: #e0f2fe;
  transform: translateY(-1px);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #f1f5f9;
  padding: 10px;
}

.mobile-menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
  border-radius: 99px;
}

.mobile-nav {
  display: none;
  padding: 0 24px 18px;
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
}

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

.hero-carousel {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  color: #ffffff;
  background: #0f172a;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 54px;
  align-items: center;
  padding: 92px max(24px, calc((100vw - 1240px) / 2)) 104px;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.04);
  transition: opacity 0.7s ease, transform 0.7s ease;
  background-image: linear-gradient(90deg, rgba(2, 8, 23, 0.92), rgba(3, 105, 161, 0.70), rgba(29, 78, 216, 0.42)), var(--hero-image);
  background-size: cover;
  background-position: center;
}

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

.hero-overlay,
.page-hero-overlay,
.detail-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(103, 232, 249, 0.26), transparent 36%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.78));
}

.hero-content,
.hero-poster {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow.dark {
  color: var(--sky-dark);
}

.hero-content h1 {
  margin: 0 0 18px;
  max-width: 820px;
  font-size: clamp(38px, 5.6vw, 72px);
  line-height: 1.04;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.hero-content h2 {
  margin: 0 0 18px;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.12;
  font-weight: 900;
  color: #cffafe;
}

.hero-summary {
  max-width: 760px;
  margin: 0 0 24px;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.82;
}

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

.hero-tags span,
.tag-row span,
.category-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: #0369a1;
  background: #e0f2fe;
}

.hero-tags span {
  color: #e0f2fe;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.20);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-light {
  color: #075985;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(255, 255, 255, 0.22);
}

.btn-ghost {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.hero-poster {
  width: min(100%, 340px);
  justify-self: end;
  aspect-ratio: 2 / 3;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.45);
  transform: rotate(2deg);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

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

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 4;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 38px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
}

.hero-dot.is-active {
  background: #ffffff;
}

.search-band,
.section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 72px 24px;
}

.search-band {
  padding-top: 36px;
  padding-bottom: 36px;
}

.search-panel {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 460px);
  gap: 24px;
  align-items: center;
  padding: 28px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.search-panel h2,
.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.18;
  letter-spacing: -0.04em;
}

.section-heading {
  margin-bottom: 34px;
}

.section-heading p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.8;
}

.split-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.text-link {
  font-weight: 900;
  color: var(--sky-dark);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 10px 9px 18px;
  border: 1px solid #bae6fd;
  border-radius: 999px;
  background: #f0f9ff;
}

.search-box span {
  font-size: 13px;
  font-weight: 900;
  color: var(--sky-dark);
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  padding: 9px 8px;
}

.search-box-wide {
  max-width: 760px;
  margin: 0 auto;
}

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

.category-box {
  min-height: 172px;
  padding: 24px;
  border-radius: 26px;
  background: linear-gradient(135deg, #ffffff, #e0f2fe);
  border: 1px solid #dbeafe;
  box-shadow: 0 18px 52px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-box:hover,
.movie-card:hover,
.rank-card:hover,
.ranking-row:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 66px rgba(2, 132, 199, 0.18);
}

.category-box span {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--sky), var(--blue));
  font-size: 12px;
  font-weight: 900;
}

.category-box strong {
  display: block;
  margin: 18px 0 10px;
  font-size: 21px;
  letter-spacing: -0.03em;
}

.category-box em,
.rank-card em,
.top-rank-card em {
  color: var(--muted);
  font-style: normal;
  line-height: 1.55;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: var(--card);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 22;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #0284c7);
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(15, 23, 42, 0.78));
}

.play-chip {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #075985;
  background: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

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

.movie-meta-line {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  color: var(--sky-dark);
}

.movie-title {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.28;
  letter-spacing: -0.03em;
}

.movie-title a:hover,
.ranking-row h2 a:hover,
.side-card a:hover {
  color: var(--sky-dark);
}

.movie-desc {
  min-height: 66px;
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}

.tag-row {
  margin-bottom: 12px;
}

.category-pill {
  color: #ffffff;
  background: linear-gradient(135deg, var(--sky), var(--blue));
}

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

.rank-card {
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rank-card a {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
}

.rank-card img,
.ranking-poster img {
  width: 86px;
  height: 112px;
  object-fit: cover;
  border-radius: 16px;
  background: #e0f2fe;
}

.rank-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 1.35;
}

.page-hero,
.detail-hero {
  position: relative;
  min-height: 380px;
  color: #ffffff;
  overflow: hidden;
  background-image: linear-gradient(90deg, rgba(2, 8, 23, 0.92), rgba(2, 132, 199, 0.56)), var(--hero-image);
  background-size: cover;
  background-position: center;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  padding: 96px 24px;
}

.page-hero-content h1 {
  margin: 0 0 16px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.page-hero-content p {
  max-width: 760px;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.8;
}

.mini-links a {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  color: #e0f2fe;
  background: rgba(255, 255, 255, 0.14);
  font-weight: 800;
  font-size: 13px;
}

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

.top-rank-card a {
  position: relative;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 24px;
  overflow: hidden;
  border-radius: 28px;
  color: #ffffff;
  background-image: linear-gradient(180deg, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.92)), var(--hero-image);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.rank-number {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #075985;
  background: #ffffff;
  font-weight: 950;
  font-size: 20px;
}

.top-rank-card strong {
  font-size: 26px;
  line-height: 1.2;
  margin-bottom: 8px;
}

.top-rank-card em {
  color: #dbeafe;
}

.ranking-list {
  display: grid;
  gap: 16px;
  padding-top: 24px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 54px 86px 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ranking-index {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--sky), var(--blue));
  font-weight: 950;
}

.ranking-row h2 {
  margin: 0 0 8px;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.ranking-row p {
  margin: 0 0 8px;
  color: var(--muted);
  line-height: 1.7;
}

.ranking-row span {
  color: var(--sky-dark);
  font-weight: 800;
  font-size: 13px;
}

.detail-hero {
  min-height: 560px;
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  padding: 86px 24px;
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 44px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 34px 84px rgba(0, 0, 0, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

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

.breadcrumb {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  color: #dbeafe;
  font-weight: 800;
}

.detail-info h1 {
  margin: 0 0 12px;
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.detail-info h2 {
  margin: 0 0 18px;
  color: #cffafe;
  font-size: 28px;
}

.detail-one-line {
  max-width: 820px;
  color: #e0f2fe;
  font-size: 18px;
  line-height: 1.8;
}

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

.detail-main,
.detail-side {
  display: grid;
  gap: 24px;
}

.player-card,
.content-card,
.side-card {
  padding: 24px;
  border-radius: 26px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow);
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #020617;
  aspect-ratio: 16 / 9;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(2, 8, 23, 0.20), rgba(2, 8, 23, 0.70));
  cursor: pointer;
  font: inherit;
}

.player-overlay.is-hidden {
  display: none;
}

.play-circle {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #075985;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(255, 255, 255, 0.24);
  font-size: 30px;
}

.content-card h2,
.side-card h2 {
  margin: 0 0 16px;
  font-size: 26px;
  letter-spacing: -0.03em;
}

.content-card p {
  margin: 0;
  color: #334155;
  line-height: 2;
  font-size: 17px;
}

.movie-facts dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.movie-facts div {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #e2e8f0;
}

.movie-facts dt {
  color: var(--muted);
  font-weight: 800;
}

.movie-facts dd {
  margin: 0;
  font-weight: 700;
}

.side-card {
  position: sticky;
  top: 94px;
  display: grid;
  gap: 12px;
}

.side-card a {
  padding: 12px 0;
  border-bottom: 1px solid #e2e8f0;
  font-weight: 800;
  color: #334155;
}

.site-footer {
  color: #cbd5e1;
  background: #0f172a;
  margin-top: 60px;
}

.footer-grid {
  max-width: 1240px;
  margin: 0 auto;
  padding: 52px 24px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 36px;
}

.footer-brand {
  margin-bottom: 14px;
  color: #ffffff;
  font-size: 22px;
}

.site-footer p {
  color: #94a3b8;
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 18px;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a:hover {
  color: #67e8f9;
}

.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding: 20px 24px 30px;
  border-top: 1px solid #1e293b;
  color: #94a3b8;
  text-align: center;
}

.is-filtered-out {
  display: none !important;
}

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

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

  .hero-slide {
    grid-template-columns: 1fr;
    min-height: 720px;
  }

  .hero-poster {
    display: none;
  }

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

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

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

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

  .side-card {
    position: static;
  }
}

@media (max-width: 720px) {
  .site-header-inner {
    padding: 14px 18px;
  }

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

  .hero-carousel {
    min-height: 690px;
  }

  .hero-slide {
    padding: 74px 20px 88px;
  }

  .hero-summary,
  .detail-one-line,
  .page-hero-content p {
    font-size: 16px;
  }

  .search-panel,
  .split-heading {
    grid-template-columns: 1fr;
    display: grid;
    align-items: start;
  }

  .movie-grid,
  .movie-grid-featured,
  .movie-grid-related,
  .category-grid,
  .rank-grid,
  .top-rank-grid {
    grid-template-columns: 1fr;
  }

  .ranking-row {
    grid-template-columns: 44px 72px 1fr;
    gap: 12px;
  }

  .ranking-poster img,
  .rank-card img {
    width: 72px;
    height: 96px;
  }

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