:root {
  color-scheme: dark;
  --bg: #0f172a;
  --bg-soft: #111827;
  --panel: #1e293b;
  --panel-strong: #0f172a;
  --text: #f8fafc;
  --muted: #cbd5e1;
  --subtle: #94a3b8;
  --line: rgba(148, 163, 184, 0.22);
  --cyan: #22d3ee;
  --cyan-strong: #06b6d4;
  --cyan-deep: #0891b2;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background: radial-gradient(circle at 20% 0%, rgba(34, 211, 238, 0.14), transparent 32%), linear-gradient(180deg, #0f172a 0%, #111827 48%, #0f172a 100%);
  color: var(--text);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(30, 41, 59, 0.96), rgba(51, 65, 85, 0.96), rgba(30, 41, 59, 0.96));
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(16px);
}

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

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-deep));
  color: #082f49;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(6, 182, 212, 0.26);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-name {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.logo-subtitle {
  margin-top: 4px;
  font-size: 12px;
  color: #67e8f9;
}

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

.nav-link {
  padding: 10px 12px;
  border-radius: 12px;
  color: #e2e8f0;
  font-weight: 650;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.nav-link:hover,
.nav-link.active {
  color: #67e8f9;
  background: rgba(15, 23, 42, 0.34);
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: white;
  background: rgba(15, 23, 42, 0.48);
  cursor: pointer;
}

.mobile-menu {
  display: none;
  padding: 0 0 16px;
}

.mobile-menu.open {
  display: grid;
  gap: 8px;
}

.mobile-menu .nav-link {
  display: block;
}

.hero-carousel {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  background: #0f172a;
}

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96) 0%, rgba(15, 23, 42, 0.82) 42%, rgba(15, 23, 42, 0.52) 70%, rgba(15, 23, 42, 0.82) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.72fr);
  align-items: center;
  gap: 42px;
  padding: 58px 0 78px;
}

.hero-copy {
  max-width: 740px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid rgba(103, 232, 249, 0.28);
  background: rgba(34, 211, 238, 0.12);
  color: #a5f3fc;
  font-size: 14px;
  font-weight: 700;
}

.hero-title {
  margin: 0;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.hero-text {
  margin: 24px 0 0;
  max-width: 680px;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.9;
}

.hero-meta,
.detail-meta,
.card-tags {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-meta {
  margin-top: 24px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.78);
  color: #dbeafe;
  border: 1px solid rgba(148, 163, 184, 0.18);
  font-size: 13px;
  font-weight: 650;
}

.pill-cyan {
  background: linear-gradient(135deg, var(--cyan-strong), var(--cyan-deep));
  color: #ffffff;
  border-color: transparent;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(30, 41, 59, 0.74);
  color: white;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(103, 232, 249, 0.44);
  background: rgba(51, 65, 85, 0.84);
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan-strong), var(--cyan-deep));
  border-color: transparent;
  box-shadow: 0 18px 38px rgba(6, 182, 212, 0.24);
}

.hero-card {
  border-radius: 28px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.48);
  border: 1px solid rgba(148, 163, 184, 0.24);
  box-shadow: var(--shadow);
  transform: translateY(12px);
}

.hero-poster {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
}

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

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(15, 23, 42, 0.94) 100%);
}

.hero-card-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-end;
}

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

.hero-dot {
  width: 34px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.36);
  cursor: pointer;
}

.hero-dot.active {
  background: #67e8f9;
}

.page-block {
  padding: 58px 0;
}

.page-block.tight {
  padding-top: 36px;
}

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

.section-title {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -0.025em;
}

.section-desc {
  margin: 10px 0 0;
  color: var(--subtle);
  line-height: 1.8;
  max-width: 760px;
}

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

.movie-card {
  display: block;
  min-width: 0;
}

.poster-wrap {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 18px;
  background: #1e293b;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
}

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

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(2, 6, 23, 0.82) 100%);
  opacity: 0.7;
  transition: opacity 220ms ease;
}

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  transform: translate(-50%, -50%) scale(0.92);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(248, 250, 252, 0.92);
  opacity: 0;
  display: grid;
  place-items: center;
  transition: opacity 220ms ease, transform 220ms ease;
}

.play-badge::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid #0f172a;
  margin-left: 3px;
}

.card-rank {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.92);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

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

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

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

.movie-title {
  margin: 11px 0 0;
  color: #f8fafc;
  line-height: 1.42;
  min-height: 40px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 15px;
  font-weight: 800;
  transition: color 180ms ease;
}

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

.movie-info {
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--subtle);
  font-size: 12px;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
  border: 1px solid var(--line);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2);
}

