:root {
  --bg: #f5f7fb;
  --bg-soft: #eef3fb;
  --panel: #ffffff;
  --panel-dark: #101827;
  --text: #142033;
  --muted: #64748b;
  --muted-light: #cbd5e1;
  --brand: #2563eb;
  --brand-2: #38bdf8;
  --accent: #f97316;
  --border: rgba(148, 163, 184, 0.24);
  --shadow: 0 22px 55px rgba(15, 23, 42, 0.16);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #fff;
  background: rgba(15, 23, 42, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
}

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

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #fff;
  font-size: 13px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.45);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.top-search {
  display: flex;
  align-items: center;
  width: 300px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.top-search input {
  min-width: 0;
  flex: 1;
  color: #fff;
  background: transparent;
  border: 0;
  outline: none;
  padding: 8px 12px;
}

.top-search input::placeholder {
  color: rgba(255, 255, 255, 0.58);
}

.top-search button,
.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 750;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.top-search button,
.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 15px 35px rgba(37, 99, 235, 0.28);
}

.top-search button {
  padding: 8px 15px;
}

.primary-btn {
  padding: 13px 24px;
}

.ghost-btn {
  color: #fff;
  padding: 12px 22px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.ghost-btn.dark {
  color: var(--text);
  background: #eef4ff;
  border-color: #dbeafe;
}

.primary-btn:hover,
.ghost-btn:hover,
.top-search button:hover {
  transform: translateY(-2px);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #fff;
  border-radius: 999px;
}

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

.mobile-nav.is-open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mobile-link {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.28), transparent 28%), linear-gradient(135deg, #0f172a 0%, #1e3a8a 52%, #111827 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.24;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.24) 1px, transparent 0);
  background-size: 42px 42px;
}

.hero-shell {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  padding: 74px 0 54px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.06fr) minmax(310px, 0.54fr);
  align-items: center;
  gap: 54px;
}

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

.hero-kicker,
.eyebrow {
  margin: 0 0 12px;
  color: var(--brand-2);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 850px;
  margin: 0 0 20px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.hero-desc {
  max-width: 720px;
  margin: 0 0 24px;
  color: #dbeafe;
  font-size: clamp(17px, 2.2vw, 22px);
}

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

.hero-tags span,
.detail-meta span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 34px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.42);
  transform: rotate(2deg);
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(2, 6, 23, 0.7));
}

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

.hero-poster:hover img {
  transform: scale(1.08);
}

.hero-play,
.play-hover,
.play-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-play {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: #fff;
  background: rgba(37, 99, 235, 0.95);
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.5);
}

.hero-dots {
  display: flex;
  gap: 10px;
  margin-top: 36px;
}

.hero-dot {
  width: 38px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.28);
}

.hero-dot.is-active {
  background: var(--brand-2);
}

.feature-strip,
.content-section,
.detail-layout,
.breadcrumb {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: -36px;
  position: relative;
  z-index: 3;
}

.feature-item,
.movie-card,
.search-panel,
.category-tile,
.category-card-large,
.detail-side,
.detail-block,
.filter-bar {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

.feature-item {
  padding: 22px;
  border-radius: 20px;
}

.feature-item strong,
.feature-item span {
  display: block;
}

.feature-item span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.content-section {
  padding: 76px 0;
}

.muted-section {
  width: 100%;
  max-width: none;
  padding-inline: max(16px, calc((100% - 1180px) / 2));
  background: linear-gradient(180deg, #f8fbff, #edf4ff);
}

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

.section-head h2,
.inner-hero h1,
.search-panel h2,
.detail-copy h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  font-weight: 800;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

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

.poster {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #1f2937, #0f172a);
}

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

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

.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(2, 6, 23, 0.74));
  opacity: 0.78;
}

.year-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
}

.year-badge {
  right: 12px;
}

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

.play-hover {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: #fff;
  background: rgba(37, 99, 235, 0.92);
  box-shadow: 0 18px 38px rgba(37, 99, 235, 0.42);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.88);
  transition: 0.24s ease;
}

