:root {
  --blue: #2563eb;
  --cyan: #06b6d4;
  --deep: #0f172a;
  --soft: #f3f6fb;
  --muted: #64748b;
  --line: #e2e8f0;
  --orange: #f97316;
  --red: #dc2626;
  --green: #10b981;
  --teal: #0d9488;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.14);
}

* {
  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: #111827;
  background: #f8fafc;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #fff;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.22);
}

.nav-shell {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 72px;
}

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

.brand {
  font-size: 22px;
  white-space: nowrap;
}

.brand-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  color: var(--blue);
  background: #fff;
  box-shadow: 0 12px 28px rgba(255, 255, 255, 0.22);
}

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

.desktop-nav a,
.nav-dropdown > button {
  color: rgba(255, 255, 255, 0.9);
  border: 0;
  background: transparent;
  transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.nav-dropdown > button:hover,
.desktop-nav .is-active {
  color: #fff;
  transform: translateY(-1px);
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  left: 0;
  top: 100%;
  display: none;
  min-width: 180px;
  padding: 10px;
  border-radius: 16px;
  color: #111827;
  background: #fff;
  box-shadow: var(--shadow);
}

.nav-dropdown:hover .dropdown-panel {
  display: grid;
  gap: 4px;
}

.dropdown-panel a {
  padding: 9px 12px;
  border-radius: 10px;
  color: #334155;
}

.dropdown-panel a:hover {
  color: var(--blue);
  background: #eff6ff;
}

.header-search {
  position: relative;
  flex: 1;
  max-width: 360px;
  margin-left: auto;
}

.header-search input {
  width: 100%;
  height: 42px;
  padding: 0 48px 0 18px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  outline: none;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

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

.header-search button {
  position: absolute;
  right: 8px;
  top: 50%;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  color: var(--blue);
  background: #fff;
  transform: translateY(-50%);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

.mobile-nav {
  display: none;
  padding: 0 16px 18px;
}

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

.mobile-nav a {
  padding: 10px 14px;
  border-radius: 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(180deg, #111827, #1f2937);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 1;
  transition: opacity 0.85s ease;
}

.hero-slide.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.hero-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.48) 48%, rgba(0, 0, 0, 0.1));
}

.hero-content {
  position: absolute;
  left: 50%;
  bottom: 58px;
  transform: translateX(-50%);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  background: var(--red);
  box-shadow: 0 14px 28px rgba(220, 38, 38, 0.28);
}

.hero h1,
.hero h2,
.page-hero h1 {
  max-width: 800px;
  margin: 18px 0 6px;
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-movie-title {
  max-width: 820px;
  margin: 8px 0 12px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.08;
  font-weight: 900;
}

.hero p,
.page-hero p {
  max-width: 720px;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

.hero-tags,
.detail-meta,
.card-meta,
.tag-row,
.card-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.hero-tags span,
.detail-meta span,
.card-meta span,
.tag-row span {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

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

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

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

.btn-primary {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.32);
}

.btn-light {
  color: var(--blue);
  background: #fff;
}

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

.hero-dots {
  position: absolute;
  right: 36px;
  bottom: 36px;
  display: flex;
  gap: 9px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
}

.hero-dot.is-active {
  width: 28px;
  border-radius: 999px;
  background: #fff;
}

.promo-band {
  padding: 36px 0;
  color: #fff;
  background: linear-gradient(90deg, var(--orange), var(--red));
}

.promo-inner {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 430px);
  gap: 28px;
  align-items: center;
}

.promo-inner h2 {
  margin: 0 0 8px;
  font-size: 30px;
}

.promo-inner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
}

.promo-search,
.large-search {
  display: flex;
  gap: 10px;
  padding: 7px;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow);
}

.promo-search input,
.large-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  padding: 0 16px;
  color: #111827;
}

.promo-search button,
.large-search button {
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  color: #fff;
  font-weight: 800;
  background: var(--blue);
}

.section {
  padding: 68px 0;
}

.white-section {
  background: #fff;
}

.soft-section {
  background: var(--soft);
}

