:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-strong: rgba(15, 23, 42, 0.94);
  --line: rgba(148, 163, 184, 0.18);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --cyan: #06b6d4;
  --cyan-light: #22d3ee;
  --orange: #fb923c;
  --radius: 22px;
  --shadow: 0 24px 70px rgba(2, 8, 23, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.96));
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 35px rgba(2, 8, 23, 0.34);
  backdrop-filter: blur(18px);
}

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

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), #2563eb);
  box-shadow: 0 12px 34px rgba(6, 182, 212, 0.32);
}

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

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 14px;
  color: #cbd5e1;
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  background: rgba(6, 182, 212, 0.88);
  box-shadow: 0 12px 30px rgba(6, 182, 212, 0.26);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #ffffff;
  background: rgba(51, 65, 85, 0.8);
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 420px);
  align-items: center;
  gap: 52px;
  padding: 72px max(32px, calc((100vw - 1200px) / 2)) 96px;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.015);
  transition: opacity 0.6s ease, transform 0.8s ease;
  background-image: radial-gradient(circle at 20% 15%, rgba(34, 211, 238, 0.2), transparent 30%), linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(15, 23, 42, 0.86) 45%, rgba(15, 23, 42, 0.48) 100%), var(--hero-image);
  background-size: cover;
  background-position: center;
}

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

.hero-shade {
  position: absolute;
  inset: auto 0 0;
  height: 36%;
  background: linear-gradient(0deg, #020617, transparent);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--cyan-light);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  color: #ffffff;
  font-weight: 950;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.hero h1 {
  max-width: 820px;
  font-size: clamp(44px, 8vw, 92px);
}

.hero-line {
  max-width: 690px;
  margin: 24px 0 0;
  color: #cbd5e1;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.75;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 999px;
  color: #cffafe;
  background: rgba(8, 145, 178, 0.15);
  font-size: 13px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 15px;
  color: #ffffff;
  font-weight: 800;
  transition: 0.2s ease;
}

.btn.primary {
  background: linear-gradient(135deg, var(--cyan), #2563eb);
  box-shadow: 0 16px 40px rgba(6, 182, 212, 0.28);
}

.btn.ghost {
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.72);
}

.btn.text {
  color: var(--cyan-light);
}

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

.hero-poster {
  position: relative;
  z-index: 2;
  aspect-ratio: 3 / 4;
  border-radius: 30px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.2), rgba(15, 23, 42, 0.96));
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-poster::after,
.poster::after,
.detail-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(2, 6, 23, 0.74));
  pointer-events: none;
}

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

.hero-dot {
  width: 32px;
  height: 6px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.45);
}

.hero-dot.active {
  width: 54px;
  background: var(--cyan-light);
}

.search-hero,
.page-hero,
.panel,
.text-panel,
.category-card-large,
.player-shell,
.rank-row {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.search-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
  align-items: center;
  gap: 28px;
  margin-top: -44px;
  position: relative;
  z-index: 5;
  padding: 30px;
  border-radius: var(--radius);
}

.search-hero h2,
.section-title h2,
.text-panel h2,
.footer-grid h2,
.category-card-large h2,
.rank-info h2 {
  margin: 0;
  color: #ffffff;
  font-weight: 900;
}

.search-hero h2,
.section-title h2 {
  font-size: 28px;
}

.search-hero p,
.section-title p,
.page-hero p,
.category-card-large p,
.rank-info p,
.footer-grid p,
.text-panel p,
.card-body p {
  color: var(--muted);
  line-height: 1.72;
}

.search-mini,
.search-panel {
  display: flex;
  gap: 12px;
}

.search-mini input,
.filter-input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.56);
  padding: 0 16px;
  outline: none;
}

.search-mini button,
.filter-buttons button {
  min-height: 48px;
  border-radius: 16px;
  padding: 0 18px;
  color: #ffffff;
  background: var(--cyan);
  font-weight: 800;
  white-space: nowrap;
}

