:root {
  --site-amber: #d97706;
  --site-orange: #ea580c;
  --site-rose: #e11d48;
  --site-dark: #1f2937;
  --site-muted: #6b7280;
  --site-card: #ffffff;
}

body {
  min-height: 100vh;
  background: linear-gradient(135deg, #fffbeb 0%, #fff7ed 45%, #fff1f2 100%);
  color: var(--site-dark);
}

main {
  min-height: 60vh;
}

img {
  background: linear-gradient(135deg, #f59e0b, #fb7185);
}

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

.site-logo:hover .logo-mark {
  transform: scale(1.08) rotate(4deg);
}

.logo-mark {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--site-amber), var(--site-orange));
  box-shadow: 0 10px 24px rgba(217, 119, 6, 0.28);
  transition: transform 0.2s ease;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 800;
}

.nav-link,
.mobile-nav-link {
  color: #374151;
  font-weight: 600;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.nav-link {
  padding-bottom: 0.35rem;
  border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link.active {
  color: var(--site-amber);
  border-bottom-color: var(--site-amber);
}

.mobile-nav-link {
  display: block;
  padding: 0.65rem 1rem;
  border-radius: 0.75rem;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--site-amber);
  background: #fef3c7;
}

.nav-toggle-line {
  display: block;
  width: 1.5rem;
  height: 2px;
  margin: 5px 0;
  background: #374151;
  border-radius: 9999px;
}

.site-footer a {
  color: #fde68a;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: #ffffff;
}

.footer-logo-mark {
  width: 2rem;
  height: 2rem;
  color: #92400e;
  background: #fde68a;
}

.hero-slider {
  height: 540px;
  background: linear-gradient(90deg, var(--site-amber), var(--site-orange), var(--site-rose));
}

.hero-slides,
.hero-slide {
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  background-position: center;
  background-size: cover;
  transition: opacity 0.8s ease, transform 1.2s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2rem;
  align-items: center;
}

.hero-copy {
  max-width: 760px;
  color: #ffffff;
}

.hero-kicker,
.page-kicker {
  display: inline-flex;
  margin-bottom: 1rem;
  padding: 0.45rem 0.85rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffedd5;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

.hero-copy h2 {
  margin-top: 1rem;
  font-size: clamp(1.45rem, 3vw, 2.6rem);
  font-weight: 800;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.hero-desc {
  max-width: 680px;
  margin-top: 1.2rem;
  color: #fff7ed;
  font-size: 1.08rem;
  line-height: 1.8;
}

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

.hero-tags span,
.movie-tags span,
.tag-links a {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.hero-tags span {
  padding: 0.35rem 0.75rem;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.movie-tags span,
.tag-links a {
  padding: 0.3rem 0.65rem;
  color: #b45309;
  background: #fffbeb;
}

.hero-actions {
  margin-top: 2rem;
}

.hero-primary,
.hero-secondary,
.inline-pill,
.detail-actions a,
.page-hero-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.hero-primary,
.inline-pill,
.detail-actions a:first-child,
.page-hero-actions a:first-child {
  color: var(--site-amber);
  background: #ffffff;
  box-shadow: 0 16px 30px rgba(120, 53, 15, 0.24);
}

.hero-primary,
.hero-secondary {
  min-height: 3.1rem;
  padding: 0.8rem 2rem;
}

.hero-secondary,
.page-hero-actions a + a {
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.86);
}

.hero-primary:hover,
.hero-secondary:hover,
.inline-pill:hover,
.detail-actions a:hover,
.page-hero-actions a:hover {
  transform: translateY(-2px) scale(1.02);
}

.hero-secondary:hover,
.page-hero-actions a + a:hover {
  color: var(--site-amber);
  background: #ffffff;
}

.hero-poster-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 1.5rem;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.32);
  transform: rotate(2deg);
  transition: transform 0.3s ease;
}

.hero-poster-card:hover {
  transform: rotate(0deg) scale(1.03);
}

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

.hero-poster-card span {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.4rem 0.75rem;
  border-radius: 9999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--site-amber), var(--site-rose));
  font-weight: 900;
}

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

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

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

.section-spark {
  color: #f59e0b;
  font-size: 1.6rem;
}

.poster-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 -70px 70px rgba(0, 0, 0, 0.18);
}

