* {
  box-sizing: border-box;
}

:root {
  --bg: #f8fafc;
  --panel: #ffffff;
  --panel-soft: #eff6ff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --cyan: #0891b2;
  --cyan-soft: #ecfeff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
  --radius: 22px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 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 {
  display: block;
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
}

.header-inner {
  max-width: 1280px;
  height: 72px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--blue);
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 13px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.26);
}

.brand-text {
  font-size: 22px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  overflow: hidden;
}

.desktop-nav a,
.mobile-panel a {
  padding: 9px 12px;
  border-radius: 12px;
  color: #334155;
  font-size: 15px;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-panel a:hover {
  color: var(--blue);
  background: #eff6ff;
  transform: translateY(-1px);
}

.header-search,
.mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.filter-bar input,
.filter-bar select {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  outline: none;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.header-search input {
  width: 190px;
  padding: 10px 13px;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.header-search button,
.mobile-search button {
  border: 0;
  color: #fff;
  cursor: pointer;
  border-radius: 14px;
  padding: 10px 16px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #f1f5f9;
  cursor: pointer;
}

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

.mobile-panel {
  display: none;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 18px;
}

.mobile-panel.is-open {
  display: grid;
  gap: 8px;
}

.mobile-search {
  margin-top: 8px;
}

.mobile-search input {
  min-width: 0;
  flex: 1;
  padding: 11px 13px;
}

main {
  overflow: hidden;
}

.hero-slider {
  padding: 34px 24px 24px;
  background:
    radial-gradient(circle at 20% 5%, rgba(8, 145, 178, 0.18), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #eff6ff 48%, #f8fafc 100%);
}

.hero-shell {
  position: relative;
  max-width: 1280px;
  min-height: 620px;
  margin: 0 auto;
  border-radius: 34px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 64, 175, 0.88)),
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.42), transparent 38%);
  box-shadow: var(--shadow);
}

.hero-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.55), rgba(15, 23, 42, 0.2)),
    radial-gradient(circle at 76% 16%, rgba(96, 165, 250, 0.45), transparent 30%);
  pointer-events: none;
}

.hero-track {
  position: relative;
  min-height: 620px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: 36px;
  padding: 64px;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.015);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.hero-copy {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 720px;
}

.eyebrow,
.section-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  padding: 8px 12px;
  color: #cffafe;
  background: rgba(8, 145, 178, 0.24);
  border: 1px solid rgba(125, 211, 252, 0.35);
}

.hero-copy h1 {
  margin: 18px 0 0;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.hero-copy h2 {
  margin: 18px 0 12px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.1;
}

.hero-copy p {
  margin: 0;
  max-width: 680px;
  color: #dbeafe;
  font-size: 18px;
}

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

.hero-tags {
  margin: 20px 0 28px;
}

.hero-tags span,
.tag-row span,
.meta-pills span {
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span {
  color: #e0f2fe;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.primary-button,
.secondary-button,
.outline-button,
.card-action {
  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-button,
.card-action {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 14px 26px rgba(37, 99, 235, 0.26);
}

.primary-button,
.secondary-button,
.outline-button {
  min-height: 46px;
  padding: 0 24px;
}

.secondary-button {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.outline-button {
  color: var(--blue);
  border: 1px solid rgba(37, 99, 235, 0.25);
  background: #fff;
}

.primary-button:hover,
.secondary-button:hover,
.outline-button:hover,
.card-action:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  z-index: 2;
  justify-self: center;
  width: min(100%, 420px);
  border-radius: 30px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.42);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-panel {
  position: absolute;
  left: 64px;
  bottom: 42px;
  z-index: 3;
  display: grid;
  gap: 8px;
  width: min(520px, calc(100% - 128px));
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  color: #e0f2fe;
  background: rgba(15, 23, 42, 0.38);
  backdrop-filter: blur(20px);
}

.hero-panel span {
  color: #93c5fd;
  font-size: 13px;
  font-weight: 800;
}

.hero-panel strong {
  color: #fff;
  font-size: 18px;
}

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

.hero-links a {
  padding: 7px 11px;
  border-radius: 999px;
  color: #e0f2fe;
  background: rgba(255, 255, 255, 0.12);
}

.hero-dots {
  position: absolute;
  right: 42px;
  bottom: 42px;
  z-index: 4;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

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

.section-block,
.page-hero,
.detail-hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 24px;
}

.page-hero,
.detail-hero {
  padding-top: 72px;
}

.page-hero {
  text-align: center;
}

.page-hero h1,
.section-heading h2,
.intro-strip h2,
.detail-copy h1,
.content-panel h2,
.info-panel h2 {
  margin: 0;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.page-hero h1 {
  font-size: clamp(36px, 6vw, 66px);
}

.page-hero p {
  max-width: 760px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 18px;
}

.section-label {
  margin-bottom: 10px;
  padding: 7px 11px;
  color: var(--blue);
  background: #dbeafe;
}

.intro-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 10px;
}

.intro-strip p {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--muted);
}

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

.section-heading h2,
.intro-strip h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.section-heading a {
  color: var(--blue);
  font-weight: 800;
}

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

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

.movie-card,
.overview-card,
.content-panel,
.info-panel,
.filter-shell {
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
}

.movie-card {
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

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

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

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

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

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

.card-content {
  padding: 16px;
}

.card-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.card-content h3 {
  margin: 9px 0 8px;
  font-size: 19px;
  line-height: 1.28;
}

.card-content h3 a:hover {
  color: var(--blue);
}

.card-content p {
  min-height: 64px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.tag-row span {
  color: var(--blue-dark);
  background: var(--panel-soft);
}

.card-action {
  width: 100%;
  margin-top: 14px;
  min-height: 40px;
  font-size: 14px;
}

.split-layout {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 30px;
}

.compact-heading {
  margin-bottom: 18px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 46px 58px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  padding: 12px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-row:hover {
  border-color: rgba(37, 99, 235, 0.3);
  transform: translateX(4px);
}

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

.rank-row img {
  width: 58px;
  height: 76px;
  border-radius: 12px;
  object-fit: cover;
  background: #e2e8f0;
}

.rank-info {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.rank-info strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-info em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

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

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

.category-card {
  position: relative;
  min-height: 190px;
  border-radius: 22px;
  overflow: hidden;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  color: #fff;
  background: #0f172a;
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  transition: transform 0.25s ease;
}

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

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.82));
}

.category-card span,
.category-card p {
  position: relative;
  z-index: 1;
}

.category-card span {
  font-size: 20px;
  font-weight: 900;
}

.category-card p {
  margin: 7px 0 0;
  color: #dbeafe;
  font-size: 13px;
}

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

.overview-card {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  overflow: hidden;
}

.overview-thumb {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  min-height: 230px;
  background: #e2e8f0;
}

.overview-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overview-body {
  padding: 28px;
}

.overview-body h2 {
  margin: 0 0 10px;
  font-size: 30px;
}

.overview-body p {
  margin: 0 0 18px;
  color: var(--muted);
}

.overview-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.overview-links a {
  padding: 8px 11px;
  border-radius: 999px;
  color: var(--blue);
  background: #eff6ff;
  font-weight: 700;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(150px, 190px));
  gap: 12px;
  margin-bottom: 24px;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
}

.empty-state {
  margin: 0 0 24px;
  padding: 18px;
  border-radius: 18px;
  color: var(--muted);
  background: #f1f5f9;
  text-align: center;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--blue);
  font-weight: 800;
}

.detail-hero {
  padding-bottom: 26px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 36px;
  align-items: center;
  padding: 38px;
  border-radius: 34px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(30, 64, 175, 0.9)),
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.32), transparent 36%);
  box-shadow: var(--shadow);
}

