:root {
  --blue-950: #08111f;
  --blue-900: #0f1f47;
  --blue-800: #173a79;
  --blue-700: #1d4ed8;
  --cyan-600: #0891b2;
  --cyan-400: #22d3ee;
  --yellow-400: #facc15;
  --yellow-300: #fde047;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --white: #ffffff;
  --shadow-soft: 0 18px 50px rgba(15, 23, 42, 0.14);
  --shadow-card: 0 14px 36px rgba(15, 23, 42, 0.12);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--slate-900);
  background: linear-gradient(180deg, #f8fbff 0%, #eef6ff 42%, #ffffff 100%);
  font-family: 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 {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: linear-gradient(90deg, var(--blue-800), var(--blue-700), var(--cyan-600));
  box-shadow: 0 10px 30px rgba(8, 17, 31, 0.16);
}

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

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

.brand-text {
  font-size: 24px;
}

.brand-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: var(--blue-900);
  background: var(--yellow-400);
  box-shadow: 0 8px 20px rgba(250, 204, 21, 0.28);
}

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

.nav-link,
.mobile-link {
  padding: 9px 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.mobile-link:hover,
.nav-link.is-active,
.mobile-link.is-active {
  color: var(--yellow-300);
  background: rgba(255, 255, 255, 0.12);
}

.nav-link:hover {
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: currentColor;
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

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

.hero-section {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: radial-gradient(circle at 15% 15%, rgba(34, 211, 238, 0.34), transparent 28%), linear-gradient(120deg, var(--blue-950), var(--blue-800) 48%, var(--cyan-600));
}

.hero-glow {
  position: absolute;
  inset: auto -10% -28% 45%;
  width: 580px;
  height: 580px;
  border-radius: 999px;
  background: rgba(250, 204, 21, 0.18);
  filter: blur(20px);
}

.hero-container {
  position: relative;
  padding: 56px 0 44px;
}

.hero-slider {
  position: relative;
  min-height: 520px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.75fr);
  gap: 46px;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translateX(32px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: -48px -32px;
  z-index: -2;
  background-image: linear-gradient(90deg, rgba(8, 17, 31, 0.88), rgba(8, 17, 31, 0.62), rgba(8, 17, 31, 0.2)), var(--hero-image);
  background-size: cover;
  background-position: center;
  filter: blur(16px) saturate(1.15);
  opacity: 0.48;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: -40px;
  z-index: -1;
  background: linear-gradient(110deg, rgba(15, 31, 71, 0.88), rgba(29, 78, 216, 0.52), rgba(8, 145, 178, 0.2));
}

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

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 690px;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 14px;
  padding: 7px 14px;
  border-radius: 999px;
  color: var(--blue-900);
  background: var(--yellow-400);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section-kicker {
  color: var(--cyan-600);
  background: rgba(34, 211, 238, 0.12);
}

.hero-copy h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.hero-copy p {
  max-width: 650px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 19px;
}

.hero-tags,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.hero-tags span,
.detail-meta span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span {
  padding: 7px 12px;
  color: rgba(255, 255, 255, 0.94);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

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

.btn-primary {
  color: var(--blue-950);
  background: var(--yellow-400);
  box-shadow: 0 14px 24px rgba(250, 204, 21, 0.26);
}

.btn-primary:hover {
  background: var(--yellow-300);
}

.btn-ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.hero-poster {
  position: relative;
  z-index: 2;
  display: block;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.38);
  transform: perspective(900px) rotateY(-7deg);
  transition: transform 0.35s ease;
}

.hero-poster:hover {
  transform: perspective(900px) rotateY(0deg) translateY(-4px);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4.05;
  object-fit: cover;
  background: linear-gradient(135deg, var(--blue-800), var(--cyan-600));
}

.hero-nav {
  position: relative;
  z-index: 4;
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 12px;
}

.hero-dot {
  width: 36px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  width: 58px;
  background: var(--yellow-400);
}

.section {
  padding: 60px 0;
}

.section-soft {
  background: rgba(255, 255, 255, 0.7);
}

.section-dark {
  color: var(--white);
  background: linear-gradient(120deg, var(--slate-950), var(--blue-900));
}

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

.section-head h2,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  color: var(--slate-950);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.16;
  letter-spacing: -0.03em;
}

.section-head.light h2,
.section-dark .section-kicker {
  color: var(--white);
}

.text-link {
  display: inline-flex;
  color: var(--blue-700);
  font-weight: 800;
}

.text-link:hover {
  color: var(--cyan-600);
}

.text-link.light {
  color: var(--yellow-300);
}

.category-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 6px 0 14px;
  scrollbar-width: thin;
}

.category-strip a {
  flex: 0 0 auto;
  padding: 12px 18px;
  border-radius: 999px;
  color: var(--blue-900);
  background: var(--white);
  box-shadow: var(--shadow-card);
  font-weight: 800;
  transition: transform 0.25s ease, color 0.25s ease;
}

.category-strip a:hover {
  color: var(--cyan-600);
  transform: translateY(-2px);
}

.filter-panel {
  display: grid;
  gap: 14px;
  margin: 0 0 26px;
  padding: 18px;
  border: 1px solid rgba(14, 116, 144, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.search-label {
  display: grid;
  gap: 8px;
  color: var(--slate-600);
  font-size: 14px;
  font-weight: 800;
}

.site-search {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 14px;
  color: var(--slate-900);
  background: var(--white);
  outline: none;
  transition: border 0.25s ease, box-shadow 0.25s ease;
}

.site-search:focus {
  border-color: var(--cyan-400);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.16);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  color: var(--slate-700);
  background: var(--slate-100);
  cursor: pointer;
  font-weight: 800;
}

.filter-chip.is-active,
.filter-chip:hover {
  color: var(--blue-950);
  background: var(--yellow-400);
}

.movie-grid,
.rank-grid,
.category-grid {
  display: grid;
  gap: 22px;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-card);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border 0.28s ease;
}

.section-dark .movie-card {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.08);
}

.movie-card.is-hidden {
  display: none;
}

.movie-card:hover {
  border-color: rgba(34, 211, 238, 0.45);
  transform: translateY(-5px);
  box-shadow: 0 22px 54px rgba(15, 23, 42, 0.2);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue-800), var(--cyan-600));
}

.poster-link img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.poster-shade {
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.72));
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  min-width: 34px;
  height: 34px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--blue-950);
  background: var(--yellow-400);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

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

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--cyan-600);
  font-size: 12px;
  font-weight: 800;
}

.section-dark .movie-meta-line {
  color: var(--cyan-400);
}

.movie-card h3 {
  margin: 0;
  color: var(--slate-950);
  font-size: 18px;
  line-height: 1.32;
}

.section-dark .movie-card h3 {
  color: var(--white);
}

.movie-card h3 a:hover {
  color: var(--blue-700);
}

.movie-card p {
  margin: 9px 0 12px;
  color: var(--slate-600);
  font-size: 14px;
}

.section-dark .movie-card p {
  color: rgba(255, 255, 255, 0.72);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-row span {
  padding: 5px 9px;
  color: var(--slate-600);
  background: var(--slate-100);
}

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

.category-card,
.story-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-card);
}

.category-card {
  padding: 22px;
}

.category-card-main {
  display: grid;
  gap: 8px;
}

.category-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: var(--blue-950);
  background: var(--yellow-400);
}

.category-card h2,
.story-card h2 {
  margin: 0;
  color: var(--slate-950);
  font-size: 24px;
}

.category-card p {
  margin: 0;
  color: var(--slate-600);
}

.category-card ul,
.site-footer ul {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.category-card li + li,
.site-footer li + li {
  margin-top: 8px;
}

.category-card a:hover,
.site-footer a:hover {
  color: var(--cyan-400);
}

.page-hero {
  color: var(--white);
  background: radial-gradient(circle at 75% 20%, rgba(34, 211, 238, 0.24), transparent 30%), linear-gradient(120deg, var(--blue-950), var(--blue-800), var(--cyan-600));
  padding: 62px 0;
}

.small-hero {
  padding: 52px 0;
}

.page-hero h1,
.detail-copy h1 {
  color: var(--white);
}

.page-hero p {
  max-width: 760px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--yellow-300);
}

.detail-hero {
  color: var(--white);
  background: linear-gradient(120deg, var(--blue-950), var(--blue-900) 52%, var(--cyan-600));
  padding: 52px 0;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(220px, 360px) minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: linear-gradient(135deg, var(--blue-800), var(--cyan-600));
}

.detail-one-line {
  max-width: 760px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 19px;
}

.detail-meta span {
  padding: 8px 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.13);
}

.player-section {
  background: #f5f9ff;
}

.video-box {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #050b14;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
}

.stream-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #050b14;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: var(--white);
  background: radial-gradient(circle at center, rgba(8, 17, 31, 0.18), rgba(8, 17, 31, 0.72));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-overlay span {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 999px;
  color: var(--blue-950);
  background: var(--yellow-400);
  font-size: 30px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.35);
}

.play-overlay strong {
  font-size: 20px;
}

.video-box.is-playing .play-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

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

.story-card {
  padding: 26px;
}

.story-card p {
  margin: 14px 0 0;
  color: var(--slate-700);
  font-size: 17px;
}

.site-footer {
  color: rgba(255, 255, 255, 0.78);
  background: var(--slate-950);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding: 46px 0;
}

.footer-brand {
  color: var(--white);
  font-size: 22px;
}

.site-footer h2 {
  margin: 0 0 12px;
  color: var(--white);
  font-size: 18px;
}

.site-footer p {
  margin: 14px 0 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  padding: 18px;
}

.footer-bottom p {
  margin: 0;
}

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

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

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

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

  .menu-toggle {
    display: block;
  }

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

  .hero-container {
    padding: 34px 0 34px;
  }

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

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .hero-poster {
    max-width: 340px;
    margin: 0 auto;
    transform: none;
  }

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

  .detail-poster {
    max-width: 330px;
    margin: 0 auto;
  }

  .section-head {
    display: grid;
  }
}

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

  .section {
    padding: 42px 0;
  }

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

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

  .movie-card h3 {
    font-size: 16px;
  }

  .movie-card p {
    font-size: 13px;
  }

  .hero-slider {
    min-height: 720px;
  }

  .hero-copy p,
  .detail-one-line,
  .page-hero p {
    font-size: 16px;
  }

  .filter-panel {
    padding: 14px;
  }
}

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

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