.section-block {
  padding: 68px 0 0;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.section-title > span {
  width: 5px;
  height: 36px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.45);
}

.section-title > div {
  flex: 1;
}

.section-title > a,
.inline-link {
  color: var(--cyan-light);
  font-weight: 800;
}

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

.category-tile {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border-radius: 24px;
  padding: 24px;
  background-image: linear-gradient(135deg, rgba(6, 182, 212, 0.88), rgba(37, 99, 235, 0.72)), var(--tile-image);
  background-size: cover;
  background-position: center;
  box-shadow: 0 18px 60px rgba(2, 8, 23, 0.28);
  transition: 0.24s ease;
}

.category-tile:hover,
.movie-card:hover,
.category-card-large:hover,
.rank-row:hover {
  transform: translateY(-5px);
}

.category-tile span {
  font-size: 38px;
}

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

.category-tile strong {
  margin-top: 36px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 950;
}

.category-tile em {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-style: normal;
  line-height: 1.55;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 18px 58px rgba(2, 8, 23, 0.28);
  transition: 0.24s ease;
}

.poster,
.detail-poster,
.rank-cover,
.category-covers {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.28), rgba(15, 23, 42, 0.92));
}

.poster {
  aspect-ratio: 2 / 3;
}

.play-dot,
.detail-poster span {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(6, 182, 212, 0.92);
  box-shadow: 0 14px 36px rgba(6, 182, 212, 0.3);
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #ef4444);
  font-size: 12px;
}

.card-body {
  padding: 15px;
}

.card-meta,
.info-list,
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  color: #94a3b8;
  font-size: 13px;
}

.card-meta span,
.card-meta a {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.1);
}

.card-body h2 {
  margin: 12px 0 8px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.3;
}

.card-body p {
  min-height: 48px;
  margin: 0 0 12px;
  font-size: 14px;
}

.tag-row {
  gap: 7px;
}

.tag-row span {
  min-height: 26px;
  padding: 0 9px;
  font-size: 12px;
}

.split-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding: 68px 0 0;
}

.panel,
.text-panel {
  border-radius: var(--radius);
  padding: 26px;
}

.section-title.slim {
  margin-bottom: 18px;
}

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

.compact-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 17px;
  background: rgba(2, 6, 23, 0.32);
}

.compact-item img {
  aspect-ratio: 2 / 3;
  border-radius: 12px;
}

.compact-item strong,
.compact-item em {
  display: block;
}

.compact-item strong {
  color: #ffffff;
  font-weight: 850;
}

.compact-item em {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.page-hero {
  margin-top: 36px;
  padding: 46px;
  border-radius: 30px;
  background-image: radial-gradient(circle at top right, rgba(34, 211, 238, 0.18), transparent 30%), linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.84));
}

.page-hero h1 {
  font-size: clamp(38px, 7vw, 68px);
}

.page-hero p {
  max-width: 820px;
  margin-top: 18px;
  font-size: 18px;
}

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

.category-card-large {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 22px;
  border-radius: 24px;
  padding: 20px;
  transition: 0.24s ease;
}

.category-covers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
  border-radius: 20px;
  aspect-ratio: 1 / 1;
}

.category-covers img {
  min-width: 0;
  min-height: 0;
}

.category-card-large span {
  font-size: 34px;
}

.category-card-large h2 {
  margin: 10px 0 8px;
  font-size: 26px;
}

.channel-actions,
.search-panel {
  max-width: 840px;
}

.filter-input.wide {
  max-width: 680px;
  margin-top: 24px;
}

.search-panel {
  display: block;
  margin-top: 24px;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.filter-buttons button {
  min-height: 38px;
  background: rgba(51, 65, 85, 0.82);
}

.filter-buttons button.active {
  background: var(--cyan);
}

.empty-state {
  display: none;
  margin: 24px 0 0;
  padding: 22px;
  border-radius: 18px;
  color: var(--muted);
  background: rgba(15, 23, 42, 0.68);
  text-align: center;
}

.empty-state.show {
  display: block;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 70px 92px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  border-radius: 22px;
  padding: 16px;
  transition: 0.24s ease;
}

.rank-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), #2563eb);
  font-size: 20px;
  font-weight: 950;
}

