html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-header {
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.25);
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #22d3ee, #3b82f6);
  color: #fff;
  font-size: 0.85rem;
  box-shadow: 0 10px 25px rgba(34, 211, 238, 0.28);
}

.nav-link {
  color: #e2e8f0;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: #22d3ee;
}

.mobile-link {
  display: block;
  padding: 0.55rem 0;
  color: #e2e8f0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.header-search {
  width: 100%;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #fff;
  padding: 0.6rem 1rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search:focus {
  border-color: #22d3ee;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
}

.mobile-menu-button {
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.mobile-menu-button span {
  width: 1.25rem;
  height: 2px;
  background: #fff;
  border-radius: 999px;
}

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

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

.hero-tag,
.tag-glass {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.58);
  color: #e0f2fe;
  padding: 0.28rem 0.62rem;
  font-size: 0.75rem;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(125, 211, 252, 0.24);
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-button {
  background: #06b6d4;
  color: #fff;
  padding: 0.8rem 1.45rem;
  box-shadow: 0 16px 35px rgba(6, 182, 212, 0.28);
}

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

.ghost-button {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 0.8rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
}

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

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

.hero-control:hover {
  background: rgba(0, 0, 0, 0.72);
}

.hero-prev {
  left: 1rem;
}

.hero-next {
  right: 1rem;
}

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

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

.section-heading {
  margin-bottom: 1.5rem;
}

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

.movie-card:hover h3 {
  color: #0891b2;
}

.category-panel {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  min-height: 13rem;
  background: #0f172a;
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.14);
}

.category-overview-card,
.info-card {
  background: #fff;
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.info-card h2 {
  color: #0f172a;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 0.65rem;
}

.info-card p {
  color: #64748b;
  line-height: 1.75;
}

.category-sample-links a {
  color: #334155;
}

.category-sample-links a:hover {
  color: #0891b2;
}

.page-hero,
.detail-hero {
  position: relative;
}

.eyebrow {
  display: inline-flex;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #67e8f9;
  font-size: 0.75rem;
  font-weight: 800;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #bae6fd;
}

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

.rank-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.4rem;
  border-radius: 0.65rem;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 25px rgba(239, 68, 68, 0.28);
}

.player-panel {
  position: relative;
  background: #000;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.35);
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  color: #fff;
  background: radial-gradient(circle at center, rgba(8, 145, 178, 0.15), rgba(0, 0, 0, 0.55));
  cursor: pointer;
}

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

.play-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.8rem;
  height: 4.8rem;
  border-radius: 999px;
  background: #06b6d4;
  box-shadow: 0 18px 40px rgba(6, 182, 212, 0.36);
  font-size: 1.8rem;
  padding-left: 0.2rem;
}

.detail-side-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  padding: 1rem;
  backdrop-filter: blur(10px);
}

.meta-pill,
.detail-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border-radius: 999px;
  padding: 0.42rem 0.78rem;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.92rem;
}

.detail-tag {
  background: #ecfeff;
  color: #0e7490;
}

.detail-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.85rem;
}

.detail-paragraph {
  color: #475569;
  line-height: 1.95;
  text-align: justify;
  white-space: pre-line;
}

.empty-state {
  margin-top: 2rem;
  text-align: center;
  color: #64748b;
  padding: 3rem 1rem;
  background: #fff;
  border-radius: 1rem;
}

.footer-link {
  color: #cbd5e1;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #22d3ee;
}

.footer-pill {
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.88);
  color: #cbd5e1;
  padding: 0.35rem 0.7rem;
  font-size: 0.8rem;
}

.footer-pill:hover {
  color: #fff;
  background: rgba(8, 145, 178, 0.78);
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.line-clamp-1,
.line-clamp-2,
.line-clamp-3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-1 {
  -webkit-line-clamp: 1;
}

.line-clamp-2 {
  -webkit-line-clamp: 2;
}

.line-clamp-3 {
  -webkit-line-clamp: 3;
}

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

  .hero-control {
    width: 2.35rem;
    height: 2.35rem;
    font-size: 1.5rem;
  }

  .hero-prev {
    left: 0.4rem;
  }

  .hero-next {
    right: 0.4rem;
  }

  .play-icon {
    width: 3.8rem;
    height: 3.8rem;
  }
}
