/* Site-specific static styles built from the uploaded layout. */
html {
  scroll-behavior: smooth;
}

body {
  background: #f8fafc;
}

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

.logo-mark {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(14, 165, 233, 0.25);
}

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

.mobile-menu {
  display: none;
}

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

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

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

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

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: translateY(-50%) scale(1.05);
}

.hero-arrow-prev {
  left: 1rem;
}

.hero-arrow-next {
  right: 1rem;
}

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

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

.hero-primary-button,
.hero-secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1.35rem;
  border-radius: 9999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hero-primary-button {
  background: #0ea5e9;
  color: #ffffff;
  box-shadow: 0 18px 35px rgba(14, 165, 233, 0.3);
}

.hero-secondary-button {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  backdrop-filter: blur(8px);
}

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

.section-icon {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  color: #ffffff;
  font-weight: 700;
}

.section-icon.rose {
  background: #f43f5e;
}

.section-icon.blue {
  background: #2563eb;
}

.section-icon.amber {
  background: #f59e0b;
}

.section-accent {
  display: inline-block;
  width: 0.3rem;
  height: 1.75rem;
  border-radius: 9999px;
  background: #0ea5e9;
}

.accent-rose { background: #f43f5e; }
.accent-amber { background: #f59e0b; }
.accent-blue { background: #2563eb; }
.accent-red { background: #ef4444; }
.accent-pink { background: #ec4899; }
.accent-slate { background: #475569; }
.accent-green { background: #22c55e; }
.accent-sky { background: #0ea5e9; }
.accent-orange { background: #f97316; }
.accent-violet { background: #8b5cf6; }

.row-scroll {
  width: max-content;
}

.movie-card {
  text-decoration: none;
}

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

.horizontal-poster {
  width: 12rem;
  min-height: 9rem;
}

.play-glyph {
  display: inline-flex;
  width: 3rem;
  height: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-size: 1.4rem;
  line-height: 1;
  backdrop-filter: blur(6px);
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
}

.play-glyph.large {
  width: 5rem;
  height: 5rem;
  font-size: 2rem;
}

.card-meta-line {
  flex-wrap: wrap;
}

.search-panel {
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: #4b5563;
  font-size: 0.875rem;
  font-weight: 600;
}

.filter-input,
.filter-select {
  width: 100%;
  height: 2.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.75rem;
  background: #ffffff;
  color: #111827;
  padding: 0 0.9rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-input:focus,
.filter-select:focus {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

.ranking-item {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.5rem 0.75rem;
  align-items: center;
  padding: 0.75rem;
  border-radius: 0.75rem;
  color: #111827;
  transition: background 0.2s ease;
}

.ranking-item:hover {
  background: #f8fafc;
}

.ranking-number {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: #f59e0b;
  color: #ffffff;
  font-weight: 800;
}

.ranking-number.big {
  flex: 0 0 auto;
  margin-top: 0.25rem;
}

.ranking-title {
  min-width: 0;
  font-weight: 700;
  transition: color 0.2s ease;
}

.ranking-meta {
  grid-column: 2;
  color: #6b7280;
  font-size: 0.75rem;
}

.category-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-height: 11rem;
  background: #0f172a;
}

.category-preview-poster {
  overflow: hidden;
}

.category-preview-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.category-tile:hover .category-preview-poster img {
  transform: scale(1.06);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: #6b7280;
  font-size: 0.875rem;
}

.breadcrumb a {
  color: #0284c7;
}

.breadcrumb a:hover {
  color: #0369a1;
}

.player-shell {
  min-height: 240px;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: rgba(0, 0, 0, 0.35);
  color: #ffffff;
  font-weight: 700;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.player-play-icon {
  display: inline-flex;
  width: 4.5rem;
  height: 4.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: rgba(14, 165, 233, 0.92);
  font-size: 2rem;
  box-shadow: 0 20px 45px rgba(14, 165, 233, 0.35);
}

.player-message {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  color: #ffffff;
  font-size: 0.875rem;
  text-align: center;
  pointer-events: none;
}

.tag-chip {
  display: inline-flex;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.75rem;
}

@media (max-width: 767px) {
  .hero-arrow {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.6rem;
  }

  .horizontal-card {
    flex-direction: column;
  }

  .horizontal-poster {
    width: 100%;
    min-height: 14rem;
  }

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

  .category-preview-grid {
    min-height: 8rem;
  }
}
