* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: #e2e8f0;
  background:
    radial-gradient(circle at top left, rgba(8, 145, 178, 0.18), transparent 32rem),
    linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  transition: background 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.1));
}

.site-header.is-scrolled {
  background: rgba(15, 23, 42, 0.96);
  box-shadow: 0 12px 32px rgba(2, 6, 23, 0.34);
  backdrop-filter: blur(14px);
}

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

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

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  box-shadow: 0 0 32px rgba(6, 182, 212, 0.34);
}

.brand-text {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.16;
}

.brand-text strong {
  color: #fff;
  font-size: 19px;
  letter-spacing: 0.02em;
}

.brand-text small {
  margin-top: 3px;
  color: #94a3b8;
  font-size: 12px;
  white-space: nowrap;
}

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

.nav-link {
  padding: 9px 14px;
  border-radius: 12px;
  color: #cbd5e1;
  font-size: 14px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #67e8f9;
  background: rgba(6, 182, 212, 0.14);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.78);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: currentColor;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 12px;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(14px);
}

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

.hero {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  background: #020617;
}

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(2, 6, 23, 0.74) 36%, rgba(2, 6, 23, 0.22) 100%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0) 46%);
}

.hero-content {
  position: absolute;
  left: max(16px, calc((100vw - 1180px) / 2));
  bottom: 120px;
  width: min(680px, calc(100% - 32px));
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #67e8f9;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.hero h1 {
  margin: 14px 0 18px;
  color: #fff;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 620px;
  margin: 0 0 24px;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.75;
}

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

.hero-tags span,
.detail-tags span,
.card-tags span,
.detail-meta span,
.rank-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  border: 1px solid rgba(103, 232, 249, 0.16);
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.72);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(103, 232, 249, 0.24);
  border-radius: 14px;
  color: #e0f2fe;
  background: rgba(15, 23, 42, 0.74);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(103, 232, 249, 0.52);
  background: rgba(30, 41, 59, 0.92);
}

.btn.primary,
.btn.small {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  box-shadow: 0 16px 30px rgba(8, 145, 178, 0.24);
}

.btn.small {
  min-height: 36px;
  padding: 0 14px;
  font-size: 14px;
}

.btn.ghost {
  background: rgba(15, 23, 42, 0.58);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(226, 232, 240, 0.16);
  border-radius: 999px;
  color: #fff;
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(8px);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(8, 145, 178, 0.62);
  transform: translateY(-50%) scale(1.04);
}

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

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

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

.hero-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.7);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.active {
  width: 34px;
  background: #22d3ee;
}

.hero-search {
  position: absolute;
  right: max(16px, calc((100vw - 1180px) / 2));
  bottom: 116px;
  z-index: 8;
  display: flex;
  width: min(420px, calc(100% - 32px));
  padding: 8px;
  border: 1px solid rgba(103, 232, 249, 0.18);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.74);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 60px rgba(2, 6, 23, 0.35);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 12px;
  color: #fff;
  background: transparent;
}

.hero-search button {
  height: 42px;
  border: 0;
  border-radius: 12px;
  padding: 0 16px;
  color: #fff;
  background: #0891b2;
  cursor: pointer;
}

.section {
  padding: 64px 0;
}

.page-main {
  padding-top: 96px;
}

.page-hero {
  padding: 60px 0 30px;
}

.page-hero h1,
.section-heading h2,
.detail-info h1,
.content-card h2 {
  margin: 10px 0 0;
  color: #fff;
  line-height: 1.14;
}

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

.page-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: #94a3b8;
  font-size: 17px;
  line-height: 1.8;
}

.channel-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

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

.section-heading h2 {
  font-size: clamp(26px, 3vw, 36px);
}

.more-link {
  color: #22d3ee;
  font-weight: 700;
}

.grid {
  display: grid;
}

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

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

.archive-grid,
.latest-grid,
.related-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 18px 60px rgba(2, 6, 23, 0.22);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.32);
  box-shadow: 0 22px 70px rgba(6, 182, 212, 0.12);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: #0f172a;
}

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

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

.play-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  background: rgba(8, 145, 178, 0.9);
  backdrop-filter: blur(10px);
}

.card-body {
  padding: 15px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #94a3b8;
  font-size: 12px;
}

.card-body h3 {
  margin: 10px 0 8px;
  color: #fff;
  font-size: 17px;
  line-height: 1.35;
}

.card-body h3 a:hover {
  color: #67e8f9;
}

.card-body p {
  display: -webkit-box;
  min-height: 44px;
  margin: 0;
  overflow: hidden;
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.58;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-tags {
  margin-top: 12px;
}

.card-tags span {
  min-height: 22px;
  padding: 3px 8px;
  color: #94a3b8;
  font-size: 12px;
  border-radius: 8px;
}

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

.category-card,
.channel-tile {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.72));
}

.category-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 188px;
}

.category-preview,
.channel-covers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 8px;
  background: rgba(2, 6, 23, 0.32);
}

.category-preview img,
.channel-covers img {
  width: 100%;
  height: 100%;
  min-height: 84px;
  border-radius: 12px;
  object-fit: cover;
}

.category-info,
.channel-body {
  padding: 24px;
}

.category-info h3,
.channel-body h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 24px;
}

