:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.88);
  --panel-soft: rgba(30, 41, 59, 0.74);
  --line: rgba(148, 163, 184, 0.18);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --accent: #06b6d4;
  --accent-strong: #22d3ee;
  --accent-warm: #f59e0b;
  --shadow: 0 28px 80px rgba(2, 6, 23, 0.48);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 0%, rgba(8, 145, 178, 0.28), transparent 28rem),
    radial-gradient(circle at 80% 10%, rgba(124, 58, 237, 0.18), transparent 24rem),
    linear-gradient(180deg, #020617 0%, #0f172a 46%, #020617 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent 72%);
  z-index: -1;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.82);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: max-content;
  font-size: 1.22rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  color: #031014;
  background: linear-gradient(135deg, var(--accent-strong), #67e8f9);
  box-shadow: 0 0 32px rgba(6, 182, 212, 0.48);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-left: auto;
}

.desktop-nav a,
.mobile-nav a {
  padding: 0.72rem 0.95rem;
  border-radius: 999px;
  color: var(--muted);
  transition: color 0.2s ease, background 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover {
  color: white;
  background: rgba(8, 145, 178, 0.22);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 280px;
}

.header-search input,
.large-search input,
.filter-bar input,
.hero-search-panel input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  outline: none;
  background: rgba(15, 23, 42, 0.86);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
  padding: 0.68rem 1rem;
}

.header-search input:focus,
.large-search input:focus,
.filter-bar input:focus,
.hero-search-panel input:focus {
  border-color: rgba(34, 211, 238, 0.7);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.14);
}

.header-search button,
.large-search button,
.hero-search-panel button {
  border: 0;
  border-radius: 999px;
  padding: 0.72rem 1.15rem;
  color: #041014;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  width: 2.75rem;
  height: 2.75rem;
  background: rgba(15, 23, 42, 0.86);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 1.25rem;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
}

.mobile-nav {
  display: none;
  padding: 0 1.25rem 1rem;
}

.mobile-nav.is-open {
  display: grid;
  gap: 0.35rem;
}

.hero {
  position: relative;
  min-height: 76vh;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #020617;
}

.hero-slides,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  display: flex;
  align-items: center;
  opacity: 0;
  background-position: center;
  background-size: cover;
  transition: opacity 0.8s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(720px, calc(100% - 2.5rem));
  margin-left: max(1.25rem, calc((100vw - 1280px) / 2 + 1.25rem));
  padding: 2.2rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 2rem;
  background: linear-gradient(135deg, rgba(2, 6, 23, 0.78), rgba(15, 23, 42, 0.38));
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-kicker,
.page-hero span,
.section-heading span {
  display: inline-flex;
  width: max-content;
  margin-bottom: 0.85rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 999px;
  color: #67e8f9;
  font-size: 0.83rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(8, 145, 178, 0.14);
}

.hero h1,
.page-hero h1,
.detail-info h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.4rem, 5vw, 5.4rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.hero p,
.page-hero p,
.detail-one-line {
  margin: 0;
  color: #cbd5e1;
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.85;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  padding: 0.38rem 0.72rem;
  color: #cbd5e1;
  font-size: 0.78rem;
  background: rgba(15, 23, 42, 0.74);
}

.hero-actions,
.detail-actions,
.center-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.35rem;
}

.primary-button,
.ghost-button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.primary-button {
  padding: 0.86rem 1.28rem;
  color: #031014;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 16px 44px rgba(6, 182, 212, 0.32);
}

.ghost-button {
  border: 1px solid rgba(148, 163, 184, 0.28);
  padding: 0.82rem 1.2rem;
  color: white;
  background: rgba(15, 23, 42, 0.6);
}

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

.hero-search-panel {
  position: absolute;
  right: max(1.25rem, calc((100vw - 1280px) / 2 + 1.25rem));
  bottom: 5.2rem;
  z-index: 4;
  width: min(480px, calc(100% - 2.5rem));
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: rgba(2, 6, 23, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-search-panel label {
  display: block;
  margin: 0 0 0.65rem;
  color: #e2e8f0;
  font-weight: 900;
}

.hero-search-panel form > div,
.large-search {
  display: flex;
  gap: 0.65rem;
}

.hero-search-panel input,
.large-search input,
.filter-bar input {
  padding: 0.9rem 1rem;
}

.hero-category-links,
.quick-searches,
.channel-link-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.hero-category-links a,
.quick-searches a,
.channel-link-cloud a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.72);
}

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

.hero-dot {
  width: 0.85rem;
  height: 0.85rem;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(226, 232, 240, 0.38);
}

.hero-dot.active {
  width: 2.3rem;
  background: var(--accent-strong);
}

.section-wrap {
  width: min(1280px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 4.6rem 0;
}

.tinted-section {
  width: 100%;
  max-width: none;
  padding-left: max(1.25rem, calc((100vw - 1280px) / 2 + 1.25rem));
  padding-right: max(1.25rem, calc((100vw - 1280px) / 2 + 1.25rem));
  border-block: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.34);
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 2.2rem;
  text-align: center;
}

.section-heading.align-left {
  margin-left: 0;
  text-align: left;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 0.85rem 0 0;
  color: var(--muted);
  line-height: 1.8;
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 1.25rem;
  background: rgba(15, 23, 42, 0.7);
  box-shadow: 0 14px 38px rgba(2, 6, 23, 0.25);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  border-color: rgba(34, 211, 238, 0.5);
  box-shadow: 0 24px 56px rgba(8, 145, 178, 0.16);
  transform: translateY(-4px);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.24), rgba(15, 23, 42, 0.96));
}

