:root {
  color-scheme: light;
  --bg: #f8fbff;
  --panel: #ffffff;
  --text: #111827;
  --muted: #64748b;
  --line: #e2e8f0;
  --blue: #2563eb;
  --cyan: #06b6d4;
  --teal: #0d9488;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
  --soft-shadow: 0 18px 45px rgba(37, 99, 235, 0.12);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

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

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: #0f172a;
}

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

.brand-text {
  font-size: 20px;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #334155;
  font-weight: 650;
}

.nav-links a {
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--blue);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: #eef6ff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #0f172a;
}

.hero-section {
  position: relative;
  overflow: hidden;
  padding: 70px 0 48px;
  background: linear-gradient(135deg, #eff6ff 0%, #ecfeff 46%, #ecfdf5 100%);
}

.hero-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.42;
  pointer-events: none;
}

.hero-orb-a {
  width: 360px;
  height: 360px;
  left: 4%;
  top: 8%;
  background: #93c5fd;
}

.hero-orb-b {
  width: 420px;
  height: 420px;
  right: 4%;
  bottom: 0;
  background: #67e8f9;
}

.hero-slider {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 560px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: center;
  gap: 46px;
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: #0f172a;
}

.hero-copy h1 {
  max-width: 720px;
  font-size: clamp(42px, 6vw, 76px);
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--teal));
  background-clip: text;
  color: transparent;
}

.hero-copy h2 {
  margin: 22px 0 10px;
  font-size: clamp(24px, 3vw, 38px);
  color: #172554;
}

.hero-summary {
  max-width: 650px;
  margin: 0;
  color: #475569;
  font-size: 18px;
  line-height: 1.9;
}

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

.hero-tags {
  margin-top: 20px;
}

.hero-tags span,
.tag-list span,
.detail-meta span,
.card-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.09);
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
}

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

.primary-btn,
.ghost-btn,
.small-btn,
.text-link,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  min-height: 48px;
  padding: 0 26px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  box-shadow: 0 18px 35px rgba(37, 99, 235, 0.25);
}

.ghost-btn {
  min-height: 48px;
  padding: 0 24px;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.75);
  border: 2px solid rgba(37, 99, 235, 0.24);
}

.primary-btn:hover,
.ghost-btn:hover,
.small-btn:hover,
.section-link:hover,
.text-link:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  min-height: 480px;
  border-radius: 34px;
  overflow: hidden;
  background: radial-gradient(circle at 30% 20%, #dbeafe, #bae6fd 44%, #ccfbf1 100%);
  box-shadow: var(--shadow);
}

.hero-poster img,
.detail-poster img,
.detail-backdrop img,
.poster img,
.rank-thumb img,
.category-cover-stack img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-off {
  opacity: 0;
}

.hero-poster::after,
.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.16), rgba(15, 23, 42, 0));
}

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

.hero-dot {
  width: 34px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.22);
}

.hero-dot.is-active {
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.home-search {
  width: min(900px, calc(100% - 32px));
  margin: -26px auto 0;
  position: relative;
  z-index: 8;
}

.home-search-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 28px;
  box-shadow: var(--soft-shadow);
}

.home-search-box input,
.filter-field input,
.filter-field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  color: #0f172a;
  outline: none;
}

.home-search-box input {
  min-height: 52px;
  padding: 0 18px;
  border: 0;
  background: #f8fafc;
}

.home-search-box button {
  border: 0;
  border-radius: 18px;
  padding: 0 24px;
  color: #ffffff;
  font-weight: 800;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

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

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

.section-heading h2,
.article-card h2 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(26px, 4vw, 40px);
  letter-spacing: -0.03em;
}

.section-link,
.text-link {
  color: var(--blue);
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 150px;
  padding: 22px;
  border-radius: 28px;
  background: linear-gradient(135deg, #ffffff, #eff6ff);
  border: 1px solid rgba(226, 232, 240, 0.88);
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.06);
}

.category-card strong,
.category-card em {
  position: relative;
  display: block;
  z-index: 2;
}

.category-card strong {
  font-size: 20px;
  color: #0f172a;
}

.category-card em {
  margin-top: 24px;
  color: #1d4ed8;
  font-style: normal;
  font-weight: 750;
}

.category-glow {
  position: absolute;
  right: -35px;
  bottom: -45px;
  width: 140px;
  height: 140px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.22), rgba(6, 182, 212, 0.28));
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.12);
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #dbeafe, #cffafe, #ccfbf1);
}

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

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

.poster-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 800;
}

.card-body {
  padding: 18px;
}

.card-meta {
  margin-bottom: 10px;
}

