:root {
  --mist-950: #071a2d;
  --mist-900: #102a43;
  --mist-850: #173653;
  --mist-800: #243b53;
  --mist-700: #334e68;
  --mist-600: #486581;
  --mist-500: #627d98;
  --mist-400: #829ab1;
  --mist-300: #9fb3c8;
  --mist-200: #bcccdc;
  --swamp-600: #20656a;
  --swamp-500: #2d8285;
  --swamp-400: #52a0a3;
  --swamp-300: #7bb8ba;
  --amber: #f8c46b;
  --white: #ffffff;
  --radius: 22px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  --soft-shadow: 0 16px 45px rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--mist-200);
  background:
    radial-gradient(circle at top left, rgba(82, 160, 163, 0.18), transparent 38vw),
    radial-gradient(circle at 80% 0, rgba(248, 196, 107, 0.12), transparent 32vw),
    var(--mist-900);
  line-height: 1.7;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(16, 42, 67, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(188, 204, 220, 0.12);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  height: 76px;
  display: flex;
  align-items: center;
  gap: 28px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--swamp-400), var(--swamp-600));
  color: var(--white);
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(45, 130, 133, 0.35);
}

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

.brand-text strong {
  color: var(--white);
  font-size: 20px;
  letter-spacing: 0.04em;
}

.brand-text small {
  color: var(--mist-400);
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  color: var(--mist-200);
  transition: color 0.2s ease;
}

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

.nav-drop {
  position: relative;
}

.nav-drop-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  padding: 10px;
  display: grid;
  gap: 4px;
  border-radius: 16px;
  background: rgba(36, 59, 83, 0.96);
  box-shadow: var(--soft-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
}

.nav-drop:hover .nav-drop-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-drop-menu a {
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--mist-200);
}

.nav-drop-menu a:hover {
  background: rgba(82, 160, 163, 0.16);
  color: var(--white);
}

.header-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(36, 59, 83, 0.9);
  border: 1px solid rgba(188, 204, 220, 0.12);
}

.header-search input {
  width: 190px;
  border: 0;
  outline: 0;
  color: var(--white);
  background: transparent;
  padding: 8px 10px;
}

.header-search button,
.local-search button {
  border: 0;
  cursor: pointer;
  color: var(--white);
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--swamp-500);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(36, 59, 83, 0.95);
  cursor: pointer;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--white);
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(36, 59, 83, 0.96);
}

.mobile-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
}

.mobile-panel a:hover {
  background: rgba(82, 160, 163, 0.16);
}

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

.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: var(--mist-950);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  filter: saturate(1.1) contrast(1.06);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 26, 45, 0.96) 0%, rgba(16, 42, 67, 0.78) 46%, rgba(16, 42, 67, 0.36) 100%),
    linear-gradient(0deg, var(--mist-900) 0%, transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  min-height: 680px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 64px;
  align-items: center;
  padding: 72px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 6px 12px;
  border: 1px solid rgba(123, 184, 186, 0.35);
  border-radius: 999px;
  background: rgba(82, 160, 163, 0.14);
  color: var(--swamp-300);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.hero-text h1 {
  margin: 18px 0 10px;
  color: var(--white);
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.05;
}

.hero-text h2 {
  margin: 0 0 18px;
  color: var(--amber);
  font-size: clamp(24px, 3vw, 42px);
}

.hero-text p {
  max-width: 760px;
  margin: 0;
  color: var(--mist-200);
  font-size: 18px;
}

.hero-tags,
.detail-meta,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-tags span,
.detail-meta span,
.tag-row span {
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(188, 204, 220, 0.12);
  color: var(--mist-200);
  font-size: 13px;
}

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

.primary-btn,
.ghost-btn,
.section-more,
.spotlight-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-btn {
  color: var(--white);
  background: linear-gradient(135deg, var(--swamp-400), var(--swamp-600));
  box-shadow: 0 16px 36px rgba(45, 130, 133, 0.35);
}

.ghost-btn,
.section-more {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.primary-btn:hover,
.ghost-btn:hover,
.section-more:hover,
.spotlight-card a:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
}

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

.hero-poster span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 74px;
  height: 74px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(82, 160, 163, 0.88);
  color: var(--white);
  font-size: 26px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.32);
}

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

