:root {
  color-scheme: dark;
}

body {
  background:
    radial-gradient(circle at 10% 10%, rgba(249, 115, 22, 0.14), transparent 30%),
    radial-gradient(circle at 90% 0%, rgba(124, 45, 18, 0.22), transparent 28%),
    #000000;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #c2410c);
  box-shadow: 0 0 28px rgba(249, 115, 22, 0.45);
}

.search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
  font-size: 1rem;
}

.mobile-menu {
  display: none;
}

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

.section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  color: #ffffff;
  background: rgba(249, 115, 22, 0.18);
  border: 1px solid rgba(249, 115, 22, 0.35);
}

.site-hero {
  border-bottom: 1px solid rgba(249, 115, 22, 0.2);
}

.hero-slide {
  display: none;
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1000ms ease;
}

.hero-slide.is-active {
  display: block;
  opacity: 1;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.55);
  font-size: 2rem;
  line-height: 1;
  transition: background 180ms ease, transform 180ms ease;
}

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

.hero-prev {
  left: 1rem;
}

.hero-next {
  right: 1rem;
}

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

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

.movie-card,
.category-tile,
.site-large-card {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.26);
}

.movie-thumb {
  background: #111827;
}

.compact-thumb,
.list-thumb {
  background: #111827;
}

.category-tile {
  position: relative;
  display: block;
  height: 17rem;
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid rgba(55, 65, 81, 0.45);
}

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

.category-mini-cover {
  width: 100%;
  height: 5rem;
  object-fit: cover;
  border-radius: 0.5rem;
  background: #111827;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 3.5rem 4.5rem minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 0.75rem;
  border-radius: 0.75rem;
  background: rgba(31, 41, 55, 0.45);
  border: 1px solid rgba(55, 65, 81, 0.35);
  transition: border-color 180ms ease, background 180ms ease;
}

.ranking-row:hover {
  background: rgba(31, 41, 55, 0.7);
  border-color: rgba(249, 115, 22, 0.45);
}

.ranking-number {
  font-size: 1.25rem;
  font-weight: 800;
  color: #f97316;
  text-align: center;
}

.ranking-cover {
  width: 4.5rem;
  height: 4.5rem;
  object-fit: cover;
  border-radius: 0.5rem;
  background: #111827;
}

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

.ranking-title {
  color: #ffffff;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 180ms ease;
}

.ranking-meta {
  color: #9ca3af;
  font-size: 0.875rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ranking-action {
  color: #f97316;
  font-size: 0.875rem;
}

.movie-detail-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(249, 115, 22, 0.2);
}

.movie-detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(20px) brightness(0.35);
  transform: scale(1.08);
}

.movie-detail-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45), #000000);
}

.detail-cover {
  min-height: 34rem;
  background: #111827;
}

.meta-box {
  padding: 1rem;
  border-radius: 0.75rem;
  background: rgba(31, 41, 55, 0.55);
  border: 1px solid rgba(55, 65, 81, 0.35);
}

.meta-box span {
  display: block;
  color: #9ca3af;
  font-size: 0.75rem;
  margin-bottom: 0.35rem;
}

.meta-box strong {
  color: #ffffff;
  font-size: 0.95rem;
}

.video-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 1rem;
  background: #000000;
  border: 1px solid rgba(249, 115, 22, 0.25);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

.video-element {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: #ffffff;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.72));
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.play-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.play-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  border-radius: 9999px;
  background: #f97316;
  box-shadow: 0 0 40px rgba(249, 115, 22, 0.58);
  font-size: 2rem;
}

.player-message {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  max-width: calc(100% - 2rem);
  padding: 0.65rem 1rem;
  border-radius: 9999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.7);
  font-size: 0.875rem;
  text-align: center;
  display: none;
}

.player-message.is-visible {
  display: block;
}

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

.detail-list dt {
  color: #9ca3af;
}

.detail-list dd {
  color: #ffffff;
  min-width: 0;
}

.info-panel {
  padding: 1.5rem;
  border-radius: 1rem;
  background: rgba(31, 41, 55, 0.45);
  border: 1px solid rgba(55, 65, 81, 0.35);
}

.info-panel h2 {
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.info-panel p {
  color: #d1d5db;
  line-height: 1.8;
  margin-bottom: 0.8rem;
}

.info-panel a {
  color: #f97316;
}

.search-page-form {
  display: flex;
  gap: 0.75rem;
  max-width: 52rem;
}

.search-page-input {
  flex: 1;
  min-width: 0;
  padding: 1rem 1.25rem;
  border-radius: 9999px;
  color: #ffffff;
  background: rgba(31, 41, 55, 0.72);
  border: 1px solid rgba(55, 65, 81, 0.8);
  outline: none;
}

.search-page-input:focus {
  border-color: #f97316;
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.6);
}

.search-page-button {
  padding: 1rem 1.75rem;
  border-radius: 9999px;
  color: #ffffff;
  background: #f97316;
  font-weight: 700;
}

.search-summary {
  color: #9ca3af;
  margin-bottom: 1.5rem;
}

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

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

.sitemap-list.movie-sitemap {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-height: 48rem;
  overflow: auto;
  padding-right: 0.5rem;
}

.sitemap-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: #9ca3af;
}

.sitemap-list a {
  color: #d1d5db;
}

.sitemap-list a:hover {
  color: #f97316;
}

.sitemap-list small {
  display: block;
  color: #6b7280;
  margin-top: 0.15rem;
}

@media (max-width: 768px) {
  .site-hero {
    height: 520px;
  }

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

  .ranking-row {
    grid-template-columns: 2.5rem 3.5rem minmax(0, 1fr);
  }

  .ranking-action {
    display: none;
  }

  .list-thumb {
    width: 8rem;
  }

  .detail-cover {
    min-height: 24rem;
  }

  .search-page-form {
    flex-direction: column;
  }

  .sitemap-list.two-col,
  .sitemap-list.movie-sitemap {
    grid-template-columns: 1fr;
  }
}
