:root {
  --brand: #2563eb;
  --brand-deep: #1d4ed8;
  --accent: #06b6d4;
  --accent-soft: #cffafe;
  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --paper: #ffffff;
  --soft: #f8fafc;
  --soft-blue: #eff6ff;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 16px 35px rgba(15, 23, 42, 0.08);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, #f8fbff 0%, #f8fafc 48%, #eef6ff 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

img {
  display: block;
  width: 100%;
  height: auto;
}

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(226, 232, 240, 0.78);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.25);
}

.brand-name {
  font-size: 1.25rem;
  color: transparent;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link,
.mobile-link {
  color: #334155;
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--brand);
}

.nav-link:hover {
  transform: translateY(-1px);
}

.mobile-trigger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 14px;
  background: #f1f5f9;
}

.mobile-trigger span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
  border-radius: 999px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
}

.mobile-panel.open {
  display: block;
}

.mobile-nav {
  display: grid;
  gap: 12px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 22px;
}

.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 660px;
  padding: 86px 0 76px;
  background:
    radial-gradient(circle at 18% 20%, rgba(34, 211, 238, 0.42), transparent 28%),
    radial-gradient(circle at 84% 18%, rgba(59, 130, 246, 0.42), transparent 30%),
    linear-gradient(135deg, #1d4ed8 0%, #0891b2 48%, #312e81 100%);
}

.hero-section::after {
  position: absolute;
  inset: auto 0 0 0;
  height: 170px;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(248, 250, 252, 0.98));
}

.hero-glow {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  filter: blur(18px);
  opacity: 0.38;
}

.hero-glow-one {
  right: 7%;
  top: 7%;
  background: #67e8f9;
}

.hero-glow-two {
  left: -80px;
  bottom: 20px;
  background: #93c5fd;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.98fr);
  gap: 54px;
  align-items: center;
}

.hero-content {
  color: #ffffff;
}

.hero-eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: #0891b2;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-eyebrow {
  color: #cffafe;
}

.hero-content h1 {
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 5.7rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

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

.hero-lead {
  max-width: 680px;
  margin: 24px 0 0;
  color: #ecfeff;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 34px 0;
}

.primary-button,
.ghost-button,
.section-link,
.search-field button,
.hero-slide-copy a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: var(--brand);
  background: #ffffff;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.22);
}

.ghost-button {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.primary-button:hover,
.ghost-button:hover,
.section-link:hover,
.hero-slide-copy a:hover {
  transform: translateY(-2px) scale(1.02);
}

.search-panel {
  width: min(100%, 620px);
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(16px);
}

.page-hero .search-panel,
.category-hero .search-panel,
.ranking-hero .search-panel {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.72);
}

.search-label {
  display: block;
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.85rem;
  font-weight: 800;
}

.page-hero .search-label,
.category-hero .search-label,
.ranking-hero .search-label {
  color: var(--muted);
}

.search-field {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.search-field input {
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 14px 16px;
  color: var(--ink);
  background: #ffffff;
  border-radius: 16px;
}

.search-field button {
  min-height: 48px;
  color: #ffffff;
  border: 0;
  background: linear-gradient(135deg, var(--brand), var(--accent));
}

.hero-visual {
  position: relative;
}

.hero-slider {
  position: relative;
  min-height: 540px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.32);
  backdrop-filter: blur(22px);
}

.hero-slide {
  display: none;
  min-height: 512px;
  overflow: hidden;
  border-radius: 26px;
  background: rgba(15, 23, 42, 0.36);
}

.hero-slide.active {
  display: grid;
  animation: fadeUp 0.56s ease both;
}

.hero-poster {
  position: relative;
  min-height: 342px;
  overflow: hidden;
}

.hero-poster img {
  width: 100%;
  height: 342px;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.05);
}

.hero-poster::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 44%, rgba(15, 23, 42, 0.92));
}

.hero-year,
.poster-year,
.rank-badge {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  padding: 6px 10px;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 900;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.88);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.rank-badge {
  left: 14px;
  right: auto;
  background: linear-gradient(135deg, #f97316, #ef4444);
}

.hero-slide-copy {
  display: grid;
  gap: 14px;
  padding: 24px;
  color: #ffffff;
}

.hero-slide-copy p,
.movie-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.hero-slide-copy p {
  color: #bae6fd;
}

.hero-slide-copy h2 {
  margin: 0;
  color: #ffffff;
  font-size: 2rem;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.hero-slide-copy a {
  width: fit-content;
  color: #0f172a;
  background: #ffffff;
}

.hero-dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 18px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
}

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

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

.section-tint {
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.72), rgba(255, 255, 255, 0.72));
}

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

