:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: #0f172a;
  --panel-soft: #1e293b;
  --line: rgba(148, 163, 184, 0.22);
  --text: #ffffff;
  --muted: #cbd5e1;
  --subtle: #94a3b8;
  --blue: #0ea5e9;
  --blue-strong: #0284c7;
  --orange: #f97316;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, rgba(14, 165, 233, 0.18), transparent 34rem), var(--bg);
  color: var(--text);
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.16), rgba(2, 6, 23, 0.86));
  z-index: -1;
}

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

img {
  display: block;
  width: 100%;
  height: auto;
}

button,
input {
  font: inherit;
}

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

.nav-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.92rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #2563eb);
  box-shadow: 0 12px 30px rgba(14, 165, 233, 0.24);
}

.brand-text {
  font-size: 1.12rem;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

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

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover {
  color: #fff;
  background: rgba(14, 165, 233, 0.16);
}

.nav-toggle {
  display: none;
  border: 0;
  background: rgba(15, 23, 42, 0.9);
  border-radius: 0.7rem;
  padding: 0.6rem;
}

.nav-toggle span {
  display: block;
  width: 1.35rem;
  height: 2px;
  margin: 0.24rem 0;
  background: #fff;
}

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

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

.hero-carousel {
  position: relative;
  min-height: 78vh;
  overflow: hidden;
  background: #000;
}

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

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

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

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.68) 42%, rgba(0, 0, 0, 0.15));
}

.hero-content {
  position: absolute;
  inset: 0;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.hero-content h1,
.page-hero h1,
.detail-copy h1 {
  max-width: 780px;
  margin: 0 0 1rem;
  font-size: clamp(2.5rem, 7vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-content p {
  max-width: 680px;
  margin: 0 0 1.7rem;
  color: var(--muted);
  font-size: 1.1rem;
}

.hero-kicker,
.detail-list,
.card-meta,
.detail-nav-links,
.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.hero-kicker {
  margin-bottom: 1rem;
}

.hero-kicker span,
.detail-list span,
.card-meta span,
.pill,
.eyebrow {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.18);
  color: #bae6fd;
  padding: 0.28rem 0.72rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-actions,
.quick-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.primary-btn,
.ghost-btn,
.quick-links a,
.detail-nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.85rem;
  padding: 0.82rem 1.25rem;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.primary-btn {
  background: linear-gradient(135deg, var(--blue), #2563eb);
  color: #fff;
  box-shadow: 0 16px 35px rgba(14, 165, 233, 0.22);
}

.ghost-btn,
.quick-links a,
.detail-nav-links a {
  border: 1px solid var(--line);
  color: #fff;
  background: rgba(15, 23, 42, 0.58);
}

.primary-btn:hover,
.ghost-btn:hover,
.quick-links a:hover,
.detail-nav-links a:hover {
  transform: translateY(-2px);
  background: var(--blue-strong);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 3rem;
  height: 3rem;
  transform: translateY(-50%);
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-size: 2rem;
  background: rgba(0, 0, 0, 0.52);
}

.hero-prev {
  left: 1rem;
}

.hero-next {
  right: 1rem;
}

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

.hero-dot {
  width: 0.55rem;
  height: 0.55rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 2.1rem;
  background: var(--blue);
}

.quick-search-wrap,
.content-section,
.featured-band,
.page-hero,
.detail-main,
.breadcrumb {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.quick-search-wrap {
  padding-top: 2rem;
}

.quick-search-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  padding: 1.4rem;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.76));
  box-shadow: var(--shadow);
}

.quick-search-card h2,
.section-head h2,
.section-row-head h2,
.featured-copy h2,
.detail-article h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  line-height: 1.14;
}

.quick-search-card p,
.section-head p,
.page-hero p,
.featured-copy p,
.detail-article p,
.card-body p,
.rank-copy p,
.lead {
  color: var(--muted);
}

.content-section {
  padding-top: 4rem;
  padding-bottom: 1rem;
}

.section-head,
.section-row-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.section-row-head a {
  color: #7dd3fc;
  font-weight: 800;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: rgba(15, 23, 42, 0.88);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.22);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-0.35rem);
  border-color: rgba(14, 165, 233, 0.45);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #020617;
}

.movie-card.compact .card-cover {
  aspect-ratio: 3 / 4;
}

.card-cover img,
.category-card img,
.rank-cover img,
.featured-image img,
.detail-poster img,
.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.32s ease;
}

.movie-card:hover .card-cover img,
.category-card:hover img {
  transform: scale(1.07);
}

.card-badge {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  background: rgba(2, 6, 23, 0.72);
}

.card-body {
  padding: 1rem;
}

.card-meta {
  margin-bottom: 0.55rem;
  gap: 0.35rem;
}

.card-meta span {
  background: rgba(148, 163, 184, 0.12);
  color: var(--subtle);
  font-size: 0.75rem;
}

.card-body h3 {
  margin: 0 0 0.45rem;
  font-size: 1.08rem;
  line-height: 1.25;
}

.card-body h3 a:hover,
.rank-copy h2 a:hover {
  color: #7dd3fc;
}

.card-body p {
  display: -webkit-box;
  margin: 0 0 0.75rem;
  min-height: 3.1rem;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 0.92rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tag-row span {
  border-radius: 999px;
  padding: 0.2rem 0.52rem;
  color: #c4b5fd;
  background: rgba(99, 102, 241, 0.14);
  font-size: 0.76rem;
}

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

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

.category-card {
  position: relative;
  min-height: 13rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background: var(--panel-soft);
}

.category-card img {
  height: 100%;
  position: absolute;
  inset: 0;
}

.category-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.12));
}

