body {
  min-height: 100vh;
  background: #fff5f7;
  color: #1f2937;
}

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

.site-logo {
  white-space: nowrap;
}

.site-footer {
  background-color: #27272a;
}

.hero-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  min-height: 420px;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.45);
  background: linear-gradient(135deg, #0f172a, #27272a);
}

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(0 0 0 / 0.78), rgb(0 0 0 / 0.35), rgb(0 0 0 / 0.08));
}

.hero-content {
  position: absolute;
  left: clamp(1.5rem, 5vw, 4rem);
  right: clamp(1.5rem, 5vw, 4rem);
  bottom: clamp(1.5rem, 6vw, 4rem);
  color: #fff;
  z-index: 2;
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 2.75rem;
  height: 2.75rem;
  transform: translateY(-50%);
  border-radius: 9999px;
  background: rgb(255 255 255 / 0.2);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 200ms ease, transform 200ms ease;
}

.hero-control:hover {
  background: rgb(255 255 255 / 0.35);
  transform: translateY(-50%) scale(1.06);
}

.hero-prev {
  left: 1rem;
}

.hero-next {
  right: 1rem;
}

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

.hero-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 9999px;
  background: rgb(255 255 255 / 0.5);
  transition: width 200ms ease, background 200ms ease;
}

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

.poster-frame {
  background: linear-gradient(135deg, #ffe3e9, #fffacc);
}

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

.tag-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  background: #f5f5f5;
  color: #4b5563;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.tag-pill.large {
  background: #ffe3e9;
  color: #be123c;
  font-size: 0.85rem;
  padding: 0.4rem 0.85rem;
}

.category-tile {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 10px 24px rgb(0 0 0 / 0.12);
  display: block;
}

.category-tile-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.category-tile:hover .category-tile-image {
  transform: scale(1.08);
}

.category-tile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(0 0 0 / 0.1), rgb(0 0 0 / 0.72));
}

.category-tile-content {
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 1.5rem;
  color: #fff;
}

.category-tile-content h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.category-tile-content p {
  color: rgb(255 255 255 / 0.88);
  font-size: 0.95rem;
}

.category-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 150px;
  background: linear-gradient(135deg, #ffe3e9, #fffacc);
}

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

.compact-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  border-radius: 0.75rem;
  transition: background 200ms ease;
}

.compact-card:hover {
  background: #fafafa;
}

.rank-badge-small {
  position: absolute;
  left: 0.25rem;
  top: 0.25rem;
  min-width: 1.5rem;
  height: 1.5rem;
  border-radius: 9999px;
  background: #dc2626;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
}

.filter-chip,
.sort-button {
  border-radius: 9999px;
  padding: 0.55rem 1rem;
  background: #f5f5f5;
  color: #374151;
  font-size: 0.875rem;
  font-weight: 700;
  transition: all 200ms ease;
}

.filter-chip:hover,
.sort-button:hover {
  background: #ffe3e9;
  color: #be123c;
}

.filter-chip.is-active,
.sort-button.is-active {
  color: #fff;
  background: linear-gradient(90deg, #ff446f, #dc2626);
  box-shadow: 0 10px 18px rgb(255 68 111 / 0.22);
}

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

.rank-row-link {
  display: grid;
  grid-template-columns: 4rem 7rem 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
}

.rank-number {
  font-size: 2rem;
  line-height: 1;
  font-weight: 900;
  color: #ff446f;
  text-align: center;
}

.rank-poster {
  width: 7rem;
  height: 5rem;
  object-fit: cover;
  border-radius: 0.75rem;
  background: #f5f5f5;
}

.rank-info h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #1f2937;
  margin-bottom: 0.4rem;
}

.rank-info p {
  color: #4b5563;
  margin-bottom: 0.55rem;
}

.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  color: #6b7280;
  font-size: 0.85rem;
  margin-bottom: 0.55rem;
}

.breadcrumb {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

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

.player-start {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgb(0 0 0 / 0.15), rgb(0 0 0 / 0.42));
  color: #fff;
  cursor: pointer;
}

.player-start span {
  width: 5rem;
  height: 5rem;
  border-radius: 9999px;
  background: #ff446f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  padding-left: 0.25rem;
  box-shadow: 0 16px 30px rgb(255 68 111 / 0.35);
  transition: transform 200ms ease, background 200ms ease;
}

.player-start:hover span {
  transform: scale(1.08);
  background: #ed1c5a;
}

.player-shell.is-playing .player-start {
  display: none;
}

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

.detail-meta-grid div {
  background: #fafafa;
  border-radius: 0.9rem;
  padding: 1rem;
}

.detail-meta-grid span {
  display: block;
  color: #6b7280;
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
}

.detail-meta-grid strong {
  color: #1f2937;
  font-weight: 800;
}

.content-block {
  border-top: 1px solid #e5e7eb;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
}

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

.content-block p {
  color: #374151;
  line-height: 1.9;
  white-space: pre-line;
}

@media (max-width: 768px) {
  .hero-carousel {
    aspect-ratio: 3 / 4;
    min-height: 560px;
  }

  .hero-shade {
    background: linear-gradient(180deg, rgb(0 0 0 / 0.2), rgb(0 0 0 / 0.78));
  }

  .hero-control {
    display: none;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.75rem;
  }

  .rank-row-link {
    grid-template-columns: 3rem 5.5rem 1fr;
    gap: 0.75rem;
    padding: 0.75rem;
  }

  .rank-poster {
    width: 5.5rem;
    height: 4.5rem;
  }

  .rank-info h2 {
    font-size: 1rem;
  }

  .rank-info p {
    display: none;
  }

  .detail-meta-grid {
    grid-template-columns: 1fr;
  }
}
