:root {
  color-scheme: dark;
  --bg: #0f172a;
  --panel: rgba(30, 41, 59, 0.72);
  --panel-strong: rgba(15, 23, 42, 0.94);
  --line: rgba(148, 163, 184, 0.18);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --accent: #10b981;
  --accent-2: #22d3ee;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: radial-gradient(circle at top left, rgba(16, 185, 129, 0.16), transparent 36rem),
    linear-gradient(180deg, #0f172a 0%, #1e293b 44%, #0f172a 100%);
  color: var(--text);
}

img {
  background-color: #1e293b;
}

.site-page {
  display: flex;
  flex-direction: column;
}

.site-header {
  backdrop-filter: blur(16px);
}

.brand-icon {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  font-size: 0.85rem;
  box-shadow: 0 0 28px rgba(16, 185, 129, 0.36);
}

.brand-icon.small {
  width: 1.75rem;
  height: 1.75rem;
}

.nav-link,
.mobile-nav-link {
  color: #e2e8f0;
  font-weight: 600;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.mobile-nav-link:hover {
  color: #34d399;
}

.nav-search {
  display: inline-flex;
  width: 2.35rem;
  height: 2.35rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 1.35rem;
}

.mobile-panel {
  display: none;
}

.mobile-panel.is-open {
  display: block;
}

.mobile-nav-link {
  display: block;
  padding: 0.45rem 0;
}

.mobile-menu-button {
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 0.45rem 0.7rem;
  background: rgba(15, 23, 42, 0.5);
}

.hero-carousel {
  min-height: 540px;
  background: #0f172a;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s 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(0deg, #0f172a 0%, rgba(15, 23, 42, 0.72) 36%, rgba(15, 23, 42, 0.15) 100%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.48) 46%, rgba(15, 23, 42, 0.18) 100%);
}

.hero-content {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  z-index: 2;
}

.hero-content h1 {
  max-width: 52rem;
  margin: 0 0 1rem;
  color: white;
  font-size: clamp(2.35rem, 6vw, 5.25rem);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.hero-content p {
  max-width: 42rem;
  margin-bottom: 1.5rem;
  color: #cbd5e1;
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.75;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.hero-tags span {
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.8);
  padding: 0.35rem 0.75rem;
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.primary-button {
  background: #10b981;
  color: white;
  box-shadow: 0 16px 34px rgba(16, 185, 129, 0.25);
}

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

.primary-button:hover {
  background: #059669;
}

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

.secondary-button:hover {
  border-color: rgba(52, 211, 153, 0.6);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 2.8rem;
  height: 2.8rem;
  transform: translateY(-50%);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: white;
  font-size: 2rem;
  line-height: 1;
  transition: background 0.2s ease;
}

.hero-control:hover {
  background: rgba(0, 0, 0, 0.72);
}

.hero-prev {
  left: 1rem;
}

.hero-next {
  right: 1rem;
}

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

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

.hero-dot.is-active {
  width: 2rem;
  background: #10b981;
}

.section-title-row {
  gap: 1rem;
}

.movie-card {
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.card-play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-flex;
  width: 4rem;
  height: 4rem;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%) scale(0);
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.92);
  color: white;
  font-size: 1.4rem;
  transition: transform 0.25s ease;
}

.movie-card:hover .card-play-button {
  transform: translate(-50%, -50%) scale(1);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
}

.category-grid.large {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.category-tile {
  position: relative;
  min-height: 13rem;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 1.5rem;
  background: rgba(30, 41, 59, 0.76);
  box-shadow: 0 14px 40px rgba(2, 6, 23, 0.25);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(52, 211, 153, 0.45);
}

.category-cover {
  position: absolute;
  inset: 0;
  opacity: 0.4;
}

.category-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.2), rgba(15, 23, 42, 0.92));
}

.category-info {
  position: absolute;
  inset: auto 0 0;
  padding: 1.35rem;
}

.category-info h3 {
  color: white;
  font-size: 1.45rem;
  font-weight: 900;
}

.category-info p {
  margin: 0.45rem 0 0.85rem;
  color: #cbd5e1;
  line-height: 1.6;
}

.category-info span {
  display: inline-flex;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.22);
  padding: 0.32rem 0.72rem;
  color: #6ee7b7;
  font-size: 0.85rem;
  font-weight: 700;
}

.page-hero {
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: -40% auto auto -8rem;
  width: 30rem;
  height: 30rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.13);
  filter: blur(40px);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  color: #94a3b8;
  font-size: 0.95rem;
}

.breadcrumb a {
  color: #cbd5e1;
}

