:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: #0f172a;
  --panel-soft: #111c31;
  --panel-strong: #1e293b;
  --text: #f8fafc;
  --muted: #94a3b8;
  --line: rgba(148, 163, 184, 0.18);
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --green: #34d399;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  --radius: 22px;
  --header-h: 76px;
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 0%, rgba(34, 211, 238, 0.12), transparent 32rem),
    radial-gradient(circle at 85% 10%, rgba(59, 130, 246, 0.12), transparent 30rem),
    var(--bg);
  color: var(--text);
}

body.no-scroll {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(2, 6, 23, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: var(--header-h);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: white;
  box-shadow: 0 12px 28px rgba(34, 211, 238, 0.25);
}

.brand-text,
.footer-brand {
  font-size: 1.42rem;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  color: #dbeafe;
  font-weight: 650;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--cyan);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.92);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #e2e8f0;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.96);
}

.mobile-nav.is-open {
  display: grid;
  gap: 14px;
}

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

.hero-slider {
  position: relative;
  height: 70vh;
  min-height: 560px;
  margin: 28px 0 54px;
  overflow: hidden;
  border-radius: 30px;
  background: #0f172a;
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98) 0%, rgba(15, 23, 42, 0.86) 45%, rgba(15, 23, 42, 0.08) 100%),
    var(--hero-image);
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.8), transparent 46%);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(680px, calc(100% - 48px));
  margin-left: clamp(24px, 6vw, 76px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  font-size: clamp(2.35rem, 6vw, 5.2rem);
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.hero-content h2 {
  margin: 14px 0 0;
  font-size: clamp(1.7rem, 3vw, 3rem);
  color: #bae6fd;
}

.hero-content p:not(.eyebrow),
.page-hero p:not(.eyebrow),
.detail-info p:not(.eyebrow) {
  color: #cbd5e1;
  line-height: 1.9;
  font-size: 1.08rem;
}

.hero-actions,
.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-actions {
  margin: 28px 0 18px;
}

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

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

.btn.primary {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: white;
  box-shadow: 0 16px 34px rgba(34, 211, 238, 0.22);
}

.btn.ghost {
  border: 1px solid rgba(226, 232, 240, 0.22);
  background: rgba(15, 23, 42, 0.58);
  color: #e0f2fe;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #cffafe;
  font-size: 0.82rem;
  font-style: normal;
}

.hero-control {
  position: absolute;
  left: clamp(24px, 6vw, 76px);
  right: clamp(24px, 6vw, 76px);
  bottom: 28px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 18px;
}

.hero-control button {
  border: 0;
  color: white;
  cursor: pointer;
}

.hero-control > button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.74);
  font-size: 1.7rem;
}

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

.hero-dot {
  width: 34px;
  height: 5px;
  padding: 0;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.34);
}

.hero-dot.active {
  background: var(--cyan);
}

.content-section {
  margin: 54px 0;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
}

.section-more {
  color: var(--cyan);
  font-weight: 800;
}

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

.movie-card {
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.72));
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.52);
  box-shadow: 0 28px 64px rgba(8, 145, 178, 0.18);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.16), rgba(59, 130, 246, 0.12)),
    #111827;
}

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

.movie-card:hover img {
  transform: scale(1.06);
  filter: saturate(1.12);
}

.play-chip,
.rank-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
}

.play-chip {
  right: 12px;
  bottom: 12px;
  min-height: 30px;
  padding: 0 12px;
  background: rgba(2, 6, 23, 0.74);
  color: #cffafe;
  backdrop-filter: blur(10px);
}

.rank-badge {
  left: 12px;
  top: 12px;
  min-width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: white;
}

.card-body {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

.card-body strong {
  color: white;
  font-size: 1.08rem;
  line-height: 1.4;
}

.card-body em {
  min-height: 45px;
  color: #aebbd0;
  font-style: normal;
  line-height: 1.65;
  font-size: 0.92rem;
}

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

.category-tile,
.channel-card a {
  display: grid;
  gap: 12px;
  min-height: 150px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.13), rgba(59, 130, 246, 0.08)),
    rgba(15, 23, 42, 0.82);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-tile:hover,
.channel-card a:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 211, 238, 0.54);
}

.category-tile span,
.channel-card span {
  color: white;
  font-size: 1.25rem;
  font-weight: 850;
}

