:root {
  --bg: #f8fafc;
  --bg-soft: #eef2ff;
  --panel: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --dark: #020617;
  --dark-2: #0f172a;
  --cyan: #06b6d4;
  --cyan-2: #22d3ee;
  --blue: #2563eb;
  --green: #059669;
  --orange: #f97316;
  --radius: 22px;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.16);
  --shadow-soft: 0 16px 38px rgba(15, 23, 42, 0.1);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 42%, #eef2ff 100%);
  color: var(--text);
  min-height: 100vh;
}

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

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

button,
input {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #020617 0%, #0f172a 50%, #164e63 100%);
  color: #ffffff;
  box-shadow: 0 14px 36px rgba(2, 6, 23, 0.25);
}

.header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 0 26px rgba(34, 211, 238, 0.45);
  transition: transform 0.3s ease;
}

.brand:hover .brand-mark {
  transform: rotate(90deg) scale(1.05);
}

.brand-text {
  font-size: 22px;
  line-height: 1;
  background: linear-gradient(90deg, #22d3ee, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
}

.nav-link {
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--cyan-2);
}

.nav-sub {
  color: rgba(255, 255, 255, 0.62);
}

.header-search,
.mobile-search,
.band-search,
.page-filter {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.band-search input,
.page-filter input {
  border: 1px solid rgba(255, 255, 255, 0.12);
  outline: 0;
  border-radius: 999px;
  padding: 10px 14px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.72);
  transition: width 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.header-search input {
  width: 184px;
}

.header-search input:focus {
  width: 244px;
  border-color: var(--cyan-2);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.16);
}

.header-search button,
.mobile-search button,
.band-search button,
.page-filter button,
.btn,
.rank-play {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 10px 24px rgba(6, 182, 212, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.band-search button:hover,
.page-filter button:hover,
.btn:hover,
.rank-play:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(6, 182, 212, 0.35);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #ffffff;
  border-radius: 2px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #0f172a;
}

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

.mobile-nav {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0;
  display: grid;
  gap: 10px;
}

.mobile-search {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

.mobile-search input {
  flex: 1;
}

.hero {
  position: relative;
  height: 650px;
  overflow: hidden;
  background: #020617;
}

.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-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.08) brightness(0.65);
  transform: scale(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 28%, rgba(34, 211, 238, 0.24), transparent 35%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.95) 0%, rgba(15, 23, 42, 0.82) 46%, rgba(8, 47, 73, 0.35) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.88) 0%, transparent 42%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image: radial-gradient(rgba(255, 255, 255, 0.58) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: center;
  gap: 52px;
  z-index: 2;
}

.hero-copy {
  max-width: 760px;
  color: #ffffff;
}

.eyebrow,
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan-2);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 13px;
}

.hero-title {
  margin: 18px 0 8px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.sub-title {
  color: #ffffff;
}

.hero-copy h2 {
  margin: 0 0 18px;
  color: var(--cyan-2);
  font-size: clamp(28px, 4.2vw, 48px);
  line-height: 1.12;
  font-weight: 850;
}

.hero-copy p {
  margin: 0 0 24px;
  color: rgba(226, 232, 240, 0.9);
  font-size: 20px;
  line-height: 1.75;
}

.hero-tags,
.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 26px;
}

.hero-tags span,
.category-tags span {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  color: #cffafe;
  background: rgba(8, 145, 178, 0.22);
  border: 1px solid rgba(34, 211, 238, 0.2);
  font-size: 13px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  font-weight: 800;
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(14px);
  box-shadow: none;
}

.btn.text-only {
  padding: 0;
  background: transparent;
  box-shadow: none;
  color: var(--cyan);
}

.hero-poster {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
  transform: rotate(2deg);
  transition: transform 0.35s ease;
}

.hero-poster:hover {
  transform: rotate(0deg) scale(1.02);
}

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

.hero-poster span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--cyan);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  width: 36px;
  background: var(--cyan-2);
}

.stats-section {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: -46px;
  position: relative;
  z-index: 4;
}

.stat-card {
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.stat-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 34px;
  color: var(--dark-2);
}

.stat-card span {
  color: var(--muted);
}

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

.soft-section {
  padding: 78px 0;
  background: linear-gradient(135deg, #ecfeff 0%, #eff6ff 100%);
}

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

.section-head h2,
.page-hero h1,
.detail-side h1,
.text-panel h2,
.search-band h2 {
  margin: 0;
  color: var(--dark-2);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-head p,
.page-hero p,
.search-band p {
  margin: 9px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.section-more,
.text-link {
  color: #0891b2;
  font-weight: 800;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0f172a;
}

.movie-card.compact .poster-link,
.category-movie-grid .poster-link {
  aspect-ratio: 3 / 4;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), transparent 62%);
  opacity: 0.78;
  transition: opacity 0.3s ease;
}

.movie-card:hover .poster-shade {
  opacity: 0.46;
}

.play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--cyan);
  background: rgba(255, 255, 255, 0.9);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-mark {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.card-badge {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 6px 11px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(6, 182, 212, 0.9);
  font-size: 12px;
  font-weight: 800;
}

.movie-info {
  padding: 18px;
}

.movie-info h3,
.movie-info h2,
.rank-copy h2 {
  margin: 0 0 9px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 850;
  color: var(--dark-2);
}

.movie-info h3 a:hover,
.movie-info h2 a:hover,
.rank-copy h2 a:hover {
  color: var(--cyan);
}

.movie-info p,
.rank-copy p,
.detail-side p,
.text-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.movie-info p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  color: #64748b;
  font-size: 13px;
}

