:root {
  color-scheme: light;
  --bg: #f6f8fb;
  --panel: #ffffff;
  --text: #142033;
  --muted: #64748b;
  --line: #e5eaf2;
  --brand: #2563eb;
  --brand-2: #14b8a6;
  --dark: #07111f;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --soft-shadow: 0 8px 26px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
}

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

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

.brand-icon {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 12px 22px rgba(37, 99, 235, 0.22);
}

.brand-text {
  font-size: 22px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link,
.nav-more-button {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 13px;
  border: 0;
  border-radius: 11px;
  color: #334155;
  background: transparent;
  font-size: 14px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-more-button:hover,
.nav-link.active {
  color: var(--brand);
  background: #eff6ff;
  transform: translateY(-1px);
}

.nav-more {
  position: relative;
}

.nav-more-panel {
  position: absolute;
  right: 0;
  top: 45px;
  min-width: 180px;
  display: none;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}

.nav-more.open .nav-more-panel {
  display: grid;
  gap: 4px;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font-size: 22px;
}

.mobile-nav {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.mobile-nav.open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: var(--dark);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.5s ease, transform 0.9s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 76% 38%, rgba(20, 184, 166, 0.35), transparent 28%),
    linear-gradient(90deg, rgba(7, 17, 31, 0.96), rgba(7, 17, 31, 0.74) 45%, rgba(7, 17, 31, 0.38)),
    linear-gradient(180deg, transparent, rgba(7, 17, 31, 0.86));
}

.hero-content {
  position: relative;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding-top: 60px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 12px;
  color: #14b8a6;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(40px, 8vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero h2 {
  margin: 22px 0 0;
  font-size: clamp(26px, 4vw, 46px);
  letter-spacing: -0.03em;
}

.hero-summary {
  max-width: 720px;
  margin: 20px 0 0;
  color: #d7e2f1;
  font-size: 18px;
}

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

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.28);
}

.secondary-button {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
}

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

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

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

.section {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 58px 0;
}

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

.section-head.compact {
  align-items: center;
  margin-bottom: 16px;
}

.section-head h2,
.page-hero h1,
.detail-info h1,
.detail-main h2,
.library-block h2 {
  margin: 0;
  color: var(--text);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.section-head h2 {
  font-size: clamp(26px, 4vw, 42px);
}

.text-link {
  color: var(--brand);
  font-weight: 800;
}

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

.channel-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 74px;
  padding: 16px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--soft-shadow);
  color: #1e293b;
  font-weight: 800;
  transition: transform 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.channel-pill:hover {
  color: var(--brand);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 30px;
  align-items: start;
}

.search-row {
  margin-bottom: 22px;
}

.search-row input {
  width: 100%;
  min-height: 50px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--text);
  box-shadow: var(--soft-shadow);
  outline: none;
}

.search-row input:focus {
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--soft-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(37, 99, 235, 0.22);
  box-shadow: var(--shadow);
}

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

.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);
}

.play-mark,
.card-rank {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.play-mark {
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.66);
  backdrop-filter: blur(10px);
}

.card-rank {
  left: 12px;
  top: 12px;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f97316, #ef4444);
  font-size: 13px;
}

.card-body {
  padding: 16px;
}

.card-meta,
.tag-row,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-meta span,
.tag-row span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.card-body h3 {
  margin: 12px 0 7px;
  font-size: 18px;
  line-height: 1.25;
}

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

.card-body p {
  min-height: 48px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.rank-panel {
  position: sticky;
  top: 92px;
  padding: 22px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

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

.compact-link {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  column-gap: 10px;
  row-gap: 1px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  background: #f8fafc;
}

.compact-link:hover {
  background: #eff6ff;
}

.compact-link span {
  grid-row: span 2;
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  font-weight: 800;
  font-size: 12px;
}

.compact-link strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.compact-link em {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-hero {
  width: min(1280px, calc(100% - 32px));
  margin: 26px auto 0;
  padding: 58px;
  border-radius: 34px;
  color: #fff;
  background:
    radial-gradient(circle at 80% 20%, rgba(20, 184, 166, 0.42), transparent 32%),
    linear-gradient(135deg, #0f172a, #1e3a8a 56%, #0f766e);
  box-shadow: var(--shadow);
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(34px, 6vw, 62px);
}

.page-hero p:not(.eyebrow) {
  max-width: 720px;
  margin: 16px 0 0;
  color: #dbeafe;
  font-size: 18px;
}

.detail-hero {
  width: min(1280px, calc(100% - 32px));
  margin: 32px auto 0;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding: 34px;
  border-radius: 34px;
  color: #fff;
  background:
    radial-gradient(circle at 80% 16%, rgba(20, 184, 166, 0.35), transparent 30%),
    linear-gradient(135deg, #0f172a, #172554 60%, #0f766e);
  box-shadow: var(--shadow);
}

.detail-poster {
  overflow: hidden;
  border-radius: 26px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #dbeafe, #ccfbf1);
}

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

.detail-info h1 {
  color: #fff;
  font-size: clamp(34px, 6vw, 68px);
}

.lead-text {
  max-width: 820px;
  margin: 18px 0 0;
  color: #dbeafe;
  font-size: 18px;
}

.detail-tags {
  margin-top: 18px;
}

.detail-tags span {
  background: rgba(255, 255, 255, 0.13);
  color: #e0f2fe;
}

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

.detail-main {
  padding: 24px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.player-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin-bottom: 28px;
  border-radius: 24px;
  background: #020617;
}

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

.player-button {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: #fff;
  background: rgba(2, 6, 23, 0.32);
}

.player-button span {
  width: 72px;
  height: 72px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.3);
}

.player-card.playing .player-button {
  display: none;
}

.detail-main h2 {
  margin: 24px 0 12px;
  font-size: 30px;
}

.detail-main p {
  color: #334155;
  font-size: 17px;
}

.library-wrap {
  display: grid;
  gap: 22px;
}

.library-block {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.library-block h2 {
  margin-bottom: 16px;
  font-size: 22px;
}

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

.site-footer {
  margin-top: 38px;
  border-top: 1px solid var(--line);
  background: #0f172a;
  color: #dbeafe;
}

.footer-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 38px 0;
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 32px;
}

.footer-inner p {
  margin: 8px 0 0;
  color: #94a3b8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 20px;
}

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

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

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

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

  .split-layout,
  .detail-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .rank-panel {
    position: static;
  }

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

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

@media (max-width: 760px) {
  .brand-text {
    font-size: 18px;
  }

  .hero {
    min-height: 640px;
  }

  .hero-content {
    padding-top: 30px;
  }

  .section,
  .page-hero,
  .detail-hero {
    width: min(100% - 24px, 1280px);
  }

  .page-hero,
  .detail-hero {
    padding: 28px;
    border-radius: 26px;
  }

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

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

  .movie-grid,
  .library-links,
  .channel-grid,
  .mobile-nav.open {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 480px) {
  .movie-grid,
  .library-links,
  .channel-grid,
  .mobile-nav.open {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }
}