.category-card::before {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  right: -45px;
  top: -45px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.24), transparent 65%);
}

.category-card h2,
.category-card h3 {
  position: relative;
  margin: 0;
  font-size: 24px;
}

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

.sample-links {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sample-links a {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.14);
  color: #dbeafe;
  font-size: 13px;
}

.top-banner {
  padding: 68px 0 42px;
  background: radial-gradient(circle at 10% 20%, rgba(34, 211, 238, 0.16), transparent 30%), linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(30, 41, 59, 0.86));
  border-bottom: 1px solid var(--line);
}

.top-banner h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.top-banner p {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.85;
  max-width: 820px;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(30, 41, 59, 0.72);
  border: 1px solid var(--line);
}

.filter-input {
  width: 100%;
  height: 46px;
  padding: 0 15px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  outline: 0;
  background: rgba(15, 23, 42, 0.78);
  color: white;
}

.filter-input:focus {
  border-color: rgba(34, 211, 238, 0.68);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.1);
}

.filter-count {
  min-width: 96px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.72);
  color: #a5f3fc;
  font-weight: 800;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 22px;
  color: var(--subtle);
  font-size: 14px;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 0.9fr);
  gap: 30px;
}

.player-card,
.detail-card,
.related-card {
  border-radius: 22px;
  background: rgba(30, 41, 59, 0.86);
  border: 1px solid var(--line);
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.22);
}

.player-card {
  overflow: hidden;
}

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

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.44));
  cursor: pointer;
  z-index: 5;
}

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

.player-button {
  width: 82px;
  height: 82px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(248, 250, 252, 0.94);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
  cursor: pointer;
}

.player-button::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 17px solid transparent;
  border-bottom: 17px solid transparent;
  border-left: 25px solid #0f172a;
  margin-left: 6px;
}

.detail-card {
  margin-top: 22px;
  padding: 26px;
}

.detail-card h1 {
  margin: 16px 0 12px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.18;
  letter-spacing: -0.03em;
  font-weight: 900;
}

.detail-card h2,
.related-card h2 {
  margin: 0 0 13px;
  font-size: 22px;
}

.detail-card p {
  color: var(--muted);
  line-height: 1.92;
}

.detail-section {
  padding-top: 24px;
  margin-top: 22px;
  border-top: 1px solid var(--line);
}

.related-card {
  position: sticky;
  top: 100px;
  padding: 20px;
}

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

.related-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.related-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 13px;
  background: #334155;
}

.related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.related-item:hover img {
  transform: scale(1.08);
}

.related-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: white;
  line-height: 1.45;
  font-weight: 800;
}

.related-meta {
  margin-top: 6px;
  color: var(--subtle);
  font-size: 12px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 64px 86px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: rgba(30, 41, 59, 0.72);
  border: 1px solid var(--line);
}

.rank-number {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--cyan-strong), var(--cyan-deep));
  font-size: 18px;
  font-weight: 900;
}

.rank-poster {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 12px;
  background: #334155;
}

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

.rank-title {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
}

.rank-desc {
  margin: 8px 0 0;
  color: var(--subtle);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rank-heat {
  min-width: 86px;
  color: #67e8f9;
  font-weight: 900;
  text-align: right;
}

.site-footer {
  margin-top: 30px;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.92), #0f172a);
  border-top: 1px solid var(--line);
}

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

.footer-title {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 900;
}

.footer-text,
.footer-links a {
  color: var(--subtle);
  line-height: 1.8;
}

.footer-links {
  display: grid;
  gap: 8px;
}

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

.footer-bottom {
  padding: 18px 0;
  border-top: 1px solid var(--line);
  color: var(--subtle);
  font-size: 14px;
}

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

@media (max-width: 1100px) {
  .movie-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

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

  .mobile-toggle {
    display: inline-grid;
    place-items: center;
  }

  .header-inner {
    height: 68px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 46px 0 86px;
  }

  .hero-carousel {
    min-height: 760px;
  }

  .hero-card {
    width: min(320px, 100%);
  }

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

  .related-card {
    position: static;
  }

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

  .rank-row {
    grid-template-columns: 48px 72px minmax(0, 1fr);
  }

  .rank-heat {
    grid-column: 3;
    text-align: left;
  }
}

@media (max-width: 720px) {
  .site-container {
    width: min(100% - 24px, 1200px);
  }

  .logo-subtitle {
    display: none;
  }

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

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

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

  .hero-title {
    font-size: clamp(36px, 12vw, 54px);
  }

  .hero-text {
    font-size: 16px;
  }

  .page-block {
    padding: 42px 0;
  }

  .related-item {
    grid-template-columns: 96px minmax(0, 1fr);
  }
}