.hero-dot {
  width: 34px;
  height: 4px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.34);
}

.hero-dot.is-active {
  background: var(--swamp-300);
}

.search-band,
.content-section,
.page-main,
.detail-main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.search-band {
  margin-top: -58px;
  position: relative;
  z-index: 8;
}

.search-card {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 520px);
  gap: 24px;
  align-items: center;
  padding: 24px;
  border: 1px solid rgba(188, 204, 220, 0.13);
  border-radius: var(--radius);
  background: rgba(36, 59, 83, 0.86);
  backdrop-filter: blur(18px);
  box-shadow: var(--soft-shadow);
}

.search-card h2,
.section-head h2,
.page-hero h1,
.detail-info h1,
.player-section h2,
.detail-section h2 {
  color: var(--white);
  margin: 0;
}

.search-card p,
.section-head p,
.page-hero p,
.detail-section p,
.detail-one-line,
.movie-desc,
.spotlight-card p {
  color: var(--mist-300);
}

.local-search {
  display: flex;
  gap: 10px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(16, 42, 67, 0.74);
  border: 1px solid rgba(188, 204, 220, 0.12);
}

.local-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 10px 12px;
  color: var(--white);
  background: transparent;
}

.content-section {
  padding: 74px 0 0;
}

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

.section-head h2 {
  font-size: clamp(26px, 3vw, 38px);
}

.section-head p {
  margin: 8px 0 0;
}

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

.movie-grid.small-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: rgba(36, 59, 83, 0.72);
  border: 1px solid rgba(188, 204, 220, 0.1);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(123, 184, 186, 0.35);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--mist-800);
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(7, 26, 45, 0.82) 100%);
}

.poster-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(16, 42, 67, 0.82);
  color: var(--white);
  font-size: 12px;
}

.poster-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: rgba(82, 160, 163, 0.9);
}

.movie-info {
  padding: 16px;
}

.movie-info h3 {
  margin: 0;
  color: var(--white);
  font-size: 18px;
  line-height: 1.35;
}

.movie-info h3 a:hover {
  color: var(--swamp-300);
}

.movie-meta {
  margin: 8px 0;
  color: var(--mist-400);
  font-size: 13px;
}

.movie-desc {
  min-height: 52px;
  margin: 0;
  font-size: 14px;
}

.movie-card.compact .movie-info h3 {
  font-size: 16px;
}

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

.category-tile {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  border-radius: 22px;
  background: var(--mist-800);
  box-shadow: var(--soft-shadow);
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.44;
  transition: transform 0.35s ease;
}

.category-tile:hover img {
  transform: scale(1.08);
}

.tile-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(7, 26, 45, 0.9));
}

.category-tile strong,
.category-tile em {
  position: relative;
  z-index: 1;
}

.category-tile strong {
  color: var(--white);
  font-size: 20px;
}

.category-tile em {
  margin-top: 6px;
  color: var(--mist-300);
  font-size: 13px;
  font-style: normal;
}

.scroll-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(210px, 250px);
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
}

.scroll-row .movie-card {
  scroll-snap-align: start;
}

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

.spotlight-card {
  position: relative;
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 22px;
  padding: 18px;
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(36, 59, 83, 0.92), rgba(16, 42, 67, 0.92));
  border: 1px solid rgba(188, 204, 220, 0.12);
  box-shadow: var(--soft-shadow);
}

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

.spotlight-card span {
  color: var(--swamp-300);
}

.spotlight-card h3 {
  margin: 10px 0;
  color: var(--white);
  font-size: 28px;
}

.spotlight-card a {
  margin-top: 10px;
  color: var(--white);
  background: var(--swamp-500);
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: auto 74px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: rgba(36, 59, 83, 0.72);
  border: 1px solid rgba(188, 204, 220, 0.1);
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  background: rgba(45, 130, 133, 0.2);
}

.rank-no {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--white);
  background: rgba(82, 160, 163, 0.85);
  font-weight: 800;
}

