:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.82);
  --panel-strong: rgba(15, 23, 42, 0.96);
  --text: #f8fafc;
  --muted: #94a3b8;
  --line: rgba(148, 163, 184, 0.22);
  --blue: #38bdf8;
  --blue-strong: #2563eb;
  --cyan: #22d3ee;
  --gold: #f59e0b;
  --radius: 22px;
  --shadow: 0 24px 80px rgba(2, 6, 23, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 0%, rgba(37, 99, 235, 0.28), transparent 34rem),
    radial-gradient(circle at 85% 10%, rgba(34, 211, 238, 0.18), transparent 32rem),
    linear-gradient(180deg, #020617 0%, #0f172a 45%, #020617 100%);
  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%;
  background: linear-gradient(135deg, #1e293b, #0f172a 55%, #1d4ed8);
}

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 64, 175, 0.92), rgba(15, 23, 42, 0.96));
  border-bottom: 1px solid rgba(125, 211, 252, 0.16);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 46px rgba(2, 6, 23, 0.28);
}

.nav-wrap {
  max-width: 1280px;
  height: 66px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #60a5fa, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-icon {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  color: #dbeafe;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  box-shadow: 0 0 28px rgba(56, 189, 248, 0.42);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  color: #d1d5db;
  font-weight: 600;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #ffffff;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  color: #e0f2fe;
  background: rgba(15, 23, 42, 0.65);
  border-radius: 12px;
  padding: 6px 10px;
}

.quick-strip {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(2, 6, 23, 0.2);
}

.quick-strip-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 8px 22px;
  display: flex;
  gap: 18px;
  overflow-x: auto;
  color: #cbd5e1;
  font-size: 14px;
}

.quick-strip-inner a {
  white-space: nowrap;
}

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

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

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

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.68;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.96) 0%, rgba(2, 6, 23, 0.78) 45%, rgba(15, 23, 42, 0.16) 100%),
    linear-gradient(180deg, transparent 60%, #020617 100%);
}

.hero-content {
  position: absolute;
  top: 50%;
  left: max(22px, calc((100vw - 1280px) / 2 + 22px));
  width: min(660px, calc(100vw - 44px));
  transform: translateY(-50%);
}

.hero-pill,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: #dbeafe;
  background: rgba(37, 99, 235, 0.72);
  border: 1px solid rgba(125, 211, 252, 0.28);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.05em;
  text-shadow: 0 18px 42px rgba(0, 0, 0, 0.55);
}

.hero p {
  max-width: 620px;
  margin: 0;
  color: #dbe4f0;
  font-size: 18px;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags {
  margin-top: 20px;
}

.hero-tags span,
.tag-row span {
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
}

.large-tags span {
  font-size: 13px;
  padding: 7px 12px;
}

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

.primary-btn,
.ghost-btn,
.search-box a,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  padding: 0 18px;
  font-weight: 800;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.primary-btn {
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.38);
}

.ghost-btn,
.search-box a,
.section-more {
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.28);
}

.primary-btn:hover,
.ghost-btn:hover,
.search-box a:hover,
.section-more:hover {
  transform: translateY(-2px);
}

.hero-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: white;
  background: rgba(15, 23, 42, 0.52);
  cursor: pointer;
  font-size: 30px;
}

.hero-prev {
  left: 20px;
}

.hero-next {
  right: 20px;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
  cursor: pointer;
}

.hero-dot.is-active {
  width: 34px;
  background: #38bdf8;
}

.search-panel,
.filter-panel,
.content-section,
.article-section,
.player-section,
.page-hero,
.detail-hero {
  width: min(1280px, calc(100% - 44px));
  margin: 34px auto 0;
}

.search-panel,
.filter-panel,
.page-hero,
.detail-hero,
.article-section,
.player-section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 24px;
  padding: 26px;
  align-items: center;
}

.search-panel h2,
.section-head h2,
.page-hero h1,
.article-section h2,
.player-section h2 {
  margin: 10px 0 0;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.18;
}

.search-box {
  display: flex;
  gap: 12px;
}

input[type="search"] {
  width: 100%;
  min-height: 48px;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.58);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 999px;
  padding: 0 18px;
  outline: none;
}

input[type="search"]:focus {
  border-color: rgba(56, 189, 248, 0.78);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.12);
}

.content-section {
  padding: 4px 0 10px;
}

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

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

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

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

