:root {
  --blue: #2563eb;
  --blue-dark: #1e3a8a;
  --red: #dc2626;
  --slate: #0f172a;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #f8fafc;
  --card: #ffffff;
  --shadow: 0 12px 32px rgba(15, 23, 42, 0.10);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}
button,
input,
select {
  font: inherit;
}
.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  backdrop-filter: blur(16px);
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
}
.header-inner {
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
}
.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  border-radius: 11px;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.25);
}
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #334155;
  font-weight: 600;
  font-size: 15px;
}
.desktop-nav a,
.mobile-nav a {
  transition: color .2s ease, background .2s ease;
}
.desktop-nav a:hover,
.mobile-nav a:hover {
  color: var(--blue);
}
.menu-toggle {
  display: none;
  border: 0;
  color: #334155;
  background: #f1f5f9;
  width: 40px;
  height: 40px;
  border-radius: 12px;
}
.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 12px;
  padding: 10px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.mobile-nav a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  color: #334155;
  font-weight: 700;
}
.mobile-nav.open {
  display: block;
}
.hero-slider {
  position: relative;
  height: 620px;
  overflow: hidden;
  color: white;
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 900ms ease;
}
.hero-slide.active {
  opacity: 1;
  z-index: 1;
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.92), rgba(0,0,0,0.46) 48%, rgba(15,23,42,0.25));
}
.hero-content {
  position: absolute;
  left: 50%;
  bottom: 96px;
  transform: translateX(-50%);
  z-index: 2;
  max-width: 1180px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 7px 13px;
  color: white;
  background: var(--red);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .03em;
}
.hero-content h1 {
  margin: 18px 0 8px;
  font-size: clamp(30px, 5vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}
.hero-content h2 {
  margin: 0 0 14px;
  font-size: clamp(24px, 4vw, 46px);
  line-height: 1.1;
}
.hero-content p {
  max-width: 760px;
  margin: 0 0 22px;
  color: #e5e7eb;
  font-size: 18px;
  line-height: 1.75;
}
.hero-tags,
.meta-row,
.info-list,
.tag-cloud,
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.hero-tags span {
  padding: 7px 12px;
  background: rgba(37, 99, 235, 0.82);
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
}
.primary-btn,
.secondary-btn,
.hero-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 800;
}
.primary-btn {
  padding: 13px 28px;
  color: white;
  background: var(--blue);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.35);
}
.primary-btn:hover {
  background: #1d4ed8;
}
.secondary-btn {
  padding: 12px 24px;
  color: white;
  border: 1px solid rgba(255,255,255,.45);
  background: rgba(15,23,42,.35);
}
.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: 0;
  color: white;
  cursor: pointer;
  border-radius: 50%;
  background: rgba(0,0,0,.45);
  font-size: 35px;
  line-height: 1;
}
.hero-prev {
  left: 22px;
}
.hero-next {
  right: 22px;
}
.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 32px;
  z-index: 3;
  display: flex;
  gap: 9px;
  transform: translateX(-50%);
}
.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255,255,255,.55);
}
.hero-dot.active {
  width: 28px;
  background: white;
}
.hero-search {
  position: absolute;
  left: 50%;
  right: auto;
  bottom: 78px;
  z-index: 4;
  width: min(560px, calc(100% - 32px));
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  padding: 8px;
  background: rgba(255,255,255,.92);
  border-radius: 999px;
  box-shadow: 0 20px 45px rgba(0,0,0,.22);
}
.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  padding: 0 16px;
  color: #0f172a;
  background: transparent;
}
.hero-search button {
  padding: 12px 22px;
  color: white;
  background: var(--blue);
}
.main-stack {
  display: grid;
  gap: 42px;
  padding: 44px 0 64px;
}
.section {
  min-width: 0;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}
