:root {
  color-scheme: dark;
  --bg: #07111f;
  --bg-soft: #0c1a2e;
  --panel: rgba(15, 31, 54, 0.82);
  --panel-solid: #10223a;
  --line: rgba(148, 197, 255, 0.18);
  --text: #f5fbff;
  --muted: #a9bed4;
  --accent: #38bdf8;
  --accent-2: #60a5fa;
  --accent-3: #22d3ee;
  --gold: #fbbf24;
  --radius: 22px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 8%, rgba(56, 189, 248, 0.18), transparent 28rem),
    radial-gradient(circle at 88% 18%, rgba(37, 99, 235, 0.2), transparent 30rem),
    linear-gradient(180deg, #06101e 0%, #07111f 44%, #08121f 100%);
  color: var(--text);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(7, 17, 31, 0.92), rgba(15, 41, 72, 0.94), rgba(7, 17, 31, 0.92));
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1320px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 76px;
}

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

.brand-mark {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #38bdf8, #2563eb 60%, #22d3ee);
  box-shadow: 0 12px 36px rgba(56, 189, 248, 0.35);
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
}

.brand-text strong,
.brand-text small {
  display: block;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 20px;
  background: linear-gradient(90deg, #dff7ff, #7dd3fc, #c7d2fe);
  -webkit-background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.brand-text small {
  margin-top: 3px;
  color: #a9d8ff;
  font-size: 12px;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.nav-link {
  padding: 10px 14px;
  border-radius: 12px;
  color: #d7ebff;
  transition: background 0.25s ease, transform 0.25s ease, color 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  background: rgba(37, 99, 235, 0.62);
  color: #ffffff;
  transform: translateY(-1px);
}

.header-search,
.hero-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.hero-search input,
.filter-search-row input,
.filter-selects select {
  border: 1px solid rgba(125, 211, 252, 0.28);
  border-radius: 14px;
  background: rgba(8, 24, 44, 0.78);
  color: var(--text);
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.header-search input {
  width: 220px;
  padding: 10px 12px;
}

.header-search input:focus,
.hero-search input:focus,
.filter-search-row input:focus,
.filter-selects select:focus {
  border-color: rgba(56, 189, 248, 0.78);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.12);
}

.header-search button,
.hero-search button,
.filter-search-row button {
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  color: white;
  padding: 10px 14px;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.25);
}

.menu-toggle {
  display: none;
  border: 0;
  border-radius: 12px;
  padding: 9px 12px;
  background: rgba(56, 189, 248, 0.12);
  color: white;
  cursor: pointer;
}

main {
  min-height: 70vh;
}

.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  isolation: isolate;
}

.hero-backdrop,
.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-image {
  opacity: 0;
  background-image: linear-gradient(90deg, rgba(4, 12, 24, 0.92), rgba(4, 12, 24, 0.66), rgba(4, 12, 24, 0.2)), var(--cover);
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: opacity 0.8s ease, transform 6s ease;
}

.hero-image.is-active {
  opacity: 1;
  transform: scale(1.0);
}

.hero-overlay {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(6, 16, 30, 0.08), rgba(6, 16, 30, 0.95)),
    radial-gradient(circle at 74% 18%, rgba(56, 189, 248, 0.24), transparent 24rem);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1320px, calc(100% - 32px));
  min-height: 680px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 420px;
  align-items: center;
  gap: 44px;
  padding: 72px 0;
}

.hero-copy {
  position: relative;
  min-height: 430px;
}

.hero-slide {
  position: absolute;
  inset: 0 auto auto 0;
  width: min(780px, 100%);
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-slide.is-active {
  position: relative;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #7dd3fc;
  letter-spacing: 0.08em;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 78px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.hero p {
  max-width: 720px;
  margin: 24px 0 0;
  color: #d6e8ff;
  font-size: 18px;
  line-height: 1.85;
}

.hero-tags,
.detail-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.hero-tags span,
.detail-tags span,
.tag-row span {
  border: 1px solid rgba(125, 211, 252, 0.25);
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  color: #c9ecff;
  padding: 6px 10px;
  font-size: 12px;
}

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

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

.primary-btn {
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  color: white;
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.38);
}

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

.ghost-btn.dark {
  border-color: rgba(125, 211, 252, 0.22);
  background: rgba(10, 25, 44, 0.72);
}

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

.hero-dots {
  display: flex;
  gap: 10px;
  margin-top: 28px;
}

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

.hero-dot.is-active {
  background: #38bdf8;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.8);
}

.hero-panel {
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(15, 31, 54, 0.82), rgba(7, 17, 31, 0.82));
  box-shadow: var(--shadow);
  padding: 22px;
  backdrop-filter: blur(20px);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  padding: 14px 15px;
}

