body {
  min-width: 320px;
  background: #f9fafb;
}

.site-shell {
  background: linear-gradient(180deg, #f8fafc 0%, #f9fafb 42%, #ffffff 100%);
}

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

.nav-links a {
  white-space: nowrap;
}

.menu-line {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px 0;
  background: #374151;
  border-radius: 999px;
}

.footer-tags span,
.detail-tags span,
.category-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  line-height: 1rem;
  color: #075985;
  background: #e0f2fe;
}

.footer-tags span {
  color: #bae6fd;
  background: rgba(14, 165, 233, 0.16);
}

.hero-carousel {
  isolation: isolate;
  min-height: 520px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.22);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.58) 46%, rgba(0, 0, 0, 0.12) 100%);
}

.hero-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 2rem;
}

.hero-content-inner {
  max-width: 760px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  color: #ffffff;
  background: #0284c7;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.9rem;
}

.hero-title {
  font-size: clamp(2.1rem, 6vw, 4.6rem);
  line-height: 1.04;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: -0.05em;
  margin: 0 0 1rem;
}

.hero-text {
  max-width: 660px;
  color: #e5e7eb;
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.75;
  margin: 0 0 1.5rem;
}

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

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.85rem;
  padding: 0.7rem 1.45rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.primary-button {
  color: #ffffff;
  background: #0284c7;
  box-shadow: 0 14px 35px rgba(2, 132, 199, 0.35);
}

.primary-button:hover {
  background: #0369a1;
  transform: translateY(-1px);
}

.secondary-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.36);
}

.secondary-button:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.48);
  transition: background 0.2s ease, transform 0.2s ease;
}

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

.hero-prev {
  left: 1rem;
}

.hero-next {
  right: 1rem;
}

.hero-dots {
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 3;
  display: flex;
  gap: 0.5rem;
}

.hero-dots button {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  transition: width 0.25s ease, background 0.25s ease;
}

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

.hero-search {
  display: flex;
  gap: 0.75rem;
  width: min(100%, 560px);
  margin-top: 1rem;
  padding: 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  color: #ffffff;
  background: transparent;
  outline: none;
  padding: 0 0.85rem;
}

.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.74);
}

.hero-search button {
  flex-shrink: 0;
  color: #ffffff;
  background: #0284c7;
  border-radius: 999px;
  padding: 0.65rem 1rem;
  font-weight: 700;
}

.movie-score span {
  color: #facc15;
}

.movie-score strong {
  color: #ffffff;
  font-size: 0.75rem;
}

.movie-card img,
.poster-card img,
.ranking-row img {
  background: #e5e7eb;
}

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

.category-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.category-card:hover {
  transform: translateY(-3px);
  border-color: #bae6fd;
  box-shadow: 0 20px 45px rgba(2, 132, 199, 0.12);
}

.search-panel {
  border: 1px solid #e5e7eb;
}

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

.filter-input:focus,
.filter-grid select:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.12);
}

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

.filter-grid label span {
  display: block;
  margin-bottom: 0.5rem;
  color: #4b5563;
  font-size: 0.875rem;
  font-weight: 600;
}

.no-results {
  display: none;
  border: 1px dashed #bae6fd;
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  color: #0369a1;
  background: #f0f9ff;
}

.no-results.is-visible {
  display: block;
}

.editor-feature {
  min-height: 500px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
}

.editor-feature img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.editor-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.62) 48%, rgba(0, 0, 0, 0.02) 100%);
}

.editor-feature-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 2rem;
  align-items: start;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background: #020617;
  box-shadow: 0 24px 70px rgba(2, 6, 23, 0.22);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.15), rgba(2, 6, 23, 0.64));
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.play-overlay-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  border-radius: 999px;
  background: #0284c7;
  box-shadow: 0 18px 45px rgba(2, 132, 199, 0.4);
}

.video-shell.is-playing .play-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.detail-panel {
  border: 1px solid #e5e7eb;
}

.poster-card {
  overflow: hidden;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

.breadcrumb a {
  color: #0284c7;
}

.prose-card {
  border: 1px solid #e5e7eb;
  background: #ffffff;
  border-radius: 1rem;
  padding: 1.5rem;
}

.prose-card p {
  color: #374151;
  line-height: 1.9;
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  color: #ffffff;
  background: #0284c7;
  font-weight: 800;
}

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

@media (max-width: 768px) {
  .hero-carousel {
    min-height: 560px;
    border-radius: 1rem;
  }

  .hero-content {
    padding: 1.25rem;
  }

  .hero-arrow {
    display: none;
  }

  .hero-dots {
    left: 1.25rem;
    right: auto;
    bottom: 1rem;
  }

  .hero-search {
    border-radius: 1rem;
    flex-direction: column;
    align-items: stretch;
  }

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

  .editor-feature {
    min-height: 560px;
  }
}
