:root {
  --blue: #2563eb;
  --cyan: #06b6d4;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --soft: #f8fafc;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  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.88);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28);
}

.brand-text {
  font-size: 22px;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #334155;
  font-size: 15px;
}

.desktop-nav a {
  position: relative;
  padding: 8px 0;
}

.desktop-nav a:hover {
  color: var(--blue);
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.desktop-nav a:hover::after {
  transform: scaleX(1);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 0;
  border-radius: 12px;
  background: #f1f5f9;
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #0f172a;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.mobile-nav a {
  display: block;
  padding: 12px 24px;
  color: #334155;
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding: 42px 0 54px;
}

.hero::before {
  position: absolute;
  inset: -30% -10% auto;
  height: 520px;
  content: "";
  background:
    radial-gradient(circle at 15% 30%, rgba(6, 182, 212, 0.28), transparent 34%),
    radial-gradient(circle at 70% 20%, rgba(37, 99, 235, 0.28), transparent 38%);
  pointer-events: none;
}

.hero-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 34px;
  align-items: stretch;
}

.hero-copy,
.hero-slider {
  min-height: 520px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 42px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 64, 175, 0.88)),
    radial-gradient(circle at top right, rgba(6, 182, 212, 0.7), transparent 45%);
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 18px;
  padding: 8px 14px;
  color: #bae6fd;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.06em;
}

.hero p {
  max-width: 680px;
  margin: 0 0 26px;
  color: #dbeafe;
  font-size: 18px;
}

.hero-actions,
.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 14px 26px rgba(37, 99, 235, 0.24);
}

.btn-light {
  color: #0f172a;
  background: #ffffff;
}

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

.hero-links a {
  padding: 8px 13px;
  color: #e0f2fe;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}

.hero-slider {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: end;
  min-height: 520px;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

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

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

.hero-slide::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 10%, rgba(15, 23, 42, 0.86) 76%);
}

.slide-content {
  position: relative;
  z-index: 2;
  padding: 34px;
  color: #ffffff;
}

.slide-content h2 {
  margin: 0 0 10px;
  font-size: 32px;
  line-height: 1.16;
}

.slide-content p {
  margin: 0 0 18px;
  color: #e2e8f0;
}

.slide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.slide-meta span {
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-size: 13px;
}

.hero-dots {
  position: absolute;
  z-index: 3;
  right: 28px;
  bottom: 28px;
  display: flex;
  gap: 8px;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
}

.hero-dots button.is-active {
  width: 24px;
  background: #ffffff;
}

.section {
  padding: 52px 0;
}

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

.section-head h1,
.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.18;
  letter-spacing: -0.04em;
}

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

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

.movie-card {
  overflow: hidden;
  background: var(--card);
  border: 1px solid rgba(226, 232, 240, 0.84);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #dbeafe, #cffafe);
}

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

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

.card-year {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 9px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.7);
  border-radius: 999px;
  font-size: 12px;
  backdrop-filter: blur(8px);
}

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

.movie-card h2 {
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card h2 a:hover {
  color: var(--blue);
}

.movie-meta {
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 13px;
}

.movie-card p {
  min-height: 64px;
  margin: 0 0 13px;
  color: #475569;
  font-size: 14px;
}

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

.tag-row span {
  padding: 5px 9px;
  color: #075985;
  background: #e0f2fe;
  border-radius: 999px;
  font-size: 12px;
}

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

.category-card {
  display: flex;
  min-height: 160px;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  background: linear-gradient(135deg, #ffffff, #eff6ff);
  border: 1px solid rgba(191, 219, 254, 0.8);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.08);
}

.category-card h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

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

.category-card span {
  margin-top: 18px;
  color: var(--blue);
  font-weight: 700;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}

.search-wrap {
  display: flex;
  min-width: min(420px, 100%);
  flex: 1;
  align-items: center;
  gap: 12px;
}

.search-wrap span {
  color: #334155;
  font-weight: 700;
}

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

.filter-bar select {
  width: 170px;
}

.rank-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 26px;
  align-items: start;
}

.rank-feature {
  overflow: hidden;
  background: #ffffff;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.rank-feature img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.rank-feature div {
  padding: 24px;
}

.rank-feature h2 {
  margin: 0 0 10px;
  font-size: 28px;
}

.rank-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rank-item a {
  display: grid;
  grid-template-columns: 44px minmax(120px, 0.8fr) minmax(150px, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 16px;
}

.rank-item a:hover {
  border-color: #93c5fd;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.1);
}

.rank-no {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border-radius: 12px;
  font-weight: 800;
}

.rank-title {
  font-weight: 800;
}

.rank-info {
  color: var(--muted);
  font-size: 13px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--blue);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 30px;
  align-items: start;
}

.detail-cover {
  overflow: hidden;
  background: #ffffff;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.detail-cover img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-main {
  padding: 30px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 28px;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
}

.detail-main h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 16px 0 22px;
}

.detail-tags span {
  padding: 6px 12px;
  color: #075985;
  background: #e0f2fe;
  border-radius: 999px;
}

.info-line {
  color: var(--muted);
  font-weight: 700;
}

.synopsis,
.review-box {
  margin-top: 22px;
}

.synopsis h2,
.review-box h2,
.player-section h2,
.related-section h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.synopsis p,
.review-box p {
  margin: 0;
  color: #334155;
}

.player-section {
  padding-top: 46px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  background: #020617;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

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

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(37, 99, 235, 0.28), rgba(2, 6, 23, 0.42));
  cursor: pointer;
}

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

.play-icon {
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  padding-left: 6px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border-radius: 999px;
  box-shadow: 0 18px 42px rgba(6, 182, 212, 0.32);
  font-size: 36px;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 0.7fr 1.1fr;
  gap: 30px;
}

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

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

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

.footer-links.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 32px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.24);
  text-align: center;
  font-size: 14px;
}

.empty-state {
  display: none;
  padding: 30px;
  color: var(--muted);
  text-align: center;
  background: #ffffff;
  border-radius: 20px;
}

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

  .mobile-toggle {
    display: block;
  }

  .hero-layout,
  .detail-layout,
  .rank-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-slider,
  .hero-slide {
    min-height: 460px;
  }

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

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

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

  .hero-copy {
    padding: 28px;
    border-radius: 24px;
  }

  .hero-slider,
  .hero-slide {
    min-height: 420px;
    border-radius: 24px;
  }

  .slide-content {
    padding: 24px;
  }

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

  .section-head {
    display: block;
  }

  .filter-bar select {
    width: 100%;
  }

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

  .rank-info {
    grid-column: 2;
  }
}
