body {
  min-height: 100vh;
  background: radial-gradient(circle at top left, rgba(14, 165, 233, 0.16), transparent 28rem), #020617;
  color: #e2e8f0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

img {
  background: linear-gradient(135deg, #0f172a, #111827);
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.5rem;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: #ffffff;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border-radius: 1rem;
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  box-shadow: 0 16px 40px rgba(14, 165, 233, 0.32);
  color: #ffffff;
  font-weight: 900;
  font-size: 1.25rem;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 1.16rem;
}

.brand-copy small {
  color: #94a3b8;
  margin-top: 0.25rem;
  font-size: 0.78rem;
}

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

.nav-link,
.mobile-nav a,
.footer-grid a,
.plain-link {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-nav a:hover,
.footer-grid a:hover,
.plain-link:hover {
  color: #38bdf8;
}

.mobile-menu-button {
  display: none;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 0.75rem;
  color: #ffffff;
  padding: 0.55rem 0.75rem;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0 1rem 1rem;
}

.mobile-nav a {
  display: block;
  border-radius: 0.75rem;
  padding: 0.78rem 1rem;
  background: rgba(15, 23, 42, 0.82);
}

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

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

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.62), rgba(2, 6, 23, 0.16)), linear-gradient(0deg, #020617, transparent 45%);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 58rem;
  padding-top: 4rem;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: #7dd3fc;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
  max-width: 58rem;
  color: #ffffff;
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero-copy h1 {
  font-size: clamp(2.8rem, 7vw, 6.6rem);
}

.page-hero h1,
.detail-info h1 {
  font-size: clamp(2.35rem, 5vw, 4.8rem);
}

.hero-desc,
.page-hero p,
.detail-one-line,
.section-heading p,
.footer-grid p,
.prose-panel p {
  color: #cbd5e1;
  line-height: 1.85;
}

.hero-desc {
  max-width: 48rem;
  margin-top: 1.25rem;
  font-size: 1.1rem;
}

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

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

.hero-tags span,
.tag-list span,
.detail-meta-list span {
  border: 1px solid rgba(125, 211, 252, 0.28);
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.1);
  color: #bae6fd;
  padding: 0.38rem 0.72rem;
  font-size: 0.82rem;
}

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

.primary-button,
.secondary-button,
.hero-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.82rem 1.35rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.primary-button,
.hero-search button {
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  color: #ffffff;
  box-shadow: 0 18px 48px rgba(14, 165, 233, 0.32);
}

.secondary-button {
  border: 1px solid rgba(148, 163, 184, 0.32);
  background: rgba(15, 23, 42, 0.72);
  color: #ffffff;
}

.primary-button:hover,
.secondary-button:hover,
.hero-search button:hover,
.movie-card:hover,
.category-tile:hover,
.category-panel:hover {
  transform: translateY(-3px);
}

.hero-search {
  display: flex;
  max-width: 42rem;
  gap: 0.75rem;
  margin-top: 1.6rem;
  padding: 0.5rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(16px);
}

.hero-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.88);
  color: #ffffff;
  outline: none;
}

.hero-search input {
  flex: 1;
  border-color: transparent;
  background: transparent;
  padding: 0 1rem;
}

.hero-search input::placeholder,
.filter-panel input::placeholder {
  color: #64748b;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.45);
  color: #ffffff;
  font-size: 2rem;
  transform: translateY(-50%);
}

.hero-prev {
  left: 1.25rem;
}

.hero-next {
  right: 1.25rem;
}

.hero-dots {
  position: absolute;
  right: 0;
  bottom: 2rem;
  left: 0;
  z-index: 4;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.hero-dots button {
  width: 1.5rem;
  height: 0.28rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.is-active {
  width: 2.35rem;
  background: #ffffff;
}

.content-section {
  padding: 4.8rem 0;
}

.section-soft {
  background: rgba(15, 23, 42, 0.42);
}

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

.section-heading span {
  color: #38bdf8;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-heading h2 {
  margin-top: 0.35rem;
  color: #ffffff;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 900;
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(51, 65, 85, 0.72);
  border-radius: 1.25rem;
  background: rgba(15, 23, 42, 0.88);
  box-shadow: 0 16px 44px rgba(2, 6, 23, 0.22);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 20px 50px rgba(14, 165, 233, 0.16);
}

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

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  color: #ffffff;
  text-decoration: none;
}

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

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

.type-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.72);
  color: #e0f2fe;
  padding: 0.35rem 0.62rem;
  font-size: 0.75rem;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.type-badge {
  top: 0.65rem;
  left: 0.65rem;
}

.rank-badge {
  right: 0.65rem;
  bottom: 0.65rem;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.86), rgba(249, 115, 22, 0.86));
}

.card-body {
  padding: 0.95rem;
}

.card-body h3 {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
}

.card-body h3 a {
  color: inherit;
  text-decoration: none;
}

.card-meta {
  margin-top: 0.35rem;
  color: #94a3b8;
  font-size: 0.8rem;
}