.movie-card h2,
.rank-info h2,
.category-overview-card h2 {
  margin: 0;
  color: #0f172a;
  font-size: 20px;
  line-height: 1.35;
}

.movie-card p,
.rank-info p,
.category-overview-card p,
.page-hero p,
.article-card p,
.site-footer p {
  color: var(--muted);
  line-height: 1.8;
}

.movie-card p {
  min-height: 64px;
  margin: 12px 0 14px;
}

.tag-list {
  min-height: 28px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 86px max(16px, calc((100% - 1180px) / 2)) 76px;
  background: linear-gradient(135deg, #eff6ff, #ecfeff, #ecfdf5);
}

.page-hero h1 {
  max-width: 900px;
  font-size: clamp(38px, 6vw, 68px);
}

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

.compact-hero {
  padding-top: 64px;
  padding-bottom: 58px;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 16px;
  margin-bottom: 26px;
  padding: 16px;
  border-radius: 26px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.filter-field label {
  display: block;
  margin: 0 0 8px;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.filter-field input,
.filter-field select {
  height: 48px;
  padding: 0 14px;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 22px;
  padding: 18px;
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.07);
}

.category-cover-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.category-cover-stack img {
  aspect-ratio: 2 / 3;
  border-radius: 18px;
  background: linear-gradient(135deg, #dbeafe, #cffafe, #ccfbf1);
}

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

.rank-row {
  display: grid;
  grid-template-columns: 52px 92px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.rank-num {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.rank-thumb {
  aspect-ratio: 2 / 3;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #dbeafe, #cffafe, #ccfbf1);
}

.small-btn {
  min-height: 40px;
  padding: 0 18px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  display: grid;
  align-items: end;
  padding: 90px 0 56px;
  background: #0f172a;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.45;
  background: linear-gradient(135deg, #172554, #0e7490);
}

.detail-backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #0f172a 0%, rgba(15, 23, 42, 0.76) 42%, rgba(15, 23, 42, 0.28) 100%);
  z-index: 1;
}

.detail-layout {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 42px;
  align-items: end;
}

.detail-poster {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 30px;
  background: linear-gradient(135deg, #dbeafe, #cffafe, #ccfbf1);
  box-shadow: var(--shadow);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #bfdbfe;
  font-weight: 700;
  margin-bottom: 18px;
}

.detail-copy h1 {
  color: #ffffff;
  font-size: clamp(42px, 6vw, 78px);
}

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

.detail-meta span {
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.12);
}

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

.video-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 32px;
  background: #020617;
  box-shadow: var(--shadow);
}

.video-shell video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #020617;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.14), rgba(2, 6, 23, 0.52));
  cursor: pointer;
}

.play-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.play-icon {
  width: 88px;
  height: 88px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.24);
  position: relative;
}

.play-icon::after {
  content: "";
  position: absolute;
  left: 35px;
  top: 27px;
  border-left: 25px solid var(--blue);
  border-top: 17px solid transparent;
  border-bottom: 17px solid transparent;
}

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

.article-card {
  padding: 28px;
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.07);
}

.related-grid {
  padding-bottom: 40px;
}

.site-footer {
  margin-top: 92px;
  padding: 52px 0 28px;
  color: #cbd5e1;
  background: #0f172a;
}

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

.footer-brand {
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
}

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

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

.footer-links a:hover {
  color: #60a5fa;
}

.copyright {
  width: min(1180px, calc(100% - 32px));
  margin: 32px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  color: #94a3b8;
}

.is-hidden-card {
  display: none !important;
}

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

  .hero-slide {
    grid-template-columns: 1fr;
    min-height: auto;
  }

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

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

  .detail-layout {
    grid-template-columns: 240px minmax(0, 1fr);
  }
}

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

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 13px 14px;
    border-radius: 14px;
  }

  .nav-links a:hover {
    background: #eff6ff;
  }

  .hero-section {
    padding-top: 42px;
  }

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

  .hero-poster {
    min-height: 320px;
  }

  .home-search-box,
  .filter-panel,
  .detail-content,
  .footer-grid,
  .category-overview-card,
  .detail-layout {
    grid-template-columns: 1fr;
  }

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

  .rank-row {
    grid-template-columns: 42px 74px minmax(0, 1fr);
  }

  .rank-row .small-btn {
    grid-column: 2 / -1;
    justify-self: start;
  }

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

@media (max-width: 520px) {
  .brand-text {
    font-size: 17px;
  }

  .category-grid,
  .movie-grid,
  .rank-strip,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

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

  .home-search-box button {
    min-height: 48px;
  }

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

  .detail-hero {
    padding-top: 56px;
  }
}