.movie-card,
.category-tile,
.category-card {
  overflow: hidden;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 20px;
  box-shadow: 0 14px 42px rgba(2, 6, 23, 0.28);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover,
.category-tile:hover,
.category-card:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 189, 248, 0.52);
  box-shadow: 0 18px 60px rgba(37, 99, 235, 0.22);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #1e293b, #0f172a);
}

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

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

.poster-shadow {
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
}

.rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  min-width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  color: #111827;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  box-shadow: 0 10px 28px rgba(249, 115, 22, 0.35);
}

.card-body {
  padding: 14px;
}

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

.card-body h2 {
  margin: 8px 0 7px;
  font-size: 17px;
  line-height: 1.3;
}

.card-body p {
  min-height: 45px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}

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

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

.category-tile,
.category-card {
  padding: 22px;
}

.category-tile strong,
.category-card-title {
  display: block;
  color: #f8fafc;
  font-size: 20px;
  font-weight: 850;
  margin-bottom: 8px;
}

.category-tile span,
.category-card p,
.footer-grid p,
.page-hero p,
.article-section p,
.detail-line {
  color: var(--muted);
}

.category-count {
  display: inline-flex;
  margin: 8px 0 12px;
  color: #bae6fd;
  font-weight: 800;
}

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

.sample-links a {
  color: #cbd5e1;
  background: rgba(2, 6, 23, 0.42);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 13px;
}

.page-shell {
  padding-bottom: 20px;
}

.breadcrumb {
  width: min(1280px, calc(100% - 44px));
  margin: 22px auto 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  color: #cbd5e1;
  font-size: 14px;
}

.breadcrumb a {
  color: #93c5fd;
}

.small-hero,
.rank-hero {
  padding: 34px;
}

.rank-hero {
  background:
    radial-gradient(circle at 18% 12%, rgba(245, 158, 11, 0.2), transparent 28rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(30, 64, 175, 0.58));
}

.filter-panel {
  display: flex;
  gap: 12px;
  padding: 18px;
  align-items: center;
}

.sticky-filter {
  position: sticky;
  top: 84px;
  z-index: 8;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-buttons button {
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(15, 23, 42, 0.75);
  padding: 10px 13px;
  cursor: pointer;
}

.filter-buttons button.is-active,
.filter-buttons button:hover {
  border-color: rgba(56, 189, 248, 0.68);
  background: rgba(37, 99, 235, 0.58);
}

.detail-hero {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
  padding: 28px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 22px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.38);
}

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

.detail-info h1 {
  margin: 12px 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.player-section,
.article-section {
  padding: 26px;
}

.video-box {
  position: relative;
  overflow: hidden;
  margin-top: 18px;
  border-radius: 22px;
  background: #000000;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.44);
}

.video-box video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.play-mask {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(37, 99, 235, 0.35), rgba(0, 0, 0, 0.76));
  border: 0;
  cursor: pointer;
}

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

.play-circle {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  box-shadow: 0 18px 55px rgba(37, 99, 235, 0.52);
  font-size: 28px;
}

.video-message {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 4;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.82);
  border-radius: 12px;
  padding: 8px 12px;
  display: none;
}

.video-message:not(:empty) {
  display: block;
}

.article-section p {
  font-size: 17px;
}

.info-table {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.info-table div {
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.42);
}

.info-table span {
  display: block;
  color: #94a3b8;
  font-size: 13px;
}

.info-table strong {
  display: block;
  margin-top: 6px;
  color: #f8fafc;
}

.site-footer {
  margin-top: 70px;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(30, 64, 175, 0.72), rgba(15, 23, 42, 0.98));
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.footer-grid {
  width: min(1280px, calc(100% - 44px));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  gap: 26px;
}

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

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

.footer-copy {
  width: min(1280px, calc(100% - 44px));
  margin: 0 auto;
  padding: 18px 0 24px;
  color: #94a3b8;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

[data-card].is-hidden {
  display: none;
}

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

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

@media (max-width: 760px) {
  .nav-links {
    position: absolute;
    top: 66px;
    left: 12px;
    right: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.96);
  }

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

  .nav-link {
    padding: 11px 12px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero {
    min-height: 78vh;
  }

  .hero-content {
    top: 54%;
  }

  .hero-nav {
    display: none;
  }

  .search-panel,
  .filter-panel,
  .detail-hero,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .search-panel,
  .filter-panel {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .search-box {
    flex-direction: column;
  }

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

  .detail-hero {
    padding: 20px;
  }
}

@media (max-width: 520px) {
  .movie-grid,
  .full-grid,
  .related-grid,
  .category-grid,
  .wide-category-grid,
  .info-table {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 38px;
  }

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