/* ============================================================================
 * Mapita "En Vivo" (transmisiones) — estilos del componente compartido.
 * Usado por negocios, marcas y deportes vía public/js/mapita-envivo.js.
 * Portado desde el CSS inline original de views/business/map.php.
 * ==========================================================================*/

@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* ── TRANSMISION FLOAT PANEL ──────────────────────────────────────────────── */
#tx-float-panel {
    position: fixed; bottom: 20px; right: 20px; z-index: 5000;
    background: #fff; border-radius: 16px;
    box-shadow: 0 14px 48px rgba(0,0,0,.32), 0 2px 8px rgba(0,0,0,.14);
    display: none; flex-direction: column;
    width: 360px; max-width: calc(100vw - 24px); overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}
#tx-float-panel.is-minimized .tx-panel-body { display: none; }
#tx-float-panel-header {
    color: white; padding: 12px 14px 12px;
    display: flex; align-items: center; gap: 10px;
    cursor: move; user-select: none; min-width: 0;
}
.tx-hdr-logo {
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,.18); border: 2px solid rgba(255,255,255,.4);
    overflow: hidden; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; line-height: 1;
}
.tx-hdr-logo img { width:100%; height:100%; object-fit:cover; display:block; }
.tx-hdr-text { flex: 1; min-width: 0; }
#tx-float-panel-title {
    display: block; font-size: 13px; font-weight: 800;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    line-height: 1.2; margin-bottom: 2px;
}
.tx-hdr-badge {
    display: inline-block; font-size: 9px; font-weight: 800;
    padding: 1px 7px; border-radius: 10px;
    background: rgba(255,255,255,.22); color: rgba(255,255,255,.95);
    letter-spacing: .5px; text-transform: uppercase;
}
.tx-hdr-badge.live { background: rgba(255,255,255,.3); animation: blink 1s infinite; }
.tx-panel-btn {
    background: rgba(255,255,255,.18); border: none; color: white; cursor: pointer;
    border-radius: 6px; width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; line-height: 1; flex-shrink: 0; transition: background .15s;
}
.tx-panel-btn:hover { background: rgba(255,255,255,.35); }
.tx-panel-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* body sections */
.tx-panel-body { display: flex; flex-direction: column; background: #fff; color: #1e293b; }
.tx-panel-section { padding: 13px 16px; border-bottom: 1px solid #f1f5f9; }
.tx-panel-section:last-child { border-bottom: none; }
.tx-panel-desc { margin: 0; font-size: 13px; color: #555; line-height: 1.55; }

/* Audio / radio player */
.tx-audio-wrap {
    background: linear-gradient(160deg, #1e293b 0%, #0f172a 100%);
    padding: 20px 18px; display: flex; flex-direction: column; align-items: center; gap: 11px;
}
.tx-audio-logo {
    width: 72px; height: 72px; border-radius: 50%; object-fit: cover;
    border: 3px solid rgba(192,57,43,.7);
    box-shadow: 0 4px 22px rgba(192,57,43,.45), 0 0 0 6px rgba(192,57,43,.12);
}
.tx-audio-icon {
    width: 72px; height: 72px; border-radius: 50%;
    background: linear-gradient(135deg, #c0392b, #7b241c);
    display: flex; align-items: center; justify-content: center; font-size: 30px;
    box-shadow: 0 4px 22px rgba(192,57,43,.55), 0 0 0 8px rgba(192,57,43,.14);
}
.tx-audio-station {
    font-size: 14px; font-weight: 800; color: rgba(255,255,255,.95);
    text-align: center; line-height: 1.3; letter-spacing: .1px;
}
.tx-audio-web-btn {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 14px; border-radius: 20px;
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
    color: rgba(255,255,255,.85); font-size: 11px; font-weight: 600;
    text-decoration: none; transition: background .2s;
}
.tx-audio-web-btn:hover { background: rgba(255,255,255,.18); }
.tx-audio-hint { font-size: 11px; color: rgba(255,255,255,.45); text-align: center; margin: -4px 0 0; }
.tx-panel-audio { width: 100%; border-radius: 10px; accent-color: #c0392b; height: 38px; }

/* YouTube / video embed */
.tx-panel-embed { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; }
.tx-panel-embed iframe, .tx-panel-embed video {
    position: absolute; inset: 0; width: 100%; height: 100%;
    border: none; display: block; background: #000;
}

/* Share button */
.tx-panel-share-btn {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    width: 100%; padding: 10px 12px;
    background: linear-gradient(135deg, #059669, #047857); color: #fff;
    border: none; border-radius: 10px; font-size: 13px; font-weight: 700;
    cursor: pointer; box-shadow: 0 2px 10px rgba(5,150,105,.3); transition: opacity .15s;
}
.tx-panel-share-btn:hover { opacity: .88; }
.tx-panel-share-toast { display: none; font-size: 11px; color: #059669; text-align: center; margin-top: 5px; }
.tx-stream-error { color:#fca5a5; font-size:12px; margin-top:6px; }

/* ── TX Card (widget lateral) ─────────────────────────────────────────────── */
.tx-card {
    display:flex; align-items:flex-start; gap:9px;
    padding:9px 10px; background:#fff; border:1px solid #fecaca;
    border-radius:8px; margin-bottom:7px; cursor:pointer; position:relative;
    transition:transform .15s, box-shadow .15s;
}
.tx-card:hover { transform:translateY(-1px); box-shadow:0 3px 10px rgba(192,57,43,.15); }
.tx-card-live { background:linear-gradient(135deg,#7b241c 0%,#c0392b 100%) !important; border-color:#7b241c !important; }
.tx-card-live:hover { box-shadow:0 4px 14px rgba(114,26,14,.5) !important; }
.tx-card-video { background:linear-gradient(135deg,#f9f0ff,#ede9fe); border-color:#c4b5fd; }
.tx-card-thumb {
    width:52px; height:52px; border-radius:6px; overflow:hidden; flex-shrink:0;
    background:rgba(0,0,0,.08); display:flex; align-items:center; justify-content:center;
}
.tx-card-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.tx-card-thumb-ico { font-size:22px; line-height:1; }
.tx-card-live .tx-card-thumb { background:rgba(255,255,255,.18); border:1.5px solid rgba(255,255,255,.28); }
.tx-card-body { flex:1; min-width:0; }
.tx-card-badges { display:flex; gap:4px; flex-wrap:wrap; margin-bottom:3px; }
.tx-badge-live {
    display:inline-flex; align-items:center; gap:3px;
    background:rgba(255,255,255,.22); color:#fff; font-size:9px; font-weight:800;
    padding:1px 6px; border-radius:8px; letter-spacing:.5px; text-transform:uppercase;
}
.tx-badge-dot { width:6px; height:6px; background:#ff4444; border-radius:50%; animation:blink 1s infinite; flex-shrink:0; }
.tx-badge-tipo {
    display:inline-flex; align-items:center; gap:2px; font-size:9px; font-weight:700;
    padding:1px 6px; border-radius:8px; background:rgba(0,0,0,.07); color:#555; opacity:.9;
}
.tx-card-live .tx-badge-tipo { background:rgba(255,255,255,.15); color:rgba(255,255,255,.9); }
.tx-card-title {
    font-size:12px; font-weight:700; line-height:1.3; margin-bottom:2px; color:#1e293b;
    white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.tx-card-live .tx-card-title { color:#fff; }
.tx-card-video .tx-card-title { color:#4c1d95; }
.tx-card-sub { font-size:11px; color:#64748b; line-height:1.35; }
.tx-card-live .tx-card-sub { color:rgba(255,255,255,.82); }
.tx-card-dist { font-size:10px; color:#94a3b8; margin-top:3px; display:block; }
.tx-card-live .tx-card-dist { color:rgba(255,255,255,.6); }
.tx-card-share {
    flex-shrink:0; background:rgba(0,0,0,.06); border:none; border-radius:5px;
    width:26px; height:26px; font-size:13px; cursor:pointer;
    display:flex; align-items:center; justify-content:center;
    color:#64748b; transition:background .15s, color .15s; align-self:flex-start; margin-top:1px;
}
.tx-card-share:hover { background:rgba(0,0,0,.12); color:#1e293b; }
.tx-card-live .tx-card-share { background:rgba(255,255,255,.18); color:rgba(255,255,255,.9); }
.tx-card-live .tx-card-share:hover { background:rgba(255,255,255,.3); }

/* EN VIVO filter pills */
.tx-tipo-pill {
    padding:3px 9px; font-size:11px; border-radius:12px; border:1px solid #fecaca;
    background:#fef2f2; color:#c0392b; cursor:pointer; font-weight:600; transition:all .15s;
}
.tx-tipo-pill:hover { background:#fee2e2; }
.tx-tipo-active { background:#c0392b !important; color:#fff !important; border-color:#9b1c1c !important; }
