:root {
  --blue-950: #172554;
  --blue-900: #1e3a8a;
  --blue-800: #1e40af;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-100: #dbeafe;
  --blue-50: #eff6ff;
  --indigo-600: #4f46e5;
  --purple-700: #6d28d9;
  --stone-950: #0c0a09;
  --stone-900: #1c1917;
  --stone-100: #f5f5f4;
  --text: #10213f;
  --muted: #587098;
  --line: rgba(30, 64, 175, 0.18);
  --card: rgba(255, 255, 255, 0.86);
  --shadow: 0 18px 50px rgba(30, 58, 138, 0.16);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  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 18% 0%, rgba(96, 165, 250, 0.25), transparent 34rem),
    linear-gradient(135deg, #f8fbff 0%, #edf4ff 44%, #f6f0ff 100%);
}

body.is-menu-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(239, 246, 255, 0.96), rgba(238, 242, 255, 0.96), rgba(245, 243, 255, 0.96));
  border-bottom: 2px solid rgba(147, 197, 253, 0.55);
  box-shadow: 0 10px 32px rgba(30, 64, 175, 0.12);
  backdrop-filter: blur(18px);
}

.header-shell,
.topic-scroll,
.section-shell,
.footer-shell,
.detail-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark,
.footer-logo span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 16px;
  color: white;
  background: linear-gradient(135deg, var(--blue-600), var(--purple-700));
  box-shadow: 0 16px 28px rgba(37, 99, 235, 0.28);
}

.brand-copy strong {
  display: block;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, var(--blue-900), var(--purple-700));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-copy small {
  color: var(--blue-700);
  font-size: 12px;
  font-weight: 700;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 10px 15px;
  border-radius: 14px;
  color: var(--blue-900);
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.nav-link:hover {
  transform: translateY(-1px);
  color: var(--blue-800);
  background: rgba(219, 234, 254, 0.86);
}

.nav-link.active {
  color: white;
  background: linear-gradient(90deg, var(--blue-600), var(--indigo-600));
  box-shadow: 0 14px 26px rgba(37, 99, 235, 0.25);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 11px;
  border: 0;
  border-radius: 14px;
  background: rgba(219, 234, 254, 0.82);
}

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

.topic-bar {
  border-top: 1px solid rgba(147, 197, 253, 0.35);
  background: rgba(255, 255, 255, 0.72);
}

.topic-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 9px 0;
}

.topic-scroll a {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 12px;
  color: var(--blue-700);
  font-weight: 800;
  font-size: 14px;
}

.topic-scroll a:hover {
  background: var(--blue-50);
  color: var(--blue-900);
}

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

.hero-stage {
  min-height: 650px;
  position: relative;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: 36px;
  width: 100%;
  padding: 76px max(32px, calc((100vw - 1180px) / 2)) 88px;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.018);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 14, 35, 0.94) 0%, rgba(11, 31, 74, 0.82) 42%, rgba(17, 24, 39, 0.36) 100%),
    var(--hero-image) center / cover no-repeat;
  filter: saturate(1.08);
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 26% 30%, rgba(37, 99, 235, 0.34), transparent 25rem),
    radial-gradient(circle at 72% 62%, rgba(109, 40, 217, 0.36), transparent 27rem);
}

.hero-copy,
.hero-poster {
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 760px;
}

.hero-kicker,
.section-heading span,
.detail-kicker,
.page-hero span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #dbeafe;
  background: rgba(37, 99, 235, 0.24);
  border: 1px solid rgba(191, 219, 254, 0.32);
}

.hero-copy h1 {
  margin: 22px 0 18px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.95;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 720px;
  margin: 0;
  color: #dbeafe;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.78;
}

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

.hero-tags {
  margin: 24px 0;
}

.hero-tags span,
.detail-tags span,
.tag-row span {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--blue-700);
  background: rgba(219, 234, 254, 0.9);
  font-weight: 800;
  font-size: 12px;
}

