:root {
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --accent: #06b6d4;
  --accent-soft: #cffafe;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --page: #f8fafc;
  --card: #ffffff;
  --dark: #020617;
  --radius: 18px;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.24);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.logo-text {
  font-size: 22px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 700;
}

.main-nav a,
.nav-dropdown-button {
  color: rgba(255, 255, 255, 0.94);
  transition: color 0.2s ease, opacity 0.2s ease;
}

.main-nav a:hover,
.nav-dropdown:hover .nav-dropdown-button {
  color: #cffafe;
}

.nav-dropdown {
  position: relative;
  padding: 20px 0;
}

.nav-dropdown-button {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.nav-dropdown-menu {
  position: absolute;
  top: 58px;
  left: 50%;
  width: 220px;
  transform: translateX(-50%) translateY(8px);
  padding: 10px;
  border-radius: 16px;
  color: var(--ink);
  background: #ffffff;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 10px;
  color: #334155;
}

.nav-dropdown-menu a:hover {
  color: var(--brand);
  background: #eff6ff;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
}

.mobile-panel {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

.mobile-panel.is-open {
  display: block;
}

.mobile-panel a {
  display: block;
  padding: 11px 12px;
  border-radius: 12px;
  color: #ffffff;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  margin-top: 8px;
}

.hero {
  position: relative;
  height: 70vh;
  min-height: 540px;
  overflow: hidden;
  color: #ffffff;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: brightness(0.62) saturate(1.08);
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 24%, rgba(6, 182, 212, 0.44), transparent 34%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.72) 45%, rgba(2, 6, 23, 0.2));
  z-index: 1;
}

.hero-grid {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 380px;
  align-items: center;
  gap: 40px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #cffafe;
  background: rgba(14, 165, 233, 0.18);
  box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.28);
  font-size: 14px;
  font-weight: 800;
}

.hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(38px, 6vw, 74px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-text {
  margin: 0;
  max-width: 720px;
  font-size: clamp(17px, 2vw, 21px);
  color: rgba(255, 255, 255, 0.86);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #e0f2fe;
  background: rgba(255, 255, 255, 0.13);
}

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

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

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.32);
}

.btn-white {
  color: var(--brand-dark);
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(255, 255, 255, 0.2);
}

.btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.hero-card {
  border-radius: 26px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

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

.hero-card h2 {
  margin: 14px 0 6px;
  font-size: 22px;
}

.hero-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
}

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

.page-main {
  min-height: 70vh;
}

.section,
.page-section {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0;
}

.section + .section,
.page-section + .page-section {
  padding-top: 20px;
}

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

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

.section-title {
  margin: 4px 0 0;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
}

.section-desc {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--muted);
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 170px;
  padding: 20px;
  border-radius: var(--radius);
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: var(--shadow);
}

.category-card::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -40px;
  width: 140px;
  height: 140px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.category-card h3 {
  position: relative;
  margin: 0 0 10px;
  font-size: 22px;
  z-index: 1;
}

.category-card p {
  position: relative;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  z-index: 1;
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

.movie-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.movie-cover {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #dbeafe, #ecfeff);
}

.movie-cover img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.28s ease;
}

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

.movie-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(37, 99, 235, 0.92);
  font-size: 12px;
  font-weight: 800;
}

.movie-rank {
  position: absolute;
  top: 10px;
  right: 10px;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.72);
  font-weight: 900;
}

.movie-body {
  padding: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.movie-title {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
}

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

.movie-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #475569;
  font-size: 13px;
}

.movie-meta span,
.detail-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #f1f5f9;
}

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

.tag {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  color: #0369a1;
  background: #e0f2fe;
  font-size: 13px;
  font-weight: 700;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 14px;
  padding: 16px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.search-input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  color: var(--ink);
  background: #f8fafc;
}

.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.15);
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.filter-chip {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  color: #334155;
  background: #ffffff;
}

.filter-chip.is-active {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

.breadcrumb {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--brand);
  font-weight: 700;
}

.page-hero {
  color: #ffffff;
  background:
    radial-gradient(circle at top right, rgba(6, 182, 212, 0.42), transparent 36%),
    linear-gradient(135deg, #0f172a, #1d4ed8 54%, #06b6d4);
}

.page-hero-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 62px 0;
}

.page-hero h1 {
  margin: 0;
  max-width: 880px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 760px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

.detail-hero {
  color: #ffffff;
  background:
    radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.42), transparent 35%),
    linear-gradient(135deg, #020617, #172554 58%, #0e7490);
}

.detail-hero-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0 54px;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 32px;
  align-items: end;
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.38);
}

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

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

.detail-copy p {
  max-width: 850px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.detail-copy .detail-meta span {
  color: #e0f2fe;
  background: rgba(255, 255, 255, 0.12);
}

.player-panel {
  width: min(1280px, calc(100% - 32px));
  margin: -28px auto 0;
  padding: 18px;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.player-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.player-title-row h2 {
  margin: 0;
  font-size: 24px;
}

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: #000000;
  aspect-ratio: 16 / 9;
}

.movie-player {
  width: 100%;
  height: 100%;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  color: #ffffff;
  cursor: pointer;
  background: #000000;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55) blur(1px);
}

.play-stack {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 12px;
}

.play-circle {
  width: 78px;
  height: 78px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 18px 35px rgba(37, 99, 235, 0.36);
  font-size: 32px;
}

.play-text {
  font-weight: 900;
  letter-spacing: 0.08em;
}

.content-layout {
  width: min(1280px, calc(100% - 32px));
  margin: 30px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
}

.content-card,
.side-card {
  border-radius: var(--radius);
  padding: 24px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
}

.content-card + .content-card {
  margin-top: 20px;
}

.content-card h2,
.side-card h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.content-card p {
  margin: 0;
  color: #334155;
}

.content-card p + p {
  margin-top: 14px;
}

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

.side-item {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.side-item img {
  width: 70px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 12px;
}

.side-item strong {
  display: block;
  line-height: 1.35;
}

.side-item span {
  color: var(--muted);
  font-size: 13px;
}

.related-section {
  width: min(1280px, calc(100% - 32px));
  margin: 24px auto 54px;
}

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

.footer-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: start;
}

.footer-inner p {
  margin: 10px 0 0;
  max-width: 560px;
}

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

.footer-links a {
  color: #e0f2fe;
}

.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.back-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.back-top:hover {
  transform: translateY(-3px);
}

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

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

  .hero-grid {
    grid-template-columns: 1fr;
    padding-top: 40px;
  }

  .hero-card {
    display: none;
  }

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

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

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

@media (max-width: 720px) {
  .header-inner {
    height: 60px;
  }

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

  .hero {
    height: auto;
    min-height: 620px;
  }

  .hero-grid {
    min-height: 620px;
  }

  .hero-actions,
  .section-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .section-header {
    display: block;
  }

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

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

  .movie-body {
    padding: 12px;
  }

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

  .page-hero-inner,
  .detail-hero-inner {
    padding: 42px 0;
  }

  .player-panel {
    padding: 10px;
    border-radius: 18px;
  }

  .player-frame {
    border-radius: 14px;
  }

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

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