.split-heading h2,
.page-hero h1,
.detail-info-card h1,
.content-card h2,
.side-list h2,
.category-card h2 {
  margin: 0;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.split-heading h2,
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.section-link {
  min-height: 42px;
  color: var(--brand);
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

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

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

.category-chip,
.category-card {
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 22px;
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.category-chip:hover,
.category-card:hover,
.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow: var(--shadow);
}

.category-chip span,
.category-card h2 {
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 900;
}

.category-chip small,
.category-card span {
  color: var(--muted);
  font-size: 0.92rem;
}

.category-card-main {
  display: grid;
  gap: 10px;
}

.category-card-main p {
  margin: 0;
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.category-card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.category-card-links a {
  padding: 7px 10px;
  color: var(--brand);
  font-size: 0.86rem;
  font-weight: 800;
  border-radius: 999px;
  background: var(--soft-blue);
}

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

.ranking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

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

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

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

.movie-card-body {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.movie-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.32;
}

.movie-card h3 a:hover {
  color: var(--brand);
}

.movie-desc {
  margin: 0;
  color: #475569;
  font-size: 0.92rem;
}

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

.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  color: #0369a1;
  font-size: 0.78rem;
  font-weight: 800;
  border-radius: 999px;
  background: #e0f2fe;
}

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

.compact-card .movie-desc {
  font-size: 0.86rem;
}

.side-list {
  position: sticky;
  top: 96px;
  padding: 24px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.side-list h2 {
  font-size: 1.45rem;
}

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

.side-list a {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  color: var(--ink);
  font-weight: 800;
}

.side-list span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: #ffffff;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
}

.page-hero {
  padding: 72px 0 56px;
  background:
    radial-gradient(circle at 12% 20%, rgba(14, 165, 233, 0.16), transparent 26%),
    radial-gradient(circle at 86% 10%, rgba(37, 99, 235, 0.16), transparent 28%),
    #f8fbff;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.page-hero p {
  max-width: 720px;
  margin: 16px 0 26px;
  color: #475569;
  font-size: 1.08rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 18px;
  color: var(--muted);
  font-weight: 800;
}

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

.breadcrumb strong {
  color: var(--ink);
}

.detail-wrap {
  padding: 42px 0 26px;
  background:
    radial-gradient(circle at 10% 10%, rgba(14, 165, 233, 0.16), transparent 26%),
    linear-gradient(180deg, #f8fbff, #ffffff);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) 380px;
  gap: 28px;
  align-items: stretch;
}

.player-panel {
  position: relative;
  overflow: hidden;
  min-height: 470px;
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.32);
}

.player-panel video {
  width: 100%;
  height: 100%;
  min-height: 470px;
  object-fit: cover;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  gap: 14px;
  padding: 28px;
  color: #ffffff;
  border: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.82));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay span:last-child {
  max-width: 82%;
  font-size: clamp(1.1rem, 2.8vw, 2rem);
  font-weight: 900;
  text-align: center;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
}

.play-circle {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  padding-left: 5px;
  color: var(--brand);
  font-size: 2.1rem;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.32);
}

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

.detail-info-card {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 18px;
  align-content: start;
  padding: 20px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.detail-info-card img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 18px;
}

.detail-info-card h1 {
  margin: 8px 0 10px;
  font-size: clamp(1.8rem, 3vw, 2.65rem);
}

.detail-info-card p {
  margin: 0 0 14px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
}

.content-card {
  padding: 28px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.content-card h2 {
  margin-bottom: 16px;
  font-size: 1.55rem;
}

.content-card p {
  margin: 0;
  color: #334155;
  font-size: 1.03rem;
}

.meta-card {
  grid-column: 1 / -1;
}

.meta-card dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 18px;
}

.meta-card div {
  padding: 14px;
  border-radius: 16px;
  background: var(--soft);
}

.meta-card dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.meta-card dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-weight: 900;
}

.site-footer {
  padding-top: 54px;
  color: #cbd5e1;
  background: #0f172a;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(180px, 0.5fr));
  gap: 34px;
}

.footer-brand p {
  max-width: 460px;
  margin: 18px 0 0;
  color: #94a3b8;
}

.footer-logo .brand-name {
  color: #ffffff;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}

.footer-block {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-block h2 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 1rem;
}

.footer-block a:hover {
  color: #ffffff;
}

.footer-bottom {
  margin-top: 42px;
  padding: 18px;
  color: #94a3b8;
  text-align: center;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.footer-bottom p {
  margin: 0;
}

[data-searchable].is-hidden {
  display: none;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

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

  .side-list {
    position: static;
  }
}

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

  .mobile-trigger {
    display: block;
  }

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

  .hero-section {
    min-height: auto;
    padding: 66px 0;
  }

  .hero-slider,
  .hero-slide {
    min-height: auto;
  }

  .category-page-grid,
  .detail-grid,
  .meta-card dl {
    grid-template-columns: 1fr;
  }

  .detail-info-card {
    grid-template-columns: 100px 1fr;
  }
}

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

  .nav-wrap {
    min-height: 64px;
  }

  .hero-content h1 {
    font-size: 2.72rem;
  }

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

  .search-field {
    grid-template-columns: 1fr;
  }

  .category-grid,
  .movie-grid,
  .ranking-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .hero-poster img {
    height: 286px;
  }

  .hero-slide-copy h2 {
    font-size: 1.62rem;
  }

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

  .detail-layout {
    gap: 18px;
  }

  .player-panel,
  .player-panel video {
    min-height: 270px;
  }

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

  .detail-info-card img {
    max-width: 190px;
  }

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