:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --cyan: #06b6d4;
  --teal: #14b8a6;
  --orange: #f97316;
  --red: #ef4444;
  --green: #10b981;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #f8fafc;
  --white: #ffffff;
  --shadow: 0 18px 55px rgba(15, 23, 42, 0.13);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(16px);
}

.top-nav {
  width: min(1180px, calc(100% - 32px));
  height: 66px;
  margin: 0 auto;
  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;
}

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

.brand-text {
  font-size: 21px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

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

.nav-link {
  position: relative;
  padding: 8px 0;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: center;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  transition: transform 0.2s ease;
}

.nav-link:hover {
  color: var(--blue);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

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

.menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #111827;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 12px 0 18px;
  border-top: 1px solid var(--line);
}

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

.mobile-link {
  padding: 11px 14px;
  border-radius: 12px;
  color: #374151;
  font-weight: 650;
}

.mobile-link:hover {
  color: var(--blue);
  background: #f3f4f6;
}

.main-section,
.page-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
}

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

.section-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  color: #fff;
  font-size: 22px;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 14px 34px rgba(239, 68, 68, 0.22);
}

.section-title h2,
.section-title h1 {
  margin: 0;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.15;
}

.section-subtitle {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.more-link {
  color: var(--blue);
  font-weight: 750;
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(120deg, #1d4ed8 0%, #06b6d4 52%, #0f766e 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 10%, rgba(255, 255, 255, 0.22), transparent 28%),
    radial-gradient(circle at 78% 16%, rgba(255, 255, 255, 0.16), transparent 30%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.52), rgba(15, 23, 42, 0.1));
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.7) 1px, transparent 1px);
  background-size: 38px 38px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 470px;
  gap: 54px;
  align-items: center;
}

.hero-copy {
  display: grid;
  gap: 22px;
}

.eyebrow {
  width: fit-content;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(12px);
  font-weight: 750;
  color: #e0f2fe;
}

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 68px);
  line-height: 1.05;
  letter-spacing: -1.4px;
}

.hero h1 span {
  display: block;
  color: #cffafe;
}

.hero p {
  max-width: 670px;
  margin: 0;
  color: #ecfeff;
  font-size: 19px;
  line-height: 1.9;
}

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

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

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

.btn-primary {
  color: var(--blue);
  background: #fff;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
}

.btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.hero-search {
  display: flex;
  width: min(640px, 100%);
  min-height: 56px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(14px);
}

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

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

.hero-search button {
  border: 0;
  border-radius: 999px;
  color: #1d4ed8;
  background: #fff;
  padding: 0 20px;
  font-weight: 800;
  cursor: pointer;
}

.hero-panel {
  position: relative;
}

.hero-slider {
  position: relative;
  min-height: 405px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(18px) scale(0.985);
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

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

.hero-card {
  position: relative;
  height: 405px;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.35);
  background: #0f172a;
  transition: transform 0.28s ease;
}

.hero-card:hover {
  transform: translateY(-4px) scale(1.01);
}

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

.hero-card:hover img {
  transform: scale(1.06);
}

.hero-card-content {
  position: absolute;
  inset: auto 0 0;
  padding: 110px 28px 28px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0), rgba(15, 23, 42, 0.86));
}

.hero-card-content h2 {
  margin: 0 0 10px;
  font-size: 27px;
}

.hero-card-content p {
  color: #bae6fd;
  font-size: 14px;
  line-height: 1.7;
}

.hero-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 70px;
  height: 70px;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.94);
  font-size: 26px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.3);
}

.hero-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

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

.hero-dot.is-active {
  width: 34px;
  background: #fff;
}

.quick-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-cats a {
  padding: 8px 13px;
  border-radius: 999px;
  color: #e0f2fe;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.23);
  font-size: 14px;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 9px 26px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.16);
}

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

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

.movie-card:hover img,
.compact-card:hover img,
.rank-thumb:hover img {
  transform: scale(1.07);
}

.poster-link::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.74));
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-link::after {
  opacity: 1;
}

.poster-badge {
  position: absolute;
  right: 11px;
  top: 11px;
  z-index: 2;
  border-radius: 999px;
  padding: 5px 9px;
  color: #fff;
  background: var(--red);
  font-size: 12px;
  font-weight: 850;
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%) scale(0.84);
  border-radius: 50%;
  opacity: 0;
  color: var(--blue);
  background: #fff;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

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

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

.movie-card h2 a:hover,
.rank-copy h2 a:hover,
.detail-copy a:hover {
  color: var(--blue);
}

.movie-card p {
  min-height: 43px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.movie-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.movie-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #f1f5f9;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 11px;
}

.tag-row span {
  color: var(--blue);
  background: #dbeafe;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
}