.category-section {
  background: #eef2f7;
}

.score-section {
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--teal));
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.1;
  font-weight: 900;
}

.section-head p {
  max-width: 660px;
  margin: 8px 0 0;
  color: var(--muted);
}

.score-section .section-head p {
  color: rgba(255, 255, 255, 0.84);
}

.section-more {
  flex: 0 0 auto;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--blue);
  font-weight: 800;
  background: #eff6ff;
}

.video-grid {
  display: grid;
  gap: 22px;
}

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

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

.five-cols {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.video-card,
.list-card,
.compact-card,
.rank-card,
.category-overview-card,
.filter-card,
.player-card,
.detail-content article {
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.video-card {
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.video-card:hover,
.list-card:hover,
.compact-card:hover,
.rank-card:hover,
.category-overview-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.poster-frame {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #e2e8f0;
}

.poster-frame img,
.list-cover img,
.compact-card img,
.rank-card img,
.category-collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.video-card:hover img,
.list-card:hover img,
.compact-card:hover img,
.rank-card:hover img,
.category-overview-card:hover img {
  transform: scale(1.08);
}

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

.card-meta span {
  color: var(--blue);
  background: #eff6ff;
}

.video-card h3,
.compact-card h3,
.list-card h3,
.rank-card h2 {
  margin: 10px 0 8px;
  line-height: 1.25;
  font-size: 18px;
  font-weight: 900;
}

.video-card p,
.compact-card p,
.list-card p,
.rank-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.card-foot {
  justify-content: space-between;
  margin-top: 14px;
  color: #64748b;
  font-size: 12px;
}

.scroll-wrap {
  position: relative;
}

.scroll-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(210px, 240px);
  gap: 20px;
  overflow-x: auto;
  padding: 6px 2px 18px;
  scroll-snap-type: x mandatory;
}

.scroll-row .video-card {
  scroll-snap-align: start;
}

.scroll-row::-webkit-scrollbar {
  height: 8px;
}

.scroll-row::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #cbd5e1;
}

.scroll-btn {
  position: absolute;
  top: 42%;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  color: var(--blue);
  font-size: 30px;
  background: #fff;
  box-shadow: var(--shadow);
}

.scroll-btn.left {
  left: -14px;
}

.scroll-btn.right {
  right: -14px;
}

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

.compact-card {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.95);
}

.compact-card a {
  display: block;
}

.compact-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
}

.compact-card div {
  padding: 12px;
}

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

.category-tile {
  min-height: 142px;
  padding: 24px;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.category-tile span {
  display: block;
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: 900;
}

.category-tile p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}

.filter-card {
  padding: 18px;
  margin-bottom: 26px;
}

.filter-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.filter-panel:last-child {
  margin-bottom: 0;
}

.filter-btn {
  border: 0;
  border-radius: 999px;
  padding: 9px 16px;
  color: #334155;
  font-weight: 800;
  background: #f1f5f9;
  transition: background 0.2s ease, color 0.2s ease;
}

.filter-btn.is-active,
.filter-btn:hover {
  color: #fff;
  background: var(--blue);
}

.inline-search {
  width: 100%;
  height: 46px;
  margin-top: 4px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
}

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

.list-card {
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.list-card a {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 180px;
}

.list-cover {
  overflow: hidden;
  background: #e2e8f0;
}

.list-info {
  padding: 22px;
}

.tag-row span {
  color: #475569;
  background: #f1f5f9;
}

.page-hero {
  padding: 78px 0;
  color: #fff;
  background: radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.16), transparent 32%), linear-gradient(135deg, #0f172a, #1d4ed8 55%, #0891b2);
}

.small-hero,
.search-hero,
.rank-hero,
.category-hero {
  min-height: 320px;
  display: flex;
  align-items: center;
}

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

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

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

