:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --cyan: #06b6d4;
  --teal: #14b8a6;
  --text: #1f2937;
  --muted: #6b7280;
  --soft: #f8fafc;
  --line: #e5e7eb;
  --dark: #111827;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: #f3f7fb;
  line-height: 1.65;
}

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

img,
video {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--teal));
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.28);
}

.brand-name {
  font-size: 22px;
  background: linear-gradient(90deg, var(--primary-dark), var(--teal));
  -webkit-background-clip: text;
  color: transparent;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-link {
  padding: 9px 14px;
  border-radius: 12px;
  color: #374151;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--primary-dark);
  background: #eff6ff;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  border: 0;
  border-radius: 12px;
  background: #f3f4f6;
  color: #111827;
  padding: 9px 12px;
  font-size: 22px;
}

.hero {
  position: relative;
  min-height: 600px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(30, 58, 138, 0.88), rgba(29, 78, 216, 0.72), rgba(14, 165, 233, 0.12));
}

.hero::after {
  content: "";
  position: absolute;
  width: 560px;
  height: 560px;
  right: -180px;
  bottom: -240px;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.38), rgba(45, 212, 191, 0));
}

.hero-inner {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 96px 20px 78px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 420px;
  gap: 42px;
  align-items: center;
  min-height: 600px;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #dff9ff;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(40px, 6vw, 66px);
  line-height: 1.05;
  color: #fff;
  letter-spacing: -0.04em;
}

.hero h1 span {
  color: #67e8f9;
}

.hero-summary {
  max-width: 700px;
  color: #eef6ff;
  font-size: 20px;
  margin: 0 0 28px;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button-primary,
.button-secondary,
.button-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  padding: 12px 22px;
  border: 0;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button-primary {
  color: #fff;
  background: linear-gradient(90deg, var(--primary), var(--cyan));
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.32);
}

.button-secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(12px);
}

.button-light {
  color: var(--primary-dark);
  background: #fff;
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.08);
}

.button-primary:hover,
.button-secondary:hover,
.button-light:hover {
  transform: translateY(-2px) scale(1.02);
}

.hero-search {
  margin-top: 26px;
  display: flex;
  max-width: 660px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(16px);
}

.hero-search input {
  flex: 1;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  padding: 12px 16px;
  font-size: 16px;
}

.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.78);
}

.hero-search button {
  border: 0;
  border-radius: 13px;
  padding: 0 20px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(90deg, var(--primary), var(--cyan));
  cursor: pointer;
}

.hero-panel {
  position: relative;
  padding: 20px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.hero-panel-cover {
  height: 250px;
  border-radius: 20px;
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 -80px 90px rgba(0, 0, 0, 0.35);
}

.hero-panel h2 {
  margin: 18px 0 8px;
  color: #fff;
  font-size: 24px;
}

.hero-panel p {
  margin: 0 0 16px;
  color: #e5f6ff;
}

.hero-mini-links {
  display: grid;
  gap: 10px;
}

.hero-mini-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 14px;
  color: #effbff;
  background: rgba(255, 255, 255, 0.12);
}

.main-section,
.page-section {
  padding: 72px 20px;
}

.main-section.white,
.page-section.white {
  background: #fff;
}

.main-section.soft,
.page-section.soft {
  background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

.container {
  max-width: 1180px;
  margin: 0 auto;
}

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

.section-head h1,
.section-head h2,
.page-title h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.section-head p,
.page-title p {
  margin: 8px 0 0;
  color: var(--muted);
}

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

.stat-card {
  padding: 26px;
  border-radius: 22px;
  text-align: center;
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.16);
}

.stat-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  font-size: 24px;
  background: linear-gradient(135deg, var(--primary), var(--teal));
}

.stat-card strong {
  display: block;
  font-size: 22px;
}

.stat-card span {
  color: var(--muted);
  font-size: 14px;
}

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

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

.movie-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 13px 32px rgba(15, 23, 42, 0.10);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 64px rgba(15, 23, 42, 0.18);
}

.movie-cover {
  position: relative;
  display: block;
  height: 238px;
  background-color: #dbeafe;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.movie-grid.small .movie-cover {
  height: 190px;
}

.movie-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.02), rgba(15, 23, 42, 0.70));
  opacity: 0.78;
}

.movie-year,
.movie-region {
  position: absolute;
  top: 12px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 9px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.movie-year {
  left: 12px;
  background: var(--primary);
}

.movie-region {
  right: 12px;
  background: rgba(17, 24, 39, 0.62);
  backdrop-filter: blur(12px);
}

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--primary-dark);
  background: rgba(255, 255, 255, 0.92);
  transform: translate(-50%, -50%) scale(0.86);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

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

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

.movie-card h2 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card h2 a:hover,
.rank-content h2 a:hover,
.breadcrumb a:hover {
  color: var(--primary-dark);
}

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

