:root {
  --blue: #2563eb;
  --cyan: #06b6d4;
  --dark: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --white: #ffffff;
  --orange: #f97316;
  --green: #10b981;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #111827;
  background: var(--bg);
  line-height: 1.6;
}

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.92);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  backdrop-filter: blur(18px);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: white;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.28);
}

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

.brand-text strong {
  font-size: 20px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  color: transparent;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-link,
.mobile-link {
  padding: 10px 14px;
  border-radius: 12px;
  color: #334155;
  font-weight: 700;
  transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: var(--blue);
  background: #eff6ff;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 0;
  background: #eff6ff;
  border-radius: 12px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--blue);
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  padding: 10px 16px 16px;
  background: white;
}

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

.hero-slider {
  position: relative;
  min-height: 620px;
  color: white;
  background: var(--dark);
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  align-items: center;
  gap: 48px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  left: 0;
  right: 0;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.hero-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-size: cover;
  background-position: center;
  filter: saturate(1.08);
}

.hero-slider::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 160px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0), var(--bg));
  pointer-events: none;
}

.hero-content {
  max-width: 720px;
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #cffafe;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--blue);
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
  margin: 16px 0;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.05;
}

.hero-content p,
.page-hero p,
.lead-text {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 700;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 13px;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn.primary {
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.25);
}

.btn.ghost {
  color: white;
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
}

.btn.outline {
  color: var(--blue);
  border-color: #bfdbfe;
  background: #eff6ff;
}

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

.hero-poster {
  position: relative;
  z-index: 2;
  width: min(360px, 88vw);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.38);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: rgba(255, 255, 255, 0.16);
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.hero-arrow.prev {
  left: 22px;
}

.hero-arrow.next {
  right: 22px;
}

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

.hero-dots button {
  width: 28px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
  cursor: pointer;
}

.hero-dots button.is-active {
  background: white;
}

.search-band {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 430px);
  gap: 28px;
  align-items: center;
  margin-top: -36px;
  padding: 28px;
  border-radius: 24px;
  background: white;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 8;
}

.search-band h2,
.section-heading h2,
.filter-panel h2,
.content-card h2 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(24px, 4vw, 34px);
}

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

.home-search,
.filter-top {
  display: flex;
  gap: 10px;
}

input[type="search"] {
  width: 100%;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  font: inherit;
  background: #f8fafc;
}

input[type="search"]:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.14);
}

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

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

.section-heading a {
  color: var(--blue);
  font-weight: 800;
}

.compact-heading {
  align-items: center;
}

.section-kicker {
  display: inline-block;
  width: 5px;
  height: 30px;
  margin-right: 10px;
  border-radius: 999px;
  vertical-align: middle;
  background: linear-gradient(180deg, var(--blue), var(--cyan));
}

.section-kicker.cyan {
  background: linear-gradient(180deg, var(--cyan), var(--blue));
}

.section-kicker.orange {
  background: linear-gradient(180deg, #ef4444, var(--orange));
}

.section-kicker.green {
  background: linear-gradient(180deg, var(--green), var(--cyan));
}

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

.category-tile {
  position: relative;
  min-height: 190px;
  padding: 18px;
  border-radius: 22px;
  color: white;
  background: #0f172a;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.12);
  transition: all 0.2s ease;
}

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

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
}

.category-tile span,
.category-tile strong,
.category-tile p {
  position: relative;
  z-index: 1;
}

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

.category-tile strong {
  display: inline-flex;
  margin: 10px 0;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

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

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

.movie-card {
  background: white;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  transition: all 0.2s ease;
}

.movie-card.is-hidden,
.rank-item.is-hidden {
  display: none;
}

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  background: #dbeafe;
}

.poster-wrap img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.card-badge,
.card-year {
  position: absolute;
  top: 10px;
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  color: white;
  font-size: 12px;
  font-weight: 900;
  background: rgba(37, 99, 235, 0.9);
}

.card-badge {
  left: 10px;
}

.card-year {
  right: 10px;
  background: rgba(15, 23, 42, 0.72);
}

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

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

.movie-card h3 a:hover,
.rank-content h3 a:hover,
.category-overview-card h2 a:hover {
  color: var(--blue);
}

