:root {
  --bg: #f4fbff;
  --surface: #ffffff;
  --surface-soft: rgba(255, 255, 255, 0.78);
  --text: #0f172a;
  --muted: #64748b;
  --line: rgba(14, 165, 233, 0.18);
  --brand: #06b6d4;
  --brand-strong: #2563eb;
  --brand-soft: rgba(6, 182, 212, 0.12);
  --accent: #f59e0b;
  --shadow: 0 22px 60px rgba(15, 23, 42, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(34, 211, 238, 0.18), transparent 28rem),
    radial-gradient(circle at 90% 12%, rgba(59, 130, 246, 0.16), transparent 26rem),
    linear-gradient(180deg, #effbff 0%, #f8fafc 42%, #eef8ff 100%);
}

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: 40;
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.nav-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.26);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.desktop-nav a,
.mobile-nav a {
  padding: 10px 16px;
  border-radius: 999px;
  color: #334155;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
  color: #0369a1;
  background: rgba(14, 165, 233, 0.12);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: rgba(14, 165, 233, 0.12);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 3px;
  background: #0369a1;
}

.mobile-nav {
  display: none;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px 16px;
  gap: 8px;
  flex-wrap: wrap;
}

.mobile-nav.open {
  display: flex;
}

main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px 64px;
}

.hero {
  position: relative;
  margin: 26px auto 44px;
  min-height: 620px;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #0f172a;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  filter: saturate(1.06);
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.86) 0%, rgba(15, 23, 42, 0.58) 44%, rgba(15, 23, 42, 0.14) 100%),
    linear-gradient(180deg, rgba(8, 145, 178, 0.18), rgba(37, 99, 235, 0.18));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 660px;
  padding: 82px 56px;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #ffffff;
}

.hero-kicker,
.section-kicker,
.detail-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #0891b2;
  background: rgba(6, 182, 212, 0.12);
  font-size: 14px;
  font-weight: 800;
}

.hero .hero-kicker {
  color: #cffafe;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.hero h1,
.hero h2 {
  margin: 18px 0 14px;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.hero p {
  margin: 0 0 24px;
  max-width: 600px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.8;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 900;
  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(--brand), var(--brand-strong));
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.28);
}

.btn-ghost {
  color: #e0f2fe;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.btn-light {
  color: #0369a1;
  background: #ffffff;
  border-color: rgba(14, 165, 233, 0.16);
}

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

.hero-dot {
  width: 34px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.36);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
  width: 54px;
  background: #ffffff;
}

.hero-side-card {
  position: absolute;
  right: 34px;
  bottom: 34px;
  z-index: 2;
  width: min(360px, 36vw);
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 28px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.46);
  backdrop-filter: blur(18px);
}

.hero-side-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 20px;
}

.hero-side-card div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.hero-side-card a {
  padding: 9px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
  color: #e0f2fe;
  font-size: 14px;
  font-weight: 800;
}

.section {
  margin: 44px 0;
}

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

.section-title h1,
.section-title h2 {
  margin: 12px 0 8px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-title p {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  line-height: 1.8;
}

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

.category-card {
  min-height: 180px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: rgba(6, 182, 212, 0.42);
  box-shadow: var(--shadow);
}

.category-card span {
  display: block;
  margin-bottom: 10px;
  font-size: 20px;
  font-weight: 900;
}

.category-card p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.65;
}

.category-card div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-card div a {
  max-width: 100%;
  padding: 7px 10px;
  border-radius: 999px;
  color: #0369a1;
  background: rgba(14, 165, 233, 0.1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13px;
  font-weight: 800;
}

.search-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  padding: 16px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(14px);
}

.search-panel input,
.search-panel select {
  width: 100%;
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: 18px;
  padding: 14px 16px;
  outline: none;
  background: #ffffff;
  color: var(--text);
}

.search-panel input:focus,
.search-panel select:focus {
  border-color: rgba(6, 182, 212, 0.7);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12);
}

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

.movie-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.18), rgba(37, 99, 235, 0.18));
}

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

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

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

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #ef4444);
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(239, 68, 68, 0.28);
}

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

.movie-card-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  color: #0891b2;
  font-size: 13px;
  font-weight: 800;
}