.movie-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.movie-tags span,
.detail-tags span {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 700;
}

.movie-meta-line,
.rank-meta,
.detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
}

.movie-meta-line a,
.rank-meta a {
  color: var(--primary-dark);
  font-weight: 800;
}

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

.category-card {
  position: relative;
  min-height: 178px;
  padding: 24px;
  overflow: hidden;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(135deg, #1d4ed8, #0891b2);
  box-shadow: 0 18px 44px rgba(37, 99, 235, 0.22);
}

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

.category-card h2 {
  position: relative;
  margin: 0 0 10px;
  font-size: 22px;
}

.category-card p {
  position: relative;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

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

.page-hero {
  padding: 78px 20px 46px;
  background: linear-gradient(135deg, #1e3a8a, #0891b2);
  color: #fff;
}

.page-title {
  max-width: 1180px;
  margin: 0 auto;
}

.page-title p {
  color: #dff7ff;
  max-width: 760px;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: #e5f6ff;
  margin-bottom: 18px;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, minmax(160px, 1fr));
  gap: 14px;
  margin: 0 0 26px;
  padding: 18px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.filter-panel label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

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

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

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

.rank-row {
  display: grid;
  grid-template-columns: 90px 120px 1fr;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.rank-number {
  color: var(--primary-dark);
  font-weight: 900;
  text-align: center;
}

.rank-poster {
  height: 88px;
  border-radius: 16px;
  background-color: #dbeafe;
  background-size: cover;
  background-position: center;
}

.rank-content h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.rank-content p {
  margin: 0 0 10px;
  color: var(--muted);
}

.detail-hero {
  background: linear-gradient(135deg, #0f172a, #1d4ed8 55%, #0891b2);
  color: #fff;
  padding: 48px 20px;
}

.detail-hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 30px;
  align-items: center;
}

.detail-poster {
  min-height: 360px;
  border-radius: 26px;
  background-color: #dbeafe;
  background-size: cover;
  background-position: center;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.28);
}

.detail-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.12;
}

.detail-hero p {
  max-width: 790px;
  margin: 18px 0;
  color: #e5f6ff;
  font-size: 18px;
}

.detail-meta span,
.detail-meta a {
  padding: 5px 10px;
  border-radius: 999px;
  color: #eaf9ff;
  background: rgba(255, 255, 255, 0.14);
}

.detail-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 54px 20px 78px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #000;
  aspect-ratio: 16 / 9;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.22);
}

.player-shell video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.30), rgba(0, 0, 0, 0.72));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.big-play {
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 999px;
  color: var(--primary-dark);
  background: rgba(255, 255, 255, 0.94);
  font-size: 34px;
  box-shadow: 0 18px 50px rgba(255, 255, 255, 0.24);
  cursor: pointer;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  margin-top: 34px;
}

.article-box,
.side-box {
  border-radius: 24px;
  padding: 26px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.article-box h2,
.side-box h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.article-box p {
  color: #4b5563;
  margin: 0 0 18px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.compact-list {
  display: grid;
  gap: 12px;
}

.compact-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: #f8fafc;
  transition: background 0.2s ease, transform 0.2s ease;
}

.compact-card:hover {
  background: #eff6ff;
  transform: translateX(3px);
}

.compact-thumb {
  height: 58px;
  border-radius: 12px;
  background-color: #dbeafe;
  background-size: cover;
  background-position: center;
}

.compact-info strong,
.compact-info em {
  display: block;
}

.compact-info em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.site-footer {
  color: #d1d5db;
  background: linear-gradient(135deg, #111827, #1f2937);
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 44px 20px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
}

.footer-brand {
  color: #fff;
  font-size: 20px;
}

.footer-brand-block p {
  color: #9ca3af;
  margin: 14px 0 0;
}

.footer-group h2 {
  color: #fff;
  font-size: 18px;
  margin: 0 0 12px;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a:hover {
  color: #67e8f9;
}

.footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  color: #9ca3af;
}

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

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

  .hero-panel {
    max-width: 520px;
  }

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

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

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

@media (max-width: 720px) {
  .site-header-inner {
    height: auto;
    min-height: 64px;
    align-items: flex-start;
    padding-top: 13px;
    padding-bottom: 13px;
  }

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

  .nav-menu {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 66px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
  }

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

  .hero {
    min-height: auto;
  }

  .hero-inner {
    min-height: auto;
    padding-top: 64px;
    padding-bottom: 52px;
  }

  .hero-search {
    display: grid;
  }

  .hero-search button {
    height: 44px;
  }

  .section-head {
    display: grid;
    align-items: start;
  }

  .movie-grid,
  .movie-grid.small,
  .category-grid,
  .stats-grid,
  .filter-panel {
    grid-template-columns: 1fr;
  }

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

  .rank-number {
    text-align: left;
  }

  .rank-poster {
    height: 160px;
  }

  .detail-poster {
    min-height: 280px;
  }
}
