/* Fanilive (19.11.2026): fanin "Live nyt" -nappi ja katselukerros maailmassa, lähetyspaneeli työpöydällä. */
.live-nyt {
  position: fixed; top: max(14px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%);
  z-index: 40; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border: 0; border-radius: 999px;
  background: #e5484d; color: #fff; font: 600 14px/1 var(--sans, system-ui); letter-spacing: .02em;
  box-shadow: 0 6px 24px rgba(229, 72, 77, .35); cursor: pointer;
  transition: transform .16s cubic-bezier(.23, 1, .32, 1);
}
.live-nyt:active { transform: translateX(-50%) scale(.97); }
.live-nyt[hidden] { display: none; }
.piste { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: live-syke 1.6s ease-in-out infinite; }
@keyframes live-syke { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .piste { animation: none; } }

.live-kerros {
  position: fixed; inset: 0; z-index: 60; display: grid; grid-template-rows: 1fr auto;
  background: #050506; color: #f1efea;
}
.live-kehys { position: relative; display: grid; place-items: center; overflow: hidden; }
.live-kehys video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.live-tila { margin: 0; padding: 0 24px; text-align: center; color: #a3a3a0; font: 15px/1.5 var(--sans, system-ui); }
.live-tila[hidden] { display: none; }
.live-alapalkki {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px max(14px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(241, 239, 234, .1); font: 15px/1 var(--sans, system-ui);
}
.live-merkki { display: inline-flex; align-items: center; gap: 6px; color: #e5484d; font-weight: 700; text-transform: uppercase; font-size: 12px; letter-spacing: .08em; }
.live-nimi { flex: 1; font-weight: 600; }
.live-sulje {
  min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(241, 239, 234, .25);
  background: transparent; color: inherit; font: inherit; cursor: pointer;
}

/* Työpöytä: lähetyspaneeli osiossa Live */
.live-paneeli { display: grid; gap: 12px; }
.live-esikatselu { aspect-ratio: 16 / 9; width: 100%; border-radius: 14px; background: #000; object-fit: cover; }
.live-esikatselu[hidden] { display: none; }
.live-rivi { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.live-tieto { flex: 1; min-width: 12ch; color: var(--harmaa, #a3a3a0); font-size: 14px; }
.live-nappi {
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 0; cursor: pointer;
  background: #e5484d; color: #fff; font: 600 15px/1 var(--sans, system-ui);
}
.live-nappi.lopeta { background: transparent; color: var(--teksti, #f1efea); border: 1px solid rgba(241, 239, 234, .3); }
.live-nappi:disabled { opacity: .5; cursor: default; }
