* {
  box-sizing: border-box;
}

:root {
  --bg: #f7fbff;
  --panel: #ffffff;
  --ink: #111827;
  --muted: #64748b;
  --line: #dbeafe;
  --sky: #0284c7;
  --sky-soft: #e0f2fe;
  --blue: #2563eb;
  --shadow: 0 24px 70px rgba(37, 99, 235, 0.14);
  --radius: 28px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.16), transparent 30rem),
    linear-gradient(180deg, #f0f9ff 0%, #ffffff 45%, #f8fafc 100%);
}

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;
  border-bottom: 1px solid rgba(186, 230, 253, 0.75);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 28px rgba(14, 116, 144, 0.06);
}

.nav-inner {
  width: min(1240px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #ffffff;
  font-weight: 900;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, #0284c7, #2563eb);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.25);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.08;
}

.brand-copy strong {
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #0284c7, #2563eb);
  -webkit-background-clip: text;
  color: transparent;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link {
  color: #334155;
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--sky);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: var(--sky-soft);
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--sky);
  border-radius: 99px;
}

.hero-carousel {
  position: relative;
  height: 620px;
  overflow: hidden;
  background: linear-gradient(135deg, #e0f2fe 0%, #ffffff 42%, #dbeafe 100%);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.8s ease, transform 1.2s ease;
  pointer-events: none;
}

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.9), rgba(15, 23, 42, 0.62) 45%, rgba(15, 23, 42, 0.2)),
    linear-gradient(0deg, rgba(2, 6, 23, 0.82), transparent 52%);
}

.hero-content {
  position: absolute;
  left: 50%;
  bottom: 72px;
  width: min(1240px, calc(100% - 32px));
  transform: translateX(-50%);
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 16px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  background: linear-gradient(90deg, #0ea5e9, #2563eb);
  box-shadow: 0 12px 34px rgba(14, 165, 233, 0.32);
}

.hero-content h1,
.hero-content h2 {
  max-width: 760px;
  margin: 20px 0 16px;
  font-size: clamp(34px, 6vw, 66px);
  line-height: 1.03;
  font-weight: 900;
  letter-spacing: -0.045em;
}

.hero-title-small {
  display: block;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(18px, 2.1vw, 24px);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.hero-content p {
  max-width: 720px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.8;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(90deg, #0284c7, #2563eb);
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.3);
}

.btn.btn-light {
  color: #0f172a;
  background: #ffffff;
}

.btn.btn-ghost {
  color: #0f172a;
  background: #e0f2fe;
  box-shadow: none;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  transform: translateY(-50%);
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.36);
}

.hero-arrow.prev {
  left: 22px;
}

.hero-arrow.next {
  right: 22px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 4;
  display: flex;
  gap: 9px;
  transform: translateX(-50%);
}

.hero-dots button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  transition: width 0.2s ease, background 0.2s ease;
}

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

.page-main {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 50px 0 72px;
}

.section {
  margin: 0 0 58px;
}

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

.section-kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--sky);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.section-head h1,
.section-head h2,
.page-title h1 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.16;
  font-weight: 950;
  letter-spacing: -0.03em;
}

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

.title-line {
  flex: 1;
  height: 4px;
  min-width: 120px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0ea5e9, rgba(14, 165, 233, 0));
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(186, 230, 253, 0.8);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 50px rgba(37, 99, 235, 0.09);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  border-color: rgba(14, 165, 233, 0.75);
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

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

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

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

.poster-shade {
  position: absolute;
  inset: auto 0 0;
  height: 44%;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.76), transparent);
}

.score-badge,
.rank-badge {
  position: absolute;
  right: 12px;
  top: 12px;
  display: inline-flex;
  min-width: 48px;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  background: rgba(2, 132, 199, 0.94);
  box-shadow: 0 8px 22px rgba(2, 132, 199, 0.28);
}

.card-body {
  display: block;
  padding: 16px;
}

.card-body strong {
  display: block;
  color: #0f172a;
  font-size: 18px;
  line-height: 1.35;
}

.card-meta,
.card-desc {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.card-desc {
  min-height: 42px;
}

.tag-line {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.tag-line span,
.meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  color: #0369a1;
  font-size: 12px;
  font-weight: 800;
  background: #e0f2fe;
}

.ribbon-section {
  overflow: hidden;
  padding: 30px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(224, 242, 254, 0.95), rgba(219, 234, 254, 0.95));
  box-shadow: var(--shadow);
}

.scroll-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(210px, 1fr);
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
}

.scroll-row .movie-card {
  scroll-snap-align: start;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  padding: 24px;
  border: 1px solid rgba(186, 230, 253, 0.8);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.22), transparent 9rem),
    #ffffff;
  box-shadow: 0 16px 42px rgba(37, 99, 235, 0.09);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-card h2,
.category-card h3 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 950;
}

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

.category-card span {
  display: inline-flex;
  margin-top: 18px;
  color: var(--sky);
  font-weight: 900;
}

