/* LIVE en la portada y en el perfil público: botón de la cabecera, insignia en las tarjetas y aviso flotante. */

/* .header__nav a (styles.css) pone fondo transparente con más especificidad: por eso el selector doble */
.btn--live,
.header__nav a.btn--live {
    background: linear-gradient(135deg, #ff2d55 0%, #d9153e 100%);
    color: #fff;
    border: none;
    font-weight: 800;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    letter-spacing: 0.04em;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, filter 0.2s ease;
}
.btn--live:hover,
.header__nav a.btn--live:hover { filter: brightness(1.08); transform: translateY(-1px); color: #fff; }

.btn--live .live-punto {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    opacity: 0.55;
}
.btn--live.live-activo .live-punto { opacity: 1; animation: live-punto-pulso 1.2s ease-in-out infinite; }

.btn--live .live-n {
    min-width: 20px;
    padding: 1px 6px;
    border-radius: 999px;
    background: #fff;
    color: #d9153e;
    font-size: 0.72rem;
    line-height: 1.3;
    text-align: center;
}

/* Insignia en la tarjeta de un perfil que está transmitiendo */
.live-chip-card {
    position: absolute;
    left: 62px;
    top: 14px;
    z-index: 6;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    background: linear-gradient(135deg, #ff2d55, #d9153e);
    color: #fff;
    font-weight: 900;
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(217, 21, 62, 0.55);
}
.live-chip-card::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff;
    animation: live-punto-pulso 1.2s ease-in-out infinite;
}

/* Aviso flotante en el perfil de quien está en vivo */
.live-pill-perfil {
    position: fixed;
    left: 14px;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    z-index: 9998;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff2d55, #d9153e);
    color: #fff;
    font-weight: 900;
    font-size: 0.95rem;
    text-decoration: none;
    box-shadow: 0 6px 22px rgba(217, 21, 62, 0.55);
}
.live-pill-perfil::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #fff;
    animation: live-punto-pulso 1.2s ease-in-out infinite;
}

@keyframes live-punto-pulso { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(0.7); } }

@media (prefers-reduced-motion: reduce) {
    .btn--live.live-activo .live-punto, .live-chip-card::before, .live-pill-perfil::before { animation: none; }
}
