:root {
  color-scheme: dark;
  --bg: #07111f;
  --bg-soft: #0d1b2f;
  --panel: rgba(15, 31, 55, 0.78);
  --panel-strong: rgba(11, 23, 42, 0.94);
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #a7b3c8;
  --blue: #38bdf8;
  --cyan: #22d3ee;
  --green: #34d399;
  --gold: #fbbf24;
  --radius: 22px;
  --shadow: 0 24px 80px rgba(2, 8, 23, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.16), transparent 34rem),
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.18), transparent 32rem),
    linear-gradient(180deg, #08111f 0%, #091525 46%, #06101d 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

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

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

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

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

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

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-size: 25px;
  font-weight: 900;
  background: linear-gradient(135deg, #60a5fa, #22d3ee);
  box-shadow: 0 18px 34px rgba(34, 211, 238, 0.26);
}

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

.brand-text strong {
  font-size: 20px;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #eff6ff, #a5f3fc);
  -webkit-background-clip: text;
  color: transparent;
}

.brand-text em {
  margin-top: 4px;
  color: #93c5fd;
  font-size: 12px;
  font-style: normal;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: rgba(255,255,255,0.06);
  cursor: pointer;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex-wrap: wrap;
}

.site-nav a {
  padding: 10px 12px;
  border-radius: 12px;
  color: #dbeafe;
  font-size: 14px;
  transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.site-nav a:hover {
  color: white;
  background: rgba(56, 189, 248, 0.16);
  transform: translateY(-1px);
}

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

.hero-slider {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 32px auto 44px;
  overflow: hidden;
  border-radius: 32px;
  min-height: 540px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-track {
  position: relative;
  min-height: 540px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.66fr);
  align-items: center;
  gap: 34px;
  padding: clamp(28px, 5vw, 64px);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 64, 175, 0.76));
  transition: opacity 0.7s ease;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: linear-gradient(90deg, rgba(7,17,31,0.94), rgba(7,17,31,0.72), rgba(7,17,31,0.52)), var(--hero-image);
  background-position: center;
  background-size: cover;
  filter: saturate(1.05);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 20% 10%, rgba(34, 211, 238, 0.22), transparent 28rem),
    linear-gradient(180deg, transparent, rgba(3, 7, 18, 0.66));
}

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

.hero-content,
.hero-image-panel {
  position: relative;
  z-index: 2;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  padding: 8px 13px;
  color: #bfdbfe;
  border: 1px solid rgba(147, 197, 253, 0.22);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(10px);
}

.hero-content h1,
.hero-content h2 {
  margin: 0;
  font-size: clamp(36px, 6vw, 70px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero-content p {
  max-width: 660px;
  margin: 18px 0 0;
  color: #dbeafe;
  font-size: 17px;
  line-height: 1.9;
}

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

.hero-meta span,
.tag-row span,
.detail-tags span,
.filter-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #dff8ff;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.18);
  font-size: 12px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 15px;
  font-weight: 800;
  color: #04111f;
  background: linear-gradient(135deg, #67e8f9, #60a5fa);
  box-shadow: 0 18px 36px rgba(56, 189, 248, 0.27);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 46px rgba(56, 189, 248, 0.36);
}

.btn.secondary {
  color: #dbeafe;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: none;
}

.hero-image-panel {
  padding: 16px;
  border-radius: 28px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 24px 70px rgba(2, 8, 23, 0.42);
  backdrop-filter: blur(16px);
}

.hero-image-panel img {
  width: 100%;
  aspect-ratio: 2 / 2.75;
  object-fit: cover;
  border-radius: 22px;
}

.hero-dots {
  position: absolute;
  z-index: 5;
  left: 64px;
  bottom: 28px;
  display: flex;
  gap: 8px;
}

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

.hero-dot.is-active {
  background: linear-gradient(90deg, #22d3ee, #60a5fa);
}

.quick-entry {
  position: relative;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.quick-entry a {
  padding: 9px 13px;
  border-radius: 12px;
  color: #e0f2fe;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255,255,255,0.1);
}

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

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

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

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

.section-more {
  color: #7dd3fc;
  font-weight: 800;
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.86), rgba(15, 23, 42, 0.88));
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(2, 8, 23, 0.28);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 189, 248, 0.46);
  box-shadow: 0 24px 70px rgba(2, 8, 23, 0.42);
}

.poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.8);
}

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

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

.rank-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #0f172a;
  font-weight: 900;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  box-shadow: 0 12px 24px rgba(245, 158, 11, 0.26);
}