.category-copy {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
}

.category-copy strong,
.category-copy em {
  display: block;
}

.category-copy strong {
  font-size: 1.35rem;
}

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

.featured-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  margin-top: 4rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.95));
  box-shadow: var(--shadow);
}

.featured-image {
  min-height: 23rem;
}

.featured-image img {
  height: 100%;
}

.featured-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
}

.scroll-strip {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.8rem;
  scrollbar-width: none;
}

.scroll-strip::-webkit-scrollbar {
  display: none;
}

.strip-item {
  width: 19rem;
  flex: 0 0 auto;
}

.page-main {
  padding-bottom: 4rem;
}

.page-hero {
  padding-top: 5rem;
  padding-bottom: 3rem;
}

.page-hero.slim {
  max-width: 980px;
  text-align: center;
}

.page-hero.slim h1 {
  margin-left: auto;
  margin-right: auto;
}

.page-hero.category-hero {
  border-bottom: 1px solid var(--line);
}

.search-panel {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1.4rem;
}

.search-label {
  color: var(--subtle);
  font-weight: 800;
}

.search-box {
  position: relative;
}

.search-box input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1rem 3rem 1rem 1rem;
  outline: none;
  color: #fff;
  background: rgba(15, 23, 42, 0.88);
}

.search-box input:focus {
  border-color: rgba(14, 165, 233, 0.7);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

.search-icon {
  position: absolute;
  right: 1.1rem;
  top: 50%;
  color: var(--subtle);
  transform: translateY(-50%);
}

.empty-state {
  display: none;
  margin: 2rem 0 0;
  color: var(--muted);
  text-align: center;
}

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

.rank-list {
  display: grid;
  gap: 1rem;
}

.rank-card {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1rem;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  padding: 0.85rem;
  background: rgba(15, 23, 42, 0.88);
}

.rank-cover {
  position: relative;
  overflow: hidden;
  border-radius: 0.95rem;
  aspect-ratio: 3 / 4;
}

.rank-cover strong {
  position: absolute;
  left: 0.55rem;
  top: 0.55rem;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), #ef4444);
}

.rank-copy h2 {
  margin: 0.4rem 0;
  font-size: 1.45rem;
}

.narrow {
  max-width: 980px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 2rem;
  color: var(--subtle);
  font-size: 0.93rem;
}

.breadcrumb a:hover {
  color: #7dd3fc;
}

.detail-main {
  padding-bottom: 4rem;
}

.detail-layout {
  display: grid;
  grid-template-columns: 18rem minmax(0, 1fr);
  gap: 2rem;
  align-items: end;
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 1.25rem 2rem;
}

.detail-poster {
  overflow: hidden;
  border-radius: 1.4rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  aspect-ratio: 3 / 4;
}

.detail-copy h1 {
  font-size: clamp(2.2rem, 5.5vw, 4.8rem);
}

.detail-copy .lead {
  max-width: 780px;
  font-size: 1.1rem;
}

.detail-kicker {
  margin-bottom: 0.8rem;
}

.player-section,
.detail-article,
.detail-related {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  background: #000;
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow);
}

.player-video,
.player-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.player-video {
  z-index: 1;
  background: #000;
}

.player-cover {
  z-index: 2;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: #000;
  transition: opacity 0.24s ease;
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.05), rgba(2, 6, 23, 0.68));
}

.player-shell.is-playing .player-cover {
  opacity: 0;
  pointer-events: none;
}

.play-ring {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 5rem;
  height: 5rem;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #2563eb);
  box-shadow: 0 20px 55px rgba(14, 165, 233, 0.34);
}

.play-ring span {
  transform: translateX(0.12rem);
  font-size: 1.6rem;
}

.detail-article {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  padding-top: 1.6rem;
  padding-bottom: 1.8rem;
  background: rgba(15, 23, 42, 0.82);
}

.detail-article h2 {
  font-size: 1.45rem;
}

.detail-article p {
  margin: 0;
}

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

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
  display: grid;
  gap: 1rem;
}

.footer-inner p {
  max-width: 720px;
  margin: 0;
  color: var(--subtle);
}

.footer-links a {
  color: #7dd3fc;
  font-weight: 700;
}

.copyright {
  font-size: 0.88rem;
}

@media (max-width: 1100px) {
  .movie-grid,
  .compact-grid,
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

  .nav-toggle {
    display: block;
  }

  .hero-carousel {
    min-height: 72vh;
  }

  .hero-gradient {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.34));
  }

  .hero-content {
    justify-content: flex-end;
    padding-bottom: 5rem;
  }

  .hero-arrow {
    display: none;
  }

  .quick-search-card,
  .featured-band,
  .detail-layout {
    grid-template-columns: 1fr;
    display: grid;
  }

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

  .detail-layout {
    padding-top: 2rem;
  }

  .detail-poster {
    max-width: 18rem;
  }

  .rank-card {
    grid-template-columns: 7rem 1fr;
  }
}

@media (max-width: 520px) {
  .nav-wrap,
  .hero-content,
  .quick-search-wrap,
  .content-section,
  .featured-band,
  .page-hero,
  .detail-main,
  .breadcrumb,
  .player-section,
  .detail-article,
  .detail-related {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .brand-text {
    font-size: 0.98rem;
  }

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

  .strip-item {
    width: 15.5rem;
  }

  .rank-card {
    grid-template-columns: 1fr;
  }

  .rank-cover {
    max-height: 20rem;
  }
}
