:root {
  --bg: #f5fbff;
  --paper: #ffffff;
  --ink: #172033;
  --muted: #64748b;
  --line: #d9ebff;
  --blue: #2f7df6;
  --cyan: #25c3ee;
  --soft: #eaf6ff;
  --shadow: 0 18px 50px rgba(47, 125, 246, 0.14);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #eff8ff 0%, #ffffff 36%, #f4fbff 100%);
  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 {
  display: block;
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
}

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

.nav-shell {
  width: min(1220px, calc(100% - 32px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

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

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text strong,
.footer-logo {
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text small {
  margin-top: 4px;
  color: #94a3b8;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.nav-link {
  color: #41526b;
  font-weight: 700;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--blue);
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  background: #eef7ff;
  border: 1px solid #cde8ff;
  border-radius: 999px;
}

.nav-search input {
  width: 210px;
  padding: 8px 12px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.nav-search button,
.big-search button,
.hero-search-form button {
  border: 0;
  color: #ffffff;
  cursor: pointer;
  font-weight: 800;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border-radius: 999px;
  box-shadow: 0 12px 24px rgba(47, 125, 246, 0.22);
}

.nav-search button {
  padding: 8px 14px;
}

.nav-toggle {
  display: none;
  border: 0;
  color: var(--blue);
  background: #eef7ff;
  border-radius: 12px;
  padding: 8px 11px;
}

.hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background: #0f172a;
}

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

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 36%, rgba(37, 195, 238, 0.34), transparent 32%),
    linear-gradient(90deg, rgba(8, 17, 35, 0.94), rgba(15, 23, 42, 0.68) 48%, rgba(15, 23, 42, 0.25)),
    linear-gradient(180deg, rgba(47, 125, 246, 0.2), rgba(8, 17, 35, 0.86));
}

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

.hero-copy {
  color: #ffffff;
}

.hero-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.hero-kicker span,
.movie-badge,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
}

.hero-kicker span {
  padding: 7px 12px;
  color: #eaf8ff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
}

.hero h1 {
  max-width: 760px;
  margin: 0 0 20px;
  font-size: clamp(40px, 7vw, 74px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.hero p {
  max-width: 680px;
  margin: 0 0 34px;
  color: #dcecff;
  font-size: 19px;
}

.hero-actions,
.quick-tags,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: var(--blue);
  background: #ffffff;
  box-shadow: 0 18px 36px rgba(255, 255, 255, 0.22);
}

.btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.btn-primary:hover,
.btn-ghost:hover,
.movie-card:hover {
  transform: translateY(-4px);
}

.hero-poster {
  position: relative;
  display: block;
  padding: 16px;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 36px 80px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 24px;
}

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

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

.hero-controls button.is-current {
  width: 38px;
  background: #ffffff;
}

.quick-panel {
  width: min(1060px, calc(100% - 32px));
  margin: -38px auto 46px;
  position: relative;
  z-index: 5;
  padding: 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(203, 232, 255, 0.9);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.big-search,
.hero-search-form {
  display: flex;
  gap: 12px;
}

.big-search input,
.hero-search-form input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 1px solid #cde8ff;
  outline: 0;
  color: var(--ink);
  background: #f8fcff;
  border-radius: 999px;
}

.big-search input,
.hero-search-form input {
  min-height: 54px;
  padding: 0 18px;
}

.big-search button,
.hero-search-form button {
  min-width: 132px;
  padding: 0 20px;
}

.quick-tags {
  margin-top: 14px;
}

.quick-tags a {
  padding: 8px 14px;
  color: var(--blue);
  background: #eaf6ff;
  border-radius: 999px;
  font-weight: 800;
}

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

.section-shell.slim {
  padding: 28px 0 0;
}

.soft-section {
  padding: 44px;
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(239, 248, 255, 0.96), rgba(255, 255, 255, 0.92));
  border: 1px solid #d9ebff;
  box-shadow: var(--shadow);
}

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

.section-head.compact {
  margin-bottom: 18px;
}

.section-label {
  display: inline-block;
  color: var(--blue);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.section-head a {
  color: var(--blue);
  font-weight: 900;
}

.card-grid,
.poster-grid {
  display: grid;
  gap: 22px;
}

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

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

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

.movie-card {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid #dceeff;
  border-radius: 24px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  box-shadow: 0 24px 54px rgba(47, 125, 246, 0.18);
}

.movie-cover {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #eaf6ff, #f8fcff);
}

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

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

.movie-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  color: #ffffff;
  background: rgba(47, 125, 246, 0.9);
  font-size: 13px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.movie-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.2);
}