.hero-picks {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.compact-card,
.rank-item {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(125, 211, 252, 0.14);
  border-radius: 18px;
  background: rgba(8, 24, 44, 0.72);
  padding: 10px;
  transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.compact-card:hover,
.rank-item:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.55);
  background: rgba(20, 45, 76, 0.8);
}

.compact-thumb,
.rank-thumb {
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: 13px;
  background-image: linear-gradient(135deg, rgba(14, 165, 233, 0.38), rgba(30, 41, 59, 0.2)), var(--cover);
  background-size: cover;
  background-position: center;
}

.compact-card strong,
.compact-card small,
.rank-info strong,
.rank-info small {
  display: block;
}

.compact-card strong,
.rank-info strong {
  color: white;
  font-size: 15px;
}

.compact-card small,
.rank-info small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.content-section,
.page-hero,
.detail-hero,
.player-section,
.detail-layout {
  width: min(1320px, calc(100% - 32px));
  margin: 0 auto;
}

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

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 42px);
  letter-spacing: -0.03em;
}

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

.all-grid {
  align-items: stretch;
}

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(125, 211, 252, 0.14);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(15, 31, 54, 0.92), rgba(8, 22, 39, 0.98));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(56, 189, 248, 0.58);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background-image: linear-gradient(135deg, rgba(37, 99, 235, 0.68), rgba(14, 165, 233, 0.24)), var(--cover);
  background-size: cover;
  background-position: center;
}

.poster img {
  transition: transform 0.45s ease, opacity 0.25s ease;
}

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

.play-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.92);
  color: white;
  box-shadow: 0 10px 25px rgba(14, 165, 233, 0.38);
}

.card-body {
  padding: 15px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: #83d7ff;
  font-size: 12px;
  font-weight: 700;
}

.card-body h3 {
  margin: 9px 0 7px;
  color: white;
  font-size: 17px;
  line-height: 1.35;
}

.card-body p {
  min-height: 42px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.62;
}

.tag-row span {
  padding: 4px 8px;
  font-size: 11px;
}

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

.category-tile,
.pill-link {
  min-height: 144px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 10px;
  border: 1px solid rgba(125, 211, 252, 0.16);
  border-radius: 22px;
  background-image: linear-gradient(180deg, rgba(8, 24, 44, 0.24), rgba(8, 24, 44, 0.92)), var(--cover);
  background-size: cover;
  background-position: center;
  padding: 22px;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-tile:hover,
.pill-link:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.58);
}

.category-tile span,
.pill-link strong {
  color: white;
  font-size: 24px;
  font-weight: 900;
}

.category-tile strong,
.pill-link span {
  color: #cce9ff;
  font-size: 13px;
  line-height: 1.55;
}

.pill-link {
  min-height: 112px;
  background: linear-gradient(145deg, rgba(15, 31, 54, 0.96), rgba(8, 22, 39, 0.96));
}

.section-more {
  display: flex;
  justify-content: center;
  padding-top: 26px;
}

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

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

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

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

.rank-number {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.13);
  color: #7dd3fc;
  font-weight: 900;
}

.rank-score {
  color: var(--gold);
  font-size: 20px;
  font-weight: 900;
}

.page-hero {
  margin-top: 34px;
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 30px;
  background:
    radial-gradient(circle at 80% 18%, rgba(56, 189, 248, 0.18), transparent 24rem),
    linear-gradient(135deg, rgba(15, 31, 54, 0.92), rgba(8, 22, 39, 0.96));
  box-shadow: var(--shadow);
  padding: clamp(36px, 6vw, 72px);
}

.page-hero p {
  max-width: 780px;
  margin: 18px 0 0;
  color: #cfe4ff;
  font-size: 17px;
  line-height: 1.85;
}

.filter-panel {
  width: min(1320px, calc(100% - 32px));
  margin: 24px auto 0;
  border: 1px solid rgba(125, 211, 252, 0.15);
  border-radius: 24px;
  background: rgba(8, 22, 39, 0.82);
  padding: 18px;
}

.filter-search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.filter-search-row input {
  padding: 14px 15px;
}

