:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --cyan: #06b6d4;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #f8fafc;
  --white: #ffffff;
  --shadow: 0 18px 55px rgba(15, 23, 42, 0.13);
}

* {
  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(--ink);
  background: #f5f7fb;
}

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.75);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  box-shadow: 0 12px 25px rgba(37, 99, 235, 0.26);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-text span,
.footer-logo {
  font-size: 21px;
  font-weight: 800;
  color: #1f2937;
}

.logo-text small {
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-link,
.mobile-link {
  color: #475569;
  font-size: 15px;
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: var(--primary);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #eff6ff;
  padding: 10px;
}

.mobile-menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--primary);
  border-radius: 10px;
}

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

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

.main-wrap {
  padding-top: 74px;
}

.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  color: white;
  background: radial-gradient(circle at top left, rgba(14, 165, 233, 0.78), transparent 35%), linear-gradient(135deg, #1d4ed8 0%, #0891b2 48%, #0f172a 100%);
}

.hero-section::before,
.hero-section::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(10px);
  opacity: 0.36;
}

.hero-section::before {
  width: 420px;
  height: 420px;
  right: -150px;
  top: 80px;
  background: rgba(255, 255, 255, 0.28);
}

.hero-section::after {
  width: 280px;
  height: 280px;
  left: -90px;
  bottom: 30px;
  background: rgba(250, 204, 21, 0.2);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  min-height: 680px;
  padding: 68px 22px 52px;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(320px, 0.94fr);
  align-items: center;
  gap: 46px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  font-weight: 700;
}

.hero-title {
  margin: 22px 0 18px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -2px;
}

.hero-title strong {
  color: #fde047;
}

.hero-desc {
  max-width: 760px;
  font-size: clamp(18px, 2vw, 24px);
  color: #dbeafe;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.btn-primary,
.btn-ghost,
.btn-white,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.26);
}

.btn-white {
  color: var(--primary);
  background: white;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
}

.btn-ghost {
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.75);
}

.btn-outline {
  color: var(--primary);
  border: 2px solid var(--primary);
  background: white;
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 48px;
}

.hero-stat {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
}

.hero-stat strong {
  display: block;
  font-size: 24px;
  font-weight: 900;
}

.hero-stat span {
  color: #dbeafe;
  font-size: 13px;
}

.hero-carousel {
  position: relative;
  height: 560px;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 32px 90px rgba(15, 23, 42, 0.3);
  background: rgba(15, 23, 42, 0.25);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.04);
  transition: opacity 0.6s ease, transform 0.8s ease;
}

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

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

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.08) 0%, rgba(15, 23, 42, 0.28) 36%, rgba(15, 23, 42, 0.86) 100%);
}

.hero-slide-content {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  z-index: 2;
}

.hero-slide-content h2 {
  margin: 10px 0 8px;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.12;
  font-weight: 900;
}

.hero-slide-content p {
  color: #e0f2fe;
  line-height: 1.7;
  margin: 0 0 18px;
}

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

.hero-tag-row span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
}

.hero-tag-row span {
  color: white;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-controls {
  position: absolute;
  right: 24px;
  top: 24px;
  z-index: 4;
  display: flex;
  gap: 10px;
}

.hero-control {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: white;
  background: rgba(15, 23, 42, 0.45);
  cursor: pointer;
}

.hero-dots {
  position: absolute;
  left: 28px;
  top: 28px;
  z-index: 4;
  display: flex;
  gap: 8px;
}

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

.hero-dot.is-active {
  width: 28px;
  background: #fde047;
}

.section,
.content-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 76px 22px;
}

.section-tight {
  max-width: 1180px;
  margin: 0 auto;
  padding: 44px 22px 74px;
}

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

.section-heading h1,
.section-heading h2 {
  margin: 0 0 8px;
  color: #1f2937;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.15;
  font-weight: 900;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.section-link {
  color: var(--primary);
  font-weight: 800;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: white;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow);
}

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #dbeafe, #cffafe);
}

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

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

.poster-badge,
.poster-play {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: white;
  font-weight: 800;
  font-size: 12px;
}

.poster-badge {
  top: 13px;
  left: 13px;
  padding: 6px 10px;
  background: rgba(37, 99, 235, 0.92);
}

.poster-play {
  right: 13px;
  bottom: 13px;
  padding: 8px 12px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(6px);
}

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

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 10px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.movie-meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 8px;
  background: #f1f5f9;
}

.movie-card h3,
.rank-info h3 {
  margin: 0 0 10px;
  color: #111827;
  font-size: 19px;
  line-height: 1.35;
  font-weight: 900;
}

.movie-card p,
.rank-info p {
  margin: 0 0 14px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  padding: 28px;
  border-radius: 26px;
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  box-shadow: 0 18px 45px rgba(37, 99, 235, 0.2);
}

