:root {
  --sky-50: #f0f9ff;
  --sky-100: #e0f2fe;
  --sky-500: #0ea5e9;
  --sky-600: #0284c7;
  --blue-600: #2563eb;
  --slate-950: #020617;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--gray-900);
  background: linear-gradient(180deg, var(--sky-50), var(--white) 46%, var(--gray-50));
}

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

img {
  display: block;
  width: 100%;
  height: auto;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(226, 232, 240, 0.82);
  backdrop-filter: blur(18px);
}

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

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--sky-500), var(--blue-600));
  box-shadow: 0 12px 28px rgba(14, 165, 233, 0.34);
}

.logo-text {
  font-size: 20px;
}

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

.nav-link {
  padding: 9px 14px;
  color: var(--gray-700);
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--sky-600);
  background: var(--sky-50);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  color: var(--gray-900);
  border-radius: 12px;
  background: var(--gray-100);
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
}

.hero {
  position: relative;
  height: 70vh;
  min-height: 520px;
  overflow: hidden;
  background: var(--slate-950);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 16%, rgba(14, 165, 233, 0.24), transparent 30%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.48) 54%, rgba(2, 6, 23, 0.1));
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding-bottom: 76px;
}

.hero-copy {
  max-width: 720px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--sky-100);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero-summary {
  max-width: 640px;
  margin: 22px 0 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
  line-height: 1.8;
}

.hero-meta,
.detail-meta,
.rank-meta,
.card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-meta span,
.detail-meta span,
.rank-meta span,
.rank-meta a,
.rank-meta strong {
  padding: 6px 10px;
  color: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.hero-actions,
.page-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--sky-500), var(--blue-600));
  box-shadow: 0 14px 32px rgba(14, 165, 233, 0.34);
}

.btn.ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.btn.ghost.light {
  color: var(--gray-900);
  background: rgba(255, 255, 255, 0.84);
}

.hero-dots {
  position: absolute;
  right: max(28px, calc((100vw - var(--container)) / 2));
  bottom: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.54);
  transition: width 0.25s ease, background 0.25s ease;
}

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

.section {
  padding: 72px 0;
}

.soft-section,
.channel-section {
  background: linear-gradient(90deg, rgba(240, 249, 255, 0.9), rgba(239, 246, 255, 0.8));
}

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

.section-head.compact {
  align-items: center;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 10px 0 0;
  color: var(--gray-500);
}

