:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.82);
  --panel-strong: rgba(30, 41, 59, 0.92);
  --text: #f8fafc;
  --muted: #94a3b8;
  --line: rgba(148, 163, 184, 0.18);
  --cyan: #06b6d4;
  --cyan-soft: rgba(6, 182, 212, 0.14);
  --gold: #facc15;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: radial-gradient(circle at top left, rgba(6, 182, 212, 0.16), transparent 34rem), linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
  color: var(--text);
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.32);
}

.nav-wrap,
.footer-inner,
.hero-content,
.content-section,
.search-panel,
.category-strip,
.ranking-entry,
.page-hero,
.category-overview,
.detail-hero,
.player-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.nav-wrap {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #001018;
  background: linear-gradient(135deg, #22d3ee, #67e8f9);
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.34);
  font-weight: 900;
}

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

.brand-text strong {
  font-size: 22px;
  letter-spacing: 0.02em;
}

.brand-text small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #cbd5e1;
  font-weight: 600;
}

.desktop-nav a,
.mobile-nav a,
.site-footer a,
.section-link {
  transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.site-footer a:hover,
.section-link:hover {
  color: var(--cyan);
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.78);
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 99px;
  background: #e2e8f0;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.95);
}

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

.mobile-nav a {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.72);
  color: #dbeafe;
}

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

.hero-stage {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.6s ease, transform 0.9s ease;
  pointer-events: none;
}

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.68) 42%, rgba(0, 0, 0, 0.18)), linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.2) 42%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 88px 0 150px;
}

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

.hero h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-summary,
.page-hero p,
.detail-one-line {
  max-width: 720px;
  color: #cbd5e1;
  font-size: clamp(16px, 2vw, 21px);
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(6, 182, 212, 0.28);
  border-radius: 999px;
  padding: 5px 10px;
  background: var(--cyan-soft);
  color: #a5f3fc;
  font-size: 13px;
}

.hero-meta,
.card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #cbd5e1;
}

.hero-meta span,
.card-meta span,
.detail-meta span {
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  padding: 0 20px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: #001018;
  background: linear-gradient(135deg, #22d3ee, #67e8f9);
  box-shadow: 0 14px 30px rgba(6, 182, 212, 0.28);
}

.btn-ghost {
  color: #e0f2fe;
  background: rgba(15, 23, 42, 0.68);
  border: 1px solid rgba(148, 163, 184, 0.26);
}

.btn-soft {
  color: #fef08a;
  background: rgba(250, 204, 21, 0.12);
  border: 1px solid rgba(250, 204, 21, 0.25);
}

.hero-dots {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 34px;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.hero-dot {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 18px;
  padding: 8px;
  color: #dbeafe;
  background: rgba(15, 23, 42, 0.74);
  cursor: pointer;
  backdrop-filter: blur(14px);
}

.hero-dot.is-active {
  border-color: rgba(34, 211, 238, 0.72);
  background: rgba(8, 145, 178, 0.28);
}

.hero-dot img {
  width: 46px;
  height: 58px;
  object-fit: cover;
  border-radius: 12px;
}

.hero-dot span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

.search-panel,
.ranking-entry,
.page-hero,
.content-section,
.category-overview,
.detail-hero,
.player-section {
  margin-top: 42px;
}

.search-panel,
.ranking-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.13), rgba(15, 23, 42, 0.9));
  box-shadow: var(--shadow);
}

.search-panel h2,
.ranking-entry h2,
.section-heading h2,
.article-card h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.16;
}

.search-panel p,
.ranking-entry p,
.section-heading p,
.article-card p,
.category-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.search-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.search-controls input,
.search-controls select {
  min-height: 46px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  padding: 0 16px;
  color: #e2e8f0;
  background: rgba(2, 6, 23, 0.68);
  outline: none;
}

.search-controls input {
  width: min(360px, 72vw);
}

.search-controls input:focus,
.search-controls select:focus {
  border-color: rgba(34, 211, 238, 0.8);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.14);
}

.category-strip {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.category-strip a,
.category-card,
.movie-card,
.article-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
}

.category-strip a {
  min-height: 96px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.category-strip a:hover,
.movie-card:hover,
.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.44);
  background: rgba(15, 23, 42, 0.9);
}

.category-strip strong {
  font-size: 19px;
}

.category-strip span {
  color: var(--muted);
  font-size: 13px;
}

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

.section-link {
  color: #67e8f9;
  font-weight: 800;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.18), rgba(30, 41, 59, 0.82));
}

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