.category-card:nth-child(2n) {
  background: linear-gradient(135deg, #7c3aed, #0ea5e9);
}

.category-card:nth-child(3n) {
  background: linear-gradient(135deg, #0f766e, #06b6d4);
}

.category-card::after {
  content: "";
  position: absolute;
  right: -50px;
  bottom: -60px;
  width: 160px;
  height: 160px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.category-card h3 {
  position: relative;
  margin: 0 0 10px;
  font-size: 26px;
  font-weight: 900;
}

.category-card p {
  position: relative;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.7;
}

.category-card span {
  position: relative;
  font-weight: 900;
}

.filter-panel {
  position: sticky;
  top: 88px;
  z-index: 8;
  margin-bottom: 28px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 24px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
}

.search-input {
  width: 100%;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 18px;
  color: #111827;
  font-size: 15px;
  outline: none;
  background: #f8fafc;
}

.search-input:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 4px #dbeafe;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.filter-button {
  border: 0;
  border-radius: 999px;
  padding: 9px 15px;
  color: #475569;
  background: #f1f5f9;
  cursor: pointer;
  font-weight: 800;
}

.filter-button.is-active,
.filter-button:hover {
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
}

.page-hero {
  padding-top: 74px;
  color: white;
  background: linear-gradient(135deg, #1d4ed8, #0891b2 54%, #0f172a);
}

.page-hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 74px 22px 58px;
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.12;
  font-weight: 900;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #dbeafe;
  font-size: 19px;
  line-height: 1.8;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 74px 112px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border-radius: 24px;
  background: white;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.rank-number {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  color: white;
  font-size: 24px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
}

.rank-thumb {
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 3 / 4;
  background: #dbeafe;
}

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

.rank-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  height: 44px;
  border-radius: 14px;
  color: white;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
}

.detail-hero {
  padding-top: 74px;
  color: white;
  background: radial-gradient(circle at top left, rgba(14, 165, 233, 0.56), transparent 34%), linear-gradient(135deg, #0f172a, #1d4ed8 48%, #0891b2);
}

.detail-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 22px 68px;
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-cover {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 30px 75px rgba(15, 23, 42, 0.38);
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #dbeafe, #cffafe);
}

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

.detail-content h1 {
  margin: 18px 0 16px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -1px;
}

.detail-content p {
  max-width: 780px;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.8;
}

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

.detail-meta span {
  border-radius: 999px;
  padding: 7px 12px;
  color: white;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 800;
}

.player-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 22px 26px;
}

.player-shell {
  overflow: hidden;
  border-radius: 30px;
  background: #020617;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.22);
}

.player-box {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #020617;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.58));
  cursor: pointer;
  transition: opacity 0.25s ease;
}

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

.player-play-button {
  width: 96px;
  height: 96px;
  border: 0;
  border-radius: 999px;
  color: white;
  font-size: 34px;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  box-shadow: 0 20px 45px rgba(37, 99, 235, 0.38);
  cursor: pointer;
}

.player-caption {
  padding: 22px 26px;
  color: #cbd5e1;
  background: #0f172a;
}

.article-card {
  border-radius: 26px;
  padding: 30px;
  background: white;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.article-card h2 {
  margin: 0 0 16px;
  color: #111827;
  font-size: 28px;
  font-weight: 900;
}

.article-card p {
  color: #4b5563;
  font-size: 17px;
  line-height: 1.9;
}

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

.site-footer {
  color: #cbd5e1;
  background: #111827;
}

.footer-grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 58px 22px 36px;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 34px;
}

.footer-logo {
  display: inline-block;
  color: white;
  margin-bottom: 14px;
}

.site-footer h3 {
  margin: 0 0 16px;
  color: white;
  font-size: 18px;
  font-weight: 900;
}

.site-footer p,
.site-footer a {
  display: block;
  margin: 0 0 10px;
  color: #cbd5e1;
  line-height: 1.8;
}

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

.footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  color: #94a3b8;
}

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

@media (max-width: 1024px) {
  .hero-inner,
  .detail-inner {
    grid-template-columns: 1fr;
  }

  .hero-carousel {
    height: 520px;
  }

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

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

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

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

  .mobile-menu-button {
    display: block;
  }

  .hero-section,
  .hero-inner {
    min-height: auto;
  }

  .hero-inner {
    padding-top: 42px;
  }

  .hero-stats,
  .category-strip,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .hero-carousel {
    height: 460px;
    border-radius: 26px;
  }

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

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

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

  .rank-action {
    grid-column: 2 / -1;
    justify-self: start;
  }

  .detail-inner {
    gap: 28px;
  }

  .detail-cover {
    max-width: 320px;
    margin: 0 auto;
  }

  .search-row {
    grid-template-columns: 1fr;
  }

  .footer-grid,
  .footer-bottom {
    grid-template-columns: 1fr;
    flex-direction: column;
  }
}

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

  .main-wrap,
  .page-hero,
  .detail-hero {
    padding-top: 66px;
  }

  .logo-text small {
    display: none;
  }

  .hero-title {
    letter-spacing: -1px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .movie-grid {
    grid-template-columns: 1fr;
  }

  .section,
  .content-section,
  .section-tight,
  .player-section {
    padding-left: 16px;
    padding-right: 16px;
  }
}