.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-pin {
  position: absolute;
  right: 0.7rem;
  bottom: 0.7rem;
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 999px;
  color: #041014;
  background: var(--accent-strong);
  box-shadow: 0 12px 32px rgba(6, 182, 212, 0.34);
}

.rank-badge {
  position: absolute;
  left: 0.7rem;
  top: 0.7rem;
  display: grid;
  place-items: center;
  min-width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  color: #111827;
  font-size: 0.88rem;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
}

.movie-card-body {
  padding: 0.95rem;
}

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.76rem;
}

.movie-meta-line span:not(:last-child)::after {
  content: "·";
  margin-left: 0.35rem;
}

.movie-card h2 {
  margin: 0.45rem 0 0.35rem;
  font-size: 1rem;
  line-height: 1.35;
}

.movie-card h2 a:hover {
  color: var(--accent-strong);
}

.movie-card p {
  display: -webkit-box;
  min-height: 3.25rem;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.compact-card .movie-card-body {
  padding: 0.8rem;
}

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

.category-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 1.4rem;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.88), rgba(30, 41, 59, 0.46));
}

.category-card-main {
  display: block;
  padding: 1.35rem;
}

.category-icon {
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 1rem;
  color: #041014;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

.category-card h2 {
  margin: 1rem 0 0.5rem;
  font-size: 1.25rem;
}

.category-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.category-samples {
  display: grid;
  gap: 0.2rem;
  padding: 0 1.35rem 1.25rem;
}

.category-samples a {
  overflow: hidden;
  color: #cbd5e1;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.category-samples a:hover {
  color: var(--accent-strong);
}

.two-column-section {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 2rem;
}

.ranking-list,
.side-links {
  display: grid;
  gap: 0.62rem;
}

.ranking-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.18rem 0.85rem;
  align-items: center;
  padding: 0.78rem 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.72);
}

.ranking-item span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  color: #041014;
  font-weight: 900;
  background: var(--accent-strong);
}

.ranking-item strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ranking-item em {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.text-link {
  margin-top: 1rem;
  color: var(--accent-strong);
}

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

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.45fr);
  gap: 1.5rem;
  align-items: end;
  width: min(1280px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 5rem 0 3rem;
}

.slim-hero {
  display: block;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.channel-hero {
  padding-bottom: 1.5rem;
}

.channel-aside {
  display: grid;
  gap: 0.6rem;
}

.filter-bar {
  display: grid;
  gap: 0.65rem;
  max-width: 580px;
  margin-bottom: 1.4rem;
}

.filter-bar label {
  color: #cbd5e1;
  font-weight: 900;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  width: min(1280px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 1.2rem 0 0;
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--accent-strong);
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  width: min(1280px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 3rem 0;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 1.6rem;
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.24), rgba(15, 23, 42, 0.96));
  box-shadow: var(--shadow);
}

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

.detail-info {
  max-width: 850px;
}

.large-tags span {
  font-size: 0.9rem;
}

.player-section {
  width: min(1280px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 1.4rem;
  background: #000;
  box-shadow: var(--shadow);
}

.movie-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 0.8rem;
  border: 0;
  color: white;
  cursor: pointer;
  background: radial-gradient(circle at center, rgba(8, 145, 178, 0.28), rgba(2, 6, 23, 0.78));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.player-overlay span {
  display: grid;
  place-items: center;
  width: 5rem;
  height: 5rem;
  border-radius: 999px;
  color: #041014;
  font-size: 2rem;
  background: var(--accent-strong);
  box-shadow: 0 18px 64px rgba(6, 182, 212, 0.44);
}

.player-overlay strong {
  font-size: 1.15rem;
}

.detail-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.36fr);
  gap: 1.3rem;
}

.story-panel,
.side-panel {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 1.4rem;
  padding: 1.35rem;
  background: rgba(15, 23, 42, 0.72);
}

.story-panel h2,
.side-panel h2 {
  margin: 0 0 0.8rem;
  font-size: 1.4rem;
}

.story-panel p {
  margin: 0 0 1.3rem;
  color: #cbd5e1;
  line-height: 1.95;
}

.detail-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.detail-facts span {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  padding: 0.5rem 0.8rem;
  color: #cbd5e1;
  background: rgba(2, 6, 23, 0.48);
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  width: min(1280px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 3rem 0 2rem;
}

.footer-grid p {
  max-width: 560px;
  color: var(--muted);
  line-height: 1.8;
}

.footer-grid h2 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.footer-links a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.48rem 0.76rem;
  color: #cbd5e1;
}

.footer-links a:hover {
  color: var(--accent-strong);
}

.footer-bottom {
  width: min(1280px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 1rem 0 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.is-filter-hidden {
  display: none !important;
}

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

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

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

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .hero {
    min-height: 92vh;
  }

  .hero-slide {
    align-items: flex-start;
    padding-top: 5rem;
  }

  .hero-content {
    margin-inline: 1.25rem;
    padding: 1.45rem;
  }

  .hero-search-panel {
    left: 1.25rem;
    right: 1.25rem;
    bottom: 4.2rem;
    width: auto;
  }

  .two-column-section,
  .page-hero,
  .detail-hero,
  .detail-wrap,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

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

@media (max-width: 720px) {
  .section-wrap,
  .player-section,
  .detail-hero,
  .breadcrumb,
  .page-hero,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 1.5rem, 1280px);
  }

  .movie-grid,
  .category-grid,
  .horizontal-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-search-panel form > div,
  .large-search {
    flex-direction: column;
  }

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

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

@media (max-width: 420px) {
  .movie-grid,
  .category-grid,
  .horizontal-cards {
    grid-template-columns: 1fr;
  }
}