.category-overview-card {
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-overview-card a {
  display: grid;
  grid-template-columns: 210px 1fr;
  min-height: 220px;
}

.category-collage {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 2px;
  overflow: hidden;
  background: #e2e8f0;
}

.category-overview-card div:last-child {
  padding: 26px;
}

.category-overview-card h2 {
  margin: 0 0 10px;
  font-size: 26px;
}

.category-overview-card p {
  margin: 0 0 20px;
  color: var(--muted);
}

.category-overview-card span {
  color: var(--blue);
  font-weight: 900;
}

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

.rank-card {
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rank-card a {
  display: grid;
  grid-template-columns: 58px 132px 1fr;
  gap: 18px;
  align-items: center;
  padding: 16px;
}

.rank-number {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--orange), var(--red));
}

.rank-card img {
  width: 132px;
  aspect-ratio: 2 / 3;
  border-radius: 16px;
  object-fit: cover;
}

.large-search {
  max-width: 700px;
  margin-top: 24px;
}

.detail-hero {
  padding: 46px 0 72px;
  color: #fff;
  background: radial-gradient(circle at 80% 20%, rgba(14, 165, 233, 0.35), transparent 30%), linear-gradient(145deg, #020617, #172554 52%, #0f766e);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 30px;
  align-items: center;
}

.player-card {
  padding: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.video-box {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #000;
  aspect-ratio: 16 / 9;
}

.video-box video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 28px;
  border: 0;
  color: #fff;
  text-align: center;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.28));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-symbol {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border-radius: 50%;
  color: var(--blue);
  font-size: 28px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(255, 255, 255, 0.25);
}

.player-overlay strong {
  max-width: 78%;
  font-size: 24px;
  line-height: 1.25;
}

.player-overlay em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.84);
}

.detail-info h1 {
  margin: 18px 0 14px;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.1;
  font-weight: 900;
}

.detail-one-line {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.detail-meta span {
  background: rgba(255, 255, 255, 0.16);
}

.detail-tags {
  margin-top: 18px;
}

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

.detail-content {
  display: grid;
  gap: 20px;
}

.detail-content article {
  padding: 28px;
}

.detail-content h2 {
  margin: 0 0 14px;
  font-size: 26px;
  font-weight: 900;
}

.detail-content p {
  margin: 0;
  color: #334155;
  font-size: 17px;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 34px;
  padding: 48px 0;
}

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

.site-footer p {
  max-width: 420px;
  margin: 16px 0 0;
  color: #94a3b8;
}

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

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

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

.footer-bottom {
  padding: 18px;
  color: #64748b;
  text-align: center;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

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

@media (max-width: 1100px) {
  .five-cols,
  .four-cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

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

  .mobile-toggle {
    display: inline-grid;
    place-items: center;
    margin-left: auto;
  }

  .hero {
    height: 560px;
  }

  .hero-content {
    bottom: 46px;
  }

  .hero-dots {
    right: 22px;
    bottom: 22px;
  }

  .promo-inner,
  .detail-grid,
  .footer-grid,
  .category-overview-card a,
  .list-card a {
    grid-template-columns: 1fr;
  }

  .three-cols,
  .four-cols,
  .five-cols,
  .compact-grid,
  .category-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rank-card a {
    grid-template-columns: 48px 96px 1fr;
    gap: 12px;
  }

  .rank-card img {
    width: 96px;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .brand {
    font-size: 19px;
  }

  .hero {
    height: 540px;
  }

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

  .hero-actions,
  .detail-actions,
  .promo-search,
  .large-search {
    align-items: stretch;
    flex-direction: column;
    border-radius: 22px;
  }

  .promo-search input,
  .large-search input {
    min-height: 42px;
  }

  .promo-search button,
  .large-search button {
    min-height: 42px;
  }

  .section {
    padding: 48px 0;
  }

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

  .three-cols,
  .four-cols,
  .five-cols,
  .compact-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .scroll-row {
    grid-auto-columns: minmax(190px, 78vw);
  }

  .scroll-btn {
    display: none;
  }

  .rank-card a {
    grid-template-columns: 42px 80px 1fr;
    padding: 12px;
  }

  .rank-number {
    width: 36px;
    height: 36px;
  }

  .rank-card img {
    width: 80px;
  }

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