/* ================================================================
   ENVIVO.CSS — Estilos exclusivos de la página En vivo
   No modifica ni depende de valores internos de index.css,
   solo reutiliza sus variables CSS (:root) y clases de layout
   (.app-shell, .sidebar, .main-content, .player-card, etc.)
   ================================================================ */

/* ── HERO EN VIVO ──────────────────────────────────────────────── */
.ev-hero {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 28px;
    align-items: start;
    margin-bottom: 32px;
    background: url(../IMG/fondo123.png);
    background-size: cover;
}

.ev-hero-left{
    margin-left: 9em;
    margin-top: 2em;
}

.ev-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background-color: var(--rojo);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    padding: 5px 14px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.ev-live-badge i {
    font-size: 0.55rem;
    animation: pulseDot 1.4s infinite;
}

.ev-hero-title {
    font-family: var(--font-display);
    font-size: 3rem;
    line-height: 1.05;
    color: var(--negro);
    text-transform: uppercase;
    margin-bottom: 16px;
}

.ev-hero-accent {
    color: var(--rojo);
}

.ev-hero-sub {
    font-size: 0.97rem;
    color: var(--gris-texto);
    line-height: 1.6;
    max-width: 440px;
    margin-bottom: 24px;
}

.ev-hero-btns {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* El reproductor en el hero: misma tarjeta del index */
.ev-player-card {
    grid-column: 2;
}

/* ── GRID PRINCIPAL 3 COLUMNAS ──────────────────────────────────── */
.ev-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr;
    gap: 22px;
    align-items: start;
}

.ev-col {
    background-color: #fff;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* ── CABECERAS DE PANEL ─────────────────────────────────────────── */
.ev-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.ev-panel-header h2 {
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--negro);
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
}

.ev-icon {
    color: var(--rojo);
}

.ev-panel-link {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--rojo);
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

/* ── TARJETA AHORA SONANDO ──────────────────────────────────────── */
.ev-now-card {
    border-radius: 14px;
    overflow: hidden;
    background-color: var(--negro);
}

.ev-now-cover {
    width: 100%;
    aspect-ratio: 16/9;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--negro), #3a0000);
}

.ev-now-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.85;
    transition: opacity 0.4s;
}

.ev-now-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
}

.ev-now-live-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background-color: var(--rojo);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.ev-now-live-tag i {
    font-size: 0.5rem;
    animation: pulseDot 1.4s infinite;
}

.ev-now-info {
    padding: 14px 16px;
}

.ev-now-label {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--dorado);
    margin-bottom: 4px;
    text-transform: uppercase;
}

.ev-now-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 3px;
}

.ev-now-artist {
    font-size: 0.8rem;
    color: #bbb;
}

/* ── HISTORIAL ──────────────────────────────────────────────────── */
.ev-history-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
}

.ev-history-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ev-history-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 8px;
    border-radius: 10px;
    transition: background-color 0.2s;
}

.ev-history-item:hover {
    background-color: #f7f7f7;
}

.ev-history-thumb {
    width: 38px;
    height: 38px;
    border-radius: 7px;
    object-fit: cover;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--negro), #3a3a3a);
}

.ev-history-text {
    flex-grow: 1;
    min-width: 0;
}

.ev-history-song {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--negro);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ev-history-meta {
    font-size: 0.7rem;
    color: #aaa;
}

.ev-history-skeleton {
    height: 46px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
    border-radius: 10px;
}

@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── BANNER COMPARTIR ───────────────────────────────────────────── */
.ev-share-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, var(--negro) 0%, var(--rojo-oscuro) 130%);
    border-radius: 14px;
    padding: 18px;
    color: #fff;
    flex-wrap: wrap;
}

.ev-share-banner > i {
    font-size: 1.5rem;
    color: var(--dorado);
    flex-shrink: 0;
}

.ev-share-title {
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.ev-share-sub {
    font-size: 0.76rem;
    color: #ccc;
    line-height: 1.35;
}

.ev-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #fff;
    color: var(--negro);
    border: none;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    margin-left: auto;
    transition: transform 0.2s, background-color 0.2s;
}

.ev-share-btn:hover {
    transform: translateY(-2px);
    background-color: var(--dorado);
}

/* ── PROGRAMACIÓN ───────────────────────────────────────────────── */
.ev-schedule-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ev-schedule-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 10px;
    border-radius: 12px;
    transition: background-color 0.2s;
    position: relative;
}

.ev-schedule-item:hover {
    background-color: #f8f8f8;
}

.ev-schedule-active {
    background-color: #fff5f5;
    border-left: 3px solid var(--rojo);
    padding-left: 8px;
}

