:root {
  --bg: #020617;
  --panel: #0f172a;
  --panel-soft: #111827;
  --card: #111827;
  --card-light: #1e293b;
  --text: #f8fafc;
  --muted: #94a3b8;
  --subtle: #64748b;
  --cyan: #06b6d4;
  --cyan-dark: #0891b2;
  --blue: #2563eb;
  --orange: #f97316;
  --green: #22c55e;
  --line: rgba(148, 163, 184, 0.16);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(8, 145, 178, 0.24), transparent 34rem),
    radial-gradient(circle at 80% 10%, rgba(37, 99, 235, 0.18), transparent 32rem),
    var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(15, 23, 42, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-name,
.footer-brand span:last-child {
  font-size: 24px;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, #22d3ee, #3b82f6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: white;
  font-size: 15px;
  box-shadow: 0 0 0 6px rgba(6, 182, 212, 0.1);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #cbd5e1;
  font-weight: 650;
  font-size: 15px;
}

.desktop-nav a {
  transition: color 0.2s ease;
}

.desktop-nav a:hover {
  color: #22d3ee;
}

.top-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  width: 300px;
  border: 1px solid var(--line);
  background: rgba(30, 41, 59, 0.78);
  border-radius: 999px;
  padding: 4px;
}

.top-search input,
.mobile-nav input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  color: white;
  background: transparent;
  padding: 8px 12px;
}

.top-search input::placeholder,
.mobile-nav input::placeholder,
.filter-panel input::placeholder {
  color: #94a3b8;
}

.top-search button {
  border: 0;
  color: white;
  background: var(--cyan);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.top-search button:hover {
  background: var(--cyan-dark);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: transparent;
  color: white;
  font-size: 28px;
  cursor: pointer;
}

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

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

.mobile-nav a {
  color: #e2e8f0;
  font-weight: 700;
}

.mobile-nav form {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(30, 41, 59, 0.8);
}

main {
  overflow: hidden;
}

.page-shell,
.footer-shell {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.7s ease, transform 1.4s ease;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.72) 38%, rgba(2, 6, 23, 0.3)),
    linear-gradient(0deg, #020617, transparent 44%);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  z-index: 2;
}

.hero-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 112px 0 72px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: white;
  background: rgba(6, 182, 212, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 14px;
  font-weight: 750;
  box-shadow: 0 10px 34px rgba(6, 182, 212, 0.22);
}

.hero-title {
  max-width: 780px;
  margin: 22px 0 18px;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.055em;
  font-weight: 900;
}

.hero-desc {
  max-width: 720px;
  margin: 0 0 28px;
  color: #dbeafe;
  font-size: clamp(16px, 1.7vw, 20px);
  line-height: 1.8;
}

.hero-meta,
.meta-line,
.detail-meta,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-meta {
  margin-bottom: 28px;
}

.hero-meta span,
.detail-meta span {
  color: #e0f2fe;
  background: rgba(15, 23, 42, 0.68);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 14px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 11px 22px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 16px 36px rgba(6, 182, 212, 0.28);
}

.btn-ghost {
  color: white;
  background: rgba(15, 23, 42, 0.65);
  border-color: rgba(255, 255, 255, 0.2);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: rgba(0, 0, 0, 0.48);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s ease;
}

.hero-control:hover {
  background: rgba(0, 0, 0, 0.72);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dots button {
  width: 42px;
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
  width: 64px;
  background: var(--cyan);
}

.feature-strip {
  position: relative;
  z-index: 4;
  width: min(1280px, calc(100% - 32px));
  margin: -48px auto 28px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  min-height: 120px;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  border-color: rgba(6, 182, 212, 0.55);
  transform: translateY(-3px);
}

.feature-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

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

.section-block {
  padding: 44px 0;
}

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

.section-heading h1,
.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.04em;
}

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

.section-more {
  color: #67e8f9;
  font-weight: 800;
}

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

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

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

.movie-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.84);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  border-color: rgba(6, 182, 212, 0.48);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.32);
  transform: translateY(-4px);
}

.movie-card-horizontal {
  display: grid;
  grid-template-columns: 150px 1fr;
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.82));
}

.movie-card-horizontal .poster {
  aspect-ratio: auto;
  min-height: 214px;
}

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

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

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  color: white;
  background: rgba(6, 182, 212, 0.9);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 30px;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, #f97316, #ef4444);
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(239, 68, 68, 0.28);
}

.movie-card-body {
  padding: 16px;
}

.meta-line {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 10px;
}

.meta-line a {
  color: #67e8f9;
}

