html {
  scroll-behavior: smooth;
}

body {
  color: #2f2419;
  background: #fffbeb;
}

img {
  background: linear-gradient(135deg, #fef3c7, #fed7aa);
}

.nav-active {
  color: #d97706;
}

.site-logo-badge {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  color: #ffffff;
  font-weight: 800;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.28);
}

.search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-52%);
  color: #d97706;
  font-weight: 700;
  pointer-events: none;
}

.mobile-nav {
  display: none;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid #fde68a;
  backdrop-filter: blur(8px);
}

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

.mobile-link {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 0.75rem;
  color: #92400e;
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.mobile-link:hover,
.mobile-active {
  color: #b45309;
  background: #fffbeb;
}

.mobile-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
  padding-top: 0.5rem;
  border-top: 1px solid #fde68a;
}

.hero-slider {
  min-height: 520px;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1s ease, transform 1s ease;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

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

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 3rem;
  height: 3rem;
  transform: translateY(-50%);
  border-radius: 9999px;
  color: #ffffff;
  font-size: 2.2rem;
  line-height: 1;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  transition: background-color 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.4);
}

.hero-prev {
  left: 1rem;
}

.hero-next {
  right: 1rem;
}

.hero-dot {
  width: 3rem;
  height: 0.25rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.5);
  transition: width 0.3s ease, background-color 0.3s ease;
}

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

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

.section-mark {
  color: #f59e0b;
  font-size: 1.2rem;
}

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

.category-card {
  position: relative;
  min-height: 11rem;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 10px 24px rgba(146, 64, 14, 0.12);
  background: #ffffff;
}

.category-card img {
  width: 100%;
  height: 100%;
  min-height: 11rem;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-card:hover img {
  transform: scale(1.08);
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.12));
}

.category-card span {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1;
  display: flex;
  flex-direction: column;
  color: #ffffff;
}

.category-card strong {
  font-size: 1.25rem;
  font-weight: 800;
}

.category-card small {
  color: rgba(255, 255, 255, 0.86);
}

.page-hero {
  padding: 4.5rem 0 3.5rem;
  background: linear-gradient(135deg, #fffbeb, #fff7ed 55%, #fef3c7);
  border-bottom: 1px solid #fde68a;
}

.page-hero h1 {
  max-width: 880px;
  color: #78350f;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 760px;
  margin-top: 1rem;
  color: #92400e;
  font-size: 1.08rem;
  line-height: 1.75;
}

.page-hero-search,
.filter-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1.5rem;
}

.page-hero-search input,
.filter-panel input {
  min-width: min(100%, 420px);
  flex: 1 1 280px;
  padding: 0.85rem 1rem;
  border: 1px solid #fcd34d;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.86);
  outline: none;
}

.page-hero-search input:focus,
.filter-panel input:focus {
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.32);
}

.page-hero-search button,
.filter-panel span {
  padding: 0.85rem 1.4rem;
  border-radius: 9999px;
  color: #ffffff;
  background: #f59e0b;
  font-weight: 700;
}

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

.category-overview-card {
  overflow: hidden;
  border-radius: 1.25rem;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(146, 64, 14, 0.11);
}

.category-covers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 160px;
  overflow: hidden;
}

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

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: #b45309;
  font-size: 0.92rem;
}

.breadcrumbs a:hover {
  color: #92400e;
}

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

.filter-empty {
  display: none;
  padding: 3rem;
  text-align: center;
  color: #92400e;
}

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

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

.ranking-item {
  display: grid;
  grid-template-columns: auto 76px minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border-radius: 1rem;
  color: inherit;
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(146, 64, 14, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(146, 64, 14, 0.14);
}

.rank-number {
  min-width: 2.4rem;
  color: #d97706;
  font-size: 1.25rem;
  font-weight: 900;
  text-align: center;
}

.ranking-item img {
  width: 76px;
  height: 64px;
  border-radius: 0.75rem;
  object-fit: cover;
}

.ranking-main {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}

.ranking-main strong {
  color: #78350f;
  font-size: 1.05rem;
}

.ranking-main small,
.ranking-main em {
  overflow: hidden;
  color: #6b7280;
  font-size: 0.82rem;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-heat {
  color: #b45309;
  font-size: 0.85rem;
  font-weight: 700;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 1.5rem;
  background: #111827;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.22);
}

.movie-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.22));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-icon {
  width: 5rem;
  height: 5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 0.25rem;
  border-radius: 9999px;
  color: #ffffff;
  font-size: 2rem;
  background: #f59e0b;
  box-shadow: 0 20px 42px rgba(245, 158, 11, 0.35);
}

.movie-detail-content,
.detail-side-card,
.side-ranking {
  border-radius: 1.25rem;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(146, 64, 14, 0.08);
}

.movie-detail-content {
  padding: 1.5rem;
}

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

.content-block h2,
.side-ranking h2,
.detail-side-card h2 {
  margin-bottom: 0.75rem;
  color: #78350f;
  font-size: 1.35rem;
  font-weight: 800;
}

.content-block p {
  color: #374151;
  line-height: 1.85;
}

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

.tag-pill {
  display: inline-flex;
  padding: 0.35rem 0.7rem;
  border-radius: 9999px;
  color: #92400e;
  background: #fef3c7;
  font-size: 0.82rem;
  font-weight: 600;
}

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

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

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

.detail-side-card p {
  margin-bottom: 0.4rem;
  color: #6b7280;
}

.detail-side-card a {
  display: inline-flex;
  margin-top: 0.5rem;
  color: #d97706;
  font-weight: 700;
}

.side-ranking {
  padding: 1rem;
}

.side-ranking .movie-card {
  margin-top: 0.75rem;
}

.side-ranking .movie-card .w-32,
.side-ranking .movie-card .sm\:w-48 {
  width: 5.75rem;
}

.search-summary {
  margin-bottom: 1.5rem;
  color: #92400e;
  font-weight: 700;
}

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

@media (max-width: 767px) {
  .hero-slider {
    min-height: 580px;
  }

  .hero-arrow {
    display: none;
  }

  .hero-dot {
    width: 2rem;
  }

  .hero-dot.is-active {
    width: 3rem;
  }

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

  .ranking-item {
    grid-template-columns: auto 64px minmax(0, 1fr);
  }

  .ranking-heat {
    display: none;
  }
}