.movie-card:hover .play-hover {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.movie-info {
  padding: 17px 17px 19px;
}

.meta-line {
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
}

.movie-info h3 {
  margin: 7px 0 8px;
  font-size: 18px;
  line-height: 1.3;
}

.movie-info p {
  min-height: 44px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row span {
  color: var(--muted);
  background: #f1f5f9;
  border-color: #e2e8f0;
}

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

.category-tile,
.category-card-large {
  border-radius: var(--radius);
  padding: 24px;
}

.category-tile {
  min-height: 168px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  background: linear-gradient(135deg, #172554, #1d4ed8 55%, #0f172a);
  overflow: hidden;
  position: relative;
}

.category-tile::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -46px;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

.category-tile span {
  position: relative;
  z-index: 1;
  font-size: 24px;
  font-weight: 900;
}

.category-tile p {
  position: relative;
  z-index: 1;
  margin: 10px 0 0;
  color: #dbeafe;
  font-size: 14px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
}

.search-panel {
  position: sticky;
  top: 92px;
  align-self: start;
  border-radius: var(--radius);
  padding: 28px;
  color: #fff;
  background: linear-gradient(155deg, #0f172a, #1e3a8a);
}

.search-panel h2 {
  color: #fff;
}

.search-panel form {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.search-panel input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--border);
  border-radius: 14px;
  outline: none;
  padding: 10px 14px;
  background: #fff;
}

.inner-hero {
  padding: 78px max(16px, calc((100% - 1180px) / 2));
  color: #fff;
  background: radial-gradient(circle at 18% 10%, rgba(56, 189, 248, 0.3), transparent 30%), linear-gradient(135deg, #0f172a, #1e3a8a);
}

.inner-hero h1,
.inner-hero p:not(.eyebrow) {
  color: #fff;
  max-width: 800px;
}

.inner-hero p:not(.eyebrow) {
  margin: 16px 0 0;
  color: #dbeafe;
  font-size: 18px;
}

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

.category-card-large {
  display: grid;
  gap: 20px;
}

.category-card-large h2 {
  margin: 0 0 10px;
  font-size: 28px;
}

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

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

.category-mini-links a {
  color: var(--brand);
  font-weight: 700;
}

.filter-bar {
  width: min(1180px, calc(100% - 32px));
  margin: -28px auto 0;
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.9fr;
  gap: 16px;
  padding: 18px;
  border-radius: 22px;
}

.filter-bar.wide {
  grid-template-columns: 1.4fr 0.7fr 0.7fr;
}

.filter-bar label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.empty-state {
  text-align: center;
  padding: 32px;
  color: var(--muted);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 24px 0 0;
  color: var(--muted);
  font-size: 14px;
}

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

.detail-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto 0;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  color: #fff;
  padding: 34px;
  border-radius: 34px;
  background: radial-gradient(circle at 10% 20%, rgba(56, 189, 248, 0.28), transparent 28%), linear-gradient(135deg, #0f172a, #1e3a8a 58%, #111827);
  box-shadow: var(--shadow);
}

.detail-poster {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 26px;
  background: #111827;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.35);
}

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

.detail-copy h1 {
  color: #fff;
  font-size: clamp(38px, 6vw, 64px);
}

.detail-one-line {
  max-width: 760px;
  color: #dbeafe;
  font-size: 20px;
}

.tag-row.large span {
  color: #e0f2fe;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.16);
}

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

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #020617;
  aspect-ratio: 16 / 9;
  box-shadow: 0 28px 75px rgba(15, 23, 42, 0.28);
}

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

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #fff;
  border: 0;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.72));
}

.video-overlay.is-hidden {
  display: none;
}

.play-circle {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 24px 55px rgba(37, 99, 235, 0.48);
}

.player-message {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  color: #fff;
  background: rgba(15, 23, 42, 0.8);
  border-radius: 14px;
  padding: 12px 14px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  padding: 34px 0 0;
}

.detail-main {
  display: grid;
  gap: 22px;
}

.detail-block,
.detail-side {
  border-radius: var(--radius);
  padding: 28px;
}

.detail-block h2,
.detail-side h2 {
  margin: 0 0 16px;
  font-size: 26px;
}

.detail-block p {
  color: #334155;
  font-size: 17px;
}

.detail-side dl {
  margin: 0;
  display: grid;
  gap: 12px;
}

.detail-side dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.detail-side dd {
  margin: 0 0 6px;
  font-weight: 700;
}

.detail-side a {
  color: var(--brand);
}

.related-section {
  padding-top: 56px;
}

.site-footer {
  margin-top: 44px;
  color: #cbd5e1;
  background: linear-gradient(180deg, #111827, #020617);
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
}

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

.site-footer p {
  margin: 12px 0 0;
  color: #94a3b8;
}

.site-footer a:not(.footer-logo) {
  display: block;
  margin: 8px 0;
  color: #cbd5e1;
}

.site-footer a:hover {
  color: #fff;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .top-search {
    display: none;
  }

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

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

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

  .search-panel {
    position: static;
  }
}

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

  .menu-button {
    display: block;
    margin-left: auto;
  }

  .hero-slide,
  .detail-hero {
    grid-template-columns: 1fr;
  }

  .hero-shell {
    min-height: auto;
    padding: 54px 0 42px;
  }

  .hero-poster {
    max-width: 330px;
    transform: none;
  }

  .feature-strip,
  .movie-grid,
  .slim-grid,
  .category-grid,
  .category-overview-grid,
  .filter-bar,
  .filter-bar.wide,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .detail-hero {
    padding: 22px;
  }

  .detail-poster {
    max-width: 280px;
  }
}

@media (max-width: 560px) {
  .nav-wrap {
    min-height: 64px;
  }

  .logo {
    font-size: 18px;
  }

  .mobile-nav.is-open,
  .feature-strip,
  .movie-grid,
  .slim-grid,
  .category-grid,
  .category-overview-grid,
  .filter-bar,
  .filter-bar.wide,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 38px;
  }

  .content-section {
    padding: 52px 0;
  }

  .muted-section {
    padding-inline: 16px;
  }

  .detail-copy h1 {
    font-size: 34px;
  }

  .detail-one-line {
    font-size: 17px;
  }

  .video-shell {
    border-radius: 20px;
  }
}