.category-tile strong,
.channel-card p {
  margin: 0;
  color: #aebbd0;
  line-height: 1.75;
  font-size: 0.95rem;
}

.channel-card strong {
  color: var(--cyan);
}

.page-hero,
.detail-hero,
.player-section,
.detail-content,
.breadcrumb {
  margin-top: 34px;
}

.page-hero {
  padding: clamp(34px, 7vw, 74px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    radial-gradient(circle at 92% 10%, rgba(34, 211, 238, 0.2), transparent 20rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.76));
  box-shadow: var(--shadow);
}

.page-hero.compact {
  padding: clamp(30px, 5vw, 56px);
}

.filter-bar,
.global-search-panel {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 14px;
  margin-top: 28px;
}

.filter-bar input,
.filter-bar select,
.global-search-panel input,
.global-search-panel select {
  width: 100%;
  height: 48px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 16px;
  outline: none;
  padding: 0 16px;
  background: rgba(2, 6, 23, 0.62);
  color: white;
}

.filter-bar input:focus,
.filter-bar select:focus,
.global-search-panel input:focus,
.global-search-panel select:focus {
  border-color: rgba(34, 211, 238, 0.72);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #93c5fd;
  font-weight: 700;
}

.breadcrumb span:last-child {
  color: var(--muted);
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(240px, 330px) 1fr;
  gap: clamp(24px, 5vw, 48px);
  align-items: center;
  padding: clamp(22px, 5vw, 46px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    radial-gradient(circle at 90% 10%, rgba(34, 211, 238, 0.16), transparent 22rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.72));
  box-shadow: var(--shadow);
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  background: #111827;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
}

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

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

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

.player-launcher {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: radial-gradient(circle, rgba(2, 6, 23, 0.08), rgba(2, 6, 23, 0.62));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-launcher span {
  width: clamp(72px, 10vw, 104px);
  height: clamp(72px, 10vw, 104px);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: white;
  font-size: clamp(2rem, 5vw, 3.4rem);
  box-shadow: 0 22px 60px rgba(34, 211, 238, 0.32);
}

.player-launcher.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
}

.story-card,
.info-card {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(15, 23, 42, 0.82);
  padding: clamp(22px, 4vw, 34px);
}

.story-card h2,
.info-card h2 {
  margin: 0 0 18px;
  color: white;
}

.story-card p {
  margin: 0 0 26px;
  color: #cbd5e1;
  line-height: 2;
}

.info-card dl {
  margin: 0;
  display: grid;
  gap: 16px;
}

.info-card div {
  display: grid;
  gap: 5px;
}

.info-card dt {
  color: var(--muted);
  font-size: 0.86rem;
}

.info-card dd {
  margin: 0;
  color: #e2e8f0;
  line-height: 1.6;
}

.site-footer {
  margin-top: 70px;
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.72);
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0 26px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.8fr;
  gap: 34px;
}

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

.footer-grid h2 {
  margin: 0 0 15px;
  font-size: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

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

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

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

.empty-state {
  grid-column: 1 / -1;
  padding: 44px;
  border: 1px dashed rgba(148, 163, 184, 0.28);
  border-radius: 24px;
  color: var(--muted);
  text-align: center;
}

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

  .nav-toggle {
    display: block;
  }

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

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

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

@media (max-width: 760px) {
  main,
  .header-inner,
  .mobile-nav,
  .footer-grid,
  .copyright {
    width: min(100% - 22px, 1180px);
  }

  .hero-slider {
    min-height: 620px;
    height: auto;
    border-radius: 24px;
  }

  .hero-content {
    width: calc(100% - 34px);
    margin: 82px 17px 120px;
  }

  .hero-slide {
    position: relative;
    display: none;
    min-height: 620px;
  }

  .hero-slide.active {
    display: grid;
  }

  .hero-control {
    left: 18px;
    right: 18px;
  }

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

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

  .card-body {
    padding: 13px;
  }

  .card-body em {
    display: none;
  }

  .tag-row {
    display: none;
  }

  .filter-bar,
  .global-search-panel,
  .detail-hero {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 460px) {
  .movie-grid,
  .category-grid,
  .channel-grid {
    grid-template-columns: 1fr;
  }

  .brand-text {
    font-size: 1.16rem;
  }

  .page-hero,
  .detail-hero,
  .story-card,
  .info-card {
    border-radius: 22px;
  }
}
