:root {
  color-scheme: light;
  --bg: #f8fafc;
  --panel: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --cyan: #06b6d4;
  --cyan-dark: #0891b2;
  --blue: #38bdf8;
  --slate: #0f172a;
  --slate-soft: #1e293b;
  --line: rgba(15, 23, 42, 0.08);
  --shadow: 0 20px 60px rgba(15, 23, 42, 0.14);
}

body {
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #0f172a 0%, #1e293b 48%, #0f172a 100%);
  color: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.22);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 64px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #0f172a;
  box-shadow: 0 0 30px rgba(34, 211, 238, 0.35);
}

.brand-text {
  font-size: 20px;
  background: linear-gradient(90deg, #22d3ee, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-weight: 650;
}

.desktop-nav a,
.mobile-nav a,
.footer-links a {
  transition: color 0.25s ease, background 0.25s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.footer-links a:hover {
  color: #22d3ee;
}

.menu-toggle {
  display: none;
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
}

.mobile-nav {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: #1e293b;
  padding: 14px 24px 20px;
}

.mobile-nav a {
  display: block;
  padding: 12px 8px;
  border-radius: 10px;
  font-weight: 650;
}

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

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

.hero-slide {
  min-height: 640px;
  display: none;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 24px 88px;
  gap: 42px;
}

.hero-slide.is-active {
  display: grid;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 16%, rgba(34, 211, 238, 0.32), transparent 34%),
    radial-gradient(circle at 82% 28%, rgba(59, 130, 246, 0.26), transparent 30%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.25), rgba(2, 6, 23, 0.95));
}

.hero-media {
  position: relative;
  aspect-ratio: 21 / 9;
  min-height: 380px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55);
  transform: translateZ(0);
}

.hero-media img {
  transition: transform 0.8s ease;
}

.hero-slide.is-active .hero-media img {
  transform: scale(1.04);
}

.hero-vignette,
.image-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.12) 56%, rgba(0, 0, 0, 0.04));
}

.hero-content {
  position: relative;
  color: #fff;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.16);
  color: #67e8f9;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
  margin-top: 18px;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero p,
.page-hero p,
.detail-copy p {
  margin-top: 18px;
  max-width: 680px;
  color: rgba(226, 232, 240, 0.92);
  font-size: 18px;
  line-height: 1.8;
}

.hero-tags,
.detail-meta,
.tag-cloud,
.meta-row,
.poster-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.hero-tags span,
.detail-meta span,
.detail-meta a,
.tag-cloud span,
.meta-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 700;
}

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

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

.primary-btn {
  background: linear-gradient(135deg, #22d3ee, #60a5fa);
  color: #082f49;
  box-shadow: 0 18px 42px rgba(34, 211, 238, 0.35);
}

.ghost-btn {
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.09);
}

.ghost-btn.light {
  color: #fff;
}

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

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

