:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #f1f5f9;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --ocean: #0284c7;
  --ocean-deep: #0369a1;
  --island: #16a34a;
  --shadow-soft: 0 2px 15px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 18px 45px rgba(15, 23, 42, 0.18);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

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

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

img.image-missing {
  opacity: 0;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft);
}

.nav-inner {
  max-width: 1180px;
  height: 66px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(90deg, var(--ocean), var(--island));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 14px;
  background: linear-gradient(135deg, var(--ocean), var(--island));
  box-shadow: 0 10px 26px rgba(2, 132, 199, 0.28);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #475569;
  font-size: 14px;
  font-weight: 650;
}

.nav-links a {
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--ocean);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 22px;
}

.hero-slider {
  position: relative;
  min-height: 500px;
  height: 70vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(22, 163, 74, 0.38), transparent 34%),
    radial-gradient(circle at 80% 10%, rgba(2, 132, 199, 0.5), transparent 36%),
    linear-gradient(135deg, #020617, #0f172a 55%, #064e3b);
}

.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-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.55), rgba(2, 6, 23, 0.08)),
    linear-gradient(0deg, rgba(2, 6, 23, 0.65), transparent 50%);
}

.hero-content {
  position: absolute;
  left: max(24px, calc((100vw - 1180px) / 2));
  bottom: 76px;
  width: min(720px, calc(100% - 48px));
  color: #ffffff;
}

.hero-kicker,
.section-kicker {
  display: block;
  margin-bottom: 10px;
  color: #0ea5e9;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
  margin: 0 0 16px;
  font-size: clamp(36px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

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

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 24px;
}

.hero-tags span {
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  font-size: 13px;
}

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

.primary-button,
.ghost-button {
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--ocean), var(--island));
  box-shadow: 0 16px 34px rgba(2, 132, 199, 0.32);
}

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

.primary-button:hover,
.ghost-button:hover,
.movie-card:hover,
.category-card:hover,
.rank-row:hover {
  transform: translateY(-2px);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-controls button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  background: rgba(255, 255, 255, 0.42);
}

.hero-dots button.is-active {
  width: 28px;
  border-radius: 999px;
  background: #ffffff;
}

.content-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 58px 22px;
}

.band-section {
  max-width: none;
  background: #ffffff;
}

.band-section > * {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(25px, 4vw, 36px);
  letter-spacing: -0.04em;
}

.section-head a {
  color: var(--ocean);
  font-weight: 800;
}

.rail-list {
  margin: 0 -22px;
  padding: 0 22px 16px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 265px);
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
}

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

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

.movie-card {
  min-width: 0;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  scroll-snap-align: start;
}

.movie-card:hover {
  box-shadow: var(--shadow-card);
}

.cover-frame {
  position: relative;
  aspect-ratio: 3 / 4.25;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(56, 189, 248, 0.42), transparent 34%),
    linear-gradient(135deg, #0f172a, #164e63 52%, #166534);
}

.cover-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.86), rgba(2, 6, 23, 0.18), transparent 68%);
}

.year-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 800;
}

.rank-badge {
  left: 12px;
  right: auto;
  background: linear-gradient(135deg, var(--ocean), var(--island));
}

.card-copy {
  position: absolute;
  z-index: 2;
  left: 16px;
  right: 16px;
  bottom: 15px;
  color: #ffffff;
}

.card-copy strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 17px;
  line-height: 1.25;
}

.card-copy small {
  display: -webkit-box;
  margin-top: 6px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
}

.card-meta {
  min-height: 44px;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.page-hero {
  color: #ffffff;
  background:
    radial-gradient(circle at 82% 20%, rgba(22, 163, 74, 0.34), transparent 34%),
    linear-gradient(135deg, #020617, #0f172a 60%, #064e3b);
}

.small-hero {
  padding: 78px max(22px, calc((100vw - 1180px) / 2)) 72px;
}

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

.category-card {
  min-height: 220px;
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #0f172a;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.86), rgba(2, 6, 23, 0.2));
}

.category-card > div {
  position: relative;
  z-index: 2;
  padding: 30px;
  color: #ffffff;
}

.category-card span {
  color: #7dd3fc;
  font-size: 13px;
  font-weight: 800;
}

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

.category-card p {
  max-width: 430px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.filter-bar {
  margin-bottom: 26px;
  display: flex;
  gap: 12px;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  outline: none;
}

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--ocean);
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.12);
}

