/* =========================================================
   Intro film + hidden admin entrance
   ========================================================= */

.film-band {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 26px 8px;
}

.film-stage {
  position: relative;
  aspect-ratio: 16 / 8.6;
  min-height: 320px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #05070d;
  box-shadow: 0 50px 110px -50px #000;
  cursor: pointer;
  isolation: isolate;
}

.film-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.9s ease;
  will-change: opacity, transform;
  filter: saturate(1.05) contrast(1.03);
}

.film-frame.on {
  opacity: 1;
}

.film-frame.ken.on {
  animation: ken var(--len, 2900ms) linear forwards;
}

.film-frame:nth-of-type(2).ken.on { animation-name: ken-alt; }
.film-frame:nth-of-type(4).ken.on { animation-name: ken-left; }

@keyframes ken {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.14) translate3d(-1.2%, -1%, 0); }
}
@keyframes ken-alt {
  from { transform: scale(1.12) translate3d(1%, 0.6%, 0); }
  to { transform: scale(1.02) translate3d(-0.5%, 0, 0); }
}
@keyframes ken-left {
  from { transform: scale(1.06) translate3d(1.4%, 0, 0); }
  to { transform: scale(1.16) translate3d(-1.4%, -1.4%, 0); }
}

.film-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 6, 12, 0.35) 0%, rgba(4, 6, 12, 0.05) 35%, rgba(4, 6, 12, 0.82) 100%),
    linear-gradient(90deg, rgba(4, 6, 12, 0.7) 0%, rgba(4, 6, 12, 0.1) 55%);
  pointer-events: none;
}

.film-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.film-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 34px 38px 34px;
  display: grid;
  gap: 10px;
  pointer-events: none;
}

.film-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #a9ffdc;
  background: rgba(6, 12, 20, 0.55);
  border: 1px solid rgba(52, 229, 165, 0.35);
  padding: 6px 12px;
  border-radius: 999px;
  width: fit-content;
  backdrop-filter: blur(6px);
}

.film-headline {
  font-size: clamp(24px, 3.6vw, 44px);
  letter-spacing: -0.035em;
  line-height: 1.04;
  max-width: 15ch;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.6);
}

.film-caption {
  min-height: 22px;
  font-size: 14px;
  color: #d5dcec;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.8);
}

.film-caption-line {
  display: none;
}
.film-caption-line.on {
  display: inline;
  animation: cap-in 0.5s ease;
}
@keyframes cap-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

.film-cta-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
  pointer-events: auto;
  flex-wrap: wrap;
}

.film-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.14);
}

.film-bar > i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #34e5a5, #8b7cff);
}

.film-meta {
  position: absolute;
  top: 18px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(233, 237, 248, 0.85);
  background: rgba(6, 10, 18, 0.5);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.film-toggle {
  pointer-events: auto;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: #cfe8dd;
  padding: 4px 10px;
  border-left: 1px solid var(--line-strong);
}

.film-toggle:hover { color: #fff; }

@media (max-width: 720px) {
  .film-band { padding: 0 16px 6px; }
  .film-stage { aspect-ratio: 4 / 5; min-height: 420px; border-radius: 20px; }
  .film-overlay { padding: 24px 20px 26px; }
  .film-headline { max-width: 20ch; }
}

/* ---------- launch button ---------- */

.btn-launch {
  box-shadow: 0 10px 28px -12px rgba(123, 108, 255, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.btn-launch svg {
  width: 16px;
  height: 16px;
}

.btn-launch:hover {
  box-shadow: 0 14px 34px -12px rgba(123, 108, 255, 1), 0 0 0 1px rgba(255, 255, 255, 0.16) inset;
}

.land-nav-actions .btn-launch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ---------- admin space identity ---------- */

.shell.space-admin .sidebar {
  background: linear-gradient(180deg, rgba(24, 18, 48, 0.9), rgba(9, 13, 24, 0.92));
  border-right-color: rgba(123, 108, 255, 0.28);
  box-shadow: inset -1px 0 0 rgba(123, 108, 255, 0.16);
}

.shell.space-admin .topbar {
  background: linear-gradient(180deg, rgba(20, 16, 40, 0.92), rgba(7, 10, 19, 0.86));
  border-bottom-color: rgba(123, 108, 255, 0.26);
}

.admin-space-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #cfc8ff;
  background: rgba(123, 108, 255, 0.16);
  border: 1px solid rgba(123, 108, 255, 0.42);
  padding: 4px 9px;
  border-radius: 999px;
  margin-bottom: 7px;
  width: fit-content;
}

.admin-space-chip svg {
  width: 12px;
  height: 12px;
}

/* ---------- hidden admin entrance ---------- */
.admin-door {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.16);
  margin-left: 10px;
  cursor: default;
  vertical-align: middle;
}
.admin-door:hover { background: rgba(52, 229, 165, 0.5); }

.admin-device-row {
  margin-top: 10px;
  text-align: center;
}

.admin-device-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: #b9c2d8;
  text-decoration: none;
  border: 1px solid rgba(123, 108, 255, 0.35);
  background: rgba(123, 108, 255, 0.1);
  padding: 7px 13px;
  border-radius: 999px;
}

.admin-device-link:hover {
  color: #fff;
  border-color: rgba(123, 108, 255, 0.6);
  background: rgba(123, 108, 255, 0.2);
}

.admin-device-link svg {
  width: 13px;
  height: 13px;
}

.admin-login-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #b9b0ff;
  background: var(--violet-soft);
  border: 1px solid rgba(123, 108, 255, 0.4);
  padding: 6px 12px;
  border-radius: 999px;
  width: fit-content;
  margin-bottom: 16px;
}

.admin-login .auth-art {
  background:
    radial-gradient(700px 420px at 18% 12%, rgba(123, 108, 255, 0.36), transparent 62%),
    radial-gradient(620px 420px at 88% 88%, rgba(255, 125, 139, 0.12), transparent 62%),
    #0a0f1d;
}