.card-meta,
.card-summary {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.card-summary {
  margin-top: 8px;
  min-height: 42px;
}

.tag-row {
  margin-top: 12px;
}

.tag-row span {
  min-height: 23px;
  color: #2563eb;
  background: #eff6ff;
  font-size: 12px;
}

.rank-split {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 28px;
}

.rank-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rank-item {
  display: grid;
  grid-template-columns: 46px 68px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
}

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

.rank-cover img {
  width: 68px;
  height: 88px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-content h3 {
  margin: 0 0 4px;
  font-size: 17px;
}

.rank-content p,
.rank-content span {
  display: block;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.rank-action {
  padding: 8px 12px;
  border-radius: 12px;
  color: var(--blue);
  background: #eff6ff;
  font-weight: 800;
}

.spotlight-panel {
  position: sticky;
  top: 88px;
  align-self: start;
  padding: 24px;
  border-radius: 24px;
  color: white;
  background: linear-gradient(135deg, #0f172a, #1e3a8a 60%, #0891b2);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.spotlight-panel h2 {
  margin: 12px 0;
  font-size: 32px;
}

.spotlight-panel p {
  color: rgba(255, 255, 255, 0.78);
}

.spotlight-panel img {
  width: 100%;
  margin-top: 20px;
  border-radius: 18px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.page-hero {
  color: white;
  background: linear-gradient(135deg, #1d4ed8, #0891b2);
  padding: 72px 0;
}

.page-hero.simple-hero {
  background: linear-gradient(135deg, #0f172a, #1d4ed8 58%, #06b6d4);
}

.category-hero {
  background: radial-gradient(circle at top right, rgba(255,255,255,.22), transparent 28%), linear-gradient(135deg, #1e3a8a, #0891b2);
}

.category-overview-list {
  display: grid;
  gap: 18px;
  padding-top: 48px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: white;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
  transition: all 0.2s ease;
}

.category-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  overflow: hidden;
  border-radius: 16px;
}

.category-preview img {
  width: 100%;
  height: 130px;
  object-fit: cover;
}

.category-overview-card h2 {
  margin: 0 0 6px;
}

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

.filter-panel {
  margin-top: 32px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: white;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.sticky-filter {
  position: sticky;
  top: 86px;
  z-index: 20;
}

.filter-top {
  align-items: center;
  margin-bottom: 14px;
}

.filter-top span {
  white-space: nowrap;
  color: var(--blue);
  font-weight: 900;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.filter-button {
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  color: #1d4ed8;
  background: #eff6ff;
  font-weight: 800;
  cursor: pointer;
}

.filter-button.is-active,
.filter-button:hover {
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 26px 0 0;
  color: var(--muted);
  font-size: 14px;
}

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

.detail-hero {
  display: grid;
  grid-template-columns: minmax(230px, 320px) 1fr;
  gap: 34px;
  align-items: center;
  padding-top: 34px;
}

.detail-poster img {
  width: 100%;
  border-radius: 26px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.detail-info {
  padding: 28px;
  border-radius: 28px;
  background: white;
  box-shadow: var(--shadow);
}

.detail-info h1 {
  color: #0f172a;
}

.lead-text {
  color: #334155;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}

.detail-meta-grid span {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  border-radius: 16px;
  color: #334155;
  background: #f8fafc;
}

.detail-meta-grid strong {
  color: #0f172a;
}

.detail-tags span {
  color: #1d4ed8;
  background: #eff6ff;
}

.player-section {
  padding-top: 50px;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #020617;
  box-shadow: var(--shadow);
}

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

.player-start {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  display: grid;
  place-items: center;
  gap: 8px;
  width: 150px;
  height: 150px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, rgba(37,99,235,.95), rgba(6,182,212,.95));
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.34);
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: all 0.2s ease;
}

.player-start span {
  font-size: 42px;
  line-height: 1;
}

.player-start:hover {
  transform: translate(-50%, -50%) scale(1.05);
}

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

.player-status {
  position: absolute;
  left: 18px;
  bottom: 14px;
  z-index: 4;
  margin: 0;
  padding: 6px 10px;
  border-radius: 999px;
  color: white;
  background: rgba(15, 23, 42, 0.72);
  font-size: 13px;
}

.content-card {
  margin-top: 34px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: white;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.movie-article p {
  color: #334155;
  font-size: 17px;
}

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

.site-footer {
  margin-top: 70px;
  color: white;
  background: linear-gradient(135deg, #0f172a, #1e293b);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr 1fr;
  gap: 36px;
  padding: 46px 0;
}

.footer-brand {
  margin-bottom: 12px;
}

.site-footer p,
.footer-bottom {
  color: #94a3b8;
}

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

.footer-links a {
  color: #cbd5e1;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  font-size: 14px;
}

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

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

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

  .menu-toggle {
    display: block;
  }

  .hero-slider {
    min-height: 760px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 52px 0 86px;
  }

  .hero-poster {
    width: min(280px, 72vw);
  }

  .hero-arrow {
    display: none;
  }

  .search-band,
  .rank-split,
  .detail-hero,
  .footer-grid,
  .category-overview-card {
    grid-template-columns: 1fr;
  }

  .home-search,
  .filter-top {
    flex-direction: column;
    align-items: stretch;
  }

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

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

  .rank-item {
    grid-template-columns: 40px 58px 1fr;
  }

  .rank-action {
    grid-column: 2 / -1;
    text-align: center;
  }

  .detail-meta-grid {
    grid-template-columns: 1fr;
  }
}

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

  .brand-text strong {
    font-size: 17px;
  }

  .brand-text small {
    display: none;
  }

  .hero-slider {
    min-height: 700px;
  }

  .hero-content h1,
  .page-hero h1,
  .detail-info h1 {
    font-size: 34px;
  }

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

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

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

  .card-summary {
    display: none;
  }

  .player-start {
    width: 112px;
    height: 112px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
