body {
  background: #020617;
  color: #d1d5db;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-header {
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.35);
}

.brand-mark {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #f59e0b;
  color: #ffffff;
  font-size: 0.8rem;
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.35);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1rem;
  border-radius: 0.75rem;
  color: #d1d5db;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #ffffff;
  background: rgba(30, 41, 59, 0.95);
}

.nav-dropdown:hover .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-panel {
  position: absolute;
  left: 0;
  top: calc(100% + 0.5rem);
  width: 13rem;
  padding: 0.5rem;
  border-radius: 0.875rem;
  background: #1e293b;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.35rem);
  transition: all 0.2s ease;
}

.dropdown-link {
  display: block;
  padding: 0.65rem 0.75rem;
  border-radius: 0.65rem;
  color: #cbd5e1;
  font-size: 0.9rem;
}

.dropdown-link:hover {
  color: #ffffff;
  background: #334155;
}

.mobile-menu-button {
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.3rem;
}

.mobile-menu-button span {
  display: block;
  height: 2px;
  width: 1.35rem;
  background: #ffffff;
  margin: 0 auto;
  border-radius: 999px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid #1e293b;
  background: rgba(15, 23, 42, 0.98);
}

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

.mobile-link {
  display: block;
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 0.75rem;
  color: #d1d5db;
  text-align: left;
}

.mobile-link:hover {
  background: #1e293b;
  color: #ffffff;
}

.mobile-divider {
  height: 1px;
  background: #1e293b;
  margin: 0.75rem 0;
}

.search-layer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 6rem 1rem 2rem;
  background: rgba(0, 0, 0, 0.78);
}

.search-layer.is-open {
  display: flex;
}

.search-box {
  width: min(42rem, 100%);
  max-height: 80vh;
  overflow: hidden;
}

.search-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
}

.search-input {
  flex: 1;
  background: transparent;
  color: #ffffff;
  outline: none;
  font-size: 1.05rem;
}

.search-close {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  color: #cbd5e1;
  background: #1e293b;
  font-size: 1.5rem;
  line-height: 1;
}

.search-results {
  max-height: 28rem;
  overflow-y: auto;
  padding: 0.75rem;
}

.search-result-item {
  display: flex;
  gap: 1rem;
  padding: 0.75rem;
  border-radius: 0.85rem;
  color: #d1d5db;
}

.search-result-item:hover {
  background: #1e293b;
  color: #ffffff;
}

.search-result-item img {
  width: 4rem;
  height: 5.5rem;
  object-fit: cover;
  border-radius: 0.6rem;
}

.search-result-item h3 {
  margin-bottom: 0.25rem;
  color: #ffffff;
  font-weight: 700;
}

.search-result-item p {
  color: #94a3b8;
  font-size: 0.9rem;
}

.hero-section {
  position: relative;
  height: 70vh;
  min-height: 500px;
  max-height: 800px;
  overflow: hidden;
  background: #020617;
}

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

.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}

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

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

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

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

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.hero-tags span {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  font-size: 0.85rem;
}

.hero-copy h1 {
  color: #ffffff;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.05;
  font-weight: 800;
  margin-bottom: 1rem;
}

.hero-copy p {
  color: #d1d5db;
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  color: #e5e7eb;
  margin-bottom: 2rem;
}

.hero-meta span:first-child {
  color: #fbbf24;
  font-size: 1.35rem;
  font-weight: 800;
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.5rem;
  border-radius: 0.9rem;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.primary-button {
  background: #f59e0b;
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.28);
}

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

.ghost-button {
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.ghost-button:hover {
  background: #1e293b;
  transform: translateY(-2px);
}

.full-button {
  width: 100%;
  margin-top: 1rem;
}

.hero-nav {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.52);
  color: #ffffff;
  font-size: 2rem;
  line-height: 1;
  backdrop-filter: blur(8px);
  transition: background 0.2s ease, transform 0.2s ease;
}

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

.hero-prev {
  left: 1rem;
  transform: translateY(-50%);
}

.hero-next {
  right: 1rem;
  transform: translateY(-50%);
}

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

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

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

.page-shell {
  width: min(80rem, calc(100% - 2rem));
  margin: 0 auto;
  padding-bottom: 4rem;
}

.page-hero {
  padding: clamp(1.5rem, 4vw, 3rem);
  margin-bottom: 2rem;
}

.page-hero h1 {
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.page-hero p {
  max-width: 52rem;
  color: #94a3b8;
  line-height: 1.8;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  color: #94a3b8;
  font-size: 0.92rem;
}

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

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

.section-title h2 {
  color: #ffffff;
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 800;
}

.section-more {
  color: #fbbf24;
  font-weight: 700;
}

.movie-grid {
  display: grid;
  gap: 1rem;
}

.six-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.four-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.movie-card {
  display: block;
  min-width: 0;
}

.poster-box {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 1rem;
  background: #0f172a;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24);
}

.poster-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.movie-card:hover .poster-image,
.category-card:hover img,
.category-overview-card:hover img {
  transform: scale(1.06);
  filter: brightness(1.08);
}

.poster-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.72));
}

.year-badge,
.type-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.year-badge {
  top: 0.6rem;
  right: 0.6rem;
  padding: 0.25rem 0.55rem;
  background: rgba(0, 0, 0, 0.58);
}

.type-badge {
  left: 0.6rem;
  bottom: 0.6rem;
  padding: 0.25rem 0.55rem;
  background: rgba(245, 158, 11, 0.85);
}

.movie-card-body {
  padding: 0.75rem 0.2rem 0;
}

