:root {
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.86);
  --panel-soft: rgba(30, 41, 59, 0.64);
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --cyan: #22d3ee;
  --cyan-deep: #0891b2;
  --blue: #2563eb;
  --radius: 18px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.12), transparent 28rem),
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.16), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

img {
  background: rgba(15, 23, 42, 0.75);
}

main {
  min-height: 60vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(2, 6, 23, 0.78);
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  backdrop-filter: blur(18px);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.95rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.32);
}

.brand-text {
  font-size: 1.1rem;
  background: linear-gradient(90deg, #67e8f9, #60a5fa);
  -webkit-background-clip: text;
  color: transparent;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link {
  padding: 0.58rem 0.78rem;
  border-radius: 999px;
  color: var(--soft);
  font-size: 0.94rem;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: rgba(34, 211, 238, 0.15);
}

.nav-link.subtle {
  color: #94a3b8;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.5rem;
}

.menu-toggle span {
  width: 1.35rem;
  height: 2px;
  border-radius: 999px;
  background: #e2e8f0;
}

.hero {
  position: relative;
  height: 70vh;
  min-height: 520px;
  overflow: hidden;
}

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

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

.hero-bg,
.detail-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.08) contrast(1.05);
}

.hero-shade,
.detail-mask {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.62) 46%, rgba(2, 6, 23, 0.12)),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.38) 48%, rgba(2, 6, 23, 0.28) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  padding: 0 1rem 4.5rem;
  display: flex;
  align-items: flex-end;
}

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

.hero-badge,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.detail-info h1 {
  margin-top: 1rem;
  font-size: clamp(2.4rem, 7vw, 5.2rem);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.hero p,
.page-hero p,
.detail-info p {
  margin-top: 1rem;
  color: #cbd5e1;
  line-height: 1.85;
  font-size: 1.04rem;
}

.hero-tags,
.tag-row,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-tags {
  margin-top: 1.25rem;
}

.hero-tags span,
.tag-row span,
.tag-cloud span {
  display: inline-flex;
  padding: 0.35rem 0.62rem;
  border-radius: 999px;
  color: #bfdbfe;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.16);
  font-size: 0.8rem;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  padding: 0 1.1rem;
  border-radius: 999px;
  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: #fff;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  box-shadow: 0 14px 32px rgba(8, 145, 178, 0.3);
}

.btn.ghost {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
}

.btn.full {
  width: 100%;
  margin-top: 1rem;
}

.hero-arrow {
  position: absolute;
  z-index: 5;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 2rem;
  backdrop-filter: blur(12px);
}

.hero-arrow.prev {
  left: 1.4rem;
}

.hero-arrow.next {
  right: 1.4rem;
}

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

.hero-dots button {
  width: 2.4rem;
  height: 0.28rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  overflow: hidden;
}

.hero-dots button[aria-current="true"] {
  background: var(--cyan);
}

.hero-dots span {
  position: absolute;
  clip: rect(0 0 0 0);
}

.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 4.5rem 1rem 0;
}

.section-heading {
  margin-bottom: 1.4rem;
}

.section-heading.split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.section-heading.compact {
  margin-bottom: 1rem;
}

.section-heading h2,
.story-card h2 {
  margin-top: 0.65rem;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.text-link {
  color: var(--cyan);
  font-weight: 800;
}

.text-link:hover {
  color: #67e8f9;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px auto;
  gap: 0.75rem;
  padding: 0.85rem;
  border-radius: 1.2rem;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.search-field {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 2.8rem;
  padding: 0 0.9rem;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.search-field span {
  color: var(--cyan);
  font-size: 1.2rem;
}

.search-field input,
.search-panel select {
  width: 100%;
  outline: none;
  background: transparent;
  color: #e2e8f0;
}

.search-panel select {
  min-height: 2.8rem;
  padding: 0 0.9rem;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.movie-grid {
  display: grid;
  gap: 1rem;
}

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

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

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.56));
  border: 1px solid var(--line);
  box-shadow: 0 12px 42px rgba(0, 0, 0, 0.22);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.48);
  box-shadow: 0 18px 50px rgba(8, 145, 178, 0.15);
}

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.75);
}

.poster-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.movie-card:hover .poster-frame img {
  transform: scale(1.08);
}

.poster-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), transparent 50%);
}

.play-chip,
.rank-badge {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.play-chip {
  right: 0.75rem;
  bottom: 0.75rem;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.86);
  box-shadow: 0 0 22px rgba(34, 211, 238, 0.36);
}

.rank-badge {
  top: 0.65rem;
  left: 0.65rem;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #f97316, #ef4444);
  font-weight: 900;
}

.card-body {
  padding: 0.9rem;
}

.card-body h3 {
  margin-top: 0.55rem;
  color: #fff;
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 850;
}

.card-body h3 a:hover {
  color: var(--cyan);
}

.card-body p {
  display: -webkit-box;
  margin-top: 0.5rem;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.wide-card .poster-frame {
  aspect-ratio: 3 / 4;
}

.feature-band,
.rank-panel,
.story-card,
.category-card-large,
.page-hero,
.player-card {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.86), rgba(30, 41, 59, 0.52));
  box-shadow: var(--shadow);
}

.feature-band,
.page-hero {
  border-radius: 1.6rem;
  padding: 2rem;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 1.5rem;
  align-items: start;
}

.rank-panel {
  border-radius: 1.4rem;
  padding: 1.2rem;
}

.sticky-panel {
  position: sticky;
  top: 6rem;
}

