:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --red: #dc2626;
  --gold: #f59e0b;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
  --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.08);
  --radius: 22px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.86);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  height: 68px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--blue), #7c3aed);
  color: #fff;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.35);
}

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 23px;
  color: #374151;
  font-size: 15px;
  font-weight: 650;
}

.desktop-nav a,
.mobile-nav a,
.text-link {
  transition: color 0.18s ease, transform 0.18s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.text-link:hover {
  color: var(--blue);
}

.menu-toggle {
  width: 42px;
  height: 42px;
  display: none;
  border: 0;
  border-radius: 12px;
  background: #eef2ff;
  cursor: pointer;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #1f2937;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  padding: 10px 22px 18px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.mobile-nav a {
  display: block;
  padding: 11px 0;
  font-weight: 700;
}

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

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

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 0.7s ease;
  pointer-events: none;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 30%, rgba(37, 99, 235, 0.42), transparent 30%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.95), rgba(15, 23, 42, 0.72) 48%, rgba(15, 23, 42, 0.28)),
    linear-gradient(0deg, rgba(2, 6, 23, 0.92), transparent 48%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  min-height: 560px;
  padding: 80px 22px 74px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 46px;
  align-items: end;
}

.hero-copy {
  max-width: 760px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow,
.detail-hero .eyebrow,
.page-hero .eyebrow {
  color: #93c5fd;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero h2 {
  margin: 0 0 16px;
  font-size: clamp(26px, 3vw, 44px);
  line-height: 1.12;
}

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

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

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

.hero-tags span,
.tag-row span,
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.tag-row span,
.pill {
  background: #eff6ff;
  color: #1d4ed8;
}

.large-tags span {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

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

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

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #7c3aed);
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.32);
}

.btn-primary:hover,
.btn-ghost:hover,
.btn-soft:hover,
.movie-card:hover,
.channel-card:hover,
.category-overview-card:hover,
.ranking-row:hover {
  transform: translateY(-2px);
}

.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.btn-soft {
  color: #1e3a8a;
  background: #dbeafe;
}

.flat-actions .btn-ghost {
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
}

.hero-poster {
  align-self: center;
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.2);
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #0f172a, #1d4ed8);
}

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

.hero-poster span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: grid;
  place-items: center;
  min-height: 42px;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.64);
  backdrop-filter: blur(12px);
  font-weight: 800;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  font-size: 34px;
  cursor: pointer;
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.hero-dots button.is-active {
  width: 30px;
  background: #fff;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 58px 22px;
}

.intro-section {
  padding-bottom: 22px;
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading h2,
.page-hero h1,
.detail-copy h1,
.article-section h2 {
  margin: 0;
  line-height: 1.16;
  letter-spacing: -0.03em;
}

.section-heading h2 {
  font-size: clamp(26px, 3vw, 40px);
}

.section-heading p:not(.eyebrow) {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--muted);
}

.side-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
}

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

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

.stats-strip a,
.channel-card,
.category-overview-card,
.movie-card,
.ranking-row,
.filter-bar,
.article-grid article,
.player-card {
  background: var(--surface);
  border: 1px solid rgba(229, 231, 235, 0.92);
  box-shadow: var(--shadow-soft);
}

.stats-strip a {
  padding: 18px;
  border-radius: 18px;
  color: #1e3a8a;
  background: linear-gradient(135deg, #eff6ff, #fff);
  font-weight: 850;
}

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

.channel-card,
.category-overview-card {
  display: flex;
  min-height: 210px;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border-radius: var(--radius);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.channel-card:hover,
.category-overview-card:hover,
.movie-card:hover,
.ranking-row:hover {
  box-shadow: var(--shadow);
}

.channel-card em,
.category-overview-card em {
  color: var(--blue);
  font-size: 13px;
  font-weight: 850;
  font-style: normal;
}

.channel-card strong,
.category-overview-card strong {
  font-size: 22px;
}

.channel-card p,
.category-overview-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.mini-title-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: auto;
  color: #4b5563;
  font-size: 13px;
}

.overview-covers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  height: 94px;
}

.overview-covers img {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
  background: linear-gradient(135deg, #1e3a8a, #7c3aed);
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 170px 170px 170px;
  gap: 12px;
  padding: 16px;
  margin-bottom: 22px;
  border-radius: 20px;
}

.filter-bar label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 0 12px;
  color: var(--text);
  background: #fff;
  outline: none;
}

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

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

