:root {
  --sky: #0284c7;
  --sky-dark: #075985;
  --pink: #ec4899;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #f8fafc;
  --line: rgba(15, 23, 42, 0.10);
  --card: rgba(255, 255, 255, 0.88);
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 48%, #fdf2f8 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

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

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

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

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--sky), var(--pink));
  border-radius: 16px;
  box-shadow: 0 16px 32px rgba(2, 132, 199, 0.30);
}

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

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

.nav-link {
  padding: 10px 16px;
  color: #475569;
  border-radius: 999px;
  font-weight: 700;
  transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--sky-dark);
  background: #e0f2fe;
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 0;
  border-radius: 14px;
  background: #e0f2fe;
}

.mobile-menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--sky-dark);
  border-radius: 99px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 58px 0 36px;
}

.hero::before,
.hero::after {
  position: absolute;
  z-index: -1;
  width: 360px;
  height: 360px;
  content: "";
  filter: blur(30px);
  opacity: 0.34;
  border-radius: 999px;
}

.hero::before {
  top: -130px;
  left: -90px;
  background: #7dd3fc;
}

.hero::after {
  right: -100px;
  bottom: -140px;
  background: #f9a8d4;
}

.hero-slider {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 36px;
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, #0f172a, #075985 48%, #be185d);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 34px;
  align-items: center;
  padding: 58px;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transform: translateX(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-copy {
  max-width: 680px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  color: #bae6fd;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  font-weight: 800;
}

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(2.3rem, 6vw, 5.3rem);
  line-height: 0.96;
  letter-spacing: -0.08em;
}

.hero p {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.12rem;
  line-height: 1.9;
}

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

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: 0.25s ease;
}

.btn-primary {
  color: var(--sky-dark);
  background: #fff;
  box-shadow: 0 20px 34px rgba(255, 255, 255, 0.22);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
}

.btn-ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
}

.hero-poster-card {
  position: relative;
  overflow: hidden;
  align-self: stretch;
  min-height: 420px;
  border-radius: 30px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

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

.hero-poster-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.02), rgba(15, 23, 42, 0.84));
}

.hero-poster-meta {
  position: absolute;
  right: 24px;
  bottom: 24px;
  left: 24px;
  z-index: 2;
}

.hero-poster-meta span {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 6px 10px;
  color: #fff;
  background: rgba(14, 165, 233, 0.84);
  border-radius: 999px;
  font-weight: 800;
}

.hero-poster-meta strong {
  display: block;
  color: #fff;
  font-size: 1.35rem;
}

.hero-dots {
  position: absolute;
  bottom: 26px;
  left: 58px;
  display: flex;
  gap: 10px;
}

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

.hero-dot.active {
  background: #fff;
}

.section {
  padding: 42px 0;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.4rem);
  font-weight: 950;
  letter-spacing: -0.06em;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--muted);
}

.link-more {
  color: var(--sky-dark);
  font-weight: 900;
}

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

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

.movie-card {
  overflow: hidden;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 24px;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 58px rgba(2, 132, 199, 0.16);
}

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

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

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

.score-badge,
.play-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 999px;
  font-weight: 900;
}

.score-badge {
  top: 12px;
  left: 12px;
  min-width: 42px;
  height: 30px;
  background: rgba(236, 72, 153, 0.92);
}

.play-badge {
  right: 12px;
  bottom: 12px;
  height: 32px;
  padding: 0 12px;
  background: rgba(2, 132, 199, 0.92);
}

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

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 800;
}

.movie-card h3 {
  margin: 9px 0 8px;
  font-size: 1.08rem;
  line-height: 1.35;
  font-weight: 950;
}