.section-heading h2,
.page-hero h1,
.detail-info h1,
.detail-article h2,
.side-panel h2 {
  margin: 0;
  color: #0f172a;
}
.section-heading h2 {
  font-size: clamp(24px, 3vw, 34px);
}
.section-heading p,
.page-hero p,
.card-body p,
.detail-info p,
.detail-article p,
.site-footer p {
  color: var(--muted);
  line-height: 1.75;
}
.section-heading p {
  margin: 8px 0 0;
}
.text-link {
  color: var(--blue);
  font-weight: 800;
}
.movie-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.movie-card {
  min-width: 0;
  overflow: hidden;
  background: var(--card);
  border-radius: 18px;
  box-shadow: 0 5px 16px rgba(15, 23, 42, 0.08);
  transition: transform .25s ease, box-shadow .25s ease;
}
.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}
.card-link {
  display: block;
  height: 100%;
}
.poster-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0f172a;
}
.poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.movie-card:hover .poster-wrap img {
  transform: scale(1.08);
}
.poster-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.56), transparent 55%);
  opacity: .9;
}
.duration,
.rank-badge {
  position: absolute;
  z-index: 2;
  color: white;
  font-weight: 800;
}
.duration {
  right: 10px;
  bottom: 10px;
  padding: 5px 8px;
  border-radius: 7px;
  background: rgba(0,0,0,.72);
  font-size: 12px;
}
.rank-badge {
  left: 10px;
  top: 10px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--red);
}
.card-body {
  padding: 16px;
}
.card-body h3 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 17px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.movie-card:hover h3 {
  color: var(--blue);
}
.card-body p {
  margin: 0 0 12px;
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.meta-row span {
  padding: 5px 9px;
  color: #1d4ed8;
  background: #eff6ff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}
.category-section,
.ranking-preview {
  padding: 32px;
  margin-inline: -8px;
  border-radius: 28px;
  background: linear-gradient(120deg, #eff6ff, #f8fafc 58%, #e0f2fe);
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.category-card {
  display: grid;
  gap: 10px;
  min-height: 142px;
  padding: 22px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 5px 16px rgba(15,23,42,.06);
  transition: transform .25s ease, background .25s ease, color .25s ease;
}
.category-card span {
  font-size: 21px;
  font-weight: 900;
}
.category-card small {
  color: var(--muted);
  line-height: 1.65;
}
.category-card:hover {
  transform: translateY(-4px);
  color: white;
  background: var(--blue);
}
.category-card:hover small {
  color: #dbeafe;
}
.ranking-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.movie-card.compact .card-link {
  display: grid;
  grid-template-columns: 168px 1fr;
}
.movie-card.compact .poster-wrap {
  aspect-ratio: auto;
  min-height: 128px;
}
.movie-card.compact .card-body {
  display: grid;
  align-content: center;
}
.large-ranking {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.page-main {
  min-height: 70vh;
}
.page-hero {
  padding: 80px 0;
  color: white;
  background: radial-gradient(circle at 18% 20%, rgba(59,130,246,.45), transparent 35%), linear-gradient(135deg, #0f172a, #1e3a8a);
}
.page-hero h1 {
  margin: 16px 0 12px;
  color: white;
  font-size: clamp(34px, 5vw, 60px);
}
.page-hero p {
  max-width: 720px;
  margin: 0;
  color: #dbeafe;
  font-size: 18px;
}
.compact-hero {
  padding: 60px 0;
}
.filter-panel {
  display: grid;
  grid-template-columns: 1fr repeat(3, 170px);
  gap: 12px;
  padding: 18px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(15,23,42,.07);
}
.filter-panel input,
.filter-panel select {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  outline: none;
  background: #f8fafc;
  border-radius: 13px;
}
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.detail-main {
  padding: 30px 0 68px;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
  color: #64748b;
  font-size: 14px;
}
.breadcrumb a {
  color: var(--blue);
  font-weight: 800;
}
.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 0.95fr);
  gap: 24px;
  align-items: stretch;
}
.player-box {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  background: #000;
  border-radius: 22px;
  box-shadow: 0 22px 50px rgba(0,0,0,.24);
}
.video-player {
  width: 100%;
  height: 100%;
  min-height: 420px;
  display: block;
  object-fit: contain;
  background: #000;
}
.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 12px;
  border: 0;
  color: white;
  cursor: pointer;
  background: linear-gradient(0deg, rgba(0,0,0,.72), rgba(0,0,0,.18));
}
.play-overlay span {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--blue);
  font-size: 34px;
  box-shadow: 0 18px 38px rgba(37,99,235,.38);
}
.play-overlay strong {
  font-size: 20px;
}
.player-box.playing .play-overlay {
  display: none;
}
.detail-info {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  padding: 22px;
  background: white;
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.detail-poster {
  width: 120px;
  height: 176px;
  object-fit: cover;
  border-radius: 16px;
}
.detail-info h1 {
  margin: 14px 0 10px;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.15;
}
.detail-info p {
  margin: 0 0 14px;
}
.info-list {
  align-items: flex-start;
  margin: 0 0 14px;
}
.info-list span {
  padding: 7px 10px;
  color: #334155;
  background: #f1f5f9;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
}
.tag-cloud span {
  padding: 7px 11px;
  color: #1d4ed8;
  background: #dbeafe;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}
.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, .7fr);
  gap: 24px;
  margin-top: 26px;
}
.detail-article,
.side-panel {
  padding: 26px;
  background: white;
  border-radius: 22px;
  box-shadow: 0 6px 20px rgba(15,23,42,.07);
}
.detail-article h2 {
  margin-top: 0;
  font-size: 24px;
}
.detail-article p {
  margin: 0 0 24px;
  color: #374151;
  font-size: 17px;
}
.side-list {
  display: grid;
  gap: 14px;
}
.related-section {
  margin-top: 42px;
}
.site-footer {
  color: #cbd5e1;
  background: #0f172a;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr 1fr;
  gap: 36px;
  padding: 44px 0;
}
.site-footer h2,
.site-footer h3 {
  margin: 0 0 14px;
  color: white;
}
.site-footer p {
  color: #cbd5e1;
  margin: 0;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}
.footer-links a:hover {
  color: white;
}
.footer-bottom {
  padding: 16px;
  text-align: center;
  color: #94a3b8;
  border-top: 1px solid rgba(255,255,255,.08);
}
@media (max-width: 1024px) {
  .desktop-nav {
    display: none;
  }
  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }
  .movie-grid,
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .detail-hero,
  .detail-content {
    grid-template-columns: 1fr;
  }
  .filter-panel {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 760px) {
  .container {
    width: min(100% - 24px, 1180px);
  }
  .hero-slider {
    height: 640px;
  }
  .hero-content {
    bottom: 132px;
  }
  .hero-content p {
    font-size: 16px;
  }
  .hero-search {
    bottom: 68px;
  }
  .hero-arrow {
    display: none;
  }
  .movie-grid,
  .category-grid,
  .ranking-list,
  .large-ranking {
    grid-template-columns: 1fr;
  }
  .movie-card.compact .card-link {
    grid-template-columns: 128px 1fr;
  }
  .movie-card.compact .poster-wrap {
    min-height: 112px;
  }
  .category-section,
  .ranking-preview {
    padding: 22px;
  }
  .filter-panel {
    grid-template-columns: 1fr;
  }
  .detail-info {
    grid-template-columns: 1fr;
  }
  .detail-poster {
    width: 100%;
    height: 240px;
  }
  .player-box,
  .video-player {
    min-height: 260px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
