:root {
  --bg: #f7fbff;
  --panel: #ffffff;
  --panel-soft: rgba(255, 255, 255, 0.78);
  --text: #0f172a;
  --muted: #64748b;
  --line: rgba(148, 163, 184, 0.28);
  --primary: #0284c7;
  --primary-dark: #0369a1;
  --accent: #2563eb;
  --cyan: #06b6d4;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.16), transparent 35%),
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.14), transparent 30%),
    var(--bg);
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

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

.brand-name {
  font-size: 20px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.82);
}

.nav-link {
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--muted);
  transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.header-search {
  padding: 10px 16px;
  border-radius: 999px;
  color: #ffffff;
  background: #0f172a;
  font-size: 14px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
}

.hero-shell {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 620px;
  margin: 34px auto 0;
  overflow: hidden;
  border-radius: 36px;
  background: linear-gradient(135deg, #e0f2fe 0%, #eff6ff 42%, #dbeafe 100%);
  box-shadow: var(--shadow);
}

.hero-background {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(56, 189, 248, 0.45), transparent 32%),
    radial-gradient(circle at 80% 18%, rgba(37, 99, 235, 0.34), transparent 30%),
    linear-gradient(135deg, rgba(255,255,255,0.3), rgba(14, 165, 233, 0.12));
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  align-items: center;
  gap: 42px;
  padding: 68px;
  opacity: 0;
  transform: translateX(24px);
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--primary-dark);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(14, 165, 233, 0.22);
  font-size: 13px;
  font-weight: 700;
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.hero-copy p,
.page-hero p,
.detail-info .lead {
  margin: 22px 0 0;
  color: #334155;
  font-size: 18px;
  line-height: 1.8;
}

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

.hero-tags span,
.tag-row span {
  padding: 6px 10px;
  border-radius: 999px;
  color: #075985;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(14, 165, 233, 0.16);
  font-size: 12px;
  font-weight: 700;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn.primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.26);
}

.btn.ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(148, 163, 184, 0.32);
}

.hero-visual {
  position: relative;
  z-index: 1;
  min-height: 470px;
  border-radius: 32px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(14, 165, 233, 0.42), rgba(37, 99, 235, 0.32)),
    #bae6fd;
  box-shadow: 0 35px 80px rgba(2, 132, 199, 0.28);
}

.poster-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.84);
  font-size: 86px;
  font-weight: 900;
  background:
    radial-gradient(circle at 18% 20%, rgba(255,255,255,0.26), transparent 28%),
    linear-gradient(135deg, #0ea5e9, #2563eb);
}

.hero-poster,
.poster-image,
.detail-poster-image {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-poster.is-missing,
.poster-image.is-missing,
.detail-poster-image.is-missing {
  display: none;
}

.hero-glow {
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  z-index: 3;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.42), transparent);
}

.hero-dots {
  position: absolute;
  left: 68px;
  bottom: 40px;
  z-index: 4;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border-radius: 999px;
  border: 0;
  background: rgba(15, 23, 42, 0.25);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
  width: 34px;
  background: var(--primary);
}

.quick-filter {
  margin-top: 24px;
}

.inner-filter {
  margin-top: -8px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: 14px;
}

.chip:hover,
.chip.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

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

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

.section-head h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 42px);
  letter-spacing: -0.04em;
}