.hero-tags span {
  color: white;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-actions,
.quick-search form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.btn,
.quick-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 15px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn.primary,
.quick-search button {
  color: white;
  background: linear-gradient(90deg, var(--blue-600), var(--indigo-600));
  box-shadow: 0 18px 30px rgba(37, 99, 235, 0.32);
}

.btn.ghost {
  color: white;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.btn.text {
  color: #dbeafe;
  padding-inline: 4px;
}

.hero-poster {
  justify-self: end;
  width: min(430px, 100%);
  aspect-ratio: 2 / 2.82;
  overflow: hidden;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.4), rgba(109, 40, 217, 0.38));
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.45);
}

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

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 18px;
  transform: translateX(-50%);
}

.hero-controls button {
  border: 0;
  color: white;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.hero-controls > button {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  font-size: 30px;
  line-height: 1;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dots button {
  width: 30px;
  height: 8px;
  border-radius: 999px;
  opacity: 0.65;
}

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

.section-shell {
  padding: 64px 0;
}

.intro-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: 32px;
  align-items: end;
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading span,
.page-hero span {
  color: var(--blue-800);
  background: rgba(219, 234, 254, 0.92);
  border-color: rgba(147, 197, 253, 0.58);
}

.section-heading h2,
.page-hero h1,
.detail-copy h1,
.story-card h2 {
  margin: 12px 0 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.04em;
  color: var(--blue-950);
}

.section-heading p,
.page-hero p,
.filter-card p,
.footer-brand p,
.site-footer p {
  color: var(--muted);
  line-height: 1.8;
}

.row-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.row-heading > a,
.quick-search > a {
  color: var(--blue-700);
  font-weight: 900;
}

.quick-search {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.quick-search input {
  flex: 1 1 220px;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(96, 165, 250, 0.44);
  border-radius: 15px;
  outline: none;
  color: var(--blue-950);
  background: white;
}

.movie-grid {
  display: grid;
  gap: 22px;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 42px rgba(30, 64, 175, 0.1);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(37, 99, 235, 0.34);
  box-shadow: 0 28px 60px rgba(30, 64, 175, 0.17);
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 2.88;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(109, 40, 217, 0.18)),
    #e8eefb;
}

.poster img {
  transition: transform 0.45s ease;
}

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

.poster-glow {
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.72));
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  color: white;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  box-shadow: 0 12px 24px rgba(239, 68, 68, 0.26);
}

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

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.card-meta a {
  color: var(--blue-700);
}

.movie-card h2 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.3;
  color: var(--blue-950);
}

.movie-card p {
  min-height: 3.2em;
  margin: 0 0 12px;
  color: #536681;
  font-size: 14px;
  line-height: 1.6;
}

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

.category-tile,
.category-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.78), rgba(30, 64, 175, 0.36)),
    var(--tile-image) center / cover no-repeat;
  box-shadow: var(--shadow);
}

.category-tile {
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 24px;
  color: white;
}

.category-tile span {
  width: fit-content;
  padding: 7px 11px;
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.14);
  font-weight: 900;
}

.category-tile strong {
  margin-top: 12px;
  font-size: 19px;
  line-height: 1.55;
}

.category-card {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  min-height: 250px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
}

.category-cover {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.5)),
    var(--tile-image) center / cover no-repeat;
}

.category-card > div {
  padding: 24px;
}

.category-card h2 {
  margin: 0 0 12px;
  color: var(--blue-950);
  font-size: 24px;
}

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

.mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.mini-links a {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--blue-700);
  background: var(--blue-50);
  font-size: 12px;
  font-weight: 800;
}

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

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

.side-panel,
.story-card,
.filter-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.side-panel {
  padding: 22px;
}

.side-panel h2 {
  margin: 0 0 16px;
  color: var(--blue-950);
}

.related-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(30, 64, 175, 0.1);
}

.related-card:last-child {
  border-bottom: 0;
}

.related-card img {
  height: 96px;
  border-radius: 14px;
  background: #e8eefb;
}

.related-card strong,
.related-card small {
  display: block;
}

.related-card strong {
  color: var(--blue-950);
  line-height: 1.35;
}

.related-card small {
  margin-top: 6px;
  color: var(--muted);
}

.page-hero {
  min-height: 360px;
  display: flex;
  align-items: center;
  color: var(--blue-950);
  background:
    radial-gradient(circle at 70% 10%, rgba(109, 40, 217, 0.18), transparent 22rem),
    linear-gradient(135deg, rgba(219, 234, 254, 0.9), rgba(245, 243, 255, 0.96));
}

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