.filter-chips,
.filter-selects {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.filter-chip {
  border: 1px solid rgba(125, 211, 252, 0.2);
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.08);
  color: #cfeaff;
  padding: 8px 13px;
  cursor: pointer;
}

.filter-chip.is-active {
  border-color: rgba(56, 189, 248, 0.8);
  background: rgba(37, 99, 235, 0.6);
  color: white;
}

.filter-selects select {
  min-width: 150px;
  padding: 11px 13px;
}

.detail-hero {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 42px;
  align-items: center;
  padding: 44px 0 20px;
}

.detail-poster {
  aspect-ratio: 2 / 3;
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 28px;
  overflow: hidden;
  background-image: linear-gradient(135deg, rgba(37, 99, 235, 0.68), rgba(14, 165, 233, 0.22)), var(--cover);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: #9edcff;
  font-size: 13px;
}

.detail-info .lead {
  max-width: 860px;
  color: #d6e8ff;
  font-size: 19px;
  line-height: 1.8;
}

.detail-tags {
  margin-top: 20px;
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(125, 211, 252, 0.2);
  border-radius: 28px;
  background: #020617;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #020617;
}

.player-start {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0.12), rgba(2, 6, 23, 0.42));
  color: white;
  cursor: pointer;
}

.player-start span {
  width: 88px;
  height: 88px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  box-shadow: 0 18px 48px rgba(37, 99, 235, 0.45);
  font-size: 34px;
  transform: translateX(3px);
}

.player-shell.is-playing .player-start {
  opacity: 0;
  pointer-events: none;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  padding-top: 34px;
}

.detail-article,
.detail-side {
  border: 1px solid rgba(125, 211, 252, 0.14);
  border-radius: 24px;
  background: rgba(8, 22, 39, 0.86);
  padding: 28px;
}

.detail-article h2,
.detail-side h2 {
  margin: 0 0 18px;
  font-size: 24px;
}

.detail-article p {
  margin: 0 0 18px;
  color: #d4e6f8;
  font-size: 16px;
  line-height: 1.9;
}

.info-list {
  display: grid;
  gap: 13px;
  margin: 0;
}

.info-list div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  border-bottom: 1px solid rgba(125, 211, 252, 0.12);
  padding-bottom: 12px;
}

.info-list dt {
  color: #7dd3fc;
  font-weight: 800;
}

.info-list dd {
  margin: 0;
  color: #d8ecff;
}

.site-footer {
  margin-top: 72px;
  background: linear-gradient(180deg, rgba(7, 17, 31, 0.48), rgba(2, 6, 23, 0.96));
  border-top: 1px solid rgba(125, 211, 252, 0.14);
}

.footer-inner {
  width: min(1320px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 0;
  color: var(--muted);
}

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

.footer-inner p {
  max-width: 720px;
  margin: 10px 0 0;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

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

.movie-card.is-hidden,
.compact-card.is-hidden,
.rank-item.is-hidden {
  display: none;
}

@media (max-width: 1180px) {
  .header-inner {
    grid-template-columns: auto auto;
  }

  .header-search {
    display: none;
  }

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

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

  .hero-panel {
    max-width: 680px;
  }
}

@media (max-width: 860px) {
  .header-inner {
    min-height: 68px;
  }

  .menu-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .main-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid rgba(125, 211, 252, 0.18);
    border-radius: 20px;
    background: rgba(7, 17, 31, 0.96);
    padding: 12px;
    box-shadow: var(--shadow);
  }

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

  .brand-text small {
    display: none;
  }

  .hero,
  .hero-inner {
    min-height: auto;
  }

  .hero-inner {
    padding: 48px 0;
  }

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

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

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

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

@media (max-width: 560px) {
  .header-inner,
  .content-section,
  .page-hero,
  .detail-hero,
  .player-section,
  .detail-layout,
  .filter-panel,
  .footer-inner {
    width: min(100% - 22px, 1320px);
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    font-size: 20px;
  }

  .brand-text strong {
    font-size: 17px;
  }

  .hero-copy {
    min-height: 590px;
  }

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

  .hero-panel {
    padding: 16px;
  }

  .hero-search,
  .filter-search-row {
    grid-template-columns: 1fr;
    display: grid;
  }

  .movie-grid,
  .category-grid,
  .pill-grid,
  .home-ranking,
  .full-ranking {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 42px 70px 1fr;
  }

  .rank-score {
    grid-column: 3;
    justify-self: start;
  }

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