.soft-band {
  background: linear-gradient(90deg, #eff6ff, #ecfeff);
}

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

.category-tile {
  display: flex;
  min-height: 170px;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 16px 42px rgba(37, 99, 235, 0.18);
  overflow: hidden;
  position: relative;
}

.category-tile::after {
  content: "";
  position: absolute;
  right: -34px;
  top: -36px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.category-tile h2 {
  margin: 0 0 10px;
  font-size: 23px;
}

.category-tile p {
  margin: 0;
  color: #e0f2fe;
  line-height: 1.7;
}

.category-tile strong {
  margin-top: 20px;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, minmax(130px, 180px));
  gap: 12px;
  padding: 18px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
  margin-bottom: 28px;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: 0;
  padding: 0 14px;
  color: var(--ink);
  background: #fff;
  font-size: 14px;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12);
}

.no-results {
  display: none;
  padding: 36px;
  text-align: center;
  border-radius: 20px;
  background: #fff;
  color: var(--muted);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
}

.no-results.is-visible {
  display: block;
}

.ranking-list {
  display: grid;
  gap: 14px;
}

.ranking-item {
  display: grid;
  grid-template-columns: 54px 112px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 9px 28px rgba(15, 23, 42, 0.08);
}

.rank-num {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  font-weight: 900;
}

.rank-thumb {
  overflow: hidden;
  border-radius: 14px;
  background: #0f172a;
}

.rank-thumb img {
  width: 112px;
  height: 78px;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.rank-copy h2 {
  margin: 0 0 7px;
  font-size: 18px;
}

.rank-copy p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.7;
}

.heat-score {
  min-width: 64px;
  color: var(--red);
  font-size: 22px;
  text-align: right;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  width: min(1180px, calc(100% - 32px));
  margin: 26px auto 0;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--blue);
}

.detail-layout {
  width: min(1180px, calc(100% - 32px));
  margin: 26px auto 80px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 30px;
}

.detail-main,
.detail-side {
  display: grid;
  align-content: start;
  gap: 24px;
}

.player-card,
.detail-card,
.side-card {
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.player-card {
  background: #000;
}

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

.player-box video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.22), rgba(2, 6, 23, 0.7));
  z-index: 2;
}

.player-cover.is-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.play-ring {
  width: 92px;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: var(--blue);
  font-size: 38px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
}

.detail-card {
  padding: 28px;
}

.detail-card h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 5vw, 42px);
  line-height: 1.18;
}

.detail-card h2,
.side-card h2 {
  margin: 0 0 14px;
  font-size: 22px;
}

.detail-lead {
  color: #374151;
  font-size: 18px;
  line-height: 1.9;
}

.detail-copy {
  color: #374151;
  line-height: 1.95;
  font-size: 16px;
}

.detail-copy p {
  margin: 0 0 16px;
}

.side-card {
  padding: 22px;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 16px;
  transition: background 0.2s ease;
}

.compact-card:hover {
  background: #f8fafc;
}

.compact-card img {
  width: 112px;
  height: 72px;
  object-fit: cover;
  border-radius: 13px;
  transition: transform 0.2s ease;
}

.compact-card strong {
  display: block;
  line-height: 1.45;
  margin-bottom: 6px;
}

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

.page-hero {
  color: #fff;
  padding: 68px 0;
  background: linear-gradient(120deg, var(--blue), var(--cyan));
}

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

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(36px, 6vw, 54px);
}

.page-hero p {
  max-width: 820px;
  margin: 0;
  color: #e0f2fe;
  font-size: 18px;
  line-height: 1.85;
}

.site-footer {
  color: #fff;
  background: linear-gradient(135deg, #111827, #1f2937);
  margin-top: 90px;
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.25fr repeat(3, 1fr);
  gap: 36px;
  padding: 54px 0 36px;
}

.footer-grid h2 {
  font-size: 18px;
  margin: 0 0 16px;
}

.footer-grid p,
.footer-grid a {
  color: #cbd5e1;
  line-height: 1.8;
  font-size: 14px;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 9px;
}

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  font-size: 14px;
}

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

  .menu-button {
    display: block;
  }

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

  .hero-inner {
    padding: 62px 0;
  }

  .hero-slider,
  .hero-card {
    min-height: 390px;
    height: 390px;
  }

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

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

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

@media (max-width: 720px) {
  .top-nav,
  .mobile-nav,
  .main-section,
  .page-section,
  .page-hero-inner,
  .breadcrumb,
  .detail-layout,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 24px, 1180px);
  }

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

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

  .hero h1 {
    font-size: 42px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-search {
    border-radius: 22px;
    flex-direction: column;
  }

  .hero-search input {
    min-height: 46px;
  }

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

  .hero-slider,
  .hero-card {
    min-height: 330px;
    height: 330px;
  }

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

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

  .movie-card p {
    display: none;
  }

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

  .ranking-item {
    grid-template-columns: 42px 88px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-thumb img {
    width: 88px;
    height: 64px;
  }

  .heat-score {
    grid-column: 2 / -1;
    text-align: left;
    font-size: 16px;
  }

  .detail-card {
    padding: 22px;
  }

  .compact-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .compact-card img {
    width: 96px;
    height: 64px;
  }
}
