:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: #111827;
  --panel-2: #172033;
  --line: #1e293b;
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --blue: #3b82f6;
  --blue-2: #2563eb;
  --cyan: #67e8f9;
  --yellow: #facc15;
  --red: #ef4444;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 10% 0, rgba(37, 99, 235, 0.22), transparent 28%), var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.container {
  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.98), rgba(30, 58, 138, 0.95), rgba(15, 23, 42, 0.98));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  white-space: nowrap;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: white;
  box-shadow: 0 8px 22px rgba(59, 130, 246, 0.35);
}

.logo-text {
  background: linear-gradient(90deg, #60a5fa, #67e8f9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #e2e8f0;
  font-weight: 650;
}

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

.nav-menu a:hover,
.nav-menu a.active {
  color: #60a5fa;
}

.search-form {
  position: relative;
  display: flex;
  align-items: center;
}

.search-form input {
  width: 240px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.86);
  color: var(--text);
  outline: none;
  padding: 10px 42px 10px 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, width 0.2s ease;
}

.search-form input:focus {
  width: 270px;
  border-color: rgba(96, 165, 250, 0.82);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.16);
}

.search-form button {
  position: absolute;
  right: 4px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.8);
  color: white;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  padding: 14px 0 18px;
}

.mobile-panel.is-open {
  display: block;
}

.mobile-panel nav {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.hero {
  position: relative;
  height: 70vh;
  min-height: 540px;
  overflow: hidden;
  background: #0f172a;
}

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.86) 34%, rgba(15, 23, 42, 0.26) 100%);
}

.hero-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 72px 0 80px;
}

.hero-copy {
  width: min(760px, 100%);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #60a5fa;
  font-weight: 700;
  margin-bottom: 14px;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 720px;
  margin: 0 0 26px;
  color: #dbeafe;
  font-size: 18px;
}

.hero-meta,
.chip-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.82);
  color: #dbeafe;
  padding: 7px 13px;
  font-size: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.chip.primary {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  padding: 12px 22px;
  font-weight: 750;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.28);
}

.btn-primary:hover {
  background: var(--blue-2);
}

.btn-ghost {
  background: rgba(15, 23, 42, 0.68);
  color: #dbeafe;
}

.hero-dots {
  position: absolute;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 40px;
  display: flex;
  gap: 8px;
}

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

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

.main-space {
  padding: 62px 0 0;
}

.section {
  margin-bottom: 76px;
}

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

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

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

.more-link {
  color: #60a5fa;
  font-weight: 700;
  white-space: nowrap;
}

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

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

.feature-grid .wide {
  grid-column: span 2;
  grid-row: span 2;
}

.movie-card,
.feature-card,
.category-card,
.panel,
.rank-panel {
  background: rgba(15, 23, 42, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: var(--shadow);
}

.movie-card {
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-5px) scale(1.015);
  border-color: rgba(59, 130, 246, 0.38);
  box-shadow: 0 18px 45px rgba(37, 99, 235, 0.22);
}

.poster {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #0f172a;
}

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

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

.poster::after,
.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.65), transparent 58%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.score {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: inline-flex;
  gap: 4px;
  align-items: center;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  color: white;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.82);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.card-body {
  padding: 13px 14px 15px;
  background: #0f172a;
}

.card-body h3 {
  margin: 0 0 7px;
  font-size: 16px;
  line-height: 1.35;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.feature-card {
  position: relative;
  min-height: 260px;
  border-radius: 24px;
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.feature-card:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(59, 130, 246, 0.38);
  box-shadow: 0 18px 45px rgba(37, 99, 235, 0.22);
}

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

.feature-card .feature-copy {
  position: absolute;
  z-index: 3;
  inset: auto 0 0 0;
  padding: 26px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.86), transparent);
}

.feature-copy h3 {
  margin: 10px 0 6px;
  font-size: clamp(20px, 2vw, 32px);
  line-height: 1.18;
}

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

.scroll-row {
  overflow-x: auto;
  padding-bottom: 8px;
}

.scroll-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 190px;
  gap: 18px;
}

.list-panel {
  border-radius: 28px;
  padding: 28px;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.9));
  border: 1px solid rgba(148, 163, 184, 0.12);
}

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