.movie-card h3 {
  margin: 0;
  color: white;
  line-height: 1.35;
  font-size: 17px;
  font-weight: 800;
}

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

.movie-card p {
  margin: 9px 0 12px;
  color: #a5b4fc;
  line-height: 1.65;
  font-size: 14px;
}

.tag-row span {
  color: #cbd5e1;
  background: rgba(30, 41, 59, 0.86);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 24px;
  background:
    radial-gradient(circle at top right, rgba(6, 182, 212, 0.22), transparent 12rem),
    rgba(15, 23, 42, 0.88);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-card:hover {
  border-color: rgba(6, 182, 212, 0.55);
  transform: translateY(-4px);
}

.category-card h2,
.category-card h3 {
  margin: 0 0 12px;
  font-size: 26px;
  font-weight: 900;
}

.category-card p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.75;
}

.category-card .mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-card .mini-links span {
  color: #e0f2fe;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, minmax(150px, 0.5fr));
  gap: 12px;
  margin: 24px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.82);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.2);
  outline: 0;
  color: white;
  background: rgba(30, 41, 59, 0.84);
  border-radius: 14px;
  padding: 12px 14px;
}

.no-result {
  display: none;
  margin: 30px 0;
  padding: 28px;
  border: 1px dashed rgba(148, 163, 184, 0.3);
  border-radius: 20px;
  color: var(--muted);
  text-align: center;
}

.no-result.is-visible {
  display: block;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: #67e8f9;
}

.detail-layout {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 34px;
  align-items: start;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(6, 182, 212, 0.18), transparent 16rem),
    rgba(15, 23, 42, 0.82);
  box-shadow: var(--shadow);
}

.detail-poster {
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 22px;
  background: rgba(30, 41, 59, 0.8);
}

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

.detail-copy h1 {
  margin: 8px 0 18px;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.05em;
}

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

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

.player-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.player-title h2 {
  margin: 0;
  font-size: 30px;
  font-weight: 900;
}

.video-stage {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: black;
  box-shadow: var(--shadow);
}

.video-stage video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: black;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.32));
  cursor: pointer;
  transition: opacity 0.25s ease;
}

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

.play-button {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  font-size: 34px;
  cursor: pointer;
  box-shadow: 0 18px 52px rgba(6, 182, 212, 0.36);
}

.player-status {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: none;
  margin: 0;
  color: white;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
}

.player-status.is-visible {
  display: block;
}

.content-card {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  background: rgba(15, 23, 42, 0.78);
}

.content-card h2 {
  margin: 0 0 12px;
  font-size: 26px;
  font-weight: 900;
}

.content-card p {
  margin: 0 0 14px;
  color: #cbd5e1;
  line-height: 1.95;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 10px;
  background: rgba(15, 23, 42, 0.78);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-row:hover {
  border-color: rgba(6, 182, 212, 0.46);
  transform: translateX(4px);
}

.rank-row img {
  height: 104px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-row strong {
  display: block;
  margin-bottom: 6px;
  font-size: 17px;
}

.rank-row small {
  color: var(--muted);
}

.rank-row span {
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  border-radius: 999px;
  color: white;
  background: rgba(6, 182, 212, 0.16);
  border: 1px solid rgba(6, 182, 212, 0.28);
  font-weight: 900;
}

.site-footer {
  margin-top: 64px;
  border-top: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.76);
}

.footer-shell {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 38px 0;
}

.footer-shell p {
  max-width: 620px;
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: #cbd5e1;
  font-weight: 700;
}

.back-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: var(--cyan);
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(6, 182, 212, 0.28);
}

.back-top.is-visible {
  display: grid;
  place-items: center;
}

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

  .menu-toggle {
    display: block;
  }

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

  .detail-layout {
    grid-template-columns: 260px 1fr;
  }
}

@media (max-width: 760px) {
  .nav-shell {
    min-height: 64px;
  }

  .brand-name {
    font-size: 20px;
  }

  .hero-carousel {
    min-height: 78vh;
  }

  .hero-inner {
    padding: 84px 0 68px;
  }

  .hero-control {
    display: none;
  }

  .feature-strip,
  .movie-grid,
  .movie-grid.compact,
  .movie-grid.horizontal,
  .category-grid,
  .footer-shell,
  .detail-layout,
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .movie-card-horizontal {
    grid-template-columns: 120px 1fr;
  }

  .movie-card-horizontal .poster {
    min-height: 184px;
  }

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

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

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

  .rank-row span {
    display: none;
  }

  .rank-row img {
    height: 92px;
  }
}