.movie-card p {
  display: -webkit-box;
  min-height: 46px;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.tag-row span {
  padding: 5px 9px;
  color: var(--sky-dark);
  background: #e0f2fe;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 168px;
  padding: 24px;
  color: #fff;
  background: linear-gradient(135deg, #0284c7, #9333ea 55%, #ec4899);
  border-radius: 28px;
  box-shadow: 0 22px 50px rgba(2, 132, 199, 0.16);
}

.category-tile::after {
  position: absolute;
  right: -35px;
  bottom: -50px;
  width: 150px;
  height: 150px;
  content: "";
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.category-tile strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.25rem;
  font-weight: 950;
}

.category-tile span,
.category-tile small {
  position: relative;
  z-index: 2;
  display: block;
}

.category-tile small {
  margin-top: 20px;
  font-weight: 900;
}

.page-hero {
  padding: 54px 0 24px;
}

.page-card {
  padding: 34px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.80);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.page-card h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 950;
  letter-spacing: -0.07em;
}

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

.filter-bar {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 12px;
  margin: 0 0 24px;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  outline: none;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 58px 96px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.rank-num {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--sky), var(--pink));
  border-radius: 16px;
  font-weight: 950;
}

.rank-row img {
  width: 96px;
  height: 134px;
  object-fit: cover;
  border-radius: 16px;
}

.rank-row h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  font-weight: 950;
}

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

.rank-stats {
  color: var(--sky-dark);
  font-weight: 950;
  white-space: nowrap;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 340px;
  gap: 28px;
  padding: 36px 0;
}

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

.player-panel {
  overflow: hidden;
}

.movie-player {
  position: relative;
  overflow: hidden;
  background: #020617;
  aspect-ratio: 16 / 9;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: rgba(2, 6, 23, 0.55);
  background-size: cover;
  background-position: center;
  pointer-events: auto;
}

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

.play-circle {
  display: grid;
  width: 84px;
  height: 84px;
  place-items: center;
  color: var(--sky-dark);
  background: rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
  font-size: 2rem;
  font-weight: 950;
}

.detail-panel {
  margin-top: 24px;
  padding: 28px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  color: #64748b;
  font-size: 0.92rem;
  font-weight: 800;
}

.detail-title {
  margin: 0 0 12px;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 1.12;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.detail-meta span {
  padding: 8px 12px;
  color: var(--sky-dark);
  background: #e0f2fe;
  border-radius: 999px;
  font-weight: 900;
}

.detail-panel h2,
.side-panel h2 {
  margin: 22px 0 12px;
  font-size: 1.28rem;
  font-weight: 950;
}

.detail-panel p {
  margin: 0 0 16px;
  color: #475569;
  font-size: 1rem;
  line-height: 1.9;
}

.side-panel {
  padding: 18px;
  align-self: start;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  transition: 0.25s ease;
}

.compact-card:hover {
  background: #f0f9ff;
}

.compact-card img {
  grid-row: span 2;
  width: 72px;
  height: 96px;
  object-fit: cover;
  border-radius: 14px;
}

.compact-card span {
  font-weight: 950;
  line-height: 1.35;
}

.compact-card small {
  color: var(--muted);
  font-weight: 800;
}

.site-footer {
  margin-top: 46px;
  padding: 38px 0;
  color: #475569;
  background: rgba(255, 255, 255, 0.66);
  border-top: 1px solid rgba(255, 255, 255, 0.78);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.footer-logo {
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 950;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-weight: 900;
}

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

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

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

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

@media (max-width: 720px) {
  .site-shell {
    width: min(100% - 24px, 1180px);
  }

  .mobile-menu-button {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 72px;
    right: 12px;
    left: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 22px;
    box-shadow: var(--shadow);
  }

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

  .hero {
    padding-top: 26px;
  }

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

  .hero-slide {
    padding: 28px;
  }

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

  .hero-dots {
    left: 28px;
  }

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

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

  .rank-row {
    grid-template-columns: 42px 76px 1fr;
  }

  .rank-row img {
    width: 76px;
    height: 106px;
  }

  .rank-stats {
    grid-column: 2 / -1;
  }

  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }
}

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