/* ==========================================================
   Cinematic Hero — exact spec implementation
   Tailwind-style utility classes inlined as CSS for the hero scope.
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

.cinema-hero, .cinema-hero * {
  font-family: 'Inter', sans-serif;
  box-sizing: border-box;
}

.cinema-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  /* Safari fallback already set above */
  overflow: hidden;
  background: #000;
  color: #fff;
  display: flex;
  flex-direction: column;
}

/* Background video */
.cinema-hero .ch-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Bottom-only blur overlay */
.cinema-hero .ch-blur {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  -webkit-mask-image: linear-gradient(to top, black 0%, transparent 48%);
  mask-image: linear-gradient(to top, black 0%, transparent 48%);
}

/* Liquid Glass */
.liquid-glass {
  background: rgba(255, 255, 255, 0.01);
  background-blend-mode: luminosity;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: none;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  color: #fff;
  cursor: pointer;
  transition: background 0.25s ease;
}
.liquid-glass:hover { background: rgba(255,255,255,0.06); }

.liquid-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.45) 0%,
    rgba(255,255,255,0.15) 20%,
    rgba(255,255,255,0) 40%,
    rgba(255,255,255,0) 60%,
    rgba(255,255,255,0.15) 80%,
    rgba(255,255,255,0.45) 100%);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

/* Blur fade up */
@keyframes blurFadeUp {
  from { opacity: 0; filter: blur(20px); transform: translateY(40px); }
  to   { opacity: 1; filter: blur(0);    transform: translateY(0); }
}
.cinema-hero .animate-blur-fade-up {
  opacity: 0;
  animation: blurFadeUp 1s ease-out forwards;
}

/* ---------- Navbar ---------- */
.cinema-hero .ch-nav {
  position: relative;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  gap: 16px;
}
@media (min-width: 640px) { .cinema-hero .ch-nav { padding: 16px 24px; } }
@media (min-width: 768px) { .cinema-hero .ch-nav { padding: 24px 48px; } }

.cinema-hero .ch-logo {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.18em;
  color: #fff;
  text-decoration: none;
  height: auto;
  display: inline-flex;
  align-items: center;
}
@media (min-width: 768px) { .cinema-hero .ch-logo { font-size: 20px; } }

.cinema-hero .ch-nav-links {
  display: none;
  gap: 28px;
}
@media (min-width: 1024px) { .cinema-hero .ch-nav-links { display: flex; } }