.filter-panel {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 24px 0 30px;
  padding: 18px;
  border: 1px solid rgba(186, 230, 253, 0.9);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.08);
}

.search-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.search-box input,
.filter-select {
  width: 100%;
  height: 46px;
  border: 1px solid #bfdbfe;
  border-radius: 16px;
  outline: none;
  color: #0f172a;
  background: #ffffff;
}

.search-box input {
  padding: 0 16px;
}

.filter-select {
  min-width: 150px;
  padding: 0 12px;
}

.search-box input:focus,
.filter-select:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.16);
}

.filter-selects {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 76px 88px minmax(0, 1fr) 110px;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(186, 230, 253, 0.85);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 34px rgba(37, 99, 235, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.rank-number {
  color: #0284c7;
  font-size: 26px;
  font-weight: 950;
  text-align: center;
}

.rank-row img {
  width: 88px;
  height: 112px;
  border-radius: 16px;
  object-fit: cover;
  background: linear-gradient(135deg, #dbeafe, #e0f2fe);
}

.rank-row h2,
.rank-row h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 950;
}

.rank-row p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.rank-heat {
  display: inline-flex;
  justify-content: center;
  padding: 9px 12px;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(90deg, #0284c7, #2563eb);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 14px;
}

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

.detail-hero {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 34px;
  align-items: stretch;
  margin-bottom: 42px;
  padding: 26px;
  border: 1px solid rgba(186, 230, 253, 0.85);
  border-radius: 32px;
  background:
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.2), transparent 16rem),
    rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.detail-poster img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border-radius: 24px;
  object-fit: cover;
  background: linear-gradient(135deg, #dbeafe, #e0f2fe);
}

.detail-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.detail-info h1 {
  margin: 14px 0 16px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.detail-lead {
  margin: 0 0 20px;
  color: #334155;
  font-size: 18px;
  line-height: 1.8;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 10px 0 22px;
}

.watch-panel,
.content-panel {
  margin-bottom: 38px;
  padding: 24px;
  border: 1px solid rgba(186, 230, 253, 0.85);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 48px rgba(37, 99, 235, 0.09);
}

.watch-panel h2,
.content-panel h2 {
  margin: 0 0 16px;
  font-size: 26px;
  font-weight: 950;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #020617;
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  background: #020617;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background-size: cover;
  background-position: center;
  cursor: pointer;
}

.player-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(14, 165, 233, 0.2), transparent 20rem),
    linear-gradient(0deg, rgba(2, 6, 23, 0.78), rgba(2, 6, 23, 0.24));
}

.play-button {
  position: relative;
  z-index: 2;
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 999px;
  color: #0f172a;
  font-size: 31px;
  font-weight: 900;
  background: #ffffff;
  box-shadow: 0 20px 54px rgba(2, 6, 23, 0.3);
  transition: transform 0.2s ease, background 0.2s ease;
}

.play-button:hover {
  transform: scale(1.08);
  background: #e0f2fe;
}

.content-panel p {
  margin: 0 0 16px;
  color: #334155;
  font-size: 17px;
  line-height: 1.9;
}

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

.site-footer {
  border-top: 1px solid rgba(186, 230, 253, 0.8);
  background: #ffffff;
}

.footer-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 16px;
  font-weight: 800;
}

.footer-links a:hover {
  color: var(--sky);
}

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

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

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

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

  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 14px;
    border: 1px solid rgba(186, 230, 253, 0.9);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow);
  }

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

  .nav-link {
    padding: 12px 14px;
    border-radius: 14px;
  }

  .nav-link:hover,
  .nav-link.is-active {
    background: var(--sky-soft);
    transform: none;
  }

  .hero-carousel {
    height: 560px;
  }

  .hero-content {
    bottom: 58px;
  }

  .hero-arrow {
    display: none;
  }

  .section-head,
  .filter-panel,
  .footer-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-selects {
    width: 100%;
  }

  .filter-select {
    flex: 1;
    min-width: 130px;
  }

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

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

  .detail-poster img {
    min-height: auto;
    max-height: 560px;
  }

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

  .rank-heat {
    grid-column: 2 / -1;
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .nav-inner,
  .page-main,
  .footer-inner {
    width: min(100% - 22px, 1240px);
  }

  .brand-copy small {
    display: none;
  }

  .hero-carousel {
    height: 520px;
  }

  .hero-content h1,
  .hero-content h2 {
    margin-top: 14px;
  }

  .hero-content p {
    font-size: 15px;
  }

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

  .ribbon-section,
  .watch-panel,
  .content-panel,
  .detail-hero {
    padding: 18px;
    border-radius: 24px;
  }

  .scroll-row {
    grid-auto-columns: 78%;
  }

  .rank-row {
    grid-template-columns: 44px 64px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-row img {
    width: 64px;
    height: 86px;
    border-radius: 14px;
  }
}
