:root {
  color-scheme: dark;
}

body {
  min-height: 100vh;
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 48%, #0f172a 100%);
  color: #e2e8f0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #f97316, #dc2626);
  color: #ffffff;
  font-size: 0.95rem;
  transition: transform 0.2s ease;
}

.group:hover .site-logo-icon {
  transform: scale(1.08);
}

.mobile-menu {
  display: none;
  padding: 1rem 0;
  border-top: 1px solid rgba(30, 41, 59, 0.95);
}

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

.mobile-nav-link {
  display: block;
  padding: 0.75rem 1rem;
  margin-bottom: 0.25rem;
  border-radius: 0.75rem;
  transition: all 0.2s ease;
}

.mobile-menu-button {
  display: inline-flex;
  width: 2.75rem;
  height: 2.75rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: 0.75rem;
  background: rgba(30, 41, 59, 0.65);
}

.mobile-menu-button span {
  display: block;
  width: 1.25rem;
  height: 0.125rem;
  border-radius: 999px;
  background: #ffffff;
}

.hero {
  min-height: 560px;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 1) 0%, rgba(15, 23, 42, 0.86) 42%, rgba(15, 23, 42, 0.2) 100%);
}

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding-bottom: 5rem;
}

.hero-copy {
  max-width: 42rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: #f97316;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 700;
}

.hero-title {
  margin-bottom: 1rem;
  color: #ffffff;
  font-size: clamp(2.35rem, 6vw, 4.75rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.045em;
}

.hero-desc {
  max-width: 38rem;
  margin-bottom: 1.5rem;
  color: #cbd5e1;
  font-size: 1.125rem;
  line-height: 1.8;
}

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

.hero-meta span {
  padding: 0.35rem 0.85rem;
  border-radius: 0.75rem;
  background: rgba(51, 65, 85, 0.82);
  color: #ffffff;
  font-size: 0.875rem;
}

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

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 3rem;
  padding: 0.85rem 1.45rem;
  border-radius: 1rem;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.primary-button {
  background: #f97316;
  color: #ffffff;
}

.primary-button:hover {
  background: #ea580c;
  transform: translateY(-1px) scale(1.02);
}

.secondary-button {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 23, 42, 0.58);
  color: #ffffff;
  backdrop-filter: blur(12px);
}

.secondary-button:hover {
  border-color: rgba(249, 115, 22, 0.85);
  background: rgba(30, 41, 59, 0.92);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 12;
  display: flex;
  width: 3rem;
  height: 3rem;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.52);
  color: #ffffff;
  font-size: 1.5rem;
  transition: background 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.74);
}

.hero-prev {
  left: 1rem;
}

.hero-next {
  right: 1rem;
}

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

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

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

.main-section {
  padding: 4rem 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-head h2 {
  color: #ffffff;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  line-height: 1.15;
  font-weight: 800;
}

.section-head p {
  margin-top: 0.5rem;
  color: #94a3b8;
}

.section-more {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  padding: 0.7rem 1rem;
  border-radius: 0.85rem;
  background: rgba(30, 41, 59, 0.86);
  color: #fdba74;
  font-weight: 700;
}

.section-more:hover {
  color: #ffffff;
  background: #f97316;
}

.movie-card {
  box-shadow: 0 20px 45px rgba(2, 6, 23, 0.22);
}

.search-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid rgba(71, 85, 105, 0.62);
  border-radius: 1.25rem;
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(16px);
}

.search-input {
  width: 100%;
  min-height: 3rem;
  padding: 0 1rem;
  border: 1px solid rgba(71, 85, 105, 0.86);
  border-radius: 0.95rem;
  background: rgba(15, 23, 42, 0.9);
  color: #ffffff;
  outline: none;
}

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

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.filter-chip {
  padding: 0.5rem 0.9rem;
  border: 1px solid rgba(71, 85, 105, 0.72);
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.65);
  color: #cbd5e1;
  font-size: 0.875rem;
}

.filter-chip:hover,
.filter-chip.is-active {
  border-color: #f97316;
  background: #f97316;
  color: #ffffff;
}

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

.category-tile {
  position: relative;
  min-height: 15rem;
  overflow: hidden;
  border-radius: 1.25rem;
  background: #1e293b;
  box-shadow: 0 20px 45px rgba(2, 6, 23, 0.25);
}

.category-tile-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  transform: scale(1.04);
  transition: transform 0.3s ease;
}

.category-tile:hover .category-tile-bg {
  transform: scale(1.1);
}

.category-tile-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.5));
}

.category-tile-content {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.4rem;
}

.category-tile h3 {
  color: #ffffff;
  font-size: 1.45rem;
  font-weight: 800;
}

.category-tile p {
  margin-top: 0.55rem;
  color: #cbd5e1;
  line-height: 1.65;
}