.movie-card h3 {
  margin: 9px 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card h3 a:hover {
  color: #0891b2;
}

.movie-card p {
  min-height: 60px;
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-row span {
  padding: 6px 9px;
  border-radius: 999px;
  color: #0369a1;
  background: rgba(14, 165, 233, 0.1);
  font-size: 12px;
  font-weight: 800;
}

.feature-strip {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  align-items: stretch;
}

.feature-panel {
  border-radius: 30px;
  padding: 30px;
  min-height: 320px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(224, 242, 254, 0.72)),
    radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.22), transparent 16rem);
  box-shadow: var(--shadow);
}

.feature-panel h2 {
  margin: 12px 0;
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: -0.05em;
}

.feature-panel p {
  color: var(--muted);
  line-height: 1.8;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
}

.ranking-item b {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
}

.ranking-item strong {
  display: block;
  margin-bottom: 5px;
}

.ranking-item span {
  color: var(--muted);
  font-size: 13px;
}

.ranking-item em {
  font-style: normal;
  color: #f97316;
  font-weight: 900;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 24px 0 18px;
  color: var(--muted);
  font-weight: 700;
}

.breadcrumb a {
  color: #0891b2;
}

.player-area {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: stretch;
  margin: 24px 0 34px;
}

.player-shell {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: 32px;
  background: #020617;
  box-shadow: var(--shadow);
}

.player-shell video {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: contain;
  background: #020617;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.42);
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-orb {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  box-shadow: 0 20px 50px rgba(37, 99, 235, 0.44);
}

.play-orb svg {
  width: 42px;
  height: 42px;
  margin-left: 5px;
  fill: currentColor;
}

.detail-info-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
}

.detail-info-card h1 {
  margin: 14px 0 12px;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.04em;
}

.detail-info-card p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.8;
}

.meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.meta-pills span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #075985;
  background: rgba(14, 165, 233, 0.1);
  font-weight: 800;
  font-size: 13px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
}

.detail-copy,
.side-box,
.page-hero {
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
}

.detail-copy {
  padding: 30px;
}

.detail-copy h2,
.side-box h2 {
  margin: 0 0 14px;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.detail-copy p {
  margin: 0 0 22px;
  color: #334155;
  line-height: 1.95;
  font-size: 16px;
}

.side-box {
  padding: 20px;
  align-self: start;
  position: sticky;
  top: 92px;
}

.side-link {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(14, 165, 233, 0.12);
}

.side-link:last-child {
  border-bottom: 0;
}

.side-link img {
  width: 54px;
  height: 76px;
  object-fit: cover;
  border-radius: 12px;
}

.side-link strong {
  display: block;
  margin-bottom: 5px;
  line-height: 1.35;
}

.side-link span {
  color: var(--muted);
  font-size: 12px;
}

.page-hero {
  margin: 26px 0 34px;
  padding: clamp(28px, 5vw, 56px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(224, 242, 254, 0.78)),
    radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.16), transparent 22rem);
}

.page-hero h1 {
  margin: 14px 0 12px;
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: -0.05em;
}

.page-hero p {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  line-height: 1.8;
}

.alpha-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.alpha-links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: #0369a1;
  background: #ffffff;
  border: 1px solid rgba(14, 165, 233, 0.16);
  font-weight: 800;
}

.empty-state {
  display: none;
  grid-column: 1 / -1;
  padding: 30px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed rgba(14, 165, 233, 0.35);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.58);
}

.empty-state.show {
  display: block;
}

.site-footer {
  margin-top: 30px;
  padding: 46px 20px 30px;
  color: #cbd5e1;
  background: #0f172a;
}

.footer-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 24px;
}

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

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

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

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

.copyright {
  max-width: 1240px;
  margin: 30px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

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

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

  .player-area,
  .detail-layout,
  .feature-strip {
    grid-template-columns: 1fr;
  }

  .side-box {
    position: static;
  }

  .hero-side-card {
    display: none;
  }
}

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

  .menu-toggle {
    display: block;
  }

  main {
    padding: 0 14px 46px;
  }

  .hero {
    min-height: 560px;
    margin-top: 16px;
    border-radius: 26px;
  }

  .hero-content {
    min-height: 560px;
    padding: 46px 24px 82px;
  }

  .hero p {
    font-size: 16px;
  }

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

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

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

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

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

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

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

  .player-shell,
  .player-shell video {
    min-height: 320px;
  }

  .player-area {
    gap: 16px;
  }

  .detail-info-card,
  .detail-copy,
  .page-hero,
  .feature-panel {
    padding: 22px;
    border-radius: 24px;
  }

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

@media (max-width: 480px) {
  .category-grid,
  .movie-grid {
    grid-template-columns: 1fr;
  }

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

  .nav-shell {
    padding: 12px 14px;
  }
}
