html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  text-decoration: none;
}

.site-logo-icon {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #22d3ee, #3b82f6);
  box-shadow: 0 12px 30px rgba(34, 211, 238, 0.25);
  font-size: 0.8rem;
}

.site-logo-icon.small {
  width: 1.5rem;
  height: 1.5rem;
  font-size: 0.65rem;
}

.site-menu-button {
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.3rem;
}

.site-menu-button span {
  display: block;
  height: 2px;
  width: 1.35rem;
  border-radius: 999px;
  background: currentColor;
}

.site-mobile-menu {
  display: none;
}

.site-mobile-menu.is-open {
  display: block;
}

.hero-slider {
  min-height: 600px;
}

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

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

.hero-star {
  color: #facc15;
  filter: drop-shadow(0 0 14px rgba(250, 204, 21, 0.45));
}

.hero-arrows button {
  width: 2.75rem;
  height: 2.75rem;
  font-size: 2rem;
  line-height: 1;
}

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

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

.section-mark {
  display: inline-flex;
  width: 1.75rem;
  height: 1.75rem;
  align-items: center;
  justify-content: center;
  color: #0891b2;
  background: #cffafe;
  border-radius: 999px;
  font-weight: 800;
}

.search-panel {
  border: 1px solid #e2e8f0;
}

.search-field {
  display: grid;
  gap: 0.4rem;
  color: #475569;
  font-size: 0.85rem;
  font-weight: 600;
}

.search-field input,
.search-field select {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 0.85rem;
  padding: 0.8rem 1rem;
  color: #0f172a;
  background: #ffffff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-field input:focus,
.search-field select:focus {
  border-color: #06b6d4;
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.15);
}

.movie-card.is-hidden,
.rank-item.is-hidden {
  display: none !important;
}

.card-thumb-horizontal {
  min-height: 8rem;
}

.category-tile {
  display: block;
}

.ranking-on-dark .movie-card {
  background: #ffffff;
}

.rank-item {
  position: relative;
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1rem;
  align-items: center;
}

.rank-number {
  display: inline-flex;
  width: 3.5rem;
  height: 3.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  color: #ffffff;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  font-size: 1.25rem;
  font-weight: 800;
  box-shadow: 0 18px 35px rgba(37, 99, 235, 0.25);
}

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

.page-hero::after,
.detail-hero::after {
  content: "";
  position: absolute;
  width: 28rem;
  height: 28rem;
  right: -10rem;
  top: -14rem;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.18);
  filter: blur(4px);
}

.breadcrumb {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

.breadcrumb a {
  color: #67e8f9;
}

.movie-player {
  min-height: 280px;
}

.player-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.16), rgba(15, 23, 42, 0.68));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-play-icon {
  width: 5rem;
  height: 5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #22d3ee, #2563eb);
  box-shadow: 0 20px 60px rgba(34, 211, 238, 0.38);
  font-size: 2rem;
  padding-left: 0.25rem;
}

.detail-card {
  position: relative;
  z-index: 1;
}

.detail-poster {
  aspect-ratio: 16 / 9;
}

.content-panel {
  border: 1px solid #e2e8f0;
}

.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  color: #0f766e;
  background: #ccfbf1;
  font-size: 0.85rem;
  font-weight: 700;
}

.related-list .movie-card {
  gap: 0.75rem;
}

.related-list .card-thumb-horizontal {
  width: 7rem;
  min-height: 5rem;
}

.related-list .movie-card p,
.related-list .movie-card .flex.flex-wrap {
  display: none;
}

.footer-title {
  font-size: 1rem;
}

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

  .hero-arrows {
    right: 1rem;
    bottom: 1rem;
  }

  .hero-dots {
    bottom: 1.5rem;
  }

  .card-thumb-horizontal {
    width: 9rem;
  }

  .movie-card.group.flex {
    align-items: stretch;
  }

  .rank-item {
    grid-template-columns: 1fr;
  }

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

  .related-list .card-thumb-horizontal {
    width: 6rem;
  }
}

@media (max-width: 560px) {
  .movie-card.group.flex {
    display: block;
  }

  .card-thumb-horizontal,
  .related-list .card-thumb-horizontal {
    width: 100%;
    min-height: auto;
    aspect-ratio: 16 / 9;
  }

  .movie-card.group.flex > div:last-child {
    padding: 1rem;
  }
}
