:root {
  --sky-50: #f0f9ff;
  --sky-100: #e0f2fe;
  --sky-200: #bae6fd;
  --sky-300: #7dd3fc;
  --sky-500: #0ea5e9;
  --sky-600: #0284c7;
  --sky-700: #0369a1;
  --cyan-50: #ecfeff;
  --blue-50: #eff6ff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #dbeafe;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(2, 132, 199, 0.14);
  --soft-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.18), transparent 34rem),
    linear-gradient(180deg, var(--sky-50) 0%, #ffffff 42%, #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.85);
  background: linear-gradient(90deg, rgba(224, 242, 254, 0.95), rgba(239, 246, 255, 0.95), rgba(236, 254, 255, 0.95));
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 28px rgba(2, 132, 199, 0.12);
}

.header-inner,
.footer-inner,
.content-section,
.quick-channels,
.ranking-section,
.page-hero,
.detail-hero,
.player-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

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

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

.brand-icon {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  font-weight: 900;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--sky-500), #22d3ee);
  box-shadow: 0 10px 22px rgba(14, 165, 233, 0.35);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-text strong {
  color: var(--sky-700);
  font-size: 20px;
  letter-spacing: 0.02em;
}

.brand-text em {
  color: var(--sky-500);
  font-size: 11px;
  font-style: normal;
  margin-top: 4px;
}

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

.nav-link,
.mobile-link {
  color: #334155;
  font-weight: 700;
  border-radius: 12px;
  transition: 0.22s ease;
}

.nav-link {
  padding: 10px 14px;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: var(--sky-700);
  background: rgba(14, 165, 233, 0.12);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.large-search input,
.filter-panel input,
.filter-panel select {
  border: 1px solid var(--sky-200);
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  outline: none;
  transition: 0.22s ease;
}

.header-search input {
  width: 230px;
  padding: 10px 14px;
  border-radius: 999px;
}

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

.header-search button,
.large-search button {
  border: 0;
  color: #ffffff;
  font-weight: 800;
  border-radius: 999px;
  padding: 10px 16px;
  background: linear-gradient(135deg, var(--sky-500), #06b6d4);
  box-shadow: 0 12px 22px rgba(14, 165, 233, 0.28);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  padding: 10px;
}

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

.mobile-menu {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 12px;
  padding: 10px;
  border: 1px solid var(--sky-200);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--soft-shadow);
}

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

.mobile-link {
  display: block;
  padding: 12px 14px;
}

.hero-carousel {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: #06182f;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
  background-image: linear-gradient(90deg, rgba(3, 7, 18, 0.88), rgba(3, 105, 161, 0.58), rgba(14, 165, 233, 0.15)), var(--hero-image);
  background-size: cover;
  background-position: center;
}

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 32%, rgba(125, 211, 252, 0.26), transparent 28rem),
    linear-gradient(180deg, transparent 0%, rgba(2, 8, 23, 0.72) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 42px;
  align-items: center;
  padding: 76px 0 84px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--sky-600);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero-copy .eyebrow,
.page-hero .eyebrow,
.detail-hero .eyebrow {
  color: #7dd3fc;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 18px 0 16px;
  color: #ffffff;
  font-size: clamp(38px, 6vw, 74px);
  line-height: 0.98;
  letter-spacing: -0.05em;
  text-shadow: 0 12px 34px rgba(0, 0, 0, 0.35);
}

.hero-copy p,
.page-hero p,
.detail-copy .lead {
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.85;
  margin: 0;
}

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

.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 10px;
  color: var(--sky-700);
  border-radius: 999px;
  background: rgba(224, 242, 254, 0.95);
  font-size: 12px;
  font-weight: 800;
}

.hero-tags {
  margin-top: 24px;
}

.hero-tags span {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

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

.primary-btn,
.ghost-btn,
.text-btn,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  font-weight: 900;
  transition: 0.22s ease;
}