.play-badge {
  width: 3.7rem;
  height: 3.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  color: #ffffff;
  background: rgba(245, 158, 11, 0.86);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .play-badge {
  opacity: 1;
  transform: scale(1);
}

.compact-card .p-5 {
  padding: 1rem;
}

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

.category-tile {
  overflow: hidden;
}

.category-tile-image {
  height: 150px;
  background-position: center;
  background-size: cover;
}

.category-tile h2,
.category-overview h2 {
  margin-bottom: 0.5rem;
  color: #1f2937;
  font-size: 1.25rem;
  font-weight: 900;
}

.category-tile p,
.category-overview p {
  color: #6b7280;
  font-size: 0.92rem;
  line-height: 1.7;
}

.category-tile span {
  display: inline-flex;
  margin-top: 1rem;
  color: var(--site-amber);
  font-weight: 800;
}

.category-overview-head {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.page-hero {
  padding: 5rem 0;
  color: #ffffff;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  text-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.page-hero p:not(.page-kicker) {
  max-width: 760px;
  margin: 1rem auto 0;
  color: #ffedd5;
  font-size: 1.15rem;
  line-height: 1.8;
}

.page-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.page-hero-actions a {
  min-width: 9rem;
  min-height: 2.8rem;
  padding: 0.75rem 1.5rem;
}

.inline-pill {
  min-height: 2.75rem;
  padding: 0.75rem 1.4rem;
  color: var(--site-amber);
  background: #ffffff;
}

.filter-field {
  display: grid;
  gap: 0.45rem;
}

.filter-field span {
  color: #92400e;
  font-size: 0.85rem;
  font-weight: 800;
}

.filter-field input,
.filter-field select {
  width: 100%;
  min-height: 3rem;
  border: 1px solid #fde68a;
  border-radius: 0.9rem;
  padding: 0 1rem;
  color: #374151;
  background: #fffbeb;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-field input:focus,
.filter-field select:focus {
  border-color: var(--site-amber);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
}

.live-search-results {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.live-search-item {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 0.85rem;
  align-items: center;
  padding: 0.75rem;
  border-radius: 1rem;
  background: #fff7ed;
}

.live-search-item img {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 0.8rem;
  object-fit: cover;
}

.live-search-item strong {
  display: block;
  color: #1f2937;
}

.live-search-item span {
  display: block;
  color: #6b7280;
  font-size: 0.82rem;
}

.ranking-list {
  counter-reset: rank;
}

.rank-number {
  flex: 0 0 auto;
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--site-amber), var(--site-rose));
  font-weight: 900;
}

.ranking-cover {
  flex: 0 0 auto;
  width: 5.4rem;
  height: 5.4rem;
  overflow: hidden;
  border-radius: 1rem;
}

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

.ranking-score {
  flex: 0 0 auto;
  display: grid;
  justify-items: end;
  color: var(--site-amber);
}

.ranking-score strong {
  font-size: 1.25rem;
  line-height: 1;
}

.ranking-score span {
  color: #6b7280;
  font-size: 0.75rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1.5rem;
  color: #6b7280;
  font-size: 0.92rem;
}

.breadcrumb a {
  color: var(--site-amber);
  font-weight: 700;
}

.video-frame {
  position: relative;
  background: #000000;
}

.video-frame video {
  display: block;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.55));
  transition: opacity 0.2s ease;
}

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

.player-play-icon {
  width: 5rem;
  height: 5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--site-amber), var(--site-rose));
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
  font-size: 2rem;
}

.player-message {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.75);
  text-align: center;
}

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

.info-grid dt {
  color: #6b7280;
  font-size: 0.82rem;
}

.info-grid dd {
  color: #1f2937;
  font-weight: 800;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.detail-actions a {
  min-height: 2.65rem;
  padding: 0.7rem 1.15rem;
  color: #ffffff;
  background: linear-gradient(135deg, var(--site-amber), var(--site-orange));
}

.detail-content h2 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: #1f2937;
  font-size: 1.5rem;
  font-weight: 900;
}

.detail-content h2:first-child {
  margin-top: 0;
}

.detail-content p {
  color: #4b5563;
  line-height: 2;
  white-space: pre-line;
}

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

.prev-next a {
  padding: 1rem 1.2rem;
  border-radius: 1rem;
  color: #92400e;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(120, 53, 15, 0.08);
  font-weight: 800;
}

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

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

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

@media (max-width: 900px) {
  .hero-slider {
    height: auto;
    min-height: 620px;
  }

  .hero-slide {
    min-height: 620px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    padding-top: 4rem;
    padding-bottom: 5rem;
  }

  .hero-poster-card {
    max-width: 220px;
    margin: 0 auto;
  }

  .category-overview-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .ranking-item a {
    align-items: flex-start;
  }

  .ranking-score {
    display: none;
  }

  .prev-next {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero-copy h1 {
    font-size: 2.5rem;
  }

  .hero-copy h2 {
    font-size: 1.5rem;
  }

  .page-hero {
    padding: 3.5rem 0;
  }

  .ranking-cover {
    width: 4.4rem;
    height: 4.4rem;
  }

  .rank-number {
    width: 2rem;
    height: 2rem;
  }
}
