:root {
  --bg: #eefcff;
  --bg-2: #eff6ff;
  --bg-3: #eef2ff;
  --text: #111827;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.09);
  --white: #ffffff;
  --cyan: #06b6d4;
  --blue: #2563eb;
  --indigo: #4f46e5;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
  --soft-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 15% 5%, rgba(6, 182, 212, 0.18), transparent 28rem),
    linear-gradient(135deg, var(--bg), var(--bg-2) 50%, var(--bg-3));
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

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

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

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

.brand-name {
  font-size: 1.15rem;
}

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

.nav-link {
  padding: 10px 15px;
  color: #334155;
  border-radius: 999px;
  font-weight: 650;
  transition: 0.22s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--blue);
  background: rgba(6, 182, 212, 0.10);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(6, 182, 212, 0.10);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #0f172a;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
}

.mobile-nav.is-open {
  display: grid;
}

.hero-carousel {
  position: relative;
  height: min(720px, 72vh);
  min-height: 520px;
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 0.9s ease, visibility 0.7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
}

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.55) 46%, rgba(2, 6, 23, 0.15)),
    linear-gradient(0deg, rgba(2, 6, 23, 0.56), transparent 40%);
}

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: min(690px, 100%);
  padding-top: 50px;
}

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

.hero-tags span,
.detail-tags span,
.tag-row span,
.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 750;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.17);
  backdrop-filter: blur(10px);
}

.hero-tags span:first-child {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.hero-copy h1 {
  margin: 22px 0 16px;
  color: #ffffff;
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 620px;
  margin: 0 0 30px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.8;
}

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

.primary-button,
.ghost-button,
.pill-link,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: 0.22s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 16px 28px rgba(37, 99, 235, 0.25);
}

.primary-button:hover,
.pill-link:hover,
.section-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 34px rgba(37, 99, 235, 0.30);
}

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

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.22);
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 30px;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
  transition: 0.22s ease;
}

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

.category-strip {
  position: relative;
  z-index: 5;
  padding: 22px 0;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(16px);
}

.category-strip-inner {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.category-strip-inner a {
  flex: 0 0 auto;
  padding: 10px 18px;
  color: #334155;
  font-weight: 760;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
  transition: 0.22s ease;
}

.category-strip-inner a:hover,
.category-strip-inner a.is-current {
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.page-main {
  padding: 34px 0 70px;
}

.page-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  padding: clamp(32px, 5vw, 56px);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(6, 182, 212, 0.24), transparent 26rem),
    rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
}

.small-hero {
  display: block;
}

.eyebrow {
  color: var(--blue);
  background: rgba(6, 182, 212, 0.12);
}

.page-hero h1 {
  margin: 14px 0;
  font-size: clamp(2.3rem, 5vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.85;
}

.search-section {
  margin-top: 24px;
  margin-bottom: 32px;
}

.sticky-filter {
  position: sticky;
  top: 88px;
  z-index: 30;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px auto;
  gap: 14px;
  align-items: end;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(14px);
}

.filter-panel label {
  display: grid;
  gap: 7px;
  color: #334155;
  font-size: 0.9rem;
  font-weight: 750;
}

.filter-panel input,
.filter-panel select {
  min-height: 44px;
  width: 100%;
  color: #111827;
  border: 1px solid var(--line);
  border-radius: 15px;
  outline: none;
  padding: 0 13px;
  background: #ffffff;
}

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

.filter-count {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.content-section {
  padding: 28px 0;
}

.soft-panel {
  padding: 22px 0;
  background: linear-gradient(135deg, rgba(207, 250, 254, 0.45), rgba(219, 234, 254, 0.52));
}

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

.section-heading h2 {
  margin: 0 0 7px;
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.section-more,
.pill-link {
  color: var(--blue);
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--soft-shadow);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.14);
}

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

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

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

.poster-badge,
.poster-play {
  position: absolute;
  z-index: 2;
}

.poster-badge {
  left: 12px;
  top: 12px;
  padding: 5px 10px;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 850;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.58);
  backdrop-filter: blur(8px);
}