.movie-meta span,
.detail-meta span {
  padding: 5px 9px;
  border-radius: 999px;
  background: #f1f5f9;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 62px 96px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

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

.rank-thumb {
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 3 / 4;
  background: #0f172a;
}

.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.category-card,
.category-overview-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 20px;
  padding: 20px;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.category-overview-card {
  grid-template-columns: 210px minmax(0, 1fr);
}

.category-card h3,
.category-overview-card h2 {
  margin: 8px 0 8px;
  color: var(--dark-2);
  font-size: 24px;
}

.category-card p,
.category-overview-card p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.7;
}

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

.category-mini a {
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 3 / 4;
  background: #0f172a;
}

.category-mini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-band {
  padding: 72px 0;
  color: #ffffff;
  background:
    radial-gradient(circle at 80% 10%, rgba(34, 211, 238, 0.28), transparent 32%),
    linear-gradient(135deg, #020617, #0f172a 48%, #164e63);
}

.search-band-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: 28px;
  align-items: center;
}

.search-band h2,
.search-band p {
  color: #ffffff;
}

.band-search input {
  flex: 1;
  background: rgba(255, 255, 255, 0.12);
}

.page-hero {
  padding: 76px 0;
  color: #ffffff;
  background:
    radial-gradient(circle at 82% 16%, rgba(34, 211, 238, 0.26), transparent 32%),
    linear-gradient(135deg, #020617 0%, #0f172a 58%, #164e63 100%);
}

.page-hero h1,
.page-hero p {
  color: #ffffff;
}

.page-hero p {
  max-width: 820px;
  color: rgba(226, 232, 240, 0.88);
}

.page-filter {
  margin-top: 26px;
  max-width: 720px;
}

.page-filter input {
  flex: 1;
  min-width: 0;
  background: rgba(255, 255, 255, 0.1);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: rgba(226, 232, 240, 0.72);
  font-size: 14px;
}

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

.detail-hero {
  padding: 46px 0 64px;
  color: #ffffff;
  background:
    radial-gradient(circle at 80% 10%, rgba(34, 211, 238, 0.22), transparent 32%),
    linear-gradient(135deg, #020617, #0f172a 58%, #164e63);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: stretch;
}

.player-card,
.detail-side,
.text-panel {
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.player-card {
  padding: 14px;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.movie-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.25));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-circle {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--cyan);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28);
  font-size: 30px;
}

.detail-side {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
}

.detail-poster {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.detail-side-copy {
  padding: 22px;
}

.detail-side h1 {
  color: #ffffff;
  font-size: 30px;
  margin: 10px 0 12px;
}

.detail-side p {
  color: rgba(226, 232, 240, 0.88);
}

.detail-meta span {
  color: #cffafe;
  background: rgba(8, 145, 178, 0.22);
}

.detail-tags {
  margin-top: 18px;
  margin-bottom: 0;
}

.detail-content {
  padding: 72px 0;
}

.text-panel {
  padding: 32px;
  margin-bottom: 24px;
  color: var(--text);
  background: #ffffff;
}

.text-panel h2 {
  margin-top: 28px;
  margin-bottom: 12px;
  font-size: 28px;
}

.text-panel h2:first-child {
  margin-top: 0;
}

.related-section {
  padding: 42px 0 0;
}

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(180deg, #0f172a, #020617);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 34px;
  padding: 56px 0 34px;
}

.footer-brand {
  margin-bottom: 14px;
  color: #ffffff;
  font-size: 24px;
}

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

.site-footer p,
.site-footer a,
.site-footer li {
  color: #94a3b8;
  line-height: 1.8;
}

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

.site-footer a:hover {
  color: var(--cyan-2);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  color: #64748b;
}

[data-filter-grid] .is-filtered-out {
  display: none;
}

@media (max-width: 1100px) {
  .desktop-nav {
    gap: 12px;
  }

  .nav-sub {
    display: none;
  }

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

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

  .hero-poster {
    display: none;
  }

  .detail-side {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .detail-poster {
    height: 100%;
    aspect-ratio: auto;
  }
}

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

  .menu-toggle {
    display: block;
  }

  .header-inner {
    height: 64px;
  }

  .hero {
    height: 620px;
  }

  .hero-inner {
    align-items: center;
  }

  .hero-copy p {
    font-size: 17px;
  }

  .stats-section,
  .movie-grid,
  .small-grid,
  .category-movie-grid,
  .category-grid,
  .category-overview-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .rank-row {
    grid-template-columns: 48px 78px minmax(0, 1fr);
  }

  .rank-play {
    grid-column: 2 / -1;
    justify-self: start;
  }

  .detail-side {
    grid-template-columns: 1fr;
  }

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

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

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

  .hero {
    height: 680px;
  }

  .hero-actions,
  .page-filter,
  .band-search,
  .mobile-search {
    flex-direction: column;
    align-items: stretch;
  }

  .stats-section,
  .movie-grid,
  .small-grid,
  .category-movie-grid,
  .category-grid,
  .category-overview-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .rank-row {
    grid-template-columns: 42px 72px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .rank-copy p {
    display: none;
  }

  .page-hero {
    padding: 58px 0;
  }

  .content-section,
  .soft-section,
  .detail-content {
    padding: 54px 0;
  }
}