.movie-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cover-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background:
    radial-gradient(circle at 70% 15%, rgba(96, 165, 250, 0.75), transparent 28%),
    linear-gradient(135deg, #0f172a, #1d4ed8 55%, #7c3aed);
}

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

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

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

.cover-shade {
  position: absolute;
  inset: auto 0 0;
  height: 48%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), transparent);
}

.card-year,
.card-play {
  position: absolute;
  z-index: 2;
  color: #fff;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(12px);
  font-weight: 800;
}

.card-year {
  top: 10px;
  right: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
}

.card-play {
  left: 50%;
  top: 50%;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.88);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
}

.card-body strong {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  font-size: 16px;
}

.card-meta {
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

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

.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 58px 86px minmax(0, 1fr) 110px;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border-radius: 20px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.compact-list .ranking-row:nth-child(n + 13) {
  display: none;
}

.rank-number {
  color: var(--red);
  font-size: 24px;
  font-weight: 900;
  text-align: center;
}

.rank-cover {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  background: linear-gradient(135deg, #1e3a8a, #7c3aed);
}

.rank-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.rank-info strong {
  font-size: 18px;
}

.rank-info em,
.rank-info span:not(.tag-row) {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.rank-hot {
  color: var(--gold);
  font-weight: 900;
  text-align: right;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 20%, rgba(37, 99, 235, 0.46), transparent 26%),
    linear-gradient(135deg, #020617, #1e3a8a 58%, #111827);
  color: #fff;
}

.page-hero {
  min-height: 330px;
  display: flex;
  align-items: center;
}

.page-hero > div {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 62px 22px;
}

.page-hero h1 {
  max-width: 780px;
  font-size: clamp(34px, 4vw, 58px);
}

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

.detail-hero {
  min-height: 560px;
}

.detail-bg {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  filter: blur(4px);
}

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

.detail-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: 34px 22px 62px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 30px;
  color: #cbd5e1;
  font-size: 14px;
}

.breadcrumbs a:hover {
  color: #fff;
}

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

.detail-poster {
  border-radius: 28px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.detail-copy h1 {
  font-size: clamp(34px, 5vw, 64px);
}

.detail-line {
  max-width: 820px;
  color: #dbeafe;
  font-size: 19px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.12);
}

.player-section {
  margin-top: -34px;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #020617;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 0;
  color: #fff;
  background:
    radial-gradient(circle at center, rgba(37, 99, 235, 0.26), transparent 28%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.58), rgba(2, 6, 23, 0.12));
  cursor: pointer;
}

.play-overlay span {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), #7c3aed);
  box-shadow: 0 18px 50px rgba(37, 99, 235, 0.38);
  font-size: 30px;
}

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

.player-card.is-playing .play-overlay {
  display: none;
}

.article-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
}

.article-grid article {
  padding: 24px;
  border-radius: var(--radius);
}

.article-grid article:first-child {
  grid-row: span 2;
}

.article-grid p {
  margin: 14px 0 0;
  color: #4b5563;
  white-space: pre-line;
}

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

.is-filter-hidden {
  display: none !important;
}

@media (max-width: 1100px) {
  .desktop-nav {
    gap: 14px;
    font-size: 14px;
  }

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

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

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

  .menu-toggle {
    display: block;
  }

  .hero-content,
  .detail-layout,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    align-items: end;
    gap: 28px;
    padding-top: 70px;
  }

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

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

  .stats-strip,
  .movie-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ranking-row {
    grid-template-columns: 44px 70px minmax(0, 1fr);
  }

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

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

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

  .hero,
  .hero-content {
    min-height: 650px;
  }

  .hero-arrow {
    display: none;
  }

  .section {
    padding: 42px 16px;
  }

  .side-heading {
    align-items: start;
    flex-direction: column;
  }

  .stats-strip,
  .channel-grid,
  .category-overview-grid,
  .filter-bar,
  .movie-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .ranking-row {
    grid-template-columns: 38px 62px minmax(0, 1fr);
    gap: 10px;
  }

  .rank-number {
    font-size: 19px;
  }

  .detail-inner {
    padding: 26px 16px 48px;
  }

  .player-section {
    margin-top: 0;
  }
}
