:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --bg-card: #1e293b;
  --bg-line: #334155;
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --cyan: #06b6d4;
  --cyan-dark: #0891b2;
  --blue: #3b82f6;
  --green: #22c55e;
  --orange: #f97316;
  --yellow: #eab308;
  --pink: #ec4899;
  --purple: #8b5cf6;
  --red: #ef4444;
  --shadow-cyan: 0 24px 80px rgba(6, 182, 212, 0.18);
  --radius: 18px;
}

* {
  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: radial-gradient(circle at top, rgba(8, 145, 178, 0.16), transparent 34rem), linear-gradient(180deg, #020617 0%, #0f172a 44%, #020617 100%);
  color: var(--text);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-shell {
  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 rgba(148, 163, 184, 0.18);
  box-shadow: 0 12px 36px rgba(2, 6, 23, 0.42);
  backdrop-filter: blur(18px);
}

.nav-shell {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

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

.brand span {
  font-size: 26px;
  background: linear-gradient(90deg, #22d3ee, #3b82f6);
  -webkit-background-clip: text;
  color: transparent;
}

.logo-mark {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  filter: drop-shadow(0 12px 22px rgba(6, 182, 212, 0.3));
}

.logo-mark path:first-child {
  fill: url(#unused);
  fill: #06b6d4;
}

.logo-mark path:last-child {
  fill: #ffffff;
}

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

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

.desktop-nav a:hover,
.desktop-nav a.active {
  color: #ffffff;
  background: rgba(6, 182, 212, 0.95);
  box-shadow: 0 16px 30px rgba(6, 182, 212, 0.22);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(51, 65, 85, 0.78);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: #e2e8f0;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mobile-nav.open {
  display: grid;
}

.mobile-nav a {
  padding: 12px 14px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 12px;
  color: #dbeafe;
}

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

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

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 7s ease;
}

.hero-slide.active .hero-image {
  transform: scale(1.08);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.78) 34%, rgba(2, 6, 23, 0.22) 100%), radial-gradient(circle at 18% 30%, rgba(6, 182, 212, 0.35), transparent 34rem);
}

.hero-content {
  position: absolute;
  inset: auto 0 0 0;
  padding: 80px 0 86px;
}

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

.hero-label,
.page-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(6, 182, 212, 0.95);
  color: #fff;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 18px 34px rgba(6, 182, 212, 0.22);
}

.hero h1,
.hero h2 {
  margin: 18px 0 14px;
  max-width: 860px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.06em;
  text-shadow: 0 18px 48px rgba(0, 0, 0, 0.75);
}

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

.hero-actions,
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 13px 24px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  box-shadow: 0 18px 40px rgba(6, 182, 212, 0.28);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 22px 54px rgba(6, 182, 212, 0.36);
}

.btn-muted {
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(226, 232, 240, 0.18);
  box-shadow: none;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 9px;
  z-index: 5;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  cursor: pointer;
  transition: 0.25s ease;
}

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

main {
  position: relative;
  z-index: 1;
}

.section {
  padding: 64px 0;
}

.section.alt {
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.84), rgba(30, 41, 59, 0.84), rgba(15, 23, 42, 0.84));
  border-block: 1px solid rgba(148, 163, 184, 0.1);
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 42px);
  letter-spacing: -0.04em;
}

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

.section-more {
  color: #22d3ee;
  font-weight: 800;
}

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

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

.movie-card {
  background: rgba(30, 41, 59, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 46px rgba(2, 6, 23, 0.28);
  transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(6, 182, 212, 0.42);
  box-shadow: var(--shadow-cyan);
}

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0f172a;
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.movie-card:hover .card-cover img {
  transform: scale(1.1);
}

.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.68), transparent 62%);
  opacity: 0.7;
}

.card-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 58px;
  height: 58px;
  transform: translate(-50%, -50%) scale(0.88);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(6, 182, 212, 0.92);
  opacity: 0;
  transition: 0.26s ease;
}

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

.card-badge {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 2;
  background: rgba(34, 197, 94, 0.94);
  color: #fff;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 900;
}

.card-body {
  padding: 15px;
}

.card-title {
  display: -webkit-box;
  min-height: 48px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 17px;
  font-weight: 900;
  color: #fff;
  transition: color 0.2s ease;
}

.movie-card:hover .card-title {
  color: #22d3ee;
}

.card-meta,
.card-desc {
  color: var(--muted);
  font-size: 13px;
}

.card-desc {
  display: -webkit-box;
  min-height: 42px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.card-tags span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 3px 9px;
  background: rgba(6, 182, 212, 0.13);
  color: #67e8f9;
  font-size: 12px;
  font-weight: 700;
}

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

.category-tile {
  position: relative;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  text-align: center;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 22px 60px rgba(2, 6, 23, 0.32);
}

.category-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.92;
  transition: opacity 0.25s ease;
}

.category-tile:hover::before {
  opacity: 1;
}

