:root {
  color-scheme: light;
  --bg: #f8fafc;
  --panel: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --soft: #e2e8f0;
  --line: rgba(148, 163, 184, 0.32);
  --brand: #0284c7;
  --brand-2: #2563eb;
  --brand-3: #38bdf8;
  --accent: #f97316;
  --shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 45%, #f0f9ff 100%);
  line-height: 1.65;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

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

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

.nav-shell {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #075985;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

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

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

.site-nav a {
  color: #334155;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a.is-current {
  color: #0369a1;
  background: #e0f2fe;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  color: #0369a1;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  cursor: pointer;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(125deg, #0284c7 0%, #2563eb 55%, #1d4ed8 100%);
}

.hero::before,
.hero::after {
  position: absolute;
  content: "";
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  filter: blur(24px);
}

.hero::before {
  width: 360px;
  height: 360px;
  top: -140px;
  left: -80px;
}

.hero::after {
  width: 520px;
  height: 520px;
  right: -150px;
  bottom: -210px;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 76px 0 62px;
}

.hero-slider {
  position: relative;
  min-height: 520px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  gap: 46px;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.hero-slide.is-active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.hero-copy h1 {
  margin: 16px 0 14px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.065em;
}

.hero-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(28px, 3.8vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #e0f2fe;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 14px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.hero-lead {
  max-width: 760px;
  margin: 0 0 24px;
  color: #dbeafe;
  font-size: clamp(17px, 2vw, 22px);
}

.hero-summary {
  max-width: 710px;
  color: rgba(239, 246, 255, 0.92);
  font-size: 17px;
}

.hero-actions,
.card-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.btn-primary {
  color: #0369a1;
  background: #ffffff;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
}

.btn-primary:hover {
  background: #eff6ff;
}

.btn-ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.12);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn-blue {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 14px 30px rgba(2, 132, 199, 0.24);
}

.hero-poster {
  position: relative;
  margin: 0;
  isolation: isolate;
}

.hero-poster::before {
  position: absolute;
  content: "";
  inset: 26px -18px -18px 28px;
  z-index: -1;
  border-radius: 34px;
  background: rgba(15, 23, 42, 0.22);
}

.hero-poster img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 34px;
  box-shadow: 0 35px 90px rgba(15, 23, 42, 0.35);
}

.hero-meta {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 22px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(18px);
}

.hero-dots {
  display: flex;
  gap: 10px;
  margin-top: 28px;
}

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

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

.section {
  padding: 64px 0;
}

.section-soft {
  background: linear-gradient(90deg, #f1f5f9 0%, #f8fafc 100%);
}

.section-blue {
  background: linear-gradient(135deg, #eff6ff 0%, #e0f2fe 100%);
}

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

.section-heading h1,
.section-heading h2 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.045em;
}

.section-heading p {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--muted);
}

.kicker {
  color: var(--brand);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quick-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 12px;
  margin-top: 34px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
}

.quick-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  height: 48px;
  color: #0f172a;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  outline: none;
  padding: 0 16px;
}

.quick-search button {
  height: 48px;
  padding: 0 24px;
  color: #0369a1;
  border: 0;
  border-radius: 16px;
  background: #ffffff;
  font-weight: 900;
  cursor: pointer;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) repeat(3, minmax(140px, 0.32fr));
  gap: 12px;
  padding: 16px;
  margin: 22px 0 30px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

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

.card-grid.compact {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.movie-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 189, 248, 0.52);
  box-shadow: var(--shadow);
}

.movie-poster {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #e0f2fe, #dbeafe);
}

.movie-poster img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 420ms ease;
}

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

.play-badge {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.16);
  opacity: 0;
  transition: opacity 220ms ease;
}

.play-badge span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #0ea5e9;
  box-shadow: 0 18px 38px rgba(2, 132, 199, 0.28);
}

.movie-card:hover .play-badge {
  opacity: 1;
}

.duration-badge,
.rank-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 5px 9px;
  color: #ffffff;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.74);
  font-size: 12px;
  font-weight: 800;
}

.rank-badge {
  left: 12px;
  right: auto;
  background: linear-gradient(135deg, #f97316, #ef4444);
}

.movie-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px;
}

.movie-category {
  display: inline-flex;
  align-self: flex-start;
  padding: 5px 9px;
  color: #0369a1;
  border-radius: 10px;
  background: #e0f2fe;
  font-size: 12px;
  font-weight: 900;
}

.movie-title {
  margin: 12px 0 8px;
  color: #0f172a;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
}