.page-hero p {
  max-width: 760px;
  font-size: 18px;
}

.category-hero {
  color: white;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.9), rgba(30, 64, 175, 0.62), rgba(109, 40, 217, 0.28)),
    var(--page-image) center / cover no-repeat;
}

.category-hero h1,
.category-hero p {
  color: white;
}

.filter-card {
  padding: 22px;
  margin-bottom: 26px;
}

.filter-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(4, minmax(130px, 0.6fr));
  gap: 14px;
  margin-top: 18px;
}

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

.filter-grid input,
.filter-grid select {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid rgba(96, 165, 250, 0.44);
  border-radius: 14px;
  outline: none;
  color: var(--blue-950);
  background: white;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: white;
  background: var(--stone-950);
}

.detail-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 10, 9, 0.94), rgba(30, 58, 138, 0.76), rgba(12, 10, 9, 0.64)),
    var(--page-image) center / cover no-repeat;
  filter: saturate(1.08);
}

.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(16px);
  background: rgba(8, 13, 31, 0.42);
}

.detail-shell {
  position: relative;
  z-index: 1;
  padding: 44px 0 70px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 28px;
  color: #bfdbfe;
  font-weight: 800;
}

.breadcrumb a:hover {
  color: white;
}

.detail-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 30px;
  aspect-ratio: 2 / 2.88;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 34px 74px rgba(0, 0, 0, 0.38);
}

.detail-copy h1 {
  color: white;
  font-size: clamp(44px, 6vw, 76px);
}

.lead {
  max-width: 860px;
  color: #dbeafe;
  font-size: 20px;
  line-height: 1.85;
}

.detail-info {
  display: grid;
  gap: 8px;
  margin: 18px 0 24px;
  color: #dbeafe;
  font-weight: 800;
}

.detail-info span span {
  margin-right: 8px;
}

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

.player-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 9px;
  width: 100%;
  border: 0;
  color: white;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.4), rgba(2, 6, 23, 0.88)),
    var(--page-image) center / cover no-repeat;
}

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

.play-icon {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--blue-600), var(--purple-700));
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.4);
  font-size: 34px;
}

.player-cover strong {
  font-size: clamp(24px, 4vw, 46px);
}

.player-cover small {
  color: #dbeafe;
  font-weight: 900;
}

.content-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.story-card {
  padding: 28px;
}

.story-card h2 {
  font-size: 30px;
}

.story-card p {
  color: #3c516f;
  line-height: 2;
  font-size: 16px;
}

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

.related-grid .related-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 36px rgba(30, 64, 175, 0.09);
}

.site-footer {
  color: #dbeafe;
  background: linear-gradient(135deg, var(--stone-900), var(--blue-950), var(--stone-900));
  border-top: 4px solid var(--blue-700);
}

.footer-shell {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 30px;
  padding: 48px 0;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-logo strong,
.site-footer h2 {
  color: #bfdbfe;
}

.site-footer h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 9px;
}

.site-footer a {
  color: #93c5fd;
  font-weight: 700;
}

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

.footer-bottom {
  padding: 16px;
  text-align: center;
  color: #93c5fd;
  border-top: 1px solid rgba(147, 197, 253, 0.22);
}

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

@media (max-width: 1120px) {
  .wide-grid,
  .compact-grid,
  .ranking-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .ranking-layout,
  .intro-section,
  .content-section,
  .footer-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .header-shell {
    min-height: 72px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    inset: 72px 16px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
  }

  body.is-menu-open .main-nav {
    display: flex;
  }

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

  .hero-slide {
    grid-template-columns: 1fr;
    padding: 44px 18px 92px;
  }

  .hero-poster {
    justify-self: start;
    width: min(300px, 78vw);
  }

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

  .detail-poster {
    width: min(300px, 82vw);
  }
}

@media (max-width: 560px) {
  .wide-grid,
  .compact-grid,
  .ranking-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
  }

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

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

  .movie-card h2 {
    font-size: 16px;
  }

  .movie-card p {
    font-size: 13px;
  }

  .section-shell {
    padding: 42px 0;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand-copy small {
    display: none;
  }
}
