:root {
  --primary: #1e40af;
  --primary-strong: #1e3a8a;
  --secondary: #047857;
  --accent: #b45309;
  --bg: #f8fafc;
  --text: #111827;
  --muted: #6b7280;
  --card: #ffffff;
  --line: #e5e7eb;
  --shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
}

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.96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 8px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 8px 18px rgba(30, 64, 175, 0.28);
}

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

.brand-text strong {
  color: var(--primary);
  font-size: 20px;
}

.brand-text small {
  color: var(--muted);
  font-size: 12px;
}

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

.desktop-nav a {
  padding: 20px 0;
  border-bottom: 2px solid transparent;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

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

.header-search input,
.filter-grid input,
.filter-grid select {
  border: 1px solid #d1d5db;
  border-radius: 12px;
  padding: 10px 12px;
  outline: none;
  background: #ffffff;
}

.header-search input:focus,
.filter-grid input:focus,
.filter-grid select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.14);
}

.header-search button,
.primary-button,
.ghost-button,
.filter-grid button {
  border: 0;
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
}

.header-search button,
.primary-button {
  color: #ffffff;
  background: var(--primary);
}

.header-search button:hover,
.primary-button:hover {
  background: var(--primary-strong);
}

.ghost-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.22);
}

.menu-button {
  display: none;
  border: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #f3f4f6;
  font-size: 22px;
  cursor: pointer;
}

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

.mobile-menu.open {
  display: grid;
  gap: 12px;
}

.mobile-menu a {
  padding: 10px 12px;
  border-radius: 10px;
  background: #f9fafb;
  color: #374151;
  font-weight: 600;
}

.hero-section {
  background: radial-gradient(circle at 16% 0%, rgba(96, 165, 250, 0.48), transparent 32%), linear-gradient(135deg, #1e40af, #1e3a8a 45%, #047857);
  color: #ffffff;
  padding: 64px 16px 56px;
}

.hero-topline {
  width: min(1080px, 100%);
  margin: 0 auto 34px;
  text-align: center;
}

.hero-topline h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.08;
  font-weight: 900;
}

.hero-topline p {
  margin: 0 auto;
  max-width: 760px;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.8;
}

.hero-stage {
  position: relative;
  width: min(1180px, 100%);
  margin: 0 auto;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 500ms ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

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

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.36) 52%, rgba(0, 0, 0, 0.1)), linear-gradient(0deg, rgba(0, 0, 0, 0.7), transparent 48%);
}

.hero-content {
  position: absolute;
  left: clamp(24px, 7vw, 72px);
  bottom: clamp(24px, 8vw, 72px);
  max-width: 680px;
}

.hero-label,
.eyebrow {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 12px;
  color: #ffffff;
  background: rgba(37, 99, 235, 0.92);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero-content h2 {
  margin: 14px 0 12px;
  font-size: clamp(28px, 5vw, 46px);
  line-height: 1.08;
  font-weight: 900;
}

.hero-content p {
  max-width: 600px;
  margin: 0 0 16px;
  color: #e5e7eb;
  line-height: 1.75;
  font-size: 17px;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.tag-row span {
  color: var(--primary);
  background: #eff6ff;
}

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

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.45);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.68);
}

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

.hero-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.54);
  cursor: pointer;
  transition: width 250ms ease, background 250ms ease;
}

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