.cinema-hero .ch-nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  transition: color 0.2s;
}
.cinema-hero .ch-nav-links a:hover { color: #d1d5db; }

.cinema-hero .ch-nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cinema-hero .ch-search-pill {
  display: none;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
}
@media (min-width: 640px) {
  .cinema-hero .ch-search-pill { display: inline-flex; padding: 8px 24px; }
}

.cinema-hero .ch-icon-btn {
  display: none;
  width: 40px; height: 40px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
@media (min-width: 640px) { .cinema-hero .ch-icon-btn { display: inline-flex; } }

.cinema-hero .ch-hamburger {
  display: inline-flex;
  width: 40px; height: 40px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
}
@media (min-width: 1024px) { .cinema-hero .ch-hamburger { display: none; } }

.cinema-hero .ch-hamburger .icon-stack {
  position: relative;
  width: 18px; height: 18px;
}
.cinema-hero .ch-hamburger .icon-stack svg {
  position: absolute;
  inset: 0;
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.cinema-hero .ch-hamburger .icon-stack .menu-icon { opacity: 1; transform: rotate(0) scale(1); }
.cinema-hero .ch-hamburger .icon-stack .x-icon    { opacity: 0; transform: rotate(-180deg) scale(0.5); }
.cinema-hero .ch-hamburger.open .icon-stack .menu-icon { opacity: 0; transform: rotate(180deg) scale(0.5); }
.cinema-hero .ch-hamburger.open .icon-stack .x-icon    { opacity: 1; transform: rotate(0) scale(1); }

/* ---------- Mobile menu ---------- */
.cinema-hero .ch-mobile-menu {
  position: absolute;
  top: 72px;
  left: 0; right: 0;
  z-index: 40;
  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid #1f2937;
  border-bottom: 1px solid #1f2937;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateY(-16px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.5s ease-out, opacity 0.5s ease-out;
}
@media (min-width: 1024px) { .cinema-hero .ch-mobile-menu { display: none; } }

.cinema-hero .ch-mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.cinema-hero .ch-mobile-menu a {
  color: #fff;
  text-decoration: none;
  padding: 12px;
  border-radius: 8px;
  font-size: 15px;
  transform: translateX(-20px);
  opacity: 0;
  transition: transform 0.5s ease-out, opacity 0.5s ease-out, background 0.2s;
}
.cinema-hero .ch-mobile-menu a:hover { background: rgba(31, 41, 55, 0.5); }

.cinema-hero .ch-mobile-menu.open a { transform: translateX(0); opacity: 1; }

.cinema-hero .ch-mobile-bottom {
  display: flex;
  gap: 12px;
  padding-top: 16px;
  margin-top: 8px;
  border-top: 1px solid #1f2937;
}
@media (min-width: 640px) { .cinema-hero .ch-mobile-bottom { display: none; } }
.cinema-hero .ch-mobile-bottom .ch-search-pill,
.cinema-hero .ch-mobile-bottom .ch-icon-btn {
  display: inline-flex !important;
}

/* ---------- Hero content ---------- */
.cinema-hero .ch-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px 16px 32px;
  z-index: 10;
  position: relative;
}
@media (min-width: 640px) { .cinema-hero .ch-content { padding: 16px 24px 48px; } }
@media (min-width: 768px) { .cinema-hero .ch-content { padding: 16px 48px 64px; } }

.cinema-hero .ch-content-row {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: stretch;
}
@media (min-width: 768px) {
  .cinema-hero .ch-content-row {
    flex-direction: row;
    align-items: flex-end;
  }
}

.cinema-hero .ch-content-left {
  flex: 1;
  min-width: 0;
}

.cinema-hero .ch-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
  font-size: 12px;
}
@media (min-width: 640px) {
  .cinema-hero .ch-meta-row { gap: 24px; font-size: 14px; margin-bottom: 32px; }
}

.cinema-hero .ch-meta-row .ch-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cinema-hero .ch-meta-row .ch-rating {
  font-weight: 500;
}

.cinema-hero .ch-title {
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
  color: #fff;
}
@media (min-width: 640px) { .cinema-hero .ch-title { font-size: 48px; } }
@media (min-width: 768px) { .cinema-hero .ch-title { font-size: 60px; margin-bottom: 24px; } }
@media (min-width: 1024px) { .cinema-hero .ch-title { font-size: 72px; } }

.cinema-hero .ch-desc {
  font-size: 16px;
  color: #9ca3af;
  margin-bottom: 24px;
  max-width: 42rem;
  line-height: 1.5;
}
@media (min-width: 640px) { .cinema-hero .ch-desc { font-size: 18px; } }
@media (min-width: 768px) { .cinema-hero .ch-desc { font-size: 20px; margin-bottom: 48px; } }

.cinema-hero .ch-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
@media (min-width: 640px) { .cinema-hero .ch-cta-row { gap: 16px; } }

.cinema-hero .ch-watch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: #000;
  border-radius: 999px;
  font-weight: 500;
  font-size: 14px;
  padding: 10px 24px;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: background 0.2s;
}
.cinema-hero .ch-watch:hover { background: #e5e7eb; }
@media (min-width: 640px) {
  .cinema-hero .ch-watch { padding: 12px 32px; font-size: 15px; }
}

.cinema-hero .ch-learn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 14px;
  padding: 10px 24px;
  cursor: pointer;
  text-decoration: none;
}
@media (min-width: 640px) {
  .cinema-hero .ch-learn { padding: 12px 32px; font-size: 15px; }
}

.cinema-hero .ch-arrows {
  display: flex;
  gap: 12px;
  justify-content: flex-start;
}
@media (min-width: 768px) {
  .cinema-hero .ch-arrows { justify-content: flex-end; }
}

.cinema-hero .ch-arrow-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 14px;
  padding: 10px 16px;
  cursor: pointer;
}
@media (min-width: 640px) {
  .cinema-hero .ch-arrow-btn { padding: 12px 24px; font-size: 15px; }
}