.multi-filter input {
  flex: 2;
}

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

.rank-row {
  padding: 14px;
  border-radius: 22px;
  display: grid;
  grid-template-columns: 58px 96px 1fr;
  gap: 16px;
  align-items: center;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row:hover {
  box-shadow: var(--shadow-card);
}

.rank-number {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--ocean), var(--island));
  font-size: 18px;
  font-weight: 900;
}

.rank-row img {
  width: 96px;
  height: 128px;
  border-radius: 16px;
  object-fit: cover;
  background: linear-gradient(135deg, #0f172a, #164e63);
}

.rank-row h2 {
  margin: 0 0 6px;
  font-size: 22px;
}

.rank-row p {
  margin: 0 0 8px;
  color: #475569;
}

.meta-line {
  color: var(--muted);
  font-size: 13px;
}

.detail-hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.35), transparent 32%),
    linear-gradient(135deg, #020617, #0f172a 52%, #064e3b);
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.36;
  filter: blur(10px) saturate(1.2);
  transform: scale(1.06);
}

.detail-layer {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.62), rgba(2, 6, 23, 0.35)),
    linear-gradient(0deg, rgba(2, 6, 23, 0.72), transparent 60%);
}

.detail-wrap {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  min-height: 640px;
  margin: 0 auto;
  padding: 64px 22px;
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  align-items: center;
  gap: 46px;
}

.detail-poster {
  aspect-ratio: 3 / 4.25;
  overflow: hidden;
  border-radius: 30px;
  background: linear-gradient(135deg, #0f172a, #164e63);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}

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

.detail-info h1 {
  max-width: 820px;
}

.detail-content {
  font-size: 17px;
}

.detail-content h2 {
  margin: 30px 0 10px;
  font-size: 28px;
}

.detail-content p {
  max-width: 900px;
  color: #334155;
}

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

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

.play-overlay {
  position: absolute;
  inset: 0;
  border: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #ffffff;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.24), rgba(2, 6, 23, 0.56));
  cursor: pointer;
}

.player-box.is-playing .play-overlay {
  opacity: 0;
  pointer-events: none;
}

.play-overlay span {
  width: 74px;
  height: 74px;
  padding-left: 5px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--ocean), var(--island));
  font-size: 28px;
  box-shadow: 0 18px 42px rgba(2, 132, 199, 0.35);
}

.play-overlay strong {
  font-size: 20px;
}

.detail-pager {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.detail-pager a {
  padding: 18px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  color: var(--ocean-deep);
  font-weight: 800;
}

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

.footer-grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 52px 22px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #ffffff;
}

.site-footer p {
  max-width: 560px;
  color: #94a3b8;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 8px;
}

.site-footer a:hover {
  color: #38bdf8;
}

@media (max-width: 1100px) {
  .movie-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-inner {
    flex-wrap: wrap;
    height: auto;
    min-height: 66px;
  }

  .nav-links {
    width: 100%;
    display: none;
    padding: 0 0 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

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

  .nav-links a {
    padding: 10px 12px;
    border-radius: 14px;
  }

  .nav-links a.is-active {
    background: #f0f9ff;
  }

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

  .hero-content {
    bottom: 92px;
  }

  .detail-wrap {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 38px;
  }

  .detail-poster {
    width: min(280px, 75vw);
  }

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

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

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

  .rank-row img {
    width: 82px;
    height: 112px;
  }

  .filter-bar,
  .multi-filter,
  .detail-pager {
    grid-template-columns: 1fr;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .brand,
  .footer-brand {
    font-size: 20px;
  }

  .hero-content h1,
  .page-hero h1,
  .detail-info h1 {
    font-size: 38px;
  }

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

  .content-section {
    padding: 42px 16px;
  }

  .movie-grid,
  .compact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .card-copy {
    left: 12px;
    right: 12px;
  }

  .card-copy small {
    display: none;
  }

  .card-meta {
    display: none;
  }

  .rank-row {
    grid-template-columns: 1fr;
  }

  .rank-number {
    position: absolute;
    margin: 8px;
  }

  .rank-row img {
    width: 100%;
    height: 220px;
  }
}