.page-hero {
  padding: 4rem 0 3rem;
  background: radial-gradient(circle at 20% 20%, rgba(249, 115, 22, 0.25), transparent 32%), radial-gradient(circle at 80% 10%, rgba(59, 130, 246, 0.18), transparent 30%);
}

.page-hero h1 {
  color: #ffffff;
  font-size: clamp(2.2rem, 6vw, 4.25rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 48rem;
  margin-top: 1rem;
  color: #cbd5e1;
  font-size: 1.1rem;
  line-height: 1.8;
}

.rank-list {
  display: grid;
  gap: 1rem;
}

.rank-item {
  display: grid;
  grid-template-columns: 4rem 6rem 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid rgba(71, 85, 105, 0.55);
  border-radius: 1.25rem;
  background: rgba(30, 41, 59, 0.62);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
  border-color: rgba(249, 115, 22, 0.85);
  transform: translateY(-1px);
}

.rank-num {
  color: #f97316;
  font-size: 1.65rem;
  font-weight: 900;
  text-align: center;
}

.rank-poster {
  width: 6rem;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 0.75rem;
  background: #334155;
}

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

.rank-title {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 800;
}

.rank-desc {
  margin-top: 0.3rem;
  color: #94a3b8;
  line-height: 1.6;
}

.rank-score {
  color: #fdba74;
  font-weight: 900;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  color: #94a3b8;
  font-size: 0.95rem;
}

.breadcrumb a:hover {
  color: #fdba74;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 360px);
  gap: 2rem;
  align-items: start;
}

.player-stage {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  background: #020617;
  box-shadow: 0 30px 70px rgba(2, 6, 23, 0.45);
}

.player-stage video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-start {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.85rem;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.3), rgba(2, 6, 23, 0.55));
  color: #ffffff;
  font-weight: 900;
  transition: opacity 0.2s ease;
}

.player-start span:first-child {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.94);
  font-size: 2rem;
  box-shadow: 0 18px 40px rgba(249, 115, 22, 0.35);
}

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

.detail-card {
  overflow: hidden;
  border: 1px solid rgba(71, 85, 105, 0.58);
  border-radius: 1.5rem;
  background: rgba(30, 41, 59, 0.62);
}

.detail-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-card-content {
  padding: 1.25rem;
}

.detail-card h1 {
  color: #ffffff;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.12;
  font-weight: 900;
}

.meta-list {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
  color: #cbd5e1;
}

.meta-list span {
  color: #94a3b8;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.25rem;
}

.tag-list a,
.tag-list span {
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  background: rgba(51, 65, 85, 0.85);
  color: #e2e8f0;
  font-size: 0.86rem;
}

.content-panel {
  margin-top: 2rem;
  padding: 2rem;
  border: 1px solid rgba(71, 85, 105, 0.55);
  border-radius: 1.5rem;
  background: rgba(15, 23, 42, 0.58);
}

.content-panel h2 {
  margin-bottom: 1rem;
  color: #ffffff;
  font-size: 1.65rem;
  font-weight: 900;
}

.content-panel p {
  color: #cbd5e1;
  line-height: 1.9;
}

.content-panel + .content-panel {
  margin-top: 1.25rem;
}

.related-section {
  margin-top: 3rem;
}

.compact-link {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 0.9rem;
  background: rgba(30, 41, 59, 0.62);
  color: #cbd5e1;
}

.compact-link:hover {
  background: rgba(249, 115, 22, 0.18);
  color: #ffffff;
}

.compact-title {
  font-weight: 700;
}

.compact-meta {
  flex-shrink: 0;
  color: #94a3b8;
}

.site-footer {
  margin-top: 4rem;
  padding: 3rem 0 2rem;
  border-top: 1px solid rgba(30, 41, 59, 0.95);
  background: rgba(2, 6, 23, 0.55);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

.footer-logo {
  margin-bottom: 0.75rem;
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 900;
}

.site-footer p,
.site-footer h3,
.footer-bottom {
  color: #94a3b8;
}

.site-footer h3 {
  margin-bottom: 0.85rem;
  color: #ffffff;
  font-weight: 800;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.footer-links a {
  color: #94a3b8;
}

.footer-links a:hover {
  color: #fdba74;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(30, 41, 59, 0.9);
  font-size: 0.9rem;
}

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

.no-results {
  display: none;
  padding: 2rem;
  border-radius: 1.25rem;
  background: rgba(30, 41, 59, 0.62);
  color: #cbd5e1;
  text-align: center;
}

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

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

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

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

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

  .rank-score {
    grid-column: 2 / -1;
  }

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

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

  .hero-content {
    padding-bottom: 5.5rem;
  }

  .hero-arrow {
    display: none;
  }

  .search-panel {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .content-panel {
    padding: 1.25rem;
  }
}