.primary-btn {
  color: #ffffff;
  padding: 0 22px;
  background: linear-gradient(135deg, var(--sky-500), #22d3ee);
  box-shadow: 0 16px 32px rgba(14, 165, 233, 0.34);
}

.ghost-btn {
  color: #ffffff;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.primary-btn:hover,
.ghost-btn:hover,
.text-btn:hover,
.section-link:hover {
  transform: translateY(-2px);
}

.hero-poster {
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 28px 78px rgba(2, 8, 23, 0.48);
}

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

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

.hero-dot {
  width: 38px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
}

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

.quick-channels,
.content-section,
.ranking-section {
  padding: 72px 0 0;
}

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

.section-head.centered {
  display: block;
  text-align: center;
  max-width: 760px;
  margin: 0 auto 32px;
}

.section-head h2,
.footer-links h2,
.article-block h2 {
  margin: 8px 0 0;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.03em;
}

.section-head p,
.quick-channels p,
.side-panel p,
.category-overview-card p,
.footer-brand p,
.article-block p {
  color: var(--muted);
  line-height: 1.8;
}

.section-link,
.text-btn {
  color: var(--sky-700);
  padding: 0 18px;
  border: 1px solid var(--sky-200);
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

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

.channel-card,
.category-overview-card,
.side-panel,
.article-block {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--soft-shadow);
}

.channel-card {
  min-height: 150px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(224, 242, 254, 0.82)),
    radial-gradient(circle at right top, rgba(14, 165, 233, 0.20), transparent 12rem);
  transition: 0.22s ease;
}

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

.channel-card strong {
  color: var(--sky-700);
  font-size: 21px;
}

.channel-card span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(4, minmax(120px, 160px));
  gap: 12px;
  margin-bottom: 26px;
  padding: 14px;
  border: 1px solid var(--sky-200);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--soft-shadow);
}

.filter-panel label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--sky-700);
  font-size: 12px;
  font-weight: 900;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  height: 44px;
  border-radius: 14px;
  padding: 0 12px;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
  transition: 0.22s ease;
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, var(--sky-100), var(--cyan-50));
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 46%, rgba(2, 8, 23, 0.76));
}

.poster-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(14, 165, 233, 0.9);
  box-shadow: 0 8px 18px rgba(2, 8, 23, 0.25);
}

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

.card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.movie-card h2 {
  margin: 8px 0 8px;
  font-size: 16px;
  line-height: 1.35;
}

.movie-card h2 a:hover {
  color: var(--sky-600);
}

.movie-card p {
  min-height: 58px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.ranking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 46px 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
  transition: 0.22s ease;
}

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

.rank-num {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 900;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sky-500), #22d3ee);
}

.rank-item img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
}

.rank-info {
  min-width: 0;
}

.rank-info strong,
.compact-card strong {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-info em,
.compact-card em {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-heat {
  color: var(--sky-600);
  font-weight: 900;
}

.side-panel {
  padding: 26px;
}

.chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.chip-cloud a {
  color: var(--sky-700);
  font-size: 13px;
  font-weight: 900;
  border-radius: 999px;
  padding: 9px 13px;
  background: var(--sky-100);
}

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

.compact-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
  transition: 0.22s ease;
}

.compact-card img {
  width: 74px;
  height: 96px;
  border-radius: 14px;
  object-fit: cover;
}

.page-hero,
.detail-hero {
  margin-top: 28px;
  padding: 68px 42px;
  overflow: hidden;
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(2, 8, 23, 0.88), rgba(3, 105, 161, 0.72)),
    radial-gradient(circle at right top, rgba(125, 211, 252, 0.34), transparent 28rem);
  box-shadow: var(--shadow);
}

.page-hero.small-hero,
.page-hero.category-hero,
.page-hero.ranking-hero,
.page-hero.search-hero {
  min-height: 310px;
  display: flex;
  align-items: center;
}

