:root {
  --primary-50: #eff6ff;
  --primary-100: #dbeafe;
  --primary-400: #60a5fa;
  --primary-500: #3b82f6;
  --primary-600: #1e40af;
  --primary-700: #1d4ed8;
  --primary-900: #1e3a8a;
  --secondary-50: #f0fdf4;
  --secondary-600: #065f46;
  --accent-50: #fffbeb;
  --accent-600: #92400e;
  --dark: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

* {
  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: #f9fafb;
  line-height: 1.65;
}

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

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

.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 var(--line);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 18px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
  box-shadow: 0 10px 24px rgba(30, 64, 175, 0.24);
  font-size: 15px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong,
.footer-brand strong {
  color: var(--primary-600);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-text em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  margin-top: 4px;
}

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

.desktop-nav a:hover,
.mobile-panel a:hover,
.footer-grid a:hover {
  color: var(--primary-600);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.filter-panel input,
.filter-panel select,
.hero-search input {
  min-width: 0;
  border: 1px solid #d1d5db;
  border-radius: 13px;
  background: #fff;
  padding: 11px 13px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.header-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus,
.hero-search input:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.14);
}

.header-search button,
.hero-search button,
.btn,
.player-btn {
  border: 0;
  border-radius: 13px;
  color: #fff;
  background: var(--primary-600);
  padding: 11px 16px;
  font-weight: 750;
  cursor: pointer;
  transition: transform .2s, background .2s, box-shadow .2s;
  box-shadow: 0 10px 24px rgba(30, 64, 175, 0.2);
}

.header-search button:hover,
.hero-search button:hover,
.btn:hover,
.player-btn:hover {
  background: var(--primary-700);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  border: 0;
  border-radius: 12px;
  background: #f3f4f6;
  padding: 10px 12px;
  color: #374151;
  font-size: 20px;
}

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

.mobile-panel.is-open {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(circle at top left, rgba(96, 165, 250, .36), transparent 38%), linear-gradient(135deg, #1e40af 0%, #1e3a8a 48%, #065f46 100%);
}

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

.hero::before {
  right: -120px;
  top: -120px;
  width: 360px;
  height: 360px;
  background: rgba(255, 255, 255, .18);
}

.hero::after {
  left: -90px;
  bottom: -150px;
  width: 300px;
  height: 300px;
  background: rgba(6, 95, 70, .35);
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 70px 0 58px;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #bfdbfe;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 13px;
}

.hero-copy {
  max-width: 850px;
  text-align: center;
  margin: 0 auto 34px;
}

.hero-copy h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero-copy p {
  margin: 0 auto;
  max-width: 760px;
  color: #dbeafe;
  font-size: clamp(16px, 2vw, 21px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
}

.btn-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  padding: 13px 20px;
  color: var(--primary-600);
  background: #fff;
  font-weight: 850;
  box-shadow: 0 18px 36px rgba(0, 0, 0, .16);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 14px;
  padding: 13px 20px;
  color: #fff;
  background: rgba(255, 255, 255, .12);
  font-weight: 850;
  backdrop-filter: blur(8px);
}

.hero-search {
  display: flex;
  max-width: 620px;
  margin: 26px auto 0;
  gap: 10px;
}

.hero-search input {
  flex: 1;
  min-height: 48px;
}

.hero-slider {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: rgba(15, 23, 42, .58);
  box-shadow: 0 36px 80px rgba(15, 23, 42, .36);
}

.hero-slide {
  display: none;
  position: relative;
  min-height: 460px;
  overflow: hidden;
}

.hero-slide.is-active {
  display: block;
}

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

.hero-slide.no-cover {
  background: linear-gradient(135deg, rgba(30, 64, 175, .95), rgba(6, 95, 70, .95));
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .76), rgba(0, 0, 0, .32), rgba(0, 0, 0, .1)), linear-gradient(0deg, rgba(0, 0, 0, .72), transparent 52%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  max-width: 690px;
  min-height: 460px;
  padding: 48px;
}

.hero-content h2 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-content p {
  margin: 0 0 24px;
  color: #e5e7eb;
  font-size: 18px;
}

.hero-tag {
  width: fit-content;
  margin-bottom: 14px;
  border-radius: 999px;
  background: var(--primary-500);
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 850;
}

.slider-control {
  position: absolute;
  z-index: 3;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, .48);
  cursor: pointer;
}

.slider-control:hover {
  background: rgba(0, 0, 0, .72);
}

.slider-control.prev {
  left: 18px;
}

.slider-control.next {
  right: 18px;
}

.slider-dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 4;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.slider-dot {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .5);
  cursor: pointer;
  transition: width .2s, background .2s;
}

.slider-dot.is-active {
  width: 30px;
  background: #fff;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.stat-card {
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 20px;
  background: rgba(255, 255, 255, .12);
  padding: 18px;
  backdrop-filter: blur(10px);
}

.stat-card strong {
  display: block;
  color: #fff;
  font-size: 26px;
}

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

.section-block {
  padding: 54px 0;
}

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

.section-head h1,
.section-head h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

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