.rank-item img {
  width: 74px;
  height: 98px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-item strong,
.rank-item em {
  display: block;
}

.rank-item strong {
  color: var(--white);
}

.rank-item em {
  color: var(--mist-400);
  font-style: normal;
  font-size: 13px;
}

.empty-state {
  display: none;
  margin: 28px 0 0;
  padding: 22px;
  border-radius: 18px;
  text-align: center;
  background: rgba(36, 59, 83, 0.68);
}

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

.page-main {
  padding-bottom: 80px;
}

.page-hero {
  min-height: 360px;
  display: flex;
  align-items: center;
  margin-top: 28px;
  padding: 56px;
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(45, 130, 133, 0.22), rgba(7, 26, 45, 0.9)),
    radial-gradient(circle at 75% 20%, rgba(248, 196, 107, 0.18), transparent 28vw),
    var(--mist-800);
  box-shadow: var(--shadow);
}

.slim-hero {
  min-height: 300px;
}

.page-hero h1 {
  margin-top: 16px;
  font-size: clamp(36px, 5vw, 64px);
}

.page-hero p {
  max-width: 720px;
  margin: 12px 0 0;
  font-size: 18px;
}

.page-search {
  margin-bottom: 24px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 28px 0 18px;
  color: var(--mist-400);
}

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

.detail-main {
  padding-bottom: 80px;
}

.detail-hero {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 42px;
  align-items: center;
  padding: 34px;
  border-radius: 32px;
  background:
    radial-gradient(circle at 10% 0, rgba(82, 160, 163, 0.2), transparent 34vw),
    rgba(36, 59, 83, 0.74);
  border: 1px solid rgba(188, 204, 220, 0.12);
  box-shadow: var(--soft-shadow);
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.detail-info h1 {
  margin: 18px 0 12px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.1;
}

.detail-one-line {
  font-size: 18px;
  margin: 0;
}

.detail-tags {
  margin-bottom: 26px;
}

.player-section,
.detail-section {
  margin-top: 48px;
}

.player-section h2,
.detail-section h2 {
  margin-bottom: 18px;
  font-size: 30px;
}

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

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

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(7, 26, 45, 0.08), rgba(7, 26, 45, 0.54));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-layer span {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: rgba(82, 160, 163, 0.9);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.42);
  font-size: 30px;
}

.play-layer.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.detail-section {
  padding: 28px;
  border-radius: 24px;
  background: rgba(36, 59, 83, 0.62);
  border: 1px solid rgba(188, 204, 220, 0.1);
}

.detail-section p {
  margin: 0;
  white-space: pre-line;
  font-size: 17px;
}

.related-section {
  width: 100%;
}

.site-footer {
  margin-top: 90px;
  padding: 42px 0;
  border-top: 1px solid rgba(188, 204, 220, 0.1);
  background: rgba(7, 26, 45, 0.48);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 28px;
}

.footer-inner strong {
  color: var(--white);
  font-size: 20px;
}

.footer-inner p {
  margin: 8px 0 0;
  color: var(--mist-400);
}

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

.footer-inner nav a {
  color: var(--mist-300);
}

.footer-inner nav a:hover {
  color: var(--white);
}

@media (max-width: 1080px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-poster {
    width: min(300px, 78vw);
  }

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

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

  .spotlight-grid,
  .rank-board {
    grid-template-columns: 1fr;
  }

  .detail-hero {
    grid-template-columns: 260px 1fr;
  }
}

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

  .brand-text small {
    display: none;
  }

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

  .hero-content {
    padding: 42px 0 82px;
  }

  .hero-text p {
    font-size: 16px;
  }

  .hero-poster {
    transform: none;
  }

  .search-card {
    grid-template-columns: 1fr;
  }

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

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

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

  .spotlight-card {
    grid-template-columns: 120px 1fr;
    gap: 14px;
  }

  .spotlight-card h3 {
    font-size: 20px;
  }

  .page-hero {
    padding: 34px 24px;
    border-radius: 24px;
  }

  .detail-hero {
    grid-template-columns: 1fr;
    padding: 22px;
  }

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

  .footer-inner {
    flex-direction: column;
  }

  .footer-inner nav {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .brand-text strong {
    font-size: 16px;
  }

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

  .local-search {
    flex-direction: column;
  }

  .rank-item {
    grid-template-columns: auto 58px 1fr;
  }

  .rank-item img {
    width: 58px;
    height: 78px;
  }
}