.movie-info {
  padding: 16px;
}

.movie-title {
  display: -webkit-box;
  overflow: hidden;
  min-height: 50px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #6b7c94;
  font-size: 13px;
}

.movie-meta span + span::before {
  content: "·";
  margin-right: 8px;
  color: #aab8ca;
}

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

.tag-row span {
  padding: 5px 9px;
  color: var(--blue);
  background: #edf7ff;
  font-size: 12px;
  font-weight: 800;
}

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

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

.category-tile {
  min-height: 132px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #ffffff;
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.34), transparent 26%),
    linear-gradient(135deg, var(--blue), var(--cyan));
  border-radius: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
}

.category-tile span {
  font-size: 22px;
  font-weight: 900;
}

.category-tile strong {
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  align-items: start;
}

.rank-panel,
.side-card {
  position: sticky;
  top: 104px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #dceeff;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

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

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

.small-card {
  display: grid;
  grid-template-columns: 34px 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  background: #f8fcff;
  border: 1px solid #e0f0ff;
  border-radius: 18px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.small-card:hover {
  transform: translateX(3px);
  background: #eef7ff;
}

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

.small-card img {
  width: 58px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
}

.small-card strong,
.small-card em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.small-card strong {
  font-weight: 900;
}

.small-card em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.page-hero {
  color: #ffffff;
  background:
    radial-gradient(circle at 78% 24%, rgba(255, 255, 255, 0.28), transparent 26%),
    linear-gradient(135deg, #1f6ff2, #26c3ef 58%, #1b9ce2);
}

.page-hero > div {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 80px 0;
}

.page-hero span {
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

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

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px;
  gap: 12px;
}

.filter-bar input,
.filter-bar select {
  min-height: 48px;
  padding: 0 16px;
}

.detail-wrap {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 12px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 14px;
}

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

.breadcrumb strong {
  color: var(--ink);
}

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

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

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

.player-start {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #ffffff;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.72));
}

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

.player-start span {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  font-size: 32px;
  box-shadow: 0 18px 42px rgba(255, 255, 255, 0.26);
}

.player-start strong {
  font-size: 20px;
}

.detail-article {
  margin-top: 24px;
  padding: 28px;
  background: #ffffff;
  border: 1px solid #dceeff;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.detail-article .lead {
  margin: 14px 0 20px;
  color: var(--muted);
  font-size: 18px;
}

.detail-meta span {
  padding: 8px 12px;
  color: #34506f;
  background: #eef7ff;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
}

.detail-article h2 {
  margin: 28px 0 8px;
  font-size: 24px;
}

.detail-article p {
  color: #41526b;
}

.detail-side {
  display: grid;
  gap: 18px;
}

.detail-poster {
  display: block;
  padding: 12px;
  background: #ffffff;
  border: 1px solid #dceeff;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

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

.side-card h3 {
  margin: 0 0 12px;
}

.side-card p {
  margin: 8px 0;
  color: var(--muted);
}

.side-card a {
  display: inline-flex;
  margin-top: 12px;
  padding: 10px 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border-radius: 999px;
  font-weight: 900;
}

.site-footer {
  margin-top: 54px;
  background: linear-gradient(180deg, #eff8ff, #ffffff);
  border-top: 1px solid #d9ebff;
}

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

.footer-grid p {
  color: var(--muted);
}

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

.footer-grid a,
.footer-grid span {
  display: block;
  margin: 8px 0;
  color: #52657d;
}

.footer-bottom {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 34px;
  color: #7890a8;
  border-top: 1px solid #d9ebff;
}

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

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

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

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

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

  .hero-poster,
  .detail-side {
    max-width: 360px;
  }

  .rank-panel,
  .side-card {
    position: static;
  }
}

@media (max-width: 760px) {
  .nav-shell {
    min-height: 68px;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 0;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: #f8fcff;
    border: 1px solid #dceeff;
    border-radius: 20px;
  }

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

  .hero,
  .hero-content {
    min-height: 720px;
  }

  .hero-content {
    gap: 28px;
    padding: 44px 0 80px;
  }

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

  .quick-panel {
    margin-top: -28px;
  }

  .big-search,
  .hero-search-form,
  .filter-bar {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .big-search button,
  .hero-search-form button {
    min-height: 50px;
  }

  .card-grid,
  .featured-grid,
  .poster-grid,
  .rank-list.big,
  .category-grid,
  .category-grid.large,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .soft-section {
    padding: 24px;
  }

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

  .detail-article {
    padding: 22px;
  }
}