.compact-list {
  display: grid;
  gap: 0.75rem;
}

.compact-card {
  display: grid;
  grid-template-columns: 4.2rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  padding: 0.55rem;
  border-radius: 1rem;
  background: rgba(2, 6, 23, 0.46);
  border: 1px solid rgba(148, 163, 184, 0.12);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.compact-card:hover {
  background: rgba(34, 211, 238, 0.1);
  border-color: rgba(34, 211, 238, 0.35);
}

.compact-card img {
  width: 4.2rem;
  height: 5.4rem;
  object-fit: cover;
  border-radius: 0.75rem;
}

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

.compact-card strong {
  color: #fff;
  line-height: 1.35;
  font-style: normal;
}

.compact-card em {
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
}

.compact-rank {
  display: inline-flex;
  margin-right: 0.35rem;
  color: var(--cyan);
  font-weight: 900;
}

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

.category-tile,
.category-card-large {
  border-radius: 1.4rem;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--line);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-tile:hover,
.category-card-large:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.42);
}

.category-covers,
.category-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.category-covers img,
.category-preview img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 0.85rem;
}

.category-tile strong,
.category-card-large h2 {
  display: block;
  color: #fff;
  font-size: 1.18rem;
  font-weight: 900;
}

.category-tile span,
.category-card-large p {
  display: block;
  margin-top: 0.55rem;
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.92rem;
}

.page-hero {
  max-width: 1280px;
  margin: 2rem auto 0;
  min-height: 260px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.22), transparent 28rem),
    radial-gradient(circle at 70% 0%, rgba(37, 99, 235, 0.24), transparent 30rem);
}

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

.page-hero.small-hero h1,
.page-hero.channel-hero h1,
.page-hero.rank-hero h1,
.page-hero.search-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
}

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

.category-card-large {
  display: grid;
  grid-template-columns: 42% minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
}

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

.detail-hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
}

.detail-mask {
  background:
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.82) 36%, rgba(2, 6, 23, 0.54) 100%),
    linear-gradient(90deg, #020617 0%, rgba(2, 6, 23, 0.54) 60%, rgba(2, 6, 23, 0.18) 100%);
}

.detail-wrap {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1rem 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 1.4rem;
  align-items: end;
  margin-top: 2rem;
}

.player-card {
  border-radius: 1.6rem;
  overflow: hidden;
}

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-shell video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.play-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: #fff;
  background: radial-gradient(circle, rgba(2, 6, 23, 0.24), rgba(2, 6, 23, 0.72));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-layer span {
  width: 4.6rem;
  height: 4.6rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 0.25rem;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 0 44px rgba(34, 211, 238, 0.42);
  font-size: 2rem;
}

.play-layer strong {
  font-size: 1.05rem;
}

.player-card.is-playing .play-layer {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.detail-info {
  padding: 1rem;
  border-radius: 1.5rem;
  background: rgba(15, 23, 42, 0.76);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.detail-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 1.1rem;
  margin-bottom: 1rem;
}

.detail-info h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.detail-tags {
  margin-top: 0.2rem;
}

.detail-info .btn {
  margin-top: 1.25rem;
}

.detail-section {
  padding-top: 0;
}

.detail-main {
  display: grid;
  gap: 1rem;
}

.story-card {
  border-radius: 1.3rem;
  padding: 1.4rem;
}

.story-card p:not(.eyebrow) {
  margin-top: 0.8rem;
  color: #cbd5e1;
  line-height: 1.9;
}

.tag-cloud {
  margin-top: 1rem;
}

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

.pager-links a {
  padding: 1rem;
  border-radius: 1rem;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--line);
}

.pager-links a:last-child {
  text-align: right;
}

.pager-links a:hover {
  color: var(--cyan);
  border-color: rgba(34, 211, 238, 0.38);
}

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

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1rem;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 2rem;
}

.footer-brand p {
  margin-top: 0.8rem;
  color: var(--muted);
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  align-content: start;
}

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

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

.copyright {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  color: #64748b;
  text-align: center;
  font-size: 0.9rem;
}

[hidden],
.movie-card.filtered-out {
  display: none !important;
}

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

  .two-column,
  .detail-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 860px) {
  .menu-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: 4.4rem;
    display: none;
    align-items: stretch;
    flex-direction: column;
    padding: 0.8rem;
    border-radius: 1.2rem;
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid var(--line);
  }

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

  .hero {
    height: 74vh;
    min-height: 560px;
  }

  .hero-content {
    padding-bottom: 4rem;
  }

  .hero-arrow {
    display: none;
  }

  .section-heading.split,
  .footer-inner,
  .category-card-large {
    grid-template-columns: 1fr;
    display: grid;
  }

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

  .cards-3,
  .cards-4,
  .cards-5,
  .cards-6,
  .category-grid,
  .category-list-page {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-hero {
    min-height: auto;
    padding-bottom: 2rem;
  }
}

@media (max-width: 560px) {
  .brand-text {
    font-size: 1rem;
  }

  .cards-3,
  .cards-4,
  .cards-5,
  .cards-6,
  .category-grid,
  .category-list-page {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .card-body {
    padding: 0.75rem;
  }

  .card-body p,
  .movie-card .tag-row {
    display: none;
  }

  .feature-band,
  .page-hero,
  .story-card {
    padding: 1rem;
  }

  .pager-links {
    grid-template-columns: 1fr;
  }

  .pager-links a:last-child {
    text-align: left;
  }
}
