/*!
 * LiveStream — estilos
 * Transmisión de video en vivo, con estado "sin transmisión" honesto
 * (nunca se simula una transmisión que no existe). Independiente.
 */

.ls {
  --ls-bg: #10182b;
  --ls-bg-2: #161f38;
  --ls-card: #182342;
  --ls-accent: #e2a63b;
  --ls-accent-2: #f4c469;
  --ls-live: #ef4444;
  --ls-text: #ffffff;
  --ls-text-dim: #a9b3c9;
  --ls-border: rgba(255, 255, 255, 0.1);
  --ls-radius: 18px;

  width: 100%;
  color: var(--ls-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  box-sizing: border-box;
}
.ls *, .ls *::before, .ls *::after { box-sizing: border-box; }

.ls-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--ls-radius);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--ls-border);
}

.ls-video, .ls-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: none;
  background: #000;
}
.ls.is-live .ls-video { display: block; }
.ls.is-live.is-youtube .ls-iframe { display: block; }
.ls.is-live.is-youtube .ls-video { display: none; }

.ls-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}
.ls.is-live .ls-poster { display: none; }

.ls-offline {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  gap: 8px;
  background: linear-gradient(180deg, rgba(16,24,43,.55), rgba(10,16,32,.85));
}
.ls.is-live .ls-offline { display: none; }
.ls-offline-icon { font-size: 2rem; opacity: 0.85; }
.ls-offline-title { font-size: 0.98rem; font-weight: 700; }
.ls-offline-note { font-size: 0.82rem; color: var(--ls-text-dim); max-width: 380px; }

.ls-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.5);
  color: var(--ls-text-dim);
  z-index: 2;
}
.ls-badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ls-text-dim);
}
.ls.is-live .ls-badge { background: rgba(239, 68, 68, 0.18); color: #fca5a5; }
.ls.is-live .ls-badge-dot { background: var(--ls-live); animation: ls-pulse 1.4s ease-in-out infinite; }
@keyframes ls-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.ls-meta {
  margin-top: 12px;
}
.ls-title { font-size: 1rem; font-weight: 700; }
.ls-description { font-size: 0.84rem; color: var(--ls-text-dim); margin-top: 4px; line-height: 1.5; }

@media (max-width: 480px) {
  .ls-offline-title { font-size: 0.9rem; }
  .ls-offline-note { font-size: 0.78rem; }
}