.card-content {
  padding: 16px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #93c5fd;
  font-size: 12px;
  margin-bottom: 10px;
}

.card-content h3 {
  margin: 0;
  min-height: 48px;
  font-size: 18px;
  line-height: 1.35;
}

.card-content p {
  min-height: 66px;
  margin: 10px 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

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

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

.category-tile {
  min-height: 150px;
  padding: 20px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(34,211,238,0.18), transparent 60%),
    linear-gradient(135deg, rgba(30,64,175,0.56), rgba(15,23,42,0.88));
  border: 1px solid var(--line);
  box-shadow: 0 18px 44px rgba(2, 8, 23, 0.26);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.42);
}

.category-tile strong {
  display: block;
  font-size: 20px;
  margin-bottom: 10px;
}

.category-tile p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

.page-hero {
  margin: 32px auto 34px;
  padding: clamp(28px, 5vw, 56px);
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(34,211,238,0.18), transparent 30rem),
    linear-gradient(135deg, rgba(15,23,42,0.94), rgba(30,64,175,0.44));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 760px;
  color: #dbeafe;
  font-size: 17px;
  line-height: 1.85;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 12px;
  margin-bottom: 22px;
}

.toolbar input,
.toolbar select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  color: var(--text);
  background: rgba(15,23,42,0.86);
  border: 1px solid var(--line);
  outline: none;
}

.toolbar input:focus,
.toolbar select:focus {
  border-color: rgba(34, 211, 238, 0.5);
}

.detail-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(300px, 1fr);
  gap: 28px;
  margin: 32px auto 44px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: rgba(15,23,42,0.78);
  box-shadow: var(--shadow);
}

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

.detail-info {
  padding: clamp(24px, 4vw, 44px);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(34,211,238,0.14), transparent 26rem),
    rgba(15,23,42,0.78);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.breadcrumb {
  color: #7dd3fc;
  font-size: 14px;
  margin-bottom: 18px;
}

.detail-info h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.detail-lead {
  margin: 18px 0;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.8;
}

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

.detail-meta div {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.055);
  border: 1px solid var(--line);
}

.detail-meta span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 4px;
}

.player-section,
.text-panel {
  margin-bottom: 44px;
  padding: clamp(20px, 4vw, 32px);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

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

.video-player video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020617;
  z-index: 1;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  cursor: pointer;
  overflow: hidden;
  background: #020617;
}

.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.46;
  filter: blur(1px) saturate(1.1);
  transform: scale(1.02);
}

.player-cover.is-hidden {
  display: none;
}

.play-button {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  min-height: 58px;
  padding: 0 24px;
  border-radius: 999px;
  color: #03111f;
  font-size: 18px;
  font-weight: 900;
  background: linear-gradient(135deg, #67e8f9, #60a5fa);
  box-shadow: 0 20px 50px rgba(56, 189, 248, 0.42);
}

.text-panel h2,
.player-section h2 {
  margin: 0 0 16px;
  font-size: 26px;
}

.text-panel p {
  margin: 0 0 18px;
  color: #dbeafe;
  line-height: 1.9;
  font-size: 16px;
}

.no-match {
  display: none;
  margin: 22px 0;
  padding: 24px;
  border-radius: 18px;
  color: #bfdbfe;
  background: rgba(15,23,42,0.82);
  border: 1px solid var(--line);
}

.site-footer {
  margin-top: 72px;
  padding: 42px max(16px, calc((100vw - 1180px) / 2)) 26px;
  background: rgba(2, 8, 23, 0.68);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 28px;
}

.site-footer strong {
  display: block;
  margin-bottom: 12px;
  color: white;
}

.site-footer p,
.site-footer a {
  display: block;
  margin: 8px 0;
  color: var(--muted);
  line-height: 1.65;
}

.copyright {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

@media (max-width: 980px) {
  .menu-button {
    display: inline-grid;
    place-items: center;
  }

  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 74px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 18px;
    background: rgba(7, 17, 31, 0.96);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

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

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

  .hero-image-panel {
    display: none;
  }

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

@media (max-width: 620px) {
  .brand-text em {
    display: none;
  }

  .hero-slider,
  .hero-track {
    min-height: 620px;
  }

  .hero-dots {
    left: 28px;
  }

  .movie-grid,
  .category-grid,
  .footer-grid,
  .detail-meta,
  .toolbar {
    grid-template-columns: 1fr;
  }

  .card-content h3,
  .card-content p {
    min-height: auto;
  }
}