.card-desc {
  display: -webkit-box;
  min-height: 3.15rem;
  margin-top: 0.55rem;
  overflow: hidden;
  color: #cbd5e1;
  font-size: 0.85rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tag-list {
  margin-top: 0.8rem;
}

.tag-list span {
  padding: 0.25rem 0.52rem;
  font-size: 0.72rem;
}

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

.category-tile,
.category-panel,
.prose-panel,
.filter-panel,
.video-shell,
.detail-poster {
  border: 1px solid rgba(51, 65, 85, 0.72);
  border-radius: 1.35rem;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.88));
  box-shadow: 0 18px 60px rgba(2, 6, 23, 0.28);
}

.category-tile,
.category-panel-main {
  display: block;
  min-height: 14rem;
  padding: 1.25rem;
  color: #ffffff;
  text-decoration: none;
}

.category-tile span,
.category-panel-main span {
  color: #7dd3fc;
  font-weight: 900;
}

.category-tile h3,
.category-panel-main h2 {
  margin-top: 0.75rem;
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 900;
}

.category-tile p,
.category-panel-main p {
  margin-top: 0.75rem;
  color: #cbd5e1;
  line-height: 1.65;
}

.category-tile strong {
  display: inline-flex;
  margin-top: 1rem;
  color: #38bdf8;
}

.category-panel {
  overflow: hidden;
}

.category-mini-links {
  display: grid;
  gap: 0.5rem;
  padding: 0 1.25rem 1.25rem;
}

.category-mini-links a {
  color: #cbd5e1;
  text-decoration: none;
}

.category-mini-links a:hover {
  color: #38bdf8;
}

.page-hero,
.detail-top {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 3.2rem;
  background: radial-gradient(circle at 16% 18%, rgba(14, 165, 233, 0.2), transparent 30rem), linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 1));
}

.compact-hero,
.search-hero,
.ranking-hero,
.category-hero {
  min-height: 22rem;
  display: flex;
  align-items: center;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1.4rem;
  color: #94a3b8;
}

.breadcrumb a {
  color: #bae6fd;
  text-decoration: none;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(16rem, 1.4fr) repeat(3, minmax(9rem, 0.45fr));
  gap: 0.75rem;
  margin-bottom: 1.6rem;
  padding: 1rem;
}

.filter-panel input,
.filter-panel select {
  padding: 0.78rem 1rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(14rem, 22rem) 1fr;
  gap: 2rem;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
}

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

.detail-one-line {
  max-width: 58rem;
  margin-top: 1rem;
  font-size: 1.15rem;
}

.player-section {
  padding: 4rem 0 0;
}

.player-section h2 {
  margin-bottom: 1rem;
  color: #ffffff;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 900;
}

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

.video-shell video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.play-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.34), rgba(2, 6, 23, 0.78));
  color: #ffffff;
}

.video-shell.is-playing .play-layer {
  display: none;
}

.play-icon {
  display: grid;
  width: 5rem;
  height: 5rem;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  box-shadow: 0 20px 58px rgba(14, 165, 233, 0.4);
  font-size: 1.8rem;
}

.prose-panel {
  padding: 2rem;
}

.prose-panel h2 {
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  color: #ffffff;
  font-size: 1.45rem;
  font-weight: 900;
}

.prose-panel h2:first-child {
  margin-top: 0;
}

.detail-meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.site-footer {
  border-top: 1px solid rgba(51, 65, 85, 0.72);
  background: rgba(2, 6, 23, 0.96);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.9fr;
  gap: 2rem;
  padding: 3rem 1rem;
}

.footer-brand {
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 900;
}

.footer-grid h2 {
  margin-bottom: 1rem;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 900;
}

.footer-grid a {
  display: block;
  margin: 0.55rem 0;
}

.footer-grid p {
  max-width: 34rem;
  margin-top: 0.8rem;
}

.footer-bottom {
  border-top: 1px solid rgba(51, 65, 85, 0.55);
  padding: 1.1rem;
  color: #64748b;
  text-align: center;
}

.center-actions {
  justify-content: center;
}

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

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

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

  .mobile-menu-button {
    display: inline-flex;
  }

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

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

  .hero-copy h1 {
    font-size: clamp(2.4rem, 13vw, 4.3rem);
  }

  .hero-arrow {
    display: none;
  }

  .hero-search {
    border-radius: 1.25rem;
    flex-direction: column;
  }

  .hero-search input {
    padding: 0.85rem 1rem;
  }

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

  .category-grid,
  .category-panel-grid,
  .footer-grid,
  .detail-grid,
  .filter-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .content-section {
    padding: 3rem 0;
  }

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

  .card-body {
    padding: 0.75rem;
  }

  .card-desc {
    display: none;
  }

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

  .page-hero,
  .detail-top {
    padding-top: 3.6rem;
  }

  .detail-grid {
    gap: 1.25rem;
  }

  .prose-panel {
    padding: 1.2rem;
  }
}