.section-head p {
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.section-action,
.text-link {
  color: var(--primary-dark);
  font-weight: 800;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--panel-soft);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 45px rgba(15, 23, 42, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 65px rgba(15, 23, 42, 0.14);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #e0f2fe, #bfdbfe);
}

.poster-wrap .poster-fallback {
  font-size: 50px;
}

.poster-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 4;
  padding: 5px 9px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.card-body {
  padding: 16px;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 800;
}

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

.card-body p {
  min-height: 52px;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

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

.category-card,
.category-overview-card {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  padding: 22px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(219,234,254,0.72));
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.category-index {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.category-card strong,
.category-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 20px;
  font-weight: 900;
}

.category-card em,
.category-title em {
  color: var(--primary-dark);
  font-style: normal;
  font-size: 13px;
}

.category-card p,
.category-overview-card p {
  color: var(--muted);
  line-height: 1.7;
}

.category-sample {
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 800;
}

.page-main {
  padding-bottom: 64px;
}

.page-hero {
  margin-top: 34px;
  padding: 56px;
  border-radius: 32px;
  background:
    radial-gradient(circle at 15% 10%, rgba(255, 255, 255, 0.88), transparent 34%),
    linear-gradient(135deg, #dff5ff, #dbeafe);
  box-shadow: var(--shadow);
}

.small-hero h1,
.category-hero h1,
.ranking-hero h1,
.search-hero h1 {
  font-size: clamp(34px, 6vw, 64px);
}

.compact-actions {
  margin-top: 22px;
}

.local-filter,
.search-panel {
  display: grid;
  grid-template-columns: 1fr 190px auto;
  gap: 12px;
  margin-bottom: 22px;
  padding: 12px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
}

.local-filter input,
.local-filter select,
.search-panel input,
.search-panel select,
.search-panel button {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--text);
  outline: none;
}

.search-panel button {
  color: #ffffff;
  background: var(--text);
  font-weight: 800;
  cursor: pointer;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 64px 1fr auto auto;
  align-items: center;
  gap: 16px;
  padding: 15px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
}

.rank-hot {
  background: linear-gradient(135deg, rgba(14,165,233,0.18), rgba(37,99,235,0.12));
}

.rank-no {
  color: var(--primary-dark);
  font-size: 20px;
  font-weight: 900;
}

.rank-title {
  font-weight: 900;
}

.rank-meta {
  color: var(--muted);
  font-size: 13px;
}

.rank-play {
  padding: 8px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--primary);
  font-size: 13px;
  font-weight: 800;
}

.search-count {
  margin: -8px 0 18px;
  color: var(--muted);
  font-weight: 700;
}

.detail-main {
  padding-bottom: 64px;
}

.detail-hero {
  padding: 34px 0 0;
}

.detail-grid {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 34px;
  align-items: stretch;
  padding: 34px;
  border-radius: 36px;
  background: linear-gradient(135deg, #e0f2fe, #dbeafe);
  box-shadow: var(--shadow);
}

.detail-poster {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.detail-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumbs a {
  color: var(--primary-dark);
  font-weight: 800;
}

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

.detail-meta-grid span {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
}

.detail-meta-grid strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
}

.detail-tags {
  margin-top: 24px;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #020617;
  box-shadow: 0 28px 70px rgba(2, 6, 23, 0.28);
}

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

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 10px;
  border: 0;
  color: #ffffff;
  background:
    radial-gradient(circle at center, rgba(14,165,233,0.2), transparent 30%),
    rgba(2, 6, 23, 0.28);
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
}

.player-start.is-hidden {
  display: none;
}

.play-icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 999px;
  color: var(--primary);
  background: #ffffff;
  box-shadow: 0 20px 50px rgba(255, 255, 255, 0.22);
}

.player-status {
  position: absolute;
  left: 18px;
  bottom: 14px;
  z-index: 4;
  margin: 0;
  padding: 7px 11px;
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(2, 6, 23, 0.68);
  font-size: 13px;
}

.detail-content p {
  margin: 0 0 24px;
  padding: 24px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  color: #334155;
  line-height: 1.9;
}

.category-overview-card ul {
  display: grid;
  gap: 10px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

.category-overview-card li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.category-overview-card li a {
  color: var(--text);
  font-weight: 800;
}

.site-footer {
  margin-top: 64px;
  padding: 44px 0;
  color: #dbeafe;
  background: #0f172a;
}

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

.footer-brand {
  margin-bottom: 10px;
  font-size: 24px;
  font-weight: 900;
}

.site-footer p {
  max-width: 520px;
  color: #94a3b8;
  line-height: 1.8;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #ffffff;
}

.site-footer a {
  display: inline-block;
  margin: 0 12px 10px 0;
  color: #bfdbfe;
}

@media (max-width: 980px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .nav-links {
    order: 3;
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
  }

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

  .hero-slide {
    grid-template-columns: 1fr;
    padding: 34px;
  }

  .hero-visual {
    min-height: 310px;
    order: -1;
  }

  .hero-dots {
    left: 34px;
  }

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

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

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

  .detail-poster {
    min-height: 420px;
  }

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

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

  .brand-name {
    font-size: 17px;
  }

  .header-search {
    display: none;
  }

  .hero-shell {
    min-height: 720px;
    border-radius: 24px;
  }

  .hero-slide {
    padding: 24px;
  }

  .hero-copy h1,
  .page-hero h1,
  .detail-info h1 {
    font-size: 36px;
  }

  .page-hero,
  .detail-grid {
    padding: 24px;
    border-radius: 24px;
  }

  .movie-grid,
  .featured-grid,
  .category-grid,
  .overview-grid,
  .detail-meta-grid {
    grid-template-columns: 1fr;
  }

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

  .rank-row {
    grid-template-columns: 46px 1fr;
  }

  .rank-meta,
  .rank-play {
    grid-column: 2;
  }
}