.poster-play {
  right: 12px;
  bottom: 12px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #ffffff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.34);
}

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

.movie-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.movie-card h2 {
  margin: 9px 0 8px;
  font-size: 1.05rem;
  line-height: 1.36;
}

.movie-card h2 a:hover,
.rank-copy h2 a:hover {
  color: var(--blue);
}

.movie-card p {
  min-height: 4.4em;
  margin: 0 0 12px;
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.58;
}

.tag-row span,
.detail-tags span {
  color: #0e7490;
  background: rgba(6, 182, 212, 0.11);
}

.overview-list {
  display: grid;
  gap: 24px;
}

.category-overview-card {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--soft-shadow);
}

.category-overview-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.category-overview-head h2 {
  margin: 0 0 8px;
  font-size: 1.65rem;
}

.category-overview-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 70px 96px 1fr 88px;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--soft-shadow);
}

.rank-number {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  color: #ffffff;
  border-radius: 18px;
  font-size: 1.1rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}

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

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

.rank-copy h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.rank-copy p {
  margin: 0 0 10px;
  color: #475569;
  line-height: 1.65;
}

.heat-score {
  display: grid;
  place-items: center;
  min-height: 72px;
  border-radius: 20px;
  color: #0e7490;
  background: rgba(6, 182, 212, 0.10);
}

.heat-score span {
  font-size: 1.45rem;
  font-weight: 900;
}

.heat-score small {
  color: var(--muted);
  font-weight: 700;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 26px;
  align-items: start;
}

.player-card,
.detail-card,
.side-card {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.player-card {
  overflow: hidden;
  margin-bottom: 24px;
  background: #020617;
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.video-frame video {
  width: 100%;
  height: 100%;
  display: block;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 10px;
  color: #ffffff;
  border: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.20), rgba(2, 6, 23, 0.62));
  cursor: pointer;
}

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

.play-circle {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 20px 44px rgba(37, 99, 235, 0.36);
}

.detail-card {
  padding: clamp(22px, 4vw, 34px);
}

.detail-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.detail-title-row h1 {
  margin: 12px 0 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -0.05em;
}

.lead-text {
  margin: 0 0 20px;
  color: #334155;
  font-size: 1.08rem;
  line-height: 1.85;
}

.detail-card section {
  margin-top: 28px;
}

.detail-card h2,
.side-card h2 {
  margin: 0 0 12px;
  font-size: 1.35rem;
}

.detail-card p {
  margin: 0 0 12px;
  color: #475569;
  line-height: 1.9;
}

.detail-side {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 96px;
}

.poster-side {
  overflow: hidden;
}

.poster-side img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.info-side {
  padding: 22px;
}

.info-side dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.info-side dl div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.info-side dt {
  color: var(--muted);
}

.info-side dd {
  margin: 0;
  font-weight: 800;
  text-align: right;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 28px;
}

.footer-brand {
  color: #ffffff;
}

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

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

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

.footer-links a:hover {
  color: #67e8f9;
}

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

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

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

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

  .detail-side {
    position: static;
    grid-template-columns: 240px 1fr;
  }
}

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

  .menu-button {
    display: block;
  }

  .hero-carousel {
    height: 620px;
    min-height: 620px;
  }

  .hero-copy {
    padding-top: 20px;
  }

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

  .page-hero,
  .section-heading,
  .detail-title-row,
  .category-overview-head {
    display: block;
  }

  .section-more,
  .page-hero .primary-button,
  .detail-title-row .primary-button {
    margin-top: 16px;
  }

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

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

  .heat-score {
    grid-column: 1 / -1;
    min-height: 54px;
  }

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

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

@media (max-width: 520px) {
  .shell {
    width: min(100% - 22px, 1180px);
  }

  .brand-name {
    font-size: 1rem;
  }

  .hero-copy h1 {
    font-size: 2.45rem;
  }

  .movie-grid,
  .wide-grid,
  .mini-grid {
    grid-template-columns: 1fr;
  }

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

  .rank-cover {
    display: none;
  }
}