.category-info p,
.channel-body p {
  margin: 0;
  color: #94a3b8;
  line-height: 1.7;
}

.channel-tile {
  display: grid;
  grid-template-columns: 250px 1fr;
}

.channel-body span {
  color: #67e8f9;
  font-size: 13px;
  font-weight: 700;
}

.channel-body .btn {
  margin-top: 18px;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.5fr 0.65fr 0.85fr;
  gap: 14px;
  margin-bottom: 26px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.66);
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: #94a3b8;
  font-size: 13px;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  outline: none;
  padding: 0 14px;
  color: #e2e8f0;
  background: rgba(2, 6, 23, 0.5);
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(34, 211, 238, 0.5);
  box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.12);
}

.empty-state {
  display: none;
  margin-top: 20px;
  padding: 28px;
  border: 1px dashed rgba(148, 163, 184, 0.22);
  border-radius: 18px;
  color: #94a3b8;
  text-align: center;
}

.empty-state.is-visible {
  display: block;
}

.rank-section {
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(2, 6, 23, 0.22);
}

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

.rank-row {
  display: grid;
  grid-template-columns: 78px 58px 1fr auto 70px;
  align-items: center;
  gap: 16px;
  min-height: 100px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.72);
}

.rank-poster {
  overflow: hidden;
  width: 78px;
  height: 78px;
  border-radius: 16px;
  background: #0f172a;
}

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

.rank-number {
  color: #67e8f9;
  font-size: 28px;
  font-weight: 800;
}

.rank-main h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 18px;
}

.rank-main p {
  margin: 0 0 10px;
  color: #94a3b8;
  line-height: 1.55;
}

.rank-meta span {
  min-height: 22px;
  padding: 2px 8px;
  font-size: 12px;
}

.rank-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 12px;
  color: #fff;
  background: #0891b2;
}

.rank-heat {
  color: #facc15;
  font-weight: 800;
  text-align: right;
}

.detail-hero {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  padding-top: 110px;
}

.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(18px) saturate(1.1);
  transform: scale(1.08);
  opacity: 0.45;
}

.detail-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.58)),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0) 46%);
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 26px;
  color: #94a3b8;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #67e8f9;
}

.detail-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 34px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(103, 232, 249, 0.18);
  border-radius: 28px;
  box-shadow: 0 30px 90px rgba(2, 6, 23, 0.45);
}

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

.detail-info h1 {
  max-width: 820px;
  font-size: clamp(38px, 5vw, 64px);
}

.detail-one-line {
  max-width: 820px;
  margin: 18px 0 22px;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.8;
}

.detail-tags,
.detail-meta {
  margin-top: 14px;
}

.detail-info .btn {
  margin-top: 26px;
}

.player-box {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(103, 232, 249, 0.16);
  border-radius: 28px;
  background: #000;
  box-shadow: 0 30px 90px rgba(2, 6, 23, 0.42);
}

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

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: radial-gradient(circle, rgba(8, 145, 178, 0.18), rgba(2, 6, 23, 0.2));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-start span {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 999px;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  box-shadow: 0 0 0 14px rgba(6, 182, 212, 0.12), 0 20px 60px rgba(2, 6, 23, 0.45);
  font-size: 30px;
  text-indent: 5px;
}

.player-start.is-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

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

.content-card {
  padding: 28px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.72);
}

.content-card p {
  margin: 18px 0 0;
  color: #cbd5e1;
  line-height: 1.9;
}

.site-footer {
  margin-top: 30px;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.72), #020617);
}

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

.footer-brand p,
.footer-group a {
  color: #94a3b8;
  line-height: 1.7;
}

.footer-brand p {
  max-width: 430px;
  margin: 18px 0 0;
}

.footer-group h3 {
  margin: 0 0 14px;
  color: #fff;
}

.footer-links {
  display: grid;
  gap: 9px;
}

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 28px;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  color: #64748b;
  font-size: 14px;
}

[hidden] {
  display: none !important;
}

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

  .hero-search {
    right: 16px;
    bottom: 42px;
  }
}

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

  .menu-toggle {
    display: block;
  }

  .hero {
    min-height: 780px;
  }

  .hero-content {
    bottom: 190px;
  }

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

  .feature-grid,
  .cards-grid,
  .archive-grid,
  .latest-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .category-card,
  .channel-tile,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    width: min(280px, 100%);
  }

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

  .rank-row {
    grid-template-columns: 64px 1fr auto;
    gap: 12px;
  }

  .rank-number {
    display: none;
  }

  .rank-action {
    display: none;
  }

  .rank-heat {
    grid-column: 3;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .header-inner {
    height: 68px;
  }

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

  .brand-text small {
    display: none;
  }

  .hero {
    min-height: 720px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-arrow {
    display: none;
  }

  .hero-content {
    bottom: 176px;
  }

  .section {
    padding: 44px 0;
  }

  .section-heading,
  .channel-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .feature-grid,
  .cards-grid,
  .archive-grid,
  .latest-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

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

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

  .rank-heat {
    display: none;
  }

  .detail-hero {
    padding-top: 92px;
  }

  .detail-layout {
    gap: 22px;
  }

  .detail-info h1 {
    font-size: 34px;
  }

  .content-card {
    padding: 22px;
  }
}