.detail-copy h1 {
  font-size: clamp(34px, 5vw, 60px);
}

.detail-copy p {
  max-width: 760px;
  margin: 16px 0 22px;
  color: #dbeafe;
  font-size: 18px;
}

.meta-pills span {
  color: #e0f2fe;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.detail-poster {
  width: 290px;
  aspect-ratio: 3 / 4;
  border-radius: 26px;
  object-fit: cover;
  background: #e2e8f0;
  box-shadow: 0 24px 62px rgba(0, 0, 0, 0.36);
}

.player-section {
  padding-top: 24px;
  padding-bottom: 28px;
}

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

.player-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #020617;
  object-fit: contain;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #fff;
  cursor: pointer;
  background: radial-gradient(circle at center, rgba(37, 99, 235, 0.35), rgba(2, 6, 23, 0.74));
}

.player-cover.is-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.play-circle {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--blue);
  background: #fff;
  font-size: 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.34);
}

.player-cover strong {
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: start;
}

.content-panel,
.info-panel {
  padding: 26px;
}

.content-panel h2,
.info-panel h2 {
  font-size: 28px;
}

.content-panel p {
  margin: 14px 0 0;
  color: #334155;
  font-size: 17px;
}

.info-panel {
  position: sticky;
  top: 96px;
  grid-row: span 2;
}

.info-panel dl {
  margin: 14px 0 18px;
}

.info-panel dl div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.info-panel dt {
  color: var(--muted);
  font-weight: 800;
}

.info-panel dd {
  margin: 0;
}

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

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 44px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.footer-logo {
  color: #93c5fd;
  font-size: 22px;
}

.site-footer p {
  max-width: 620px;
  margin: 10px 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a {
  padding: 8px 11px;
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.08);
}

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

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

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .header-search {
    display: none;
  }

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

  .hero-poster {
    display: none;
  }

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

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

  .info-panel {
    position: static;
  }
}

@media (max-width: 860px) {
  .header-inner {
    height: 66px;
    padding: 0 16px;
  }

  .brand-text {
    font-size: 19px;
  }

  .hero-slider {
    padding: 18px 14px;
  }

  .hero-shell,
  .hero-track {
    min-height: 650px;
  }

  .hero-slide {
    padding: 34px 24px 160px;
  }

  .hero-panel {
    left: 20px;
    bottom: 76px;
    width: calc(100% - 40px);
  }

  .hero-dots {
    left: 24px;
    right: auto;
    bottom: 28px;
  }

  .section-block,
  .page-hero,
  .detail-hero {
    padding-left: 16px;
    padding-right: 16px;
  }

  .intro-strip,
  .section-heading,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .overview-card,
  .detail-layout,
  .filter-bar {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    width: 100%;
    max-width: 320px;
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .brand-mark {
    width: 30px;
    height: 30px;
    border-radius: 10px;
  }

  .hero-copy h1 {
    font-size: 36px;
  }

  .hero-copy h2 {
    font-size: 28px;
  }

  .hero-copy p,
  .page-hero p,
  .detail-copy p {
    font-size: 16px;
  }

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

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

  .detail-layout {
    padding: 24px;
  }

  .player-box {
    border-radius: 18px;
  }
}
