body {
  background: #f8fafc;
  color: #0f172a;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

img {
  background: linear-gradient(135deg, #dbeafe, #e0f2fe, #ccfbf1);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #082f49;
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.18);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4rem;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand {
  font-size: 1.25rem;
}

.brand-mark,
.footer-mark {
  width: 2rem;
  height: 2rem;
  color: #0ea5e9;
  flex: none;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.5rem;
  font-weight: 600;
}

.nav-link,
.mobile-nav-link {
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  color: #5eead4;
}

.mobile-menu-button {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.08);
}

.mobile-menu-button span {
  display: block;
  width: 1.1rem;
  height: 0.12rem;
  border-radius: 99px;
  background: currentColor;
}

.mobile-nav {
  display: none;
  padding-bottom: 1rem;
}

.mobile-nav.is-open {
  display: grid;
  gap: 0.35rem;
}

.mobile-nav-link {
  display: block;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.06);
}

.hero-carousel {
  position: relative;
  height: 400px;
  overflow: hidden;
  border-radius: 1rem;
  background: #0f172a;
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.28);
}

.hero-track,
.hero-slide {
  height: 100%;
}

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

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

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

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.9), rgba(15, 23, 42, 0.42), rgba(15, 23, 42, 0.08));
}

.hero-content {
  position: absolute;
  left: 2rem;
  right: 2rem;
  bottom: 2rem;
  z-index: 2;
  max-width: 48rem;
  color: #ffffff;
}

.hero-kicker,
.detail-kicker,
.page-hero span {
  display: inline-flex;
  margin-bottom: 0.75rem;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.92);
  padding: 0.35rem 0.8rem;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
}

.hero-content h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(2rem, 5vw, 3.75rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-content p {
  max-width: 42rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 2vw, 1.16rem);
  line-height: 1.7;
}

.hero-meta {
  margin-top: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  border-radius: 0.8rem;
  padding: 0.75rem 1.2rem;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.ghost-button {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  backdrop-filter: blur(6px);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  font-size: 2rem;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.hero-carousel:hover .hero-control {
  opacity: 1;
}

.hero-prev {
  left: 1rem;
}

.hero-next {
  right: 1rem;
}

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

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

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

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

.category-section-raised,
.content-section.card-surface {
  border-radius: 1rem;
  background: #ffffff;
  padding: 2rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.section-topline,
.listing-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-topline h2,
.listing-toolbar h2,
.detail-section h2,
.detail-info h2 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-topline p,
.page-hero p {
  margin-top: 0.4rem;
  color: #64748b;
  line-height: 1.7;
}

.section-topline a {
  color: #0369a1;
  font-weight: 800;
  white-space: nowrap;
}

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

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: 0.9rem;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.09);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 38px rgba(15, 23, 42, 0.16);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e2e8f0;
}

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

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

.poster-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.58), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-gradient {
  opacity: 1;
}

.card-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 4rem;
  height: 4rem;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 1.45rem;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.92);
  backdrop-filter: blur(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .card-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.duration-badge,
.category-badge {
  position: absolute;
  border-radius: 0.4rem;
  padding: 0.25rem 0.45rem;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
}

.duration-badge {
  right: 0.55rem;
  bottom: 0.55rem;
  background: rgba(0, 0, 0, 0.72);
}

.category-badge {
  left: 0.55rem;
  top: 0.55rem;
  background: #14b8a6;
}

.card-body {
  display: grid;
  gap: 0.55rem;
  padding: 1rem;
}

.card-body strong {
  color: #0f172a;
  font-size: 1rem;
  line-height: 1.4;
}

.card-desc {
  display: -webkit-box;
  min-height: 2.7rem;
  overflow: hidden;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.5;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  color: #64748b;
  font-size: 0.86rem;
}

.card-category-link {
  color: #0369a1;
  font-size: 0.86rem;
  font-weight: 800;
}

.movie-rail {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  scrollbar-width: none;
}

.movie-rail::-webkit-scrollbar {
  display: none;
}

.rail-item {
  width: 18rem;
  flex: 0 0 18rem;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  border-radius: 1.1rem;
  margin-bottom: 2rem;
  padding: 2.25rem;
  background: linear-gradient(135deg, #082f49, #075985, #14b8a6);
  color: #ffffff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.16);
}

.soft-hero {
  background: linear-gradient(135deg, #eff6ff, #f0fdfa);
  color: #0f172a;
}

.soft-hero span {
  background: #0284c7;
}

.page-hero h1,
.detail-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

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

.category-tile {
  position: relative;
  min-height: 15rem;
  overflow: hidden;
  border-radius: 1rem;
  background: #0f172a;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.category-tile img {
  width: 100%;
  height: 100%;
  min-height: 15rem;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-tile:hover img {
  transform: scale(1.08);
}

.category-tile-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.86), rgba(15, 23, 42, 0.08));
}

.category-tile-content {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1.25rem;
  color: #ffffff;
}

.category-tile-content strong {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 1.5rem;
  font-weight: 900;
}

.category-tile-content em {
  color: rgba(255, 255, 255, 0.85);
  font-style: normal;
  line-height: 1.6;
}

.filter-label {
  display: grid;
  gap: 0.4rem;
  min-width: min(100%, 24rem);
  color: #475569;
  font-size: 0.86rem;
  font-weight: 800;
}

.filter-label input {
  border: 1px solid #cbd5e1;
  border-radius: 0.8rem;
  background: #ffffff;
  padding: 0.8rem 1rem;
  color: #0f172a;
  outline: none;
}

.filter-label input:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.18);
}

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