.movie-card-body h3 {
  color: #ffffff;
  font-weight: 700;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.movie-card:hover h3,
.compact-card:hover h3,
.wide-card:hover h3,
.ranking-card:hover h3 {
  color: #fbbf24;
}

.movie-card-body p {
  color: #94a3b8;
  font-size: 0.85rem;
  margin-top: 0.35rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.region-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.category-card {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 1rem;
  background: #0f172a;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24);
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.82));
}

.category-card span {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 800;
  text-align: center;
}

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

.wide-card {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  padding: 0.75rem;
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(30, 41, 59, 0.8);
}

.wide-card:hover {
  background: #111c31;
}

.wide-cover {
  width: 7rem;
  height: 9rem;
  object-fit: cover;
  border-radius: 0.75rem;
}

.wide-body h3 {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0.35rem 0 0.5rem;
}

.wide-body p,
.ranking-body span {
  color: #94a3b8;
  line-height: 1.6;
}

.wide-meta {
  color: #fbbf24;
  font-size: 0.88rem;
}

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

.ranking-card {
  display: grid;
  grid-template-columns: 3rem 4rem 1fr;
  gap: 1rem;
  align-items: center;
  padding: 0.75rem;
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.72);
}

.ranking-card:hover {
  background: #111c31;
}

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

.ranking-card img {
  width: 4rem;
  height: 5.4rem;
  border-radius: 0.6rem;
  object-fit: cover;
}

.ranking-body h3 {
  color: #ffffff;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.ranking-body p {
  color: #cbd5e1;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 1.25rem;
  padding: 1rem;
  border-radius: 1.25rem;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(30, 41, 59, 0.9);
  overflow: hidden;
}

.category-overview-card img {
  width: 10rem;
  height: 13rem;
  object-fit: cover;
  border-radius: 1rem;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.category-overview-card h2 {
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.65rem;
}

.category-overview-card p {
  color: #94a3b8;
  line-height: 1.7;
}

.mini-title-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.mini-title-list span {
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: #1e293b;
  color: #cbd5e1;
  font-size: 0.8rem;
}

.filter-bar {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.75rem;
}

.filter-input,
.filter-select {
  min-height: 2.8rem;
  border-radius: 0.85rem;
  background: #0f172a;
  border: 1px solid #1e293b;
  color: #ffffff;
  padding: 0 0.95rem;
  outline: none;
}

.filter-input:focus,
.filter-select:focus {
  border-color: #f59e0b;
}

.empty-state {
  padding: 4rem 1rem;
  text-align: center;
  color: #94a3b8;
}

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

.player-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-video {
  width: 100%;
  height: 100%;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000000;
}

.player-cover.is-hidden {
  display: none;
}

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
}

.play-circle {
  position: relative;
  z-index: 2;
  width: 5rem;
  height: 5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #f59e0b;
  color: #ffffff;
  font-size: 2rem;
  box-shadow: 0 18px 50px rgba(245, 158, 11, 0.45);
}

.player-error {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
  color: #fca5a5;
  padding: 1rem;
  text-align: center;
}

.content-card h1 {
  color: #ffffff;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 900;
  margin-bottom: 1rem;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  color: #cbd5e1;
  margin-bottom: 1rem;
}

.detail-meta a:hover {
  color: #fbbf24;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tag-pill {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: #1e293b;
  color: #cbd5e1;
  font-size: 0.88rem;
}

.tag-pill:hover {
  background: #334155;
  color: #ffffff;
}

.content-card section {
  margin-top: 1.5rem;
}

.content-card h2,
.side-card h2 {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
}

.content-card p {
  color: #d1d5db;
  line-height: 1.9;
  margin-top: 0.75rem;
}

.side-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 0.9rem;
  object-fit: cover;
}

.compact-list {
  display: grid;
  gap: 0.85rem;
}

.compact-card {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 0.85rem;
  align-items: center;
}

.compact-card img {
  width: 4rem;
  height: 5.4rem;
  object-fit: cover;
  border-radius: 0.65rem;
}

.compact-card h3 {
  color: #ffffff;
  font-weight: 700;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.compact-card p {
  color: #94a3b8;
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

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

.footer-brand {
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 900;
  margin-bottom: 0.6rem;
}

.footer-text,
.copyright {
  color: #64748b;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-content: flex-start;
}

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

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

.copyright {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #1e293b;
}

@media (max-width: 1024px) {
  .six-grid,
  .four-grid,
  .region-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

@media (max-width: 768px) {
  .hero-section {
    height: 74vh;
  }

  .hero-copy {
    max-width: calc(100% - 2rem);
  }

  .hero-nav {
    display: none;
  }

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

  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .category-overview-card {
    grid-template-columns: 7rem 1fr;
  }

  .category-overview-card img {
    width: 7rem;
    height: 10rem;
  }

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

  .ranking-card {
    grid-template-columns: 2.5rem 3.5rem 1fr;
    gap: 0.75rem;
  }

  .ranking-card img {
    width: 3.5rem;
    height: 4.8rem;
  }

  .wide-card {
    grid-template-columns: 5.5rem 1fr;
  }

  .wide-cover {
    width: 5.5rem;
    height: 7.5rem;
  }

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

@media (max-width: 480px) {
  .page-shell {
    width: min(100% - 1rem, 80rem);
  }

  .movie-grid,
  .category-grid {
    gap: 0.75rem;
  }

  .poster-box,
  .category-card {
    border-radius: 0.8rem;
  }

  .movie-card-body h3 {
    font-size: 0.92rem;
  }

  .category-overview-card {
    grid-template-columns: 1fr;
  }

  .category-overview-card img {
    width: 100%;
    height: 13rem;
  }
}