.ev-sched-thumb {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    flex-shrink: 0;
    overflow: hidden;
    background: linear-gradient(135deg, var(--negro), #333);
}

.ev-sched-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ev-sched-thumb-1 { background: linear-gradient(135deg, var(--rojo), var(--rojo-oscuro)); }
.ev-sched-thumb-2 { background: linear-gradient(135deg, var(--negro), #2a2a2a); }
.ev-sched-thumb-3 { background: linear-gradient(135deg, #ff8a00, var(--rojo)); }
.ev-sched-thumb-4 { background: linear-gradient(135deg, var(--azul), #1a6fa8); }

.ev-sched-info {
    flex-grow: 1;
    min-width: 0;
}

.ev-sched-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--negro);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ev-sched-desc {
    font-size: 0.74rem;
    color: #888;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ev-sched-time {
    font-size: 0.7rem;
    color: var(--rojo);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ev-sched-badge {
    font-size: 0.6rem;
    font-weight: 800;
    padding: 3px 7px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.ev-badge-live {
    background-color: #fff;
    color: var(--rojo);
    border: 1px solid var(--rojo);
}

.ev-sched-mic {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background-color: var(--rojo);
    color: #fff;
    font-size: 0.75rem;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, background-color 0.2s;
}

.ev-sched-mic:hover {
    transform: scale(1.1);
    background-color: var(--rojo-oscuro);
}

.ev-sched-mic-inactive {
    background-color: #e0e0e0;
    color: #888;
}

.ev-sched-mic-inactive:hover {
    background-color: #ccc;
    color: #555;
}

/* ── CHAT ───────────────────────────────────────────────────────── */
.ev-chat-messages {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 360px;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: #eee transparent;
}

.ev-chat-messages::-webkit-scrollbar {
    width: 4px;
}

.ev-chat-messages::-webkit-scrollbar-thumb {
    background-color: #ddd;
    border-radius: 4px;
}

.ev-msg {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.ev-msg-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
    color: #fff;
}

.ev-avatar-a { background: linear-gradient(135deg, var(--rojo), #ff8a00); }
.ev-avatar-b { background: linear-gradient(135deg, var(--azul), #1a6fa8); }
.ev-avatar-c { background: linear-gradient(135deg, var(--dorado), var(--rojo)); }
.ev-avatar-d { background: linear-gradient(135deg, var(--negro), #3a3a3a); }
.ev-avatar-e { background: linear-gradient(135deg, #00b894, #00cec9); }

.ev-msg-body {
    flex-grow: 1;
    background-color: #f8f8f8;
    border-radius: 4px 12px 12px 12px;
    padding: 9px 12px;
}

.ev-msg.ev-msg-own .ev-msg-body {
    background-color: #fff0f0;
    border-radius: 12px 4px 12px 12px;
    border-left: 2px solid var(--rojo);
}

.ev-msg-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 3px;
}

.ev-msg-name {
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--negro);
}

.ev-msg-time {
    font-size: 0.66rem;
    color: #bbb;
}

.ev-msg-text {
    font-size: 0.82rem;
    color: #444;
    line-height: 1.4;
}

/* Input del chat */
.ev-chat-input-wrap {
    display: flex;
    gap: 8px;
    align-items: center;
    border-top: 1px solid #f0f0f0;
    padding-top: 12px;
}

.ev-chat-input {
    flex-grow: 1;
    border: 1.5px solid #eee;
    border-radius: 999px;
    padding: 10px 16px;
    font-family: var(--font-body);
    font-size: 0.84rem;
    color: var(--negro);
    outline: none;
    transition: border-color 0.2s;
    background-color: #fafafa;
}

.ev-chat-input:focus {
    border-color: var(--rojo);
    background-color: #fff;
}

.ev-chat-send {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background-color: var(--rojo);
    color: #fff;
    font-size: 0.85rem;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, background-color 0.2s;
}

.ev-chat-send:hover {
    transform: scale(1.1);
    background-color: var(--rojo-oscuro);
}

.ev-chat-note {
    font-size: 0.68rem;
    color: #bbb;
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
    gap: 5px;
}

.ev-chat-note i {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--dorado);
}

/* ── RESPONSIVE ─────────────────────────────────────────────────── */
@media (max-width: 1200px) {
    .ev-grid {
        grid-template-columns: 1fr 1fr;
    }
    .ev-col-chat {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    .ev-hero {
        grid-template-columns: 1fr;
    }
    .ev-player-card {
        grid-column: 1;
    }
    .ev-grid {
        grid-template-columns: 1fr;
    }
    .ev-col-chat {
        grid-column: 1;
    }
    .ev-hero-title {
        font-size: 2.2rem;
    }
    .ev-chat-messages {
        max-height: 260px;
    }
}

@media (max-width: 600px) {
    .ev-share-banner {
        flex-direction: column;
        align-items: flex-start;
    }
    .ev-share-btn {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }
}

.ev-chat-name-wrap {
    margin-top: 12px;
    margin-bottom: 8px;
}

.ev-chat-name-wrap .ev-chat-input {
    width: 100%;
}