.rank-item {
  display: grid;
  grid-template-columns: auto 5.25rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  border-radius: 0.9rem;
  background: #ffffff;
  padding: 0.75rem;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(15, 23, 42, 0.12);
}

.rank-number {
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  font-weight: 900;
}

.rank-item img {
  width: 5.25rem;
  height: 3.35rem;
  border-radius: 0.65rem;
  object-fit: cover;
}

.rank-main {
  display: grid;
  gap: 0.22rem;
  min-width: 0;
}

.rank-main strong {
  overflow: hidden;
  color: #0f172a;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-main em,
.rank-main small {
  overflow: hidden;
  color: #64748b;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
  color: #64748b;
  font-size: 0.95rem;
}

.breadcrumb a {
  color: #0369a1;
  font-weight: 800;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
}

.detail-copy p {
  margin-top: 1rem;
  max-width: 52rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.08rem;
  line-height: 1.75;
}

.detail-chips,
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.chip {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  padding: 0.35rem 0.65rem;
  color: inherit;
  font-size: 0.82rem;
  font-weight: 800;
}

.detail-poster {
  display: none;
}

.detail-poster img {
  width: 100%;
  border-radius: 1rem;
  box-shadow: 0 20px 40px rgba(2, 6, 23, 0.28);
}

.player-card {
  border-radius: 1rem;
  margin-bottom: 2rem;
  background: #020617;
  padding: 0.75rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.22);
}

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 0.8rem;
  background: #000000;
}

.player-video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
  pointer-events: auto;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at center, rgba(2, 132, 199, 0.16), rgba(0, 0, 0, 0.34));
  color: #ffffff;
  pointer-events: auto;
}

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

.play-badge {
  display: grid;
  width: clamp(4rem, 10vw, 6rem);
  height: clamp(4rem, 10vw, 6rem);
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.26);
}

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

.detail-section,
.detail-info {
  border-radius: 1rem;
  background: #ffffff;
  padding: 1.5rem;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07);
}

.detail-section p {
  margin-top: 1rem;
  color: #334155;
  line-height: 1.85;
}

.detail-info ul {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.detail-info li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 0.75rem;
}

.detail-info li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.detail-info span {
  color: #64748b;
}

.detail-info strong {
  color: #0f172a;
  text-align: right;
}

.site-footer {
  margin-top: 4rem;
  background: #0f172a;
  color: #cbd5e1;
}

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

.footer-brand {
  margin-bottom: 1rem;
  color: #ffffff;
  font-size: 1.1rem;
}

.footer-grid h2 {
  margin-bottom: 1rem;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 900;
}

.footer-grid p,
.footer-grid a {
  color: #cbd5e1;
  line-height: 1.75;
}

.footer-grid a:hover {
  color: #5eead4;
}

.footer-grid ul {
  display: grid;
  gap: 0.55rem;
}

.is-hidden-by-filter {
  display: none !important;
}

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

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }

  .mobile-menu-button {
    display: none;
  }

  .hero-carousel {
    height: 500px;
  }

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

  .detail-hero {
    grid-template-columns: minmax(0, 1fr) 16rem;
  }

  .detail-poster {
    display: block;
  }
}

@media (min-width: 1024px) {
  .hero-carousel {
    height: 600px;
  }

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

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

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

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

@media (max-width: 767px) {
  .section-topline,
  .listing-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-content {
    left: 1rem;
    right: 1rem;
    bottom: 1.4rem;
  }

  .hero-control {
    opacity: 1;
  }

  .rank-item {
    grid-template-columns: auto 4.6rem minmax(0, 1fr);
  }

  .rank-score {
    display: none;
  }
}