.category-tile.blue::before { background: linear-gradient(135deg, #2563eb, #06b6d4); }
.category-tile.cyan::before { background: linear-gradient(135deg, #0891b2, #22d3ee); }
.category-tile.pink::before { background: linear-gradient(135deg, #db2777, #fb7185); }
.category-tile.orange::before { background: linear-gradient(135deg, #ea580c, #f97316); }
.category-tile.green::before { background: linear-gradient(135deg, #16a34a, #10b981); }
.category-tile.yellow::before { background: linear-gradient(135deg, #ca8a04, #f59e0b); }
.category-tile.purple::before { background: linear-gradient(135deg, #7c3aed, #a855f7); }
.category-tile.red::before { background: linear-gradient(135deg, #dc2626, #f43f5e); }

.category-tile span,
.category-tile strong,
.category-tile em {
  position: relative;
  z-index: 1;
}

.category-tile span {
  font-size: 42px;
}

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

.category-tile em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.76);
}

.strip {
  overflow-x: auto;
  padding: 2px 0 16px;
}

.strip-inner {
  display: flex;
  gap: 18px;
  min-width: max-content;
}

.strip-card {
  width: 300px;
  flex: 0 0 auto;
}

.strip-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 10px;
  box-shadow: 0 18px 42px rgba(2, 6, 23, 0.38);
}

.strip-card strong {
  display: block;
  color: #fff;
  margin-bottom: 4px;
}

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

.special-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
}

.feature-card {
  position: relative;
  min-height: 360px;
  border-radius: 22px;
  overflow: hidden;
  background: #0f172a;
  box-shadow: 0 24px 70px rgba(2, 6, 23, 0.42);
}

.feature-card.small {
  min-height: 169px;
}

.feature-card img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  transition: transform 0.42s ease;
}

.feature-card:hover img {
  transform: scale(1.08);
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.2));
}

.feature-copy {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  padding: 26px;
}

.feature-copy span {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(234, 179, 8, 0.92);
  font-size: 12px;
  font-weight: 900;
}

.feature-copy h3 {
  margin: 12px 0 8px;
  font-size: 28px;
}

.feature-card.small .feature-copy h3 {
  font-size: 18px;
}

.feature-copy p {
  color: #dbeafe;
  margin: 0;
}

.feature-side {
  display: grid;
  gap: 22px;
}

.page-hero {
  padding: 64px 0 34px;
  background: radial-gradient(circle at 8% 20%, rgba(6, 182, 212, 0.16), transparent 32rem);
}

.page-hero h1 {
  margin: 18px 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 850px;
  color: var(--muted-strong);
  font-size: 18px;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 0.7fr);
  gap: 12px;
  padding: 16px;
  margin: 24px 0 30px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 18px;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  padding: 12px 14px;
  background: rgba(2, 6, 23, 0.68);
  color: #fff;
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(6, 182, 212, 0.78);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12);
}

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

.rank-row {
  display: grid;
  grid-template-columns: 62px 180px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  background: rgba(30, 41, 59, 0.74);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 18px;
  transition: 0.22s ease;
}

.rank-row:hover {
  transform: translateY(-3px);
  border-color: rgba(6, 182, 212, 0.34);
  box-shadow: var(--shadow-cyan);
}

.rank-num {
  font-size: 26px;
  font-weight: 1000;
  color: #22d3ee;
  text-align: center;
}

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

.rank-row h2,
.rank-row h3 {
  margin: 0 0 8px;
}

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

.breadcrumb {
  color: #93c5fd;
  font-size: 14px;
  margin-bottom: 22px;
}

.breadcrumb a:hover {
  color: #22d3ee;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.5fr);
  gap: 28px;
  align-items: start;
}

.player-card,
.detail-card,
.side-card,
.text-card {
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(2, 6, 23, 0.32);
  overflow: hidden;
}

.player-shell {
  position: relative;
  background: #000;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.28);
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.big-play {
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(6, 182, 212, 0.94);
  font-size: 30px;
  box-shadow: 0 22px 54px rgba(6, 182, 212, 0.34);
  cursor: pointer;
}

.detail-copy {
  padding: 26px;
}

.detail-copy h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.detail-meta {
  color: var(--muted-strong);
  margin: 0 0 18px;
}

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

.text-card {
  padding: 28px;
  margin-top: 24px;
}

.text-card h2 {
  margin: 0 0 14px;
  font-size: 28px;
}

.text-card p {
  color: #cbd5e1;
  line-height: 1.86;
}

.side-card {
  padding: 20px;
}

.side-card h2 {
  margin: 0 0 16px;
  font-size: 22px;
}

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

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

.side-item img {
  width: 110px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
}

.side-item strong {
  display: block;
  margin-bottom: 4px;
}

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

.prev-next {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}

.prev-next a {
  flex: 1;
  padding: 14px 18px;
  background: rgba(30, 41, 59, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 16px;
  color: #dbeafe;
}

.prev-next a:last-child {
  text-align: right;
}

.site-footer {
  margin-top: 64px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.98));
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

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

.footer-brand span {
  font-size: 22px;
}

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

.site-footer h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

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

.footer-links a:hover {
  color: #22d3ee;
}

.footer-bottom {
  text-align: center;
  color: #94a3b8;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  padding: 18px;
}

.empty-note {
  display: none;
  padding: 22px;
  background: rgba(30, 41, 59, 0.78);
  border-radius: 18px;
  color: #cbd5e1;
}

@media (max-width: 1080px) {
  .movie-grid,
  .movie-grid.compact,
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

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

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

  .nav-shell {
    height: 62px;
  }

  .brand span {
    font-size: 21px;
  }

  .hero {
    min-height: 76vh;
  }

  .hero-content {
    padding: 72px 0 78px;
  }

  .section {
    padding: 44px 0;
  }

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

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

  .filter-panel {
    grid-template-columns: 1fr;
  }

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

  .rank-row .btn {
    grid-column: 2 / 4;
  }

  .rank-row img {
    width: 112px;
  }

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

  .prev-next {
    flex-direction: column;
  }

  .prev-next a:last-child {
    text-align: left;
  }
}

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

  .hero-actions,
  .page-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