.section-more {
  color: var(--sky-600);
  font-weight: 800;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.poster-wrap {
  position: relative;
  display: block;
  height: 320px;
  overflow: hidden;
  background: var(--gray-100);
}

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

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

.play-float {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  margin: auto;
  color: var(--sky-600);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  opacity: 0;
  transform: scale(0.84);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.movie-card:hover .play-float {
  opacity: 1;
  transform: scale(1);
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  color: #fff;
  font-weight: 900;
  border-radius: 13px;
  background: linear-gradient(135deg, #f97316, #ef4444);
}

.card-body {
  padding: 18px;
}

.card-body h3 {
  min-height: 56px;
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.45;
}

.card-body h3 a:hover {
  color: var(--sky-600);
}

.card-line {
  min-height: 46px;
  margin: 0 0 14px;
  color: var(--gray-500);
  font-size: 14px;
  line-height: 1.65;
}

.card-meta {
  justify-content: space-between;
  color: var(--gray-500);
  font-size: 13px;
}

.card-meta a {
  color: var(--sky-600);
  font-weight: 700;
}

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

.channel-card,
.category-overview-card {
  display: block;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.channel-card:hover,
.category-overview-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.channel-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
}

.channel-card span,
.category-overview-card p,
.category-overview-card span {
  color: var(--gray-500);
  line-height: 1.7;
}

.two-column {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  align-items: start;
}

.hot-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hot-list a {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.hot-index {
  color: var(--sky-600);
  font-size: 22px;
  font-weight: 900;
}

.hot-title {
  min-width: 0;
  font-weight: 800;
}

.hot-score {
  color: var(--gray-500);
  font-size: 13px;
}

.page-hero {
  color: #fff;
  padding: 84px 0;
  background:
    radial-gradient(circle at 72% 20%, rgba(255, 255, 255, 0.22), transparent 26%),
    linear-gradient(135deg, var(--sky-500), var(--blue-600));
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  padding: 14px;
}

.category-overview-card img {
  height: 116px;
  border-radius: 14px;
  object-fit: cover;
}

.category-overview-card h2 {
  margin: 4px 0 8px;
  font-size: 20px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 136px 1fr;
  gap: 22px;
  align-items: center;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

.rank-cover {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
}

.rank-cover img {
  height: 170px;
  object-fit: cover;
}

.rank-cover span {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 6px 9px;
  color: #fff;
  border-radius: 10px;
  background: rgba(2, 6, 23, 0.74);
  font-weight: 900;
}

.rank-info h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.rank-info p {
  margin: 0 0 16px;
  color: var(--gray-500);
  line-height: 1.8;
}

.rank-meta span,
.rank-meta a,
.rank-meta strong {
  color: var(--gray-700);
  border-color: rgba(14, 165, 233, 0.18);
  background: var(--sky-50);
}

.search-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  max-width: 760px;
  margin-top: 26px;
  padding: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.search-panel input {
  width: 100%;
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  outline: none;
  color: var(--gray-900);
}

.search-status {
  margin-bottom: 20px;
  color: var(--gray-500);
  font-weight: 700;
}

.detail-hero {
  position: relative;
  min-height: 620px;
  color: #fff;
  overflow: hidden;
  background: var(--slate-950);
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.62), rgba(2, 6, 23, 0.92)),
    var(--poster) center / cover no-repeat;
  filter: saturate(1.08);
}

.detail-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 44px;
  align-items: end;
  min-height: 620px;
  padding: 76px 0;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.detail-poster img {
  height: 460px;
  object-fit: cover;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #fff;
}

.detail-one-line {
  max-width: 790px;
  margin: 20px 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
  line-height: 1.8;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag {
  display: inline-flex;
  padding: 7px 10px;
  color: var(--sky-600);
  border-radius: 999px;
  background: var(--sky-50);
  font-size: 13px;
  font-weight: 800;
}

.player-section {
  background: #020617;
}

.player-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.96);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.28);
}

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

.movie-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 10px;
  color: #fff;
  border: 0;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.24), rgba(2, 6, 23, 0.7));
}

.player-start span {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  color: var(--sky-600);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  font-size: 30px;
}

.player-start strong {
  font-size: 19px;
}

.player-start.hidden {
  display: none;
}

.player-note {
  margin: 0;
  padding: 16px 20px;
  color: rgba(255, 255, 255, 0.7);
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.content-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

.content-card h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.content-card p {
  margin: 0;
  color: var(--gray-700);
  line-height: 1.95;
}

.site-footer {
  padding: 46px 0;
  color: var(--gray-500);
  background: #fff;
  border-top: 1px solid rgba(226, 232, 240, 0.86);
}

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

.footer-logo {
  margin-bottom: 8px;
  color: var(--gray-900);
  font-size: 20px;
}

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

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

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

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

  .two-column,
  .detail-grid,
  .detail-hero-inner {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    max-width: 320px;
  }
}

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

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

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

  .hero {
    min-height: 620px;
  }

  .hero-content {
    padding-bottom: 98px;
  }

  .hero-dots {
    right: auto;
    left: 16px;
  }

  .section {
    padding: 48px 0;
  }

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

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

  .poster-wrap {
    height: 230px;
  }

  .card-body {
    padding: 14px;
  }

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

  .hot-list a,
  .rank-row {
    grid-template-columns: 1fr;
  }

  .search-panel {
    grid-template-columns: 1fr;
    border-radius: 22px;
  }

  .detail-poster img {
    height: 420px;
  }
}

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

  .poster-wrap {
    height: 360px;
  }
}
