/* ── Contenedor ─────────────────────────────────────────────── */
.vc-wrap { max-width: 760px; margin: 0 auto; font-family: inherit; }
.vc-nombre-edicion { font-size: 1.6rem; margin-bottom: .25rem; }
.vc-descripcion { color: #555; margin-bottom: 1.5rem; }

/* ── Barra de info ──────────────────────────────────────────── */
.vc-info-bar {
    display: flex; flex-wrap: wrap; gap: 1rem;
    background: #eef2ff; border-left: 4px solid #4353ff;
    padding: .65rem 1rem; margin-bottom: 1.25rem; border-radius: 0 6px 6px 0;
    font-size: .95rem;
}
.vc-info-bar strong { font-size: 1.1rem; }

/* ── Error ──────────────────────────────────────────────────── */
.vc-error {
    background: #fff0f0; border-left: 4px solid #d00;
    padding: .65rem 1rem; margin-bottom: 1rem; border-radius: 0 6px 6px 0;
    color: #c00; font-size: .95rem;
}

/* ── Lista de canciones ─────────────────────────────────────── */
.vc-lista-canciones { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.5rem; }

/* Wrapper: fila + panel de media apilados verticalmente */
.vc-cancion-wrap { display: flex; flex-direction: column; }

/* La fila: todo en una línea horizontal */
.vc-cancion {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    transition: border-color .18s, background .18s;
}
.vc-cancion.vc-seleccionada { border-color: #4353ff; background: #f5f7ff; }

/* Panel de media abierto: quitar radio superior para pegar con la fila */
.vc-cancion-wrap .vc-cancion:has(+ .vc-media-panel:not([hidden])) {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-color: transparent;
}

/* Info: crece, se trunca */
.vc-cancion-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}
.vc-titulo-cancion {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.vc-meta { font-size: .85rem; color: #666; margin-top: .1rem; }
.vc-sep  { margin: 0 .3rem; color: #bbb; }

/* Derecha: botón media + select, siempre en línea, nunca encoge */
.vc-cancion-derecha {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-shrink: 0;
}

/* ── Select de puntuación ───────────────────────────────────── */
.vc-select {
    padding: .4rem .5rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: .95rem;
    cursor: pointer;
    min-width: 58px;
    background: #fff;
}
.vc-select--bloqueado { opacity: .45; cursor: not-allowed; pointer-events: none; background: #f5f5f5; }

/* ══════════════════════════════════════════════════════════════
   MEDIA: botón, panel embed y enlace
   ══════════════════════════════════════════════════════════════ */

/* Botón de plataforma — icono circular compacto */
.vc-btn-media {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .3rem .55rem;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    background: #fafafa;
    cursor: pointer;
    font-size: .78rem;
    font-weight: 500;
    color: #555;
    transition: background .15s, border-color .15s, color .15s;
    white-space: nowrap;
    line-height: 1;
    flex-shrink: 0;
}
.vc-btn-media:hover { background: #f0f0f0; border-color: #bbb; color: #222; }
.vc-btn-media[aria-expanded="true"] { border-color: #4353ff; background: #eef0ff; color: #4353ff; }

.vc-btn-media--youtube[aria-expanded="true"]  { border-color: #ff0000; background: #fff5f5; color: #cc0000; }
.vc-btn-media--vimeo[aria-expanded="true"]    { border-color: #1ab7ea; background: #f0f8ff; color: #0d7bbf; }
.vc-btn-media--spotify[aria-expanded="true"]  { border-color: #1db954; background: #f0fff5; color: #17943e; }

.vc-media-icon { width: 13px; height: 13px; flex-shrink: 0; }

/* En pantallas anchas mostrar la etiqueta; en estrechas solo el icono */
.vc-btn-media-label { display: inline; }

/* Panel embed — pegado bajo la fila, oculto por defecto */
.vc-media-panel {
    display: none;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
    background: #000;
}

/* Contenedor de video con altura fija máxima */
.vc-media-embed {
    position: relative;
    width: 100%;
    height: 220px;          /* altura fija: compacta pero usable */
    background: #000;
}
.vc-media-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Spotify: más compacto */
.vc-media-embed--spotify { height: 80px; }
.vc-media-embed--spotify iframe { position: static; width: 100%; height: 80px; }

/* Enlace genérico */
.vc-media-link-wrap { padding: .75rem 1rem; background: #1a1a1a; }
.vc-media-link {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .5rem 1rem; border-radius: 6px;
    background: #333; color: #eee;
    text-decoration: none; font-size: .9rem; font-weight: 500;
    transition: background .15s;
}
.vc-media-link:hover { background: #444; color: #fff; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 520px) {
    .vc-cancion { gap: .5rem; padding: .65rem .75rem; }
    .vc-btn-media-label { display: none; } /* solo icono en móvil */
    .vc-btn-media { padding: .3rem .4rem; }
    .vc-select { min-width: 52px; font-size: .9rem; }
    .vc-btn, .vc-identificacion-wrap input { max-width: 100%; }
}

/* ── Campo email / nombre ───────────────────────────────────── */
.vc-identificacion-wrap { margin-bottom: 1.25rem; }
.vc-identificacion-wrap label { display: block; font-weight: 600; margin-bottom: .35rem; }
.vc-identificacion-wrap input {
    width: 100%; max-width: 400px; box-sizing: border-box;
    padding: .55rem .75rem; border: 1px solid #ccc; border-radius: 6px; font-size: 1rem;
}
.vc-identificacion-wrap input:focus { border-color: #4353ff; outline: none; box-shadow: 0 0 0 2px rgba(67,83,255,.2); }
.vc-identificacion-wrap small { display: block; color: #888; margin-top: .3rem; font-size: .85rem; }

/* ── Botón enviar ───────────────────────────────────────────── */
.vc-btn {
    display: block; width: 100%; max-width: 400px;
    padding: .9rem 1.5rem; background: #4353ff; color: #fff;
    border: none; border-radius: 8px; font-size: 1.1rem; font-weight: 600;
    cursor: pointer; transition: background .15s;
}
.vc-btn:hover:not(:disabled) { background: #2534dd; }
.vc-btn:disabled { background: #aaa; cursor: not-allowed; }

/* ── Aviso canciones pendientes ─────────────────────────────── */
.vc-aviso-10 { margin-top: .6rem; font-size: .9rem; color: #888; text-align: center; }

/* ── Avisos genéricos ───────────────────────────────────────── */
.vc-aviso { padding: 1rem; border-radius: 6px; background: #f5f5f5; color: #555; }
.vc-aviso--cerrada { background: #fff8e1; color: #7a5800; }
.vc-aviso--llena   { background: #fce4e4; color: #8b0000; }

/* ── Confirmación ───────────────────────────────────────────── */
.vc-confirmacion { text-align: center; padding: 2rem 1rem; }
.vc-confirmacion-icon {
    font-size: 3rem; width: 72px; height: 72px; line-height: 72px;
    background: #e8f5e9; color: #2e7d32; border-radius: 50%;
    margin: 0 auto 1rem;
}
.vc-confirmacion h3 { font-size: 1.4rem; margin-bottom: 1rem; }
.vc-gracias { margin-top: 1.25rem; color: #4353ff; font-weight: 600; }
.vc-votante-nombre { font-size: 1.1rem; font-weight: 600; color: #4353ff; margin: .25rem 0 .75rem; }

/* ── Tablas de votos y resultados ───────────────────────────── */
.vc-tabla-mis-votos,
.vc-tabla-resultados { width: 100%; border-collapse: collapse; text-align: left; margin-top: .5rem; }
.vc-tabla-mis-votos th,
.vc-tabla-resultados th { background: #f5f5f5; padding: .5rem .75rem; border-bottom: 2px solid #ddd; }
.vc-tabla-mis-votos td,
.vc-tabla-resultados td { padding: .5rem .75rem; border-bottom: 1px solid #eee; }

/* ── Badge de puntuación ────────────────────────────────────── */
.vc-badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 50%;
    background: #4353ff; color: #fff; font-weight: 700; font-size: .9rem;
}
.vc-badge--12 { background: #d4a017; }
.vc-badge--10 { background: #c0392b; }
.vc-badge--8  { background: #2980b9; }
.vc-badge--7  { background: #27ae60; }

/* ── Posiciones en clasificación ────────────────────────────── */
.vc-fila-pos-1 td:first-child::before { content: "🥇 "; }
.vc-fila-pos-2 td:first-child::before { content: "🥈 "; }
.vc-fila-pos-3 td:first-child::before { content: "🥉 "; }
.vc-total-votantes { color: #666; font-size: .9rem; margin: 0 0 .5rem; }
