:root {
  color-scheme: light;
  --site-amber: #d97706;
  --site-amber-dark: #b45309;
  --site-ink: #111827;
  --site-muted: #6b7280;
  --site-soft: #f9fafb;
  --site-border: #e5e7eb;
}

html {
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(180deg, #f9fafb 0%, #ffffff 42%, #f8fafc 100%);
  color: var(--site-ink);
}

.site-header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.72);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}

.brand-mark {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 0.65rem;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  letter-spacing: -0.05em;
  box-shadow: 0 10px 22px rgba(217, 119, 6, 0.28);
}

.brand-name {
  font-size: 1.25rem;
  line-height: 1;
  font-weight: 800;
  color: #1f2937;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.5rem 0.95rem;
  border-radius: 0.75rem;
  color: #4b5563;
  font-weight: 700;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--site-amber);
  background: #fffbeb;
  transform: translateY(-1px);
}

.mobile-panel {
  display: none;
}

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

.site-hero {
  position: relative;
  min-height: 70vh;
  height: 70vh;
  overflow: hidden;
  background: #111827;
}

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.08));
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: min(42rem, 100%);
  color: #ffffff;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.22);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: #fbbf24;
  font-weight: 800;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.35rem);
  line-height: 1.06;
  font-weight: 900;
  letter-spacing: -0.055em;
  margin-bottom: 1rem;
  text-shadow: 0 18px 42px rgba(0, 0, 0, 0.36);
}

.hero-desc {
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  color: rgba(243, 244, 246, 0.94);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero-meta span,
.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.42rem 0.72rem;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.9rem;
  font-weight: 700;
}

.btn-primary,
.btn-secondary,
.btn-plain {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 0.8rem;
  min-height: 2.85rem;
  padding: 0.75rem 1.2rem;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn-primary {
  color: #ffffff;
  background: var(--site-amber);
  box-shadow: 0 12px 28px rgba(217, 119, 6, 0.32);
}

.btn-primary:hover {
  background: var(--site-amber-dark);
  transform: translateY(-2px) scale(1.01);
}

.btn-secondary {
  color: #ffffff;
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(0, 0, 0, 0.52);
  transform: translateY(-2px);
}

.btn-plain {
  color: #92400e;
  background: #fffbeb;
}

.btn-plain:hover {
  color: #78350f;
  background: #fef3c7;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 3rem;
  height: 3rem;
  margin-top: -1.5rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.46);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  line-height: 1;
  backdrop-filter: blur(8px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.68);
  transform: scale(1.04);
}

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

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

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

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

hero-dot:focus {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

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

.section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.section-title-mark {
  width: 0.55rem;
  height: 1.9rem;
  border-radius: 999px;
  background: var(--site-amber);
}

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: 1.1rem;
  background: #ffffff;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(229, 231, 235, 0.72);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 158, 11, 0.38);
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.15);
}

.movie-poster {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #111827, #78350f);
}

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

.movie-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.movie-card:hover .movie-poster img {
  transform: scale(1.08);
}

.movie-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.68));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .movie-play {
  opacity: 1;
}

.movie-play span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: var(--site-amber);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.26);
}

.movie-body {
  padding: 1rem;
}

.movie-title {
  font-size: 1.02rem;
  font-weight: 850;
  color: #1f2937;
  line-height: 1.35;
  margin-bottom: 0.45rem;
}

.movie-line {
  color: var(--site-muted);
  line-height: 1.65;
  font-size: 0.9rem;
  min-height: 2.9rem;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.movie-meta span {
  padding: 0.25rem 0.48rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 750;
  color: #92400e;
  background: #fffbeb;
}

.category-card,
.panel-card,
.info-card {
  background: #ffffff;
  border: 1px solid rgba(229, 231, 235, 0.72);
  border-radius: 1.25rem;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.07);
}

.category-card {
  padding: 1.25rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.12);
}

.filter-bar {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  padding: 1rem;
  border-radius: 1.25rem;
  background: #ffffff;
  border: 1px solid rgba(229, 231, 235, 0.75);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.filter-control {
  width: 100%;
  min-height: 2.85rem;
  border-radius: 0.8rem;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  padding: 0.7rem 0.9rem;
  color: #1f2937;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.filter-control:focus {
  border-color: #f59e0b;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 3.8rem 7rem 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #f3f4f6;
}

.rank-item:last-child {
  border-bottom: 0;
}

.rank-num {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.85rem;
  background: #fffbeb;
  color: #b45309;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.rank-cover {
  width: 7rem;
  aspect-ratio: 16 / 9;
  border-radius: 0.8rem;
  overflow: hidden;
  background: #111827;
}

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

.score-badge {
  min-width: 4.2rem;
  border-radius: 999px;
  padding: 0.45rem 0.7rem;
  color: #92400e;
  background: #fef3c7;
  text-align: center;
  font-weight: 900;
}

.detail-hero {
  background: radial-gradient(circle at 15% 20%, rgba(245, 158, 11, 0.18), transparent 28%), linear-gradient(180deg, #111827 0%, #1f2937 100%);
  color: #ffffff;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background: #000000;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.32);
}

.movie-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-start {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.62));
  font-weight: 900;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.player-play-icon {
  width: 5rem;
  height: 5rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--site-amber);
  color: #ffffff;
  font-size: 2rem;
  box-shadow: 0 18px 42px rgba(217, 119, 6, 0.38);
}

.player-error {
  display: none;
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 3;
  border-radius: 0.8rem;
  padding: 0.75rem 1rem;
  color: #fee2e2;
  background: rgba(127, 29, 29, 0.86);
}

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

.detail-meta-card {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.detail-meta-card span {
  padding: 0.45rem 0.75rem;
  border-radius: 0.85rem;
  color: #92400e;
  background: #fffbeb;
  font-weight: 800;
}

.related-list .movie-card {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.85rem;
  padding: 0.65rem;
}

.related-list .movie-poster {
  border-radius: 0.8rem;
}

.related-list .movie-body {
  padding: 0.15rem 0.1rem;
}

.site-footer {
  background: #111827;
  color: #d1d5db;
}

.footer-link:hover {
  color: #f59e0b;
}

@media (max-width: 1024px) {
  .filter-bar {
    grid-template-columns: 1fr 1fr;
  }

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

  .score-badge {
    grid-column: 3;
    justify-self: start;
  }
}

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

  .hero-content {
    align-items: flex-end;
    padding-bottom: 5rem;
  }

  .hero-shade {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.88));
  }

  .hero-arrow {
    top: auto;
    bottom: 1rem;
    width: 2.5rem;
    height: 2.5rem;
  }

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

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

  .hero-dots {
    bottom: 1.3rem;
  }

  .filter-bar {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 2.6rem 5.2rem 1fr;
    gap: 0.75rem;
    padding: 0.85rem;
  }

  .rank-cover {
    width: 5.2rem;
  }

  .related-list .movie-card {
    grid-template-columns: 4.8rem 1fr;
  }
}
