:root {
  color-scheme: dark;
  --page: #020617;
  --panel: #0f172a;
  --panel-soft: rgba(15, 23, 42, 0.78);
  --line: rgba(148, 163, 184, 0.22);
  --text: #f8fafc;
  --muted: #94a3b8;
  --cyan: #06b6d4;
  --blue: #2563eb;
  --green: #22c55e;
  --orange: #f97316;
  --yellow: #eab308;
  --red: #ef4444;
  --pink: #ec4899;
  --purple: #a855f7;
  --radius: 18px;
  --shadow: 0 28px 80px rgba(8, 47, 73, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, #020617 0%, #0f172a 46%, #020617 100%);
  color: var(--text);
  min-height: 100vh;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(18px);
}

.header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.brand-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 0 32px rgba(6, 182, 212, 0.45);
}

.brand-text {
  font-size: 23px;
  background: linear-gradient(90deg, #67e8f9, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  color: #cbd5e1;
  padding: 10px 12px;
  border-radius: 12px;
  transition: 0.22s ease;
  font-size: 14px;
}

.nav-link:hover,
.nav-link.is-active {
  color: white;
  background: rgba(6, 182, 212, 0.16);
  box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.25);
}

.menu-button {
  display: none;
  background: rgba(15, 23, 42, 0.9);
  color: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 22px;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  padding: 10px 16px 16px;
  background: rgba(2, 6, 23, 0.98);
}

.mobile-nav a {
  display: block;
  padding: 12px 14px;
  margin: 4px 0;
  border-radius: 12px;
  color: #cbd5e1;
}

.mobile-nav a:hover {
  background: rgba(6, 182, 212, 0.14);
  color: white;
}

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

.hero {
  position: relative;
  height: 72vh;
  min-height: 520px;
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 900ms ease;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 25%, rgba(6, 182, 212, 0.18), transparent 32%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.2), rgba(2, 6, 23, 0.64) 48%, #020617 100%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.35), rgba(2, 6, 23, 0.76));
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 86px;
}

.hero-label,
.eyebrow {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  color: white;
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(6, 182, 212, 0.28);
}

.hero h1 {
  margin: 18px 0 12px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  max-width: 860px;
  text-shadow: 0 12px 36px rgba(0, 0, 0, 0.55);
}

.hero p {
  margin: 0;
  max-width: 780px;
  color: #cbd5e1;
  font-size: clamp(17px, 2vw, 22px);
}

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

.hero-meta span,
.meta-row span {
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.72);
  color: #dbeafe;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
}

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

.primary-button,
.ghost-button,
.filter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 750;
  transition: 0.24s ease;
}

.primary-button {
  color: white;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  box-shadow: 0 18px 40px rgba(6, 182, 212, 0.34);
}

.primary-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 24px 60px rgba(6, 182, 212, 0.46);
}

.ghost-button {
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(15, 23, 42, 0.42);
  color: white;
  backdrop-filter: blur(12px);
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.12);
}

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

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

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

.main-section,
.band-section,
.page-hero {
  padding: 58px 0;
}

.band-section {
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.72), rgba(30, 41, 59, 0.84), rgba(15, 23, 42, 0.72));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.page-hero {
  background: radial-gradient(circle at 20% 10%, rgba(6, 182, 212, 0.16), transparent 30%),
    radial-gradient(circle at 80% 0%, rgba(37, 99, 235, 0.18), transparent 34%),
    linear-gradient(180deg, #0f172a, #020617);
}

.page-hero h1 {
  margin: 14px 0 12px;
  font-size: clamp(34px, 5vw, 56px);
}

.page-hero p {
  max-width: 760px;
  color: #cbd5e1;
  margin: 0;
  font-size: 17px;
}

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

.section-head h2 {
  margin: 10px 0 0;
  font-size: clamp(26px, 3.6vw, 40px);
}

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

.section-more {
  color: #67e8f9;
  font-weight: 700;
  white-space: nowrap;
}

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid var(--line);
  box-shadow: 0 12px 42px rgba(0, 0, 0, 0.28);
  transition: 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 211, 238, 0.42);
  box-shadow: var(--shadow);
}

.poster-link,
.poster-wrap {
  display: block;
}

.poster-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #1e293b);
}

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

.movie-card:hover img,
.horizontal-card:hover img,
.special-card:hover img,
.category-card:hover .category-bg {
  transform: scale(1.08);
}

.poster-mask {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-mask {
  opacity: 1;
}

.play-dot {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.9);
  box-shadow: 0 0 34px rgba(6, 182, 212, 0.7);
}

.year-chip,
.region-chip,
.rank-badge {
  position: absolute;
  top: 12px;
  border-radius: 999px;
  padding: 5px 9px;
  color: white;
  font-size: 12px;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(8px);
}

.year-chip {
  right: 12px;
}

.region-chip {
  left: 12px;
  background: rgba(6, 182, 212, 0.82);
}

.rank-badge {
  right: 12px;
  bottom: 12px;
  top: auto;
  background: linear-gradient(135deg, var(--orange), var(--red));
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.card-body h3 a:hover {
  color: #67e8f9;
}

.card-body p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  min-height: 48px;
  margin: 0 0 13px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-row span {
  color: #cbd5e1;
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
}

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

.category-card {
  position: relative;
  min-height: 178px;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.28);
}

.category-bg {
  position: absolute;
  inset: 0;
  transition: transform 0.45s ease;
}