.hero-category-row {
  width: min(1180px, 100%);
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.nav-chip {
  display: inline-flex;
  padding: 9px 14px;
  border-radius: 999px;
  color: #eff6ff;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: 700;
}

.nav-chip:hover,
.nav-chip.active {
  color: #1e3a8a;
  background: #ffffff;
}

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

.band-section {
  background: linear-gradient(135deg, #ecfdf5, #eff6ff);
}

.band-section.warm {
  background: linear-gradient(135deg, #fffbeb, #ecfdf5);
}

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

.section-heading h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 4vw, 36px);
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.section-heading a {
  color: var(--primary);
  font-weight: 800;
  white-space: nowrap;
}

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

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

.movie-card,
.compact-card,
.wide-card,
.category-panel,
.overview-card,
.detail-card,
.side-card {
  background: var(--card);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.movie-card {
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.movie-card-link,
.wide-link,
.compact-link,
.overview-link {
  display: block;
}

.poster-frame,
.wide-poster,
.compact-poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #dbeafe, #d1fae5);
}

.poster-frame {
  aspect-ratio: 3 / 4;
}

.poster-frame img,
.wide-poster img,
.compact-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.movie-card:hover img,
.wide-card:hover img,
.compact-card:hover img {
  transform: scale(1.06);
}

.type-pill,
.rank-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  border-radius: 10px;
  padding: 5px 9px;
  color: #ffffff;
  background: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

.rank-badge {
  left: 10px;
  right: auto;
  background: var(--accent);
}

.movie-card-body {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.movie-card-body strong,
.compact-body strong,
.wide-body strong {
  color: #111827;
  font-weight: 850;
  line-height: 1.35;
}

.movie-card:hover strong,
.compact-card:hover strong,
.wide-card:hover strong {
  color: var(--primary);
}

.meta-line,
.card-desc,
.compact-body em,
.compact-body span,
.wide-body span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.card-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.compact-link {
  display: flex;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
}

.compact-card {
  box-shadow: none;
  border: 1px solid #eef2f7;
}

.compact-link:hover {
  background: #f9fafb;
}

.compact-poster {
  width: 102px;
  flex: 0 0 102px;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
}

.compact-body {
  min-width: 0;
  display: grid;
  gap: 6px;
  align-content: center;
}

.compact-body em {
  font-style: normal;
}

.wide-card {
  overflow: hidden;
}

.wide-link {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 18px;
  padding: 14px;
}

.wide-poster {
  aspect-ratio: 16 / 10;
  border-radius: 14px;
}

.wide-body {
  display: grid;
  gap: 10px;
  align-content: center;
}

.wide-body strong {
  font-size: 20px;
}

.wide-body .eyebrow {
  width: max-content;
  color: var(--primary);
  background: #eff6ff;
}

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

.category-panel,
.overview-card {
  padding: 22px;
}

.category-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.category-panel h3,
.overview-card h3,
.side-card h2 {
  margin: 0;
  font-size: 22px;
}

.category-panel-head a,
.overview-link {
  color: var(--primary);
  font-weight: 800;
}

.category-panel p,
.overview-desc {
  display: block;
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.7;
}

.mini-grid,
.overview-samples,
.side-list {
  display: grid;
  gap: 12px;
}

.overview-title {
  display: block;
  margin-bottom: 8px;
  font-size: 24px;
  font-weight: 900;
  color: var(--text);
}

.page-hero {
  color: #ffffff;
  background: radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.22), transparent 30%), linear-gradient(135deg, var(--primary), var(--secondary));
  padding: 74px 16px;
}

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

.page-hero h1 {
  max-width: 800px;
  margin: 16px 0 14px;
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.12;
  font-weight: 900;
}

.page-hero p {
  max-width: 780px;
  margin: 0;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.8;
}

.category-hero {
  background: linear-gradient(135deg, var(--primary), #92400e);
}

.rank-hero {
  background: linear-gradient(135deg, #92400e, var(--secondary));
}

.search-hero {
  background: linear-gradient(135deg, var(--primary), #0f766e);
}

.filter-box {
  margin-bottom: 26px;
  padding: 18px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.filter-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) repeat(3, 170px);
  gap: 12px;
}

.filter-empty {
  margin: 14px 0 0;
  color: var(--muted);
}

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

.breadcrumb-wrap {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

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

.breadcrumb a {
  color: var(--primary);
  font-weight: 700;
}

.detail-layout {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(310px, 1fr);
  gap: 28px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #000000;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.26);
}

.video-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  border: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.72));
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
}

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

.play-circle {
  width: 78px;
  height: 78px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 5px;
  background: rgba(255, 255, 255, 0.22);
  border: 2px solid rgba(255, 255, 255, 0.8);
  font-size: 34px;
}

.player-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent);
  opacity: 0;
  transition: opacity 200ms ease;
}

.player-shell:hover .player-controls,
.player-shell:focus-within .player-controls {
  opacity: 1;
}

.player-controls button {
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
  font-weight: 800;
}

.player-controls button:hover {
  background: rgba(255, 255, 255, 0.28);
}

.detail-card {
  margin-top: 22px;
  padding: 28px;
}

.detail-card h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.18;
}

.detail-card h2 {
  margin: 28px 0 12px;
  font-size: 22px;
}

.detail-card p {
  color: #374151;
  line-height: 1.9;
  font-size: 16px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.detail-meta span {
  border-radius: 999px;
  padding: 7px 11px;
  color: #374151;
  background: #f3f4f6;
  font-weight: 700;
  font-size: 13px;
}

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

.side-card {
  padding: 20px;
}

.poster-side img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 16px;
  background: linear-gradient(135deg, #dbeafe, #d1fae5);
  margin-bottom: 16px;
}

.primary-button.full {
  display: block;
  text-align: center;
}

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

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 28px;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: #ffffff;
  font-size: 20px;
}

.footer-main p {
  max-width: 520px;
  margin: 0;
  color: #9ca3af;
  line-height: 1.8;
}

.footer-main h3 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 16px;
}

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

.footer-main a:hover {
  color: #93c5fd;
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid #1f2937;
  color: #9ca3af;
  text-align: center;
  font-size: 14px;
}

[hidden] {
  display: none !important;
}

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

  .desktop-nav {
    gap: 14px;
  }

  .header-search input {
    width: 180px;
  }
}

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

  .menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .hero-stage {
    aspect-ratio: 4 / 5;
    border-radius: 22px;
  }

  .hero-content {
    left: 22px;
    right: 22px;
    bottom: 42px;
  }

  .hero-content p {
    font-size: 15px;
  }

  .hero-arrow {
    display: none;
  }

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

  .wide-grid,
  .category-grid,
  .overview-grid,
  .footer-main,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .wide-link {
    grid-template-columns: 128px 1fr;
  }

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

@media (max-width: 520px) {
  .header-inner,
  .mobile-menu,
  .content-section,
  .footer-inner,
  .detail-layout,
  .breadcrumb {
    width: min(100% - 22px, 1180px);
  }

  .brand-text small {
    display: none;
  }

  .hero-section,
  .page-hero {
    padding-left: 11px;
    padding-right: 11px;
  }

  .hero-topline h1 {
    font-size: 32px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .primary-button,
  .ghost-button {
    text-align: center;
  }

  .wide-link {
    grid-template-columns: 1fr;
  }

  .compact-poster {
    width: 92px;
    flex-basis: 92px;
  }

  .detail-card,
  .side-card,
  .category-panel,
  .overview-card {
    padding: 18px;
  }
}
