body {
  background: #f9fafb;
  color: #111827;
}

.logo-play {
  color: #ffffff;
  font-size: 1.15rem;
  line-height: 1;
  margin-left: 0.1rem;
}

.mobile-menu {
  display: none;
}

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

.mobile-link {
  display: block;
  padding: 0.75rem 1rem;
  text-align: left;
  color: #374151;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.mobile-link:hover,
.mobile-link.mobile-active {
  background: #f9fafb;
  color: #dc2626;
}

.hero-carousel {
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s ease;
}

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.48), transparent);
}

.hero-content {
  animation: heroEnter 0.6s ease both;
}

@keyframes heroEnter {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.hero-secondary {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(4px);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.hero-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.03);
}

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

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

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

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

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

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

.hero-search-panel {
  position: absolute;
  right: max(1rem, calc((100vw - 80rem) / 2 + 1rem));
  bottom: 2rem;
  z-index: 6;
  display: flex;
  gap: 0.5rem;
  width: min(28rem, calc(100% - 2rem));
  padding: 0.5rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.hero-search-panel input {
  flex: 1;
  min-width: 0;
  padding: 0.75rem 1rem;
  border-radius: 9999px;
  color: #111827;
  background: #ffffff;
  outline: none;
}

.hero-search-panel button {
  padding: 0.75rem 1.25rem;
  border-radius: 9999px;
  color: #ffffff;
  background: linear-gradient(90deg, #dc2626, #db2777);
  font-weight: 600;
}

.movie-card-link {
  display: block;
}

.card-play {
  color: #111827;
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 0.15rem;
}

.card-desc {
  min-height: 2rem;
}

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

.category-tile {
  position: relative;
  min-height: 13rem;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  background: #111827;
}

.category-tile img,
.category-overview-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.category-tile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.18));
}

.category-tile-text {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  color: #ffffff;
}

.category-tile-text strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
}

.category-tile-text small {
  display: block;
  margin-top: 0.35rem;
  color: #e5e7eb;
  line-height: 1.5;
}

.category-overview-grid {
  gap: 1.5rem;
}

.category-overview-cover {
  position: relative;
  display: block;
  height: 13rem;
  overflow: hidden;
  background: #111827;
}

.category-overview-cover span {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  color: #ffffff;
  font-size: 1.75rem;
  font-weight: 700;
  text-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}

.sample-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sample-links a {
  padding: 0.35rem 0.65rem;
  border-radius: 9999px;
  color: #dc2626;
  background: #fef2f2;
  font-size: 0.8rem;
}

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

.ranking-link {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.85rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.8);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-link:hover {
  transform: translateX(4px);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

.ranking-index {
  color: #dc2626;
  font-size: 1.25rem;
  font-weight: 800;
}

.ranking-info strong,
.ranking-card-body strong {
  display: block;
  color: #111827;
  font-weight: 700;
}

.ranking-info small,
.ranking-card-body small {
  display: block;
  margin-top: 0.2rem;
  color: #6b7280;
  font-size: 0.8rem;
}

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

.ranking-card {
  position: relative;
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1rem;
  align-items: center;
  padding: 0.75rem;
  border-radius: 1rem;
  background: #f9fafb;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

.ranking-card img {
  width: 4.5rem;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 0.5rem;
  background: #e5e7eb;
}

.ranking-big-index {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 1;
  padding: 0.2rem 0.45rem;
  border-radius: 0.4rem;
  color: #ffffff;
  background: linear-gradient(90deg, #dc2626, #db2777);
  font-size: 0.75rem;
  font-weight: 800;
}

.ranking-card-body em {
  display: block;
  margin-top: 0.4rem;
  color: #4b5563;
  font-size: 0.85rem;
  line-height: 1.45;
  font-style: normal;
}

.page-heading {
  border-top: 4px solid #dc2626;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
  color: #6b7280;
  font-size: 0.9rem;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: #dc2626;
}

.breadcrumb-light,
.breadcrumb-light a {
  color: #f3f4f6;
}

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

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

.filter-input:focus,
.filter-select:focus {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.empty-state {
  display: none;
  margin-top: 2rem;
  padding: 3rem;
  text-align: center;
  color: #6b7280;
  background: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

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

.detail-hero {
  position: relative;
  overflow: hidden;
  background: #111827;
}

.detail-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.54), rgba(0, 0, 0, 0.25));
}

.detail-hero-content {
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: 2rem;
  align-items: end;
}

.detail-poster {
  width: 12rem;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.35);
  background: #e5e7eb;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background: #020617;
  aspect-ratio: 16 / 9;
}

.player-shell video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  color: #ffffff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.32));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-button-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.25rem;
  height: 4.25rem;
  padding-left: 0.25rem;
  border-radius: 9999px;
  color: #111827;
  background: rgba(255, 255, 255, 0.92);
  font-size: 2rem;
  line-height: 1;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.28);
}

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

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

.tag-chip {
  padding: 0.45rem 0.75rem;
  border-radius: 9999px;
  color: #b91c1c;
  background: #fef2f2;
  font-size: 0.875rem;
  font-weight: 500;
}

.meta-list {
  display: grid;
  gap: 0.75rem;
}

.meta-list div {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #f3f4f6;
}

.meta-list dt {
  color: #6b7280;
}

.meta-list dd {
  color: #111827;
  font-weight: 600;
}

.meta-list a {
  color: #dc2626;
}

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

@media (min-width: 768px) {
  .filter-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }

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

  .ranking-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ranking-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .category-overview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ranking-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .hero-carousel {
    height: 76vh;
  }

  .hero-arrow {
    width: 2.5rem;
    height: 2.5rem;
  }

  .hero-search-panel {
    left: 1rem;
    right: 1rem;
    bottom: 4.75rem;
  }

  .hero-content h1,
  .detail-hero-content h1 {
    font-size: 2.4rem;
    line-height: 1.1;
  }

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

  .detail-poster {
    width: 9rem;
  }
}
