.cine-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: 0;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 50%, #0b1030 0%, #04050f 60%, #000 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  isolation: isolate;
}
.cine-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, 0.7) 100%),
    linear-gradient(180deg, transparent 85%, #0a0a0a 100%);
}
.cine-sky {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Eclipse */
.cine-eclipse {
  --size: min(62vmin, 560px);
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: var(--size);
  height: var(--size);
  translate: -50% -50%;
}
.cine-eclipse > * {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}
.cine-corona {
  inset: -30%;
  background: radial-gradient(circle, transparent 30%, rgba(255, 220, 150, 0.95) 32%, rgba(255, 150, 60, 0.45) 40%, rgba(120, 90, 255, 0.18) 58%, transparent 72%);
  opacity: 0;
  scale: 0.7;
  animation: cine-corona 3s 2.6s cubic-bezier(0.2, 0.7, 0.2, 1) forwards, cine-breathe 6s 5.6s ease-in-out infinite alternate;
}
.cine-rays {
  inset: -60%;
  background: repeating-conic-gradient(from 0deg, rgba(255, 220, 160, 0.16) 0deg 1.2deg, transparent 1.2deg 9deg);
  -webkit-mask: radial-gradient(circle, transparent 14%, #000 22%, transparent 60%);
  mask: radial-gradient(circle, transparent 14%, #000 22%, transparent 60%);
  opacity: 0;
  animation: cine-fade 3s 4.4s forwards, cine-spin 160s linear infinite;
}
.cine-moon {
  background: radial-gradient(circle at 35% 35%, #15172b, #02030a 70%);
  box-shadow: 0 0 40px 6px rgba(0, 0, 0, 0.9);
  translate: -140% 0;
  animation: cine-moon 2.4s 2.4s cubic-bezier(0.55, 0, 0.25, 1) forwards;
}
.cine-flash {
  inset: -40%;
  background: radial-gradient(circle, #fff 0%, rgba(255, 230, 170, 0.8) 12%, transparent 45%);
  opacity: 0;
  animation: cine-flash 1.6s 4.5s ease-out forwards;
}

/* Letterbox */
.cine-bar {
  position: absolute;
  left: 0;
  right: 0;
  height: 12vh;
  background: #000;
  z-index: 4;
  animation: cine-bar 2s 4.8s cubic-bezier(0.7, 0, 0.2, 1) forwards;
}
.cine-bar--top { top: 0; transform-origin: top; }
.cine-bar--bottom { bottom: 0; transform-origin: bottom; }

/* Text */
.cine-credits {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  padding: 0 1.25rem;
  max-width: 1100px;
}
.cine-line,
.cine-cta {
  opacity: 0;
  animation: cine-rise 1.4s var(--d) cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.cine-line {
  margin: 0;
  text-transform: uppercase;
  font-size: clamp(0.7rem, 1.3vw, 0.95rem);
  letter-spacing: 0.45em;
  color: rgba(255, 235, 200, 0.85);
}
.cine-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  line-height: 1;
}
.cine-word {
  display: block;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}
.cine-ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.6em) rotateX(-70deg);
  filter: blur(8px);
  animation: cine-letter 1.1s var(--d) cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.cine-word--small {
  font-size: clamp(0.9rem, 2.2vw, 1.7rem);
  letter-spacing: 0.6em;
  margin-right: -0.6em;
  color: rgba(255, 235, 200, 0.95);
  line-height: 2;
}
.cine-word--big {
  font-size: clamp(2.6rem, 11vw, 8.5rem);
  letter-spacing: 0.04em;
  color: #fff;
  text-shadow: 0 0 30px rgba(255, 190, 90, 0.55), 0 0 90px rgba(130, 100, 255, 0.45);
}
.cine-welcome { margin-top: 0.4rem; letter-spacing: 0.25em; }
.cine-cta {
  padding: 1rem 2.2rem;
  margin-top: 0.8rem;
  box-shadow: 0 0 0 0 rgba(255, 190, 80, 0.5);
}
.cine-hero.is-done .cine-cta {
  animation: cine-pulse 2.6s infinite;
  opacity: 1;
}

@keyframes cine-fade { to { opacity: 1; } }
@keyframes cine-spin { to { rotate: 360deg; } }
@keyframes cine-corona { to { opacity: 1; scale: 1; } }
@keyframes cine-breathe { to { scale: 1.06; opacity: 0.85; } }
@keyframes cine-moon { to { translate: 0 0; } }
@keyframes cine-flash {
  0% { opacity: 0; scale: 0.5; }
  25% { opacity: 1; }
  100% { opacity: 0; scale: 1.4; }
}
@keyframes cine-bar { to { transform: scaleY(0.0001); } }
@keyframes cine-rise {
  from { opacity: 0; transform: translateY(14px); filter: blur(8px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes cine-letter {
  to { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes cine-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 190, 80, 0.5); }
  70%, 100% { box-shadow: 0 0 0 18px rgba(255, 190, 80, 0); }
}
@media (max-width: 767px) {
  .cine-word--small { letter-spacing: 0.35em; margin-right: -0.35em; }
  .cine-line { letter-spacing: 0.25em; }
}
@media (prefers-reduced-motion: reduce) {
  .cine-hero * { animation-duration: 0.01s !important; animation-delay: 0s !important; }
  .cine-bar, .cine-flash { display: none; }
}