.rank-row {
  display: grid;
  grid-template-columns: 42px 74px 1fr auto;
  align-items: center;
  gap: 14px;
  border-radius: 16px;
  padding: 12px;
  background: rgba(15, 23, 42, 0.74);
  border: 1px solid rgba(148, 163, 184, 0.1);
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-row:hover {
  background: rgba(30, 41, 59, 0.92);
  transform: translateX(4px);
}

.rank-number {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  font-weight: 850;
}

.rank-row img {
  width: 74px;
  height: 98px;
  object-fit: cover;
  border-radius: 10px;
}

.rank-title {
  display: block;
  font-weight: 800;
  color: white;
  margin-bottom: 4px;
}

.rank-desc {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rank-meta {
  color: #cbd5e1;
  font-size: 14px;
  white-space: nowrap;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  border-radius: 24px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.68), rgba(15, 23, 42, 0.92));
  transition: transform 0.24s ease, border-color 0.24s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: rgba(103, 232, 249, 0.36);
}

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

.category-card p {
  margin: 0 0 18px;
  color: #dbeafe;
}

.category-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.category-thumbs img {
  width: 48px;
  height: 66px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.page-hero {
  padding: 72px 0 36px;
  background: linear-gradient(180deg, rgba(30, 58, 138, 0.28), rgba(2, 6, 23, 0));
}

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

.page-hero p {
  max-width: 780px;
  margin: 0;
  color: var(--soft);
  font-size: 18px;
}

.filter-bar {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 14px;
  margin-bottom: 26px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.84);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  background: #0b1220;
  color: white;
  padding: 11px 12px;
  outline: none;
}

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

.breadcrumb a {
  color: #93c5fd;
}

.detail-shell {
  padding-top: 36px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(320px, 0.62fr);
  gap: 28px;
  align-items: start;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000;
  aspect-ratio: 16 / 9;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.player-shell video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
  object-fit: contain;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: white;
  background: radial-gradient(circle at center, rgba(59, 130, 246, 0.28), rgba(2, 6, 23, 0.74));
  cursor: pointer;
  transition: opacity 0.22s ease;
}

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

.player-overlay span {
  display: block;
  text-align: center;
  font-weight: 850;
}

.big-play {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.4);
  font-size: 32px;
  padding-left: 6px;
}

.detail-card {
  border-radius: 28px;
  padding: 28px;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: var(--shadow);
}

.detail-card h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.16;
}

.lead {
  color: #dbeafe;
  font-size: 17px;
  margin: 0 0 20px;
}

.info-list {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  color: var(--soft);
}

.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  padding-bottom: 8px;
}

.content-panel {
  margin-top: 30px;
  border-radius: 28px;
  padding: 30px;
  background: rgba(15, 23, 42, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.content-panel h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.content-panel p {
  color: #cbd5e1;
  margin: 0 0 18px;
}

.footer {
  margin-top: 76px;
  background: linear-gradient(180deg, #0f172a, #020617);
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  color: var(--muted);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 28px;
  padding: 44px 0;
}

.footer h3,
.footer h4 {
  color: white;
  margin: 0 0 14px;
}

.footer p,
.footer ul {
  margin: 0;
  padding: 0;
}

.footer li {
  list-style: none;
  margin-bottom: 8px;
}

.footer a:hover {
  color: #60a5fa;
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  padding: 18px 0 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

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

@media (max-width: 980px) {
  .nav-menu,
  .header-actions {
    display: none;
  }

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

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

  .feature-grid,
  .category-grid,
  .detail-grid,
  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .logo {
    font-size: 20px;
  }

  .hero {
    height: 74vh;
    min-height: 520px;
  }

  .hero-content {
    padding: 46px 0 64px;
  }

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

  .hero-dots {
    left: 12px;
    right: auto;
    bottom: 22px;
  }

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

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

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

  .feature-grid .wide {
    grid-column: auto;
    grid-row: auto;
  }

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

  .rank-row img {
    width: 58px;
    height: 78px;
  }

  .rank-meta {
    display: none;
  }

  .content-panel,
  .detail-card,
  .list-panel {
    padding: 20px;
    border-radius: 22px;
  }
}