.movie-card:hover .card-cover img {
  transform: scale(1.06);
  filter: saturate(1.12);
}

.card-score,
.rank-badge {
  position: absolute;
  top: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 30px;
  border-radius: 999px;
  font-weight: 900;
}

.card-score {
  right: 12px;
  color: #111827;
  background: #facc15;
}

.rank-badge {
  left: 12px;
  color: #e0f2fe;
  background: rgba(6, 182, 212, 0.86);
}

.card-body {
  padding: 16px;
}

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

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

.card-body p {
  margin: 8px 0 12px;
  min-height: 3.2em;
  color: #aab6c7;
  font-size: 14px;
}

.card-meta {
  gap: 6px;
  font-size: 12px;
}

.card-meta span {
  padding: 3px 7px;
}

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

.tag-row span {
  font-size: 12px;
  padding: 3px 8px;
}

.tag-row-wide span {
  font-size: 13px;
  padding: 5px 10px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 58px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.18), rgba(15, 23, 42, 0.94)), radial-gradient(circle at 88% 12%, rgba(250, 204, 21, 0.15), transparent 22rem);
  box-shadow: var(--shadow);
}

.page-hero-slim h1 {
  font-size: clamp(34px, 5vw, 56px);
}

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

.category-card {
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.category-card-main {
  display: block;
  padding: 24px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.12), transparent);
}

.category-card-main span {
  color: #67e8f9;
  font-weight: 800;
  font-size: 13px;
}

.category-card-main h2 {
  margin: 8px 0 0;
  font-size: 30px;
}

.category-samples {
  display: grid;
  gap: 8px;
  padding: 0 24px 24px;
}

.category-samples a {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.72);
  color: #dbeafe;
}

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

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 20px;
  color: #cbd5e1;
  font-size: 14px;
}

.breadcrumb a {
  color: #67e8f9;
}

.detail-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 32px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 28px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.12), rgba(15, 23, 42, 0.92));
  box-shadow: var(--shadow);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.38);
}

.detail-meta {
  margin: 18px 0 10px;
}

.player-section {
  scroll-margin-top: 96px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(6, 182, 212, 0.28);
  border-radius: 28px;
  background: #000;
  box-shadow: var(--shadow);
}

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

.player-play {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #fff;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.2), rgba(0, 0, 0, 0.62));
  cursor: pointer;
}

.player-play span {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #001018;
  background: linear-gradient(135deg, #22d3ee, #67e8f9);
  box-shadow: 0 0 42px rgba(6, 182, 212, 0.44);
  font-size: 28px;
}

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

.player-play.is-hidden {
  display: none;
}

.detail-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.article-card {
  padding: 24px;
}

.article-card:first-child {
  grid-column: 1 / -1;
}

.info-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
}

.info-list div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.info-list dt {
  color: #67e8f9;
  font-weight: 800;
}

.info-list dd {
  margin: 0;
  color: #e2e8f0;
}

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

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 0;
  color: #cbd5e1;
}

.footer-inner strong {
  font-size: 20px;
  color: #fff;
}

.footer-inner p {
  margin: 6px 0 0;
  color: var(--muted);
}

.footer-inner nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

[data-card].is-hidden {
  display: none;
}

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

  .mobile-toggle {
    display: block;
  }

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

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

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

  .hero-dot:nth-child(n + 4) {
    display: none;
  }

  .detail-layout {
    grid-template-columns: 220px 1fr;
  }
}

@media (max-width: 760px) {
  .nav-wrap,
  .footer-inner,
  .hero-content,
  .content-section,
  .search-panel,
  .category-strip,
  .ranking-entry,
  .page-hero,
  .category-overview,
  .detail-hero,
  .player-section {
    width: min(100% - 24px, 1180px);
  }

  .brand-text small {
    display: none;
  }

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

  .hero-content {
    padding: 82px 0 170px;
  }

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

  .hero-dot:nth-child(n + 2) {
    display: none;
  }

  .search-panel,
  .ranking-entry,
  .section-heading,
  .footer-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .search-controls {
    justify-content: stretch;
  }

  .search-controls input,
  .search-controls select {
    width: 100%;
  }

  .movie-grid,
  .movie-grid-compact,
  .category-grid,
  .detail-text {
    grid-template-columns: 1fr;
  }

  .category-strip {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding: 30px;
    border-radius: 24px;
  }

  .detail-layout {
    grid-template-columns: 1fr;
    padding: 18px;
  }

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

  .article-card:first-child {
    grid-column: auto;
  }
}
