html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: #030712;
}

img {
  background: linear-gradient(135deg, rgba(31, 41, 55, 0.8), rgba(17, 24, 39, 0.9));
}

.site-logo-mark {
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #111827;
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  box-shadow: 0 0 28px rgba(245, 158, 11, 0.35);
  font-size: 0.9rem;
  font-weight: 800;
}

.site-logo-mark.small {
  width: 1.85rem;
  height: 1.85rem;
  font-size: 0.75rem;
}

.mobile-menu-button {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.25rem;
  border-radius: 0.75rem;
  color: white;
  background: rgba(31, 41, 55, 0.8);
}

.mobile-menu-button span {
  width: 1.1rem;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.mobile-menu {
  display: none;
  padding: 0.5rem 0 1rem;
  border-top: 1px solid rgba(31, 41, 55, 0.9);
}

.mobile-menu.is-open {
  display: grid;
  gap: 0.5rem;
}

.mobile-nav-item {
  display: block;
  padding: 0.75rem 0.9rem;
  color: #d1d5db;
  border-radius: 0.75rem;
  background: rgba(17, 24, 39, 0.8);
}

.hero-slider {
  overflow: hidden;
  background: #030712;
}

.hero-slide {
  pointer-events: none;
}

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

.hero-spark {
  color: #f59e0b;
  font-size: 1.2rem;
}

.hero-tags,
.detail-genres,
.category-samples,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.hero-tag,
.detail-genres span {
  display: inline-flex;
  padding: 0.35rem 0.7rem;
  border-radius: 0.6rem;
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
  font-size: 0.875rem;
  font-weight: 600;
}

.hero-score {
  color: #fbbf24;
  font-weight: 800;
  font-size: 1rem;
}

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

.hero-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 5;
}

.hero-control:hover {
  background: rgba(0, 0, 0, 0.74);
  transform: translateY(-50%) scale(1.06);
}

.hero-prev {
  left: 1rem;
}

.hero-next {
  right: 1rem;
}

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

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

.play-hover,
.play-icon-small,
.compact-play {
  color: white;
  margin-left: 0.15rem;
}

.play-hover {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4rem;
  height: 4rem;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 158, 11, 0.9);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  font-size: 1.5rem;
}

.group:hover .play-hover {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.08);
}

.rank-badge {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: rgba(245, 158, 11, 0.92);
  color: white;
  font-weight: 800;
  z-index: 3;
}

.compact-rank {
  color: #f59e0b;
  font-weight: 800;
  margin-right: 0.4rem;
}

.category-entry {
  display: grid;
  gap: 0.35rem;
  min-height: 7rem;
  align-content: end;
  padding: 1rem;
  border: 1px solid rgba(75, 85, 99, 0.65);
  border-radius: 1.25rem;
  background: radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.23), transparent 32%), rgba(17, 24, 39, 0.82);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.category-entry:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 158, 11, 0.75);
  background: radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.32), transparent 36%), rgba(17, 24, 39, 0.95);
}

.category-entry span {
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
}

.category-entry em {
  color: #9ca3af;
  font-size: 0.85rem;
  font-style: normal;
}

.inner-hero {
  padding: 5rem 0 3.25rem;
  background: radial-gradient(circle at 15% 20%, rgba(245, 158, 11, 0.2), transparent 30%), linear-gradient(135deg, #030712, #111827 48%, #030712);
  border-bottom: 1px solid rgba(31, 41, 55, 0.9);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  color: #9ca3af;
  font-size: 0.9rem;
}

.breadcrumb a:hover {
  color: #f59e0b;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(55, 65, 81, 0.9);
  border-radius: 1.25rem;
  background: rgba(17, 24, 39, 0.75);
}

.category-cover {
  position: relative;
  display: block;
  min-height: 10rem;
  border-radius: 1rem;
  overflow: hidden;
}

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

.category-cover span {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1rem;
  font-weight: 800;
  color: white;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
}

.category-overview-body h2 {
  color: white;
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.55rem;
}

.category-overview-body p {
  color: #9ca3af;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.category-samples a {
  color: #fbbf24;
  font-size: 0.88rem;
  background: rgba(245, 158, 11, 0.12);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 12rem 12rem;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  border: 1px solid rgba(55, 65, 81, 0.9);
  border-radius: 1.25rem;
  background: rgba(17, 24, 39, 0.8);
}

.search-panel {
  grid-template-columns: minmax(0, 1fr) 10rem 10rem 10rem;
}

.filter-input,
.filter-select {
  width: 100%;
  border-radius: 0.9rem;
  border: 1px solid rgba(75, 85, 99, 0.9);
  background: rgba(3, 7, 18, 0.9);
  color: #fff;
  outline: none;
  padding: 0.85rem 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-input:focus,
.filter-select:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.16);
}

.filter-empty {
  display: none;
  padding: 2rem;
  text-align: center;
  color: #9ca3af;
  border-radius: 1.25rem;
  background: rgba(17, 24, 39, 0.8);
  margin-bottom: 1rem;
}

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

.hidden-card {
  display: none !important;
}

.ranking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 1.5rem;
}

.ranking-list {
  display: grid;
  gap: 0.75rem;
  max-height: 42rem;
  overflow: auto;
  padding-right: 0.25rem;
}

.player-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 1.5rem;
  background: #000;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.player-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #000;
  cursor: pointer;
}

.player-start {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 5rem;
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: white;
  background: rgba(245, 158, 11, 0.94);
  box-shadow: 0 0 0 10px rgba(245, 158, 11, 0.16), 0 20px 50px rgba(0, 0, 0, 0.35);
  z-index: 4;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.player-start:hover {
  transform: scale(1.08);
}

.player-start span {
  margin-left: 0.25rem;
  font-size: 2rem;
}

.player-start.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.player-message {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  color: #fff;
  text-align: center;
  font-size: 0.9rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.65);
  pointer-events: none;
}

.movie-detail-copy p {
  word-break: break-word;
}

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

.detail-stat-grid div,
.content-card,
.side-panel,
.detail-poster-card {
  background: rgba(17, 24, 39, 0.78);
  border: 1px solid rgba(55, 65, 81, 0.9);
  border-radius: 1.25rem;
}

.detail-stat-grid div {
  padding: 1rem;
}

.detail-stat-grid span {
  display: block;
  color: #9ca3af;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

.detail-stat-grid strong {
  color: #fff;
  font-size: 1.15rem;
}

.content-card {
  padding: 1.35rem;
}

.content-card h2,
.side-panel h2 {
  color: #fff;
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
}

.content-card p {
  color: #d1d5db;
  line-height: 1.9;
}

.detail-poster-card {
  overflow: hidden;
}

.detail-poster-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

.detail-poster-card div {
  padding: 1.25rem;
}

.detail-poster-card h2 {
  color: #fff;
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.45rem;
}

.detail-poster-card p {
  color: #9ca3af;
  margin-bottom: 0.9rem;
}

.side-panel {
  padding: 1.25rem;
}

.footer-links {
  align-items: center;
}

.footer-links a {
  margin-right: 0.25rem;
}

@media (min-width: 768px) {
  .category-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .ranking-layout,
  .filter-panel,
  .search-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-control {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.5rem;
  }

  .hero-copy {
    padding-right: 2.5rem;
  }

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

  .category-cover {
    min-height: 14rem;
  }

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

  .player-start {
    width: 4rem;
    height: 4rem;
  }
}