.breadcrumb a:hover {
  color: #34d399;
}

.breadcrumb strong {
  color: #6ee7b7;
  font-weight: 700;
}

.filter-panel {
  box-shadow: 0 18px 50px rgba(2, 6, 23, 0.18);
}

.filter-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.filter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 12rem 12rem;
  gap: 1rem;
}

.filter-grid label {
  display: grid;
  gap: 0.45rem;
  color: #cbd5e1;
  font-size: 0.9rem;
  font-weight: 700;
}

.filter-grid input,
.filter-grid select {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 0.85rem;
  background: rgba(15, 23, 42, 0.78);
  padding: 0.85rem 1rem;
  color: white;
  outline: none;
}

.filter-grid input:focus,
.filter-grid select:focus {
  border-color: rgba(52, 211, 153, 0.68);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.16);
}

.empty-state {
  display: none;
  padding: 4rem 1rem;
  color: #94a3b8;
  text-align: center;
  font-size: 1.1rem;
}

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

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

.ranking-list.compact {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.ranking-row {
  display: grid;
  grid-template-columns: auto 4.8rem minmax(0, 1fr) auto auto;
  gap: 1rem;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.11);
  border-radius: 1rem;
  background: rgba(30, 41, 59, 0.68);
  padding: 0.75rem;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.ranking-row:hover {
  transform: translateY(-2px);
  border-color: rgba(52, 211, 153, 0.38);
  background: rgba(30, 41, 59, 0.94);
}

.ranking-row img {
  width: 4.8rem;
  height: 3.2rem;
  border-radius: 0.65rem;
  object-fit: cover;
}

.rank-medal {
  display: inline-flex;
  min-width: 2.2rem;
  height: 2.2rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
  font-weight: 900;
}

.rank-medal.top {
  background: linear-gradient(135deg, #10b981, #22d3ee);
  color: white;
}

.ranking-title {
  overflow: hidden;
  color: white;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-meta,
.ranking-tag {
  color: #94a3b8;
  font-size: 0.85rem;
}

.ranking-tag {
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.13);
  padding: 0.28rem 0.65rem;
  color: #6ee7b7;
}

.site-player {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background: #020617;
  aspect-ratio: 16 / 9;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.12), 0 22px 60px rgba(2, 6, 23, 0.34);
}

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

.player-overlay-button {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.28), rgba(2, 6, 23, 0.74));
  color: white;
  font-weight: 900;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-overlay-button.is-hidden {
  visibility: hidden;
  opacity: 0;
}

.player-circle {
  display: inline-flex;
  width: 5.4rem;
  height: 5.4rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.92);
  box-shadow: 0 0 44px rgba(16, 185, 129, 0.32);
  font-size: 2rem;
}

.player-status {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  padding: 0.4rem 0.75rem;
  color: #cbd5e1;
  font-size: 0.85rem;
}

.detail-cover {
  width: 100%;
  border-radius: 1rem;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  box-shadow: 0 18px 44px rgba(2, 6, 23, 0.28);
}

.detail-category-link {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.16);
  padding: 0.75rem 1rem;
  color: #6ee7b7;
  font-weight: 800;
}

.detail-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.18);
  padding: 0.35rem 0.72rem;
  color: #6ee7b7;
  font-size: 0.85rem;
  font-weight: 700;
}

.prose-block {
  margin-top: 1.5rem;
}

.prose-block h2 {
  margin-bottom: 0.75rem;
  color: white;
  font-size: 1.25rem;
  font-weight: 900;
}

.prose-block p {
  color: #cbd5e1;
  line-height: 1.9;
  white-space: pre-line;
}

.related-list .movie-card {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
}

.related-list .movie-card .relative {
  aspect-ratio: auto;
  min-height: 100%;
}

.related-list .movie-card img {
  height: 100%;
}

.footer-count {
  margin-left: 0.35rem;
  color: #64748b;
  font-size: 0.8rem;
}

@media (max-width: 900px) {
  .filter-grid {
    grid-template-columns: 1fr;
  }

  .ranking-row {
    grid-template-columns: auto 4.4rem minmax(0, 1fr);
  }

  .ranking-meta,
  .ranking-tag {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero-carousel {
    min-height: 620px;
  }

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

  .hero-control {
    top: auto;
    bottom: 1.5rem;
    transform: none;
  }

  .hero-prev {
    left: 1rem;
  }

  .hero-next {
    right: 1rem;
  }

  .hero-dots {
    bottom: 1.9rem;
  }

  .section-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .related-list .movie-card {
    display: block;
  }
}