.section-more {
  color: var(--primary-600);
  font-weight: 850;
  white-space: nowrap;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, .9);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(59, 130, 246, .35);
  box-shadow: var(--shadow);
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
}

.poster .cover-img,
.compact-poster .cover-img,
.detail-poster .cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}

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

.poster-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, .82);
  padding: 16px;
  text-align: center;
  font-weight: 900;
  letter-spacing: .08em;
}

.cover-img + .poster-fallback {
  display: none;
}

.no-cover .poster-fallback {
  display: grid;
}

.play-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(30, 64, 175, .9);
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 850;
  backdrop-filter: blur(8px);
}

.card-body {
  padding: 15px;
}

.card-body h3 {
  margin: 0 0 7px;
  font-size: 16px;
  line-height: 1.35;
}

.card-body h3 a:hover {
  color: var(--primary-600);
}

.meta-line {
  margin: 0 0 9px;
  color: var(--muted);
  font-size: 13px;
}

.one-line {
  display: -webkit-box;
  min-height: 42px;
  margin: 0 0 12px;
  overflow: hidden;
  color: #4b5563;
  font-size: 13px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.tag-row span,
.info-chip,
.rank-badge {
  border-radius: 999px;
  background: var(--primary-50);
  color: var(--primary-600);
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 750;
}

.category-band {
  background: linear-gradient(135deg, var(--secondary-50), var(--primary-50));
}

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

.category-card {
  display: flex;
  flex-direction: column;
  min-height: 170px;
  border: 1px solid rgba(229, 231, 235, .86);
  border-radius: 24px;
  background: #fff;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
}

.category-card strong {
  font-size: 22px;
  color: #111827;
}

.category-card span {
  color: var(--muted);
  margin-top: 8px;
}

.category-card em {
  margin-top: auto;
  color: var(--primary-600);
  font-style: normal;
  font-weight: 850;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, minmax(120px, .45fr));
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
}

.page-hero {
  padding: 52px 0 28px;
  background: linear-gradient(135deg, #fff, var(--primary-50));
}

.breadcrumb {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 18px;
}

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

.result-count {
  color: var(--muted);
  font-weight: 700;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 58px 86px 1fr auto;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  padding: 14px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .05);
}

.rank-no {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
  font-weight: 900;
}

.rank-poster {
  position: relative;
  height: 112px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
}

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

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

.rank-info p {
  margin: 0;
  color: var(--muted);
}

.detail-hero {
  color: #fff;
  background: linear-gradient(135deg, #111827, #1e3a8a 58%, #065f46);
}

.detail-wrap {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 34px;
  padding: 58px 0;
}

.detail-poster {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
  box-shadow: 0 26px 60px rgba(0, 0, 0, .32);
}

.detail-copy h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.detail-copy .detail-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.detail-copy p {
  max-width: 850px;
  color: #e5e7eb;
  font-size: 18px;
}

.player-section {
  padding: 48px 0 20px;
}

.player-box {
  overflow: hidden;
  border-radius: 28px;
  background: #0b1120;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .22);
}

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

.player-stage video {
  width: 100%;
  height: 100%;
  background: #020617;
}

.player-mask {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(30, 64, 175, .24), rgba(2, 6, 23, .9));
}

.player-box.is-playing .player-mask {
  display: none;
}

.player-card {
  width: min(520px, calc(100% - 32px));
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 24px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  padding: 28px;
  text-align: center;
  backdrop-filter: blur(16px);
}

.player-card h2 {
  margin: 0 0 8px;
  font-size: 26px;
}

.player-card p {
  color: #d1d5db;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 30px;
  padding: 34px 0 58px;
}

.article-panel,
.side-panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  padding: 26px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .05);
}

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

.article-panel p {
  margin: 0 0 18px;
  color: #374151;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: center;
}

.compact-poster {
  position: relative;
  height: 82px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
}

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

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

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

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

.footer-brand p,
.footer-grid li,
.footer-bottom {
  color: #9ca3af;
}

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

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid li + li {
  margin-top: 8px;
}

.footer-bottom {
  border-top: 1px solid #1f2937;
  padding: 18px 0;
  text-align: center;
  font-size: 14px;
}

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

@media (max-width: 1120px) {
  .movie-grid {
    grid-template-columns: repeat(4, 1fr);
  }

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

  .desktop-nav {
    gap: 14px;
  }
}

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

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

  .hero-slide,
  .hero-content {
    min-height: 390px;
  }

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

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

  .detail-wrap,
  .content-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    width: min(280px, 100%);
  }

  .ranking-item {
    grid-template-columns: 44px 70px 1fr;
  }

  .ranking-item .rank-badge {
    grid-column: 3;
    width: fit-content;
  }
}

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

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

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

  .hero-content {
    padding: 28px;
  }

  .slider-control {
    display: none;
  }

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

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

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

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

  .ranking-item {
    grid-template-columns: 38px 62px 1fr;
    gap: 10px;
  }

  .rank-poster {
    height: 92px;
  }

  .mobile-panel.is-open {
    grid-template-columns: 1fr;
  }
}