.rank-cover {
  aspect-ratio: 2 / 3;
  border-radius: 16px;
}

.rank-info h2 {
  font-size: 22px;
}

.rank-info p {
  margin: 8px 0 10px;
}

.detail-hero {
  padding: 34px 0 0;
}

.breadcrumb {
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--cyan-light);
}

.breadcrumb em {
  color: var(--muted);
  font-style: normal;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(2, 6, 23, 0.72));
  box-shadow: var(--shadow);
}

.detail-poster {
  aspect-ratio: 2 / 3;
  border-radius: 24px;
}

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

.detail-line {
  max-width: 820px;
  margin: 20px 0;
  color: #cbd5e1;
  font-size: 19px;
  line-height: 1.75;
}

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

.info-list div {
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.5);
}

.info-list dt {
  color: var(--muted);
  font-size: 12px;
}

.info-list dd {
  margin: 5px 0 0;
  color: #ffffff;
  font-weight: 800;
}

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

.detail-tag-row {
  margin-top: 12px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
}

.player-shell video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-start {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(6, 182, 212, 0.88);
  box-shadow: 0 20px 60px rgba(6, 182, 212, 0.36);
  transform: translate(-50%, -50%);
  transition: 0.2s ease;
}

.player-start span {
  margin-left: 6px;
  font-size: 36px;
}

.player-start:hover {
  transform: translate(-50%, -50%) scale(1.06);
}

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

.detail-text-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 24px;
  padding-top: 34px;
}

.text-panel h2 {
  margin-bottom: 14px;
  font-size: 28px;
}

.text-panel p {
  margin: 0;
  font-size: 16px;
}

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

.sitemap-page {
  display: grid;
  gap: 26px;
}

.link-group {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.62);
}

.link-group h2 {
  margin: 0 0 14px;
  color: #ffffff;
}

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

.sitemap-links a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  color: #dbeafe;
  background: rgba(2, 6, 23, 0.34);
}

.sitemap-links span {
  color: var(--muted);
}

.site-footer {
  margin-top: 80px;
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.78);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 34px;
  padding: 42px 0;
}

.footer-grid h2 {
  margin-bottom: 16px;
  font-size: 18px;
}

.footer-grid p {
  max-width: 520px;
}

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

.footer-links a {
  padding: 8px 11px;
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(51, 65, 85, 0.56);
}

[hidden] {
  display: none !important;
}

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

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

@media (max-width: 860px) {
  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.98);
  }

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

  .nav-link {
    justify-content: center;
  }

  .hero {
    min-height: 760px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 42px 20px 90px;
  }

  .hero-poster {
    width: min(310px, 72vw);
    justify-self: center;
    order: -1;
  }

  .search-hero,
  .split-section,
  .category-card-large,
  .detail-layout,
  .detail-text-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .category-grid,
  .category-large-grid,
  .movie-grid,
  .related-grid,
  .sitemap-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rank-row {
    grid-template-columns: 48px 74px minmax(0, 1fr);
  }

  .rank-row .btn {
    grid-column: 1 / -1;
  }

  .info-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .wrap {
    width: min(100% - 22px, 1200px);
  }

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

  .page-hero,
  .detail-layout,
  .panel,
  .text-panel {
    padding: 22px;
  }

  .search-mini,
  .channel-actions,
  .search-panel {
    display: grid;
  }

  .category-grid,
  .movie-grid,
  .related-grid,
  .sitemap-links {
    grid-template-columns: 1fr;
  }

  .category-card-large {
    padding: 14px;
  }

  .rank-row {
    grid-template-columns: 42px 64px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .rank-num {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 16px;
  }
}