.movie-desc {
  display: -webkit-box;
  overflow: hidden;
  min-height: 48px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.movie-meta span {
  padding: 3px 7px;
  border-radius: 9px;
  background: #f1f5f9;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 24px;
}

.feature-grid .movie-card:first-child .movie-poster img {
  aspect-ratio: 16 / 10;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 172px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.category-card::after {
  position: absolute;
  content: "";
  width: 128px;
  height: 128px;
  right: -50px;
  bottom: -52px;
  border-radius: 999px;
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  opacity: 0.14;
}

.category-card h2,
.category-card h3 {
  position: relative;
  margin: 0 0 10px;
  color: #0f172a;
  font-size: 22px;
  font-weight: 900;
}

.category-card p {
  position: relative;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.category-link {
  position: relative;
  display: inline-flex;
  margin-top: 18px;
  color: var(--brand);
  font-weight: 900;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 72px 96px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.rank-number {
  color: #0284c7;
  font-size: 24px;
  font-weight: 950;
}

.rank-row img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 16px;
}

.rank-row h2,
.rank-row h3 {
  margin: 0 0 6px;
  font-size: 20px;
  line-height: 1.3;
}

.rank-row p {
  margin: 0;
  color: var(--muted);
}

.heat {
  color: #f97316;
  font-weight: 900;
  white-space: nowrap;
}

.page-hero {
  padding: 58px 0 34px;
  background: radial-gradient(circle at 16% 20%, rgba(56, 189, 248, 0.22), transparent 34%), linear-gradient(180deg, #f0f9ff, #ffffff);
}

.page-hero h1 {
  max-width: 860px;
  margin: 0 0 12px;
  color: #0f172a;
  font-size: clamp(36px, 5.6vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.055em;
}

.page-hero p {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #64748b;
  font-size: 14px;
  font-weight: 800;
}

.breadcrumb a {
  color: #0369a1;
}

.detail-hero {
  padding: 44px 0 34px;
  color: #ffffff;
  background: linear-gradient(125deg, #0f172a 0%, #075985 58%, #1d4ed8 100%);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 36px;
  align-items: end;
}

.detail-hero .breadcrumb {
  color: #dbeafe;
}

.detail-hero .breadcrumb a {
  color: #ffffff;
}

.detail-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.detail-lead {
  max-width: 820px;
  margin: 0;
  color: #dbeafe;
  font-size: 19px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.detail-tags span {
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 13px;
  font-weight: 800;
}

.poster-card {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 28px 58px rgba(0, 0, 0, 0.28);
}

.poster-card img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 22px;
}

.player-section {
  padding: 46px 0 20px;
}

.player-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 34px 70px rgba(15, 23, 42, 0.24);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  border: 0;
  background: radial-gradient(circle at center, rgba(14, 165, 233, 0.2), rgba(2, 6, 23, 0.38));
  cursor: pointer;
}

.play-overlay span {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 18px 46px rgba(14, 165, 233, 0.36);
  font-size: 32px;
  transform: translateX(2px);
}

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

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

.content-card,
.side-card {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.content-card {
  padding: 30px;
}

.content-card h2,
.side-card h2 {
  margin: 0 0 14px;
  color: #0f172a;
  font-size: 26px;
  letter-spacing: -0.025em;
}

.content-card p {
  margin: 0 0 18px;
  color: #475569;
}

.side-card {
  padding: 22px;
}

.meta-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.meta-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
}

.meta-list dt {
  color: #64748b;
  font-weight: 800;
}

.meta-list dd {
  margin: 0;
  color: #0f172a;
  text-align: right;
  font-weight: 900;
}

.related-section {
  padding: 36px 0 70px;
}

.cta-band {
  overflow: hidden;
  position: relative;
  padding: 46px;
  color: #ffffff;
  border-radius: 34px;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  text-align: center;
}

.cta-band h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.04em;
}

.cta-band p {
  max-width: 680px;
  margin: 0 auto 24px;
  color: #dbeafe;
}

.site-footer {
  padding: 46px 0;
  color: #cbd5e1;
  background: #0f172a;
}

.footer-shell {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
}

.footer-logo {
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

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

.empty-state {
  display: none;
  padding: 28px;
  border: 1px dashed #bae6fd;
  border-radius: 22px;
  color: #0369a1;
  background: #f0f9ff;
  text-align: center;
  font-weight: 800;
}

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

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

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

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

  .hero-poster {
    max-width: 420px;
  }

  .poster-card {
    max-width: 320px;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-nav {
    position: absolute;
    left: 12px;
    right: 12px;
    top: 74px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    border-radius: 14px;
  }

  .hero-inner {
    padding: 48px 0 42px;
  }

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

  .hero-slide {
    position: relative;
    display: none;
    gap: 28px;
  }

  .hero-slide.is-active {
    display: grid;
  }

  .quick-search,
  .filter-panel,
  .rank-row,
  .footer-shell {
    grid-template-columns: 1fr;
  }

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

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

  .rank-row {
    display: grid;
  }

  .heat {
    justify-self: start;
  }

  .content-card {
    padding: 22px;
  }
}

@media (max-width: 520px) {
  .logo {
    font-size: 18px;
  }

  .logo-mark {
    width: 34px;
    height: 34px;
  }

  .hero-copy h1 {
    font-size: 40px;
  }

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

  .hero-poster,
  .poster-card {
    max-width: none;
  }

  .cta-band {
    padding: 30px 20px;
  }
}