.from-blue { background: linear-gradient(135deg, #2563eb, #06b6d4); }
.from-emerald { background: linear-gradient(135deg, #16a34a, #10b981); }
.from-purple { background: linear-gradient(135deg, #7c3aed, #ec4899); }
.from-pink { background: linear-gradient(135deg, #db2777, #f97316); }
.from-orange { background: linear-gradient(135deg, #ea580c, #dc2626); }
.from-red { background: linear-gradient(135deg, #dc2626, #991b1b); }
.from-cyan { background: linear-gradient(135deg, #0891b2, #1d4ed8); }
.from-indigo { background: linear-gradient(135deg, #4f46e5, #9333ea); }
.from-lime { background: linear-gradient(135deg, #65a30d, #059669); }
.from-yellow { background: linear-gradient(135deg, #ca8a04, #ea580c); }

.category-content {
  position: relative;
  min-height: 178px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.06), rgba(2, 6, 23, 0.42));
}

.category-content strong {
  font-size: 22px;
}

.category-content span {
  color: rgba(255, 255, 255, 0.82);
  margin-top: 8px;
  line-height: 1.5;
}

.horizontal-scroll {
  overflow-x: auto;
  padding-bottom: 12px;
}

.horizontal-track {
  display: flex;
  gap: 18px;
  min-width: max-content;
}

.horizontal-card {
  width: 292px;
  flex: 0 0 292px;
}

.horizontal-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 16px;
  transition: transform 0.35s ease;
  background: #0f172a;
}

.horizontal-card strong {
  display: block;
  margin: 10px 0 4px;
  font-size: 16px;
}

.horizontal-card span {
  color: var(--muted);
  font-size: 13px;
}

.special-layout {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 20px;
}

.special-card {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: #0f172a;
}

.special-card:first-child {
  grid-row: span 2;
}

.special-card img {
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.special-card div {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.82));
}

.special-card strong {
  font-size: 23px;
}

.special-card p {
  color: #cbd5e1;
  margin: 8px 0 0;
  line-height: 1.6;
}

.filter-panel {
  margin: 0 0 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.72);
  border-radius: 20px;
}

.search-input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 999px;
  padding: 0 18px;
  color: white;
  outline: none;
  background: rgba(2, 6, 23, 0.76);
}

.search-input:focus {
  border-color: rgba(34, 211, 238, 0.7);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.13);
}

.filter-button {
  border: 0;
  cursor: pointer;
  color: white;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}

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

.rank-row {
  display: grid;
  grid-template-columns: 78px 180px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.76);
  transition: 0.24s ease;
}

.rank-row:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.42);
}

.rank-num {
  font-size: 28px;
  font-weight: 900;
  color: #67e8f9;
  text-align: center;
}

.rank-row img {
  width: 180px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px;
  background: #0f172a;
}

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

.rank-row p {
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

.rank-row .primary-button {
  padding: 10px 18px;
  min-height: 40px;
}

.detail-main {
  padding: 34px 0 62px;
}

.breadcrumb {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 18px;
}

.breadcrumb a:hover {
  color: #67e8f9;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(310px, 0.85fr);
  gap: 28px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(34, 211, 238, 0.22);
  background: black;
  box-shadow: 0 28px 88px rgba(0, 0, 0, 0.42);
}

.player-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: white;
  background: radial-gradient(circle at center, rgba(6, 182, 212, 0.14), rgba(0, 0, 0, 0.18) 42%, rgba(0, 0, 0, 0.5));
  border: 0;
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-overlay span {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 0 48px rgba(6, 182, 212, 0.72);
  font-size: 30px;
}

.player-shell.is-playing .play-overlay {
  opacity: 0;
  visibility: hidden;
}

.detail-panel,
.side-panel {
  margin-top: 22px;
  padding: 24px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.72);
}

.detail-panel h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 42px);
}

.detail-panel h2,
.side-panel h2 {
  font-size: 22px;
  margin: 26px 0 12px;
}

.detail-panel p {
  color: #cbd5e1;
  line-height: 1.88;
}

.side-panel {
  margin-top: 0;
  position: sticky;
  top: 92px;
}

.side-list {
  display: grid;
  gap: 13px;
}

.side-item {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px;
  align-items: center;
}

.side-item img {
  width: 112px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  background: #0f172a;
}

.side-item strong {
  display: block;
  line-height: 1.4;
}

.side-item span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.related-section {
  margin-top: 34px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #0f172a, #020617);
  color: #cbd5e1;
}

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

.footer-grid h2 {
  margin: 0 0 14px;
  color: white;
  font-size: 17px;
}

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

.footer-grid a:not(.footer-brand) {
  display: block;
  margin: 8px 0;
  color: #cbd5e1;
}

.footer-grid a:hover {
  color: #67e8f9;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 18px;
  color: var(--muted);
  text-align: center;
}

.is-hidden {
  display: none !important;
}

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

  .menu-button {
    display: inline-flex;
  }

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

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

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

  .side-panel {
    position: static;
  }
}

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

  .hero {
    min-height: 560px;
  }

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

  .section-head,
  .filter-panel {
    grid-template-columns: 1fr;
    display: grid;
  }

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

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

  .rank-row img,
  .rank-row .primary-button {
    grid-column: 2;
  }

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

  .side-item {
    grid-template-columns: 96px 1fr;
  }
}