.page-hero h1 {
  font-size: clamp(40px, 5vw, 64px);
}

.inline-actions .ghost-btn {
  color: var(--sky-700);
  border-color: var(--sky-200);
  background: #ffffff;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 20px;
  padding: 18px;
  transition: 0.22s ease;
}

.category-cover-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.category-cover-row img {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 14px;
  object-fit: cover;
}

.detail-hero {
  padding: 30px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  margin-bottom: 24px;
}

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

.detail-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 22px 52px rgba(2, 8, 23, 0.45);
}

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

.detail-copy h1 {
  font-size: clamp(34px, 5vw, 60px);
}

.detail-meta {
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.78);
}

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

.detail-tags span {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.14);
}

.player-section {
  padding-top: 28px;
}

.player-box {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 30px;
  background: #020617;
  box-shadow: var(--shadow);
}

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

.player-mask {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(2, 8, 23, 0.36), rgba(2, 8, 23, 0.72));
}

.player-box.is-ready .player-mask {
  display: none;
}

.play-circle {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  color: var(--sky-600);
  font-size: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 38px rgba(2, 8, 23, 0.35);
}

.player-mask strong {
  font-size: 22px;
}

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

.article-block {
  padding: 28px;
}

.article-block h2 {
  font-size: 26px;
}

.site-footer {
  margin-top: 76px;
  padding: 54px 0 0;
  background: linear-gradient(180deg, #f8fafc, #e0f2fe);
  border-top: 1px solid var(--sky-200);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 1fr 1fr;
  gap: 34px;
}

.brand.compact .brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
}

.brand.compact .brand-text strong {
  font-size: 18px;
}

.footer-links {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-links h2 {
  font-size: 16px;
  margin-bottom: 6px;
}

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

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

.footer-bottom {
  margin-top: 38px;
  padding: 18px;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid rgba(125, 211, 252, 0.55);
}

.large-search {
  display: flex;
  gap: 10px;
  max-width: 680px;
  margin-top: 28px;
}

.large-search input {
  flex: 1;
  min-height: 54px;
  border-radius: 999px;
  padding: 0 20px;
}

.large-search button {
  min-width: 110px;
}

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

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

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

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

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

  .ranking-layout,
  .full-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .main-nav,
  .header-search {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero-content {
    grid-template-columns: 1fr;
    min-height: 680px;
    align-content: center;
  }

  .hero-poster {
    display: none;
  }

  .hero-copy h1 {
    font-size: 46px;
  }

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

  .channel-grid,
  .compact-grid,
  .category-overview-grid,
  .detail-content,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .category-overview-card,
  .detail-grid {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 620px) {
  .header-inner,
  .footer-inner,
  .content-section,
  .quick-channels,
  .ranking-section,
  .page-hero,
  .detail-hero,
  .player-section {
    width: min(100% - 22px, 1180px);
  }

  .brand-text strong {
    font-size: 17px;
  }

  .mobile-menu.is-open {
    grid-template-columns: 1fr;
  }

  .hero-carousel,
  .hero-content {
    min-height: 640px;
  }

  .hero-copy h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 36px;
  }

  .hero-copy p,
  .page-hero p,
  .detail-copy .lead {
    font-size: 16px;
  }

  .hero-actions,
  .large-search {
    flex-direction: column;
  }

  .primary-btn,
  .ghost-btn,
  .large-search button {
    width: 100%;
  }

  .quick-channels,
  .content-section,
  .ranking-section {
    padding-top: 46px;
  }

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

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

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

  .movie-card p {
    min-height: auto;
  }

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

  .rank-item {
    grid-template-columns: 38px 56px minmax(0, 1fr);
  }

  .rank-item img {
    width: 56px;
    height: 56px;
  }

  .rank-heat {
    display: none;
  }

  .page-hero,
  .detail-hero {
    border-radius: 24px;
    padding: 42px 20px;
  }

  .player-box {
    border-radius: 20px;
  }
}