.hero-dot {
  width: 38px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

.hero-dot.is-active {
  background: #22d3ee;
}

.intro-strip,
.content-section,
.dark-section,
.page-hero,
.detail-hero,
.player-shell,
.detail-body,
.breadcrumb {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.intro-strip {
  margin-top: -42px;
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-radius: 28px;
  padding-top: 26px;
  padding-bottom: 26px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.intro-strip strong {
  font-size: 24px;
}

.intro-strip p {
  margin-top: 6px;
  color: var(--muted);
}

.intro-strip a {
  flex: 0 0 auto;
  color: var(--cyan-dark);
  font-weight: 850;
}

.content-section {
  padding-top: 56px;
  padding-bottom: 28px;
}

.section-heading {
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  background: #cffafe;
  color: #0e7490;
  font-weight: 900;
}

.section-heading h2 {
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-heading p {
  margin-top: 5px;
  color: var(--muted);
}

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

.featured-card:first-child {
  grid-column: 1 / -1;
}

.featured-link {
  position: relative;
  display: block;
  min-height: 320px;
  border-radius: 24px;
  overflow: hidden;
  background: #0f172a;
  box-shadow: var(--shadow);
}

.featured-image {
  position: absolute;
  inset: 0;
}

.featured-image img,
.poster-image img {
  transition: transform 0.6s ease;
}

.featured-link:hover img,
.poster-link:hover img {
  transform: scale(1.08);
}

.featured-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px;
  color: #fff;
}

.featured-copy h3 {
  margin-top: 12px;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
}

.featured-copy p {
  margin-top: 8px;
  max-width: 760px;
  color: rgba(226, 232, 240, 0.9);
  line-height: 1.65;
}

.featured-copy em {
  display: block;
  margin-top: 10px;
  color: #94a3b8;
  font-size: 13px;
  font-style: normal;
}

.filter-bar {
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px 180px;
  gap: 14px;
}

.search-box,
.select-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 0 16px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.search-box span,
.select-box span {
  color: var(--cyan-dark);
  font-size: 13px;
  font-weight: 850;
}

.search-box input,
.select-box select {
  width: 100%;
  outline: none;
  background: transparent;
  color: var(--ink);
}

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

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

.poster-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.poster-link:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
}

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

.poster-play {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(8, 145, 178, 0.9);
  color: #fff;
  box-shadow: 0 10px 26px rgba(8, 145, 178, 0.35);
}

.poster-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px;
}

.poster-copy h3 {
  font-size: 17px;
  line-height: 1.35;
  font-weight: 850;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.poster-copy p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.poster-meta {
  margin-top: auto;
  padding-top: 12px;
  justify-content: space-between;
  color: #64748b;
  font-size: 12px;
}

.compact-card .poster-copy p {
  -webkit-line-clamp: 1;
}

.dark-section {
  margin-top: 44px;
  margin-bottom: 12px;
  padding-top: 42px;
  padding-bottom: 42px;
  border-radius: 30px;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #fff;
  box-shadow: var(--shadow);
}

.dark-section .section-heading p,
.dark-section .rank-copy em {
  color: #94a3b8;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 54px 64px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 92px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 18px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.07);
  transition: transform 0.25s ease, background 0.25s ease;
}

.rank-item:hover {
  transform: translateY(-3px);
  background: rgba(34, 211, 238, 0.12);
}

.rank-item img {
  height: 68px;
  border-radius: 12px;
}

.rank-num {
  color: #22d3ee;
  font-size: 22px;
  font-weight: 900;
}

.rank-copy strong {
  display: block;
  font-weight: 850;
  line-height: 1.35;
}

.rank-copy em {
  display: block;
  margin-top: 5px;
  color: #64748b;
  font-size: 12px;
  font-style: normal;
}

.section-action {
  margin-top: 26px;
  text-align: center;
}

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

.category-tile {
  min-height: 156px;
  border-radius: 24px;
  padding: 22px;
  background: linear-gradient(135deg, #ffffff, #ecfeff);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 54px rgba(8, 145, 178, 0.18);
}

.category-tile strong {
  display: block;
  font-size: 22px;
  font-weight: 900;
}

.category-tile span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.65;
}

.dark-cards {
  margin-bottom: 52px;
}

.page-hero {
  margin-top: 32px;
  border-radius: 30px;
  padding-top: 64px;
  padding-bottom: 64px;
  background:
    radial-gradient(circle at 10% 10%, rgba(34, 211, 238, 0.25), transparent 32%),
    linear-gradient(135deg, #0f172a, #1e293b);
  color: #fff;
  box-shadow: var(--shadow);
}

.slim-hero {
  min-height: 280px;
}

.category-hero {
  min-height: 320px;
}

.breadcrumb {
  padding-top: 24px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-size: 14px;
}

.breadcrumb a {
  color: var(--cyan-dark);
  font-weight: 700;
}

.detail-hero {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  border-radius: 30px;
  padding-top: 36px;
  padding-bottom: 36px;
  background:
    radial-gradient(circle at 20% 0%, rgba(34, 211, 238, 0.2), transparent 30%),
    linear-gradient(135deg, #0f172a, #1e293b);
  color: #fff;
  box-shadow: var(--shadow);
}

.detail-poster {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.detail-meta {
  margin-top: 22px;
}

.tag-cloud {
  margin-top: 18px;
}

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

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 32px 90px rgba(15, 23, 42, 0.28);
}

.video-frame video {
  width: 100%;
  height: 100%;
  background: #020617;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #020617;
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.78), rgba(2, 6, 23, 0.08));
}

.player-cover img {
  position: absolute;
  inset: 0;
  transform: scale(1.03);
}

.player-cover.is-hidden {
  display: none;
}

.play-ring {
  position: relative;
  z-index: 2;
  width: 88px;
  height: 88px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #22d3ee, #60a5fa);
  color: #082f49;
  font-size: 34px;
  box-shadow: 0 22px 48px rgba(34, 211, 238, 0.38);
}

.play-message {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 18px;
  z-index: 4;
  color: #fff;
  text-align: center;
  font-weight: 700;
}

.detail-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.55fr);
  gap: 24px;
  padding-top: 30px;
}

.story-card {
  border-radius: 24px;
  padding: 28px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.1);
}

.story-card h2 {
  font-size: 24px;
  font-weight: 900;
}

.story-card p {
  margin-top: 14px;
  color: #334155;
  line-height: 1.9;
}

.accent-card {
  background: linear-gradient(135deg, #ecfeff, #ffffff);
}

.related-section {
  padding-bottom: 58px;
}

.site-footer {
  margin-top: 56px;
  background: #0f172a;
  color: #e2e8f0;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 34px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.footer-inner p {
  margin-top: 6px;
  color: #94a3b8;
}

.footer-links {
  display: flex;
  gap: 18px;
  font-weight: 750;
}

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

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

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

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

  .featured-grid,
  .detail-body {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 780px) {
  .header-inner {
    padding: 0 16px;
  }

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

  .hero,
  .hero-slide {
    min-height: 720px;
  }

  .hero-slide {
    padding: 44px 16px 78px;
    gap: 28px;
  }

  .hero-media {
    min-height: 260px;
  }

  .intro-strip,
  .content-section,
  .dark-section,
  .page-hero,
  .detail-hero,
  .player-shell,
  .detail-body,
  .breadcrumb {
    padding-left: 16px;
    padding-right: 16px;
  }

  .intro-strip,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .poster-grid,
  .latest-grid,
  .category-grid,
  .rank-grid,
  .ranking-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .detail-poster {
    max-width: 260px;
  }
}

@media (max-width: 520px) {
  .hero h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 34px;
  }

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

  .poster-grid,
  .latest-grid,
  .category-grid,
  .rank-grid,
  .ranking-list {
    gap: 14px;
  }

  .rank-item {
    grid-template-columns: 40px 54px minmax(0, 1fr);
  }

  .featured-copy {
    padding: 20px;
  }
}
