:root {
    --bg-primary: #121214;
    --bg-secondary: #1a1a1e;
    --accent: #0076ff;
    --text-main: #ffffff;
    --text-muted: #a0a0a5;
    --border: #2c2c35;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: system-ui, -apple-system, sans-serif; }
body { background: var(--bg-primary); color: var(--text-main); padding: 20px; display: flex; flex-direction: column; height: 100vh; overflow: hidden; }
header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 15px; border-bottom: 1px solid var(--border); flex-shrink: 0; }

.main-container { display: grid; grid-template-columns: 360px 1fr; gap: 20px; margin-top: 20px; flex: 1; min-height: 0; overflow: hidden; }
.panel { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 8px; padding: 15px; display: flex; flex-direction: column; gap: 15px; min-height: 0; overflow-y: auto; }
.panel-derecho { position: relative; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 8px; padding: 15px; display: flex; flex-direction: column; gap: 15px; min-height: 0; overflow: hidden; }

.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; }
h3 { font-size: 1rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }

.toggle-btn { background: none; border: none; color: var(--accent); font-size: 1.1rem; font-weight: bold; cursor: pointer; padding: 0 5px; }
.collapsible-content { display: none; flex-direction: column; gap: 8px; }
.collapsible-content.show { display: flex; }

.file-input-wrapper { 
    background: #26262b; 
    padding: 12px; 
    border-radius: 6px; 
    border: 1px solid var(--border); /* 🟢 Cambiado de 'dashed' a 'solid' */
    text-align: center; 
    cursor: pointer; 
    display: block; 
    font-size: 0.9rem; 
    color: #fff; 
    transition: border 0.2s, background 0.2s; 
}

.file-input-wrapper:hover { 
    border-color: var(--accent); 
    background: #32323a; /* Pequeño brillo al pasar el mouse */
}

.search-row { display: flex; gap: 3px; position: relative; }
input[type="text"] { flex: 1; padding: 12px; background: #26262b; border: 1px solid var(--border); border-radius: 6px; color: white; font-size: 1rem; }
input[type="text"]:focus { border-color: var(--accent); outline: none; }

.nav-menu-btn { background: #26262b; border: 1px solid var(--border); color: var(--accent); padding: 0 14px; border-radius: 6px; font-weight: bold; cursor: pointer; font-size: 1.1rem; transition: all 0.2s; display: flex; align-items: center; justify-content: center; }
.nav-menu-btn:hover { background: #32323a; border-color: var(--accent); }

.nav-dropdown { position: absolute; top: 100%; right: 0; left: 0; background: #1e1e24; border: 1px solid var(--accent); border-radius: 6px; margin-top: 5px; z-index: 2000; box-shadow: 0 8px 24px rgba(0,0,0,0.6); display: none; flex-direction: column; max-height: 320px; overflow: hidden; }
.nav-dropdown-header { background: #141416; padding: 8px 12px; font-size: 0.8rem; font-weight: bold; color: var(--text-muted); border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.nav-dropdown-back { color: var(--accent); cursor: pointer; background: none; border: none; font-weight: bold; font-size: 0.8rem; display: none; }
.nav-dropdown-list { overflow-y: auto; flex: 1; list-style: none; }
.nav-dropdown-item { padding: 10px 14px; font-size: 0.9rem; border-bottom: 1px solid #26262b; cursor: pointer; color: #fff; transition: background 0.15s; }
.nav-dropdown-item:hover { background: var(--accent); }

.slider-group { display: flex; flex-direction: column; gap: 5px; background: #141416; padding: 10px; border-radius: 6px; border: 1px solid var(--border); transition: opacity 0.2s; }
.slider-group.disabled { opacity: 0.3; pointer-events: none; }
.slider-label { font-size: 0.85rem; color: var(--text-muted); display: flex; justify-content: space-between; }
input[type="range"] { width: 100%; accent-color: var(--accent); cursor: pointer; }

.checkbox-group { display: flex; align-items: center; gap: 8px; background: #141416; padding: 10px; border-radius: 6px; border: 1px solid var(--border); font-size: 0.9rem; }
.checkbox-group input { width: 16px; height: 16px; cursor: pointer; }

.gallery-container {
    position: relative;
    min-height: 100px; /* Espacio mínimo cuando está vacía */
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    padding: 8px;
    border: none; /* Aseguramos que no haya bordes grises */
    transition: all 0.3s ease;
    
    /* Configuración para exactamente 3 imágenes horizontales */
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columnas del mismo tamaño */
    gap: 8px; /* Espaciado entre las imágenes */
    width: 100%;
    
    /* Ocultar cualquier barra de desplazamiento */
    overflow: hidden; 
}

/* Mejora visual con zoom y resplandor cuando pasas archivos por encima */
.gallery-container.drag-over {
    border-color: var(--accent);
    background: rgba(0, 118, 255, 0.1);
    transform: scale(1.02); 
    box-shadow: 0 0 15px rgba(0, 118, 255, 0.2);
}

/* Cartel superpuesto elegante sobre la galería */
.gallery-container.drag-over::after {
    content: "📥 Suelta tus imágenes aquí";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(26, 26, 30, 0.85); /* Fondo oscuro semitransparente */
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: bold;
    z-index: 10;
    border-radius: 4px;
    pointer-events: none; /* CRUCIAL: evita que el texto bloquee el evento de soltar */
    animation: pulseFade 1.5s infinite alternate;
}

/* Animación de latido suave para el cartel */
@keyframes pulseFade {
    from { opacity: 0.8; }
    to { opacity: 1; }
}

.thumb-bg {
    width: 100%;
    aspect-ratio: 16 / 9; /* Mantiene proporción de pantalla panorámica */
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    
}

.thumb-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Recorta la imagen para llenar la caja sin deformarla */
}

.thumb-bg:hover { 
    border-color: #555; 
}

.thumb-bg.active { 
    border-color: var(--accent); 
    box-shadow: 0 0 8px var(--accent); 
}



#customContextMenu { position: absolute; display: none; background: #26262b; border: 1px solid var(--border); border-radius: 4px; box-shadow: 0 4px 12px rgba(0,0,0,0.5); z-index: 1000; padding: 5px 0; }
#customContextMenu div { padding: 8px 15px; font-size: 0.9rem; color: #ff6b6b; cursor: pointer; font-weight: bold; }
#customContextMenu div:hover { background: #3a2222; }

.results-list { flex: 1; overflow-y: auto; border: 1px solid var(--border); background: #141416; border-radius: 6px; position: relative; max-height: calc(100vh - 220px); -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.verse-item { padding: 12px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background 0.2s; scroll-margin: 15px; }
.verse-item:hover { background: #26262b; }
.verse-item.active { border-left: 4px solid var(--accent); background: #1d2736; }
.verse-item strong {color: #a0a0a5 !important }
.song-line-item { padding: 12px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background 0.2s, background-color 0.3s ease; display: flex; gap: 10px; }
.song-line-item:hover { background: #26262b; }
.song-line-item.active { background-color: #1a365d; border-left: 4px solid var(--accent); }
.song-line-num { font-weight: bold; color: var(--accent); min-width: 25px; }

.btn { padding: 10px 15px; border: none; border-radius: 6px; font-weight: bold; cursor: pointer; background: var(--accent); color: white; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 0.9rem; transition: all 0.2s ease-in-out; }
.btn:hover { opacity: 0.9; }
.btn-danger { background: #e53935; }
.btn-secondary { background: #4e4e5a; }
.btn-nav { background: #2e3846; border: 1px solid #414f62; font-size: 1.1rem; }
.btn-nav:hover { background: #394658; }
.controls-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.controls-row .btn-nav {
    font-size: 0.75rem !important;  /* Tamaño pequeño */
    padding: 6px 10px;              /* Ajuste de padding */
}
.version-label { font-size: 0.85rem; color: var(--text-muted); display: block; margin-bottom: 6px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.version-container { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 5px; }
.version-btn { background: #26262b; border: 1px solid var(--border); color: var(--text-muted); padding: 6px 2px; border-radius: 5px; font-size: 0.74rem; font-weight: bold; cursor: pointer; transition: all 0.15s ease-in-out; flex: 1 1 calc(25% - 6px); text-align: center; }
.version-btn:hover { border-color: var(--accent); color: #fff; }
.version-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 0 8px rgba(0, 118, 255, 0.4); }

.connected-btn { background-color: #1c3a27 !important; color: #6bff84 !important; border: 1px solid #1c3a27 !important; }

/* NUEVOS ESTILOS */
.mode-switcher { display: flex; gap: 5px; background: #141416; padding: 5px; border-radius: 8px; border: 1px solid var(--border); margin-bottom: 10px; }
.mode-btn { flex: 1; padding: 8px; border: none; background: transparent; color: var(--text-muted); font-weight: bold; border-radius: 6px; cursor: pointer; transition: all 0.2s; }
.mode-btn:hover { color: #fff; background: #26262b; }
.mode-btn.active { background: var(--accent); color: #fff; }

.song-results-panel { background: #141416; border: 1px solid var(--border); border-radius: 6px; margin-top: 5px; max-height: 160px; overflow-y: auto; display: none; }
.song-search-count { font-size: 0.75rem; color: var(--text-muted); padding: 4px 8px; border-bottom: 1px solid #26262b; background: #1a1a1e; }
.song-search-list { list-style: none; }
.song-result-item { padding: 8px; border-bottom: 1px solid #26262b; cursor: pointer; font-size: 0.85rem; display: flex; align-items: center; gap: 8px; }
.song-result-item:hover { background: #26262b; }
.song-title-highlight { font-weight: bold; color: var(--text-main); }
.song-interpreter { color: var(--text-muted); font-size: 0.75rem; }

.repertorio-mini-panel { display: flex; justify-content: space-between; align-items: center; background: #1a2436; border: 1px solid #2d436a; padding: 8px; border-radius: 6px; margin-top: 5px; font-size: 0.85rem; }

/* Modal Styles */
.modal { display: none; position: fixed; z-index: 3000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.7); align-items: center; justify-content: center; backdrop-filter: blur(4px); }
.modal-content { background-color: var(--bg-secondary); border: 1px solid var(--border); border-radius: 10px; padding: 25px; width: 400px; max-width: 90%; position: relative; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.close-modal { color: var(--text-muted); float: right; font-size: 28px; font-weight: bold; cursor: pointer; line-height: 1; }
.close-modal:hover { color: #fff; }

/* Íconos Multimedia (Según tus requerimientos) */
.icon { width:16px; height:16px; vertical-align:-3px; stroke:currentColor; fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.media-btn { display:inline-flex; align-items:center; justify-content:center; width:22px; height:22px; border-radius:6px; color:#fff; margin-right:3px; text-decoration:none; transition: opacity 0.2s; }
.media-btn:hover { opacity: 0.8; }
.icon-video{ background:#dc2626; }
.icon-karaoke{ background:#ea580c; }
.icon-mp3{ background:#0f766e; }
.icon-inst{ background:#0284c7; }
.icon-voces{ background:#334155; }
.icon-estudio{ background:#7c3aed; }

/* --- Estilos para el Modo Notas --- */
.note-item { padding: 12px 14px; border-bottom: 1px solid #26262b; cursor: grab; display: flex; align-items: center; transition: background 0.2s; color: white; }
.note-item:active { cursor: grabbing; }
.note-item:hover { background: rgba(0, 118, 255, 0.1); }
.note-item.active { background: var(--accent); font-weight: bold; }

.note-field-group { background: #1a1a1e; padding: 10px; border-radius: 6px; border: 1px solid var(--border); }
.align-controls { display: flex; gap: 2px; }
.align-btn { background: #26262b; border: 1px solid var(--border); color: var(--text-muted); padding: 2px 8px; font-size: 0.75rem; cursor: pointer; }
.align-btn:first-child { border-radius: 4px 0 0 4px; }
.align-btn:last-child { border-radius: 0 4px 4px 0; }
.align-btn:hover { background: #32323a; }
.align-btn.active { background: var(--accent); color: white; border-color: var(--accent); }

/* ===== RESPONSIVE PARA MÓVILES ===== */
@media screen and (max-width: 768px) {
  /* Reducir márgenes del body */
  body {
    padding: 5px !important;
  }

  /* Cambiar el grid principal a una sola columna */
  .main-container {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  /* Ajustar padding de los paneles */
  .panel, .panel-derecho {
    padding: 10px !important;
    border-radius: 6px !important;
  }

  /* Ocultar o reducir elementos que ocupan espacio */
  header h2 {
    font-size: 1.1rem !important;
  }
  header .btn {
    font-size: 0.75rem !important;
    padding: 6px 10px !important;
  }

  /* Modo de pestañas más compacto */
  .mode-switcher button {
    font-size: 0.7rem !important;
    padding: 4px 6px !important;
  }

  /* Buscadores */
  input[type="text"] {
    font-size: 0.9rem !important;
    padding: 8px !important;
  }

  /* Lista de resultados */
  .results-list {
    max-height: 45vh !important;
  }

  .verse-item, .song-line-item {
    padding: 8px !important;
    font-size: 0.85rem !important;
  }

  /* Galería de fondos: 2 columnas en lugar de 3 */
  .gallery-container {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
    min-height: 70px !important;
  }

  /* Botones de navegación */
  .controls-row {
    grid-template-columns: 1fr 1fr !important;
    gap: 5px !important;
  }
  .controls-row .btn-nav {
    font-size: 0.7rem !important;
    padding: 4px 6px !important;
  }

  /* Editor de notas */
  #noteEditorContainer {
    gap: 6px !important;
  }
  .note-field-group {
    padding: 6px !important;
  }
  #txtNoteContent {
    min-height: 80px !important;
  }
  .align-btn {
    padding: 2px 6px !important;
    font-size: 0.65rem !important;
  }

  /* Selector de columnas */
  #selNoteColumns {
    font-size: 0.7rem !important;
  }

  /* Ocultar el hint de pantalla completa en proyección (ya está oculto tras 4s) */
  /* no es necesario */
}

/* Para pantallas muy pequeñas (menos de 480px) */
@media screen and (max-width: 480px) {
  body {
    padding: 3px !important;
  }
  .panel, .panel-derecho {
    padding: 6px !important;
  }
  .version-btn {
    font-size: 0.6rem !important;
    padding: 4px 2px !important;
    flex: 1 1 calc(33% - 4px) !important;
  }
  .gallery-container {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 4px !important;
  }
  .thumb-bg {
    aspect-ratio: 4/3 !important; /* más cuadrado para móvil */
  }
  /* Ajustar el modal */
  .modal-content {
    width: 95% !important;
    padding: 15px !important;
  }
}

/* --- TOASTS CUSTOM (Reemplazo de Alerts) --- */
#toast-container {
    position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; gap: 10px; z-index: 9999;
    pointer-events: none;
}
.toast {
    background: #2c2c35; color: #fff; border-left: 4px solid var(--accent);
    padding: 12px 20px; border-radius: 6px; font-weight: 500;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    animation: slideUp 0.3s ease-out, fadeOut 0.5s ease-out 2.5s forwards;
}
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeOut { to { opacity: 0; visibility: hidden; } }

/* --- RESPONSIVIDAD (Celulares) --- */
@media screen and (max-width: 768px) {
    body { padding: 10px; }
    .main-container { grid-template-columns: 1fr; display: flex; flex-direction: column; height: auto; overflow-y: auto;}
    .panel { min-height: 400px; }
    .header-actions { flex-direction: column; width: 100%; }
    .search-bar-wrapper { flex-direction: column; }
}

/* --- CONTROLES DE ALINEACIÓN Y BUSCADOR --- */
.align-group { display: flex; gap: 5px; margin: 5px 0; justify-content: center; background: #1a1a1e; padding: 5px; border-radius: 6px; }
.align-btn { background: transparent; border: 1px solid var(--border); color: var(--text-muted); padding: 5px 10px; border-radius: 4px; cursor: pointer; transition: 0.2s; }
.align-btn.active { background: var(--accent); color: white; border-color: var(--accent); }
.search-bar-wrapper { display: flex; gap: 8px; align-items: center; width: 100%; }
.input-internal-btns { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); display: flex; gap: 4px; }
.icon-btn { background: none; border: none; font-size: 1.1rem; cursor: pointer; opacity: 0.7; transition: 0.2s; }
.icon-btn:hover { opacity: 1; transform: scale(1.1); }
#btnLimpiarBuscar { color: #ff6b6b; font-weight: bold; font-size: 1.2rem; }

/* =========================================================
   ADAPTACIONES EXCLUSIVAS PARA MÓVILES (CELULARES)
   ========================================================= */
@media screen and (max-width: 768px) {
    
    /* 1. PERMITIR SCROLL EN LAS CITAS Y RESULTADOS */
    /* Ajusta los paneles para que crezcan según su contenido y permitan hacer scroll */
    body, html {
        overflow-y: auto !important;
        height: auto !important;
    }

    .right-panel, 
    #resultsContainer,
    #songResultsContainer,
    .main-container {
        overflow-y: auto !important;
        height: auto !important;
        max-height: none !important;
    }

    /* 2. OCULTAR LA GALERÍA DE FONDOS */
    /* Dependiendo de cómo se llame el contenedor de tus fondos en tu index.html, 
       quizás necesites ajustar este ID. Los nombres más comunes son estos: */
    .seccion-galeria,.iconos-mb, .btn-text-proy, .controles-proyeccion, #btnPegarBuscar, #btnCopiarBuscar {
        display: none !important;
    }
    #btnOpenProjection {
        width: auto;
        padding: 8px 12px; /* Ajusta el espaciado según veas conveniente */
    }
    html, body {
    font-size: 19px !important; /* El estándar es 16px, cámbialo al gusto (18px, 19px, 20px) */
  }
  .verse-item {
    font-size: 24px !important; /* El estándar es 16px, cámbialo al gusto (18px, 19px, 20px) */
  }
}

#txtSmartSearch { padding-right: 45px !important; }

/* =========================================================
   SISTEMA DE CUADRÍCULA (GRID RESOLUME) PARA CANCIONES
   ========================================================= */

/* CORRECCIÓN CRUCIAL: El !important destruye el inline 'style="display: block"' de JavaScript */
#songResultsContainer.song-grid-mode {
    display: grid !important;
    gap: 12px !important;
    padding: 10px;
    width: 100%;
    align-content: start;
    grid-auto-flow:row;
grid-auto-rows:max-content;
align-items:start;
}

/* Forzar la división en columnas usando !important */
#songResultsContainer.song-grid-mode.cols-2 { grid-template-columns: repeat(2, 1fr) !important; }
#songResultsContainer.song-grid-mode.cols-3 { grid-template-columns: repeat(3, 1fr) !important; }
#songResultsContainer.song-grid-mode.cols-4 { grid-template-columns: repeat(4, 1fr) !important; }
#songResultsContainer.song-grid-mode.cols-5 { grid-template-columns: repeat(5, 1fr) !important; }

/* Forzar salto de línea al iniciar una sección nueva en la cuadrícula */
#songResultsContainer.song-grid-mode .song-line-item.section-start {
    grid-column-start: 1 !important;
}

/* Diseño base de las diapositivas de la cuadrícula */
#songResultsContainer.song-grid-mode .song-line-item {
    position: relative;
    display: flex !important;
    align-items: center;
    justify-content: center;
    text-align: center;
    
    aspect-ratio: 16 / 9;
    padding: 20px;
    box-sizing: border-box;
    overflow: hidden;
    
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.6), 0 4px 6px rgba(0, 0, 0, 0.3);
    container-type: inline-size;
}

/* Texto interno de la celda */
#songResultsContainer.song-grid-mode .song-line-item .line-text-content {
    width: 100%;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal; 
    line-height: 1.2;
    font-size: clamp(12px, 8.5cqi, 120px);
}

/* =========================================================
   SOLUCIÓN DE EXCLUSIONES Y NÚMEROS (AZUL)
   ========================================================= */

/* 1. MODO LISTA CLÁSICA */
#songResultsContainer:not(.song-grid-mode) .song-line-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    padding: 6px 0;
}

/* Número en la lista clásica */
#songResultsContainer:not(.song-grid-mode) .song-line-num {
    font-size: 1rem !important; 
    font-weight: bold;
    color: #0076ff !important; /* Azul clásico */
    min-width: 25px;

}

/* 2. MODO CUADRÍCULA (PANTALLAS) - NÚMERO AZUL */
#songResultsContainer.song-grid-mode .song-line-item .song-line-num {
    position: absolute !important;
    bottom: 8px !important;  /* Esquina inferior izquierda */
    left: 10px !important;   
    font-size: 13px !important; 
    font-weight: bold !important;
    color: #0076ff !important; /* ¡CAMBIADO A AZUL COMO EN LA VISTA CLÁSICA! */
    background: transparent !important;
    z-index: 10;
}

/* 3. OCULTAR SALTOS DE SECCIÓN COMPLETAMENTE EN AMBAS VISTAS */
/* Hace desaparecer [coro], [intro], etc., tanto en lista clásica como en cuadrícula */
#songResultsContainer .section-break-item {
    display: none !important;
}

/* =========================================================
   PALETA DE COLORES PARA LAS DIAPOSITIVAS
   ========================================================= */
/* =========================================================
   PALETA DE COLORES PREMIUM (GRADIENTES ULTRA OSCUROS)
   ========================================================= */

/* 0. Azul Grisáceo Profundo */
#songResultsContainer .sec-color-0 { 
    background: linear-gradient(135deg, #131b26 0%, #080d14 100%) !important; 
} 

/* 1. Verde Esmeralda Abisal */
#songResultsContainer .sec-color-1 { 
    background: linear-gradient(135deg, #0b2e18 0%, #03140a 100%) !important; 
} 

/* 2. Púrpura Nocturno */
#songResultsContainer .sec-color-2 { 
    background: linear-gradient(135deg, #33104e 0%, #140422 100%) !important; 
} 

/* 3. Ladrillo / Óxido Quemado */
#songResultsContainer .sec-color-3 { 
    background: linear-gradient(135deg, #4c1a0a 0%, #1f0802 100%) !important; 
} 

/* 4. Azul Marino del Espacio */
#songResultsContainer .sec-color-4 { 
    background: linear-gradient(135deg, #110e30 0%, #050414 100%) !important; 
} 

/* 5. Azul Océano Opaco */
#songResultsContainer .sec-color-5 { 
    background: linear-gradient(135deg, #022a47 0%, #00111f 100%) !important; 
} 

/* 6. Violeta de Alta Densidad */
#songResultsContainer .sec-color-6 { 
    background: linear-gradient(135deg, #2b1057 0%, #110426 100%) !important; 
}

/* =========================================================
   FORZAR BORDE Y RESPLANDOR ULTRA-DESTACADO EN LA ACTIVA
   ========================================================= */

/* 1. Corrección total para Modo Cuadrícula (Grid) y Modo Lista */
#songResultsContainer .song-line-item.active {
    border: 3px solid #0076ff !important; /* Forzar el borde grueso azul */
    
    /* Combinamos tu sombra negra interior original para que no se rompa el diseño, 
       pero añadimos el resplandor exterior brillante azul al final (, 0 0 20px...) */
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 118, 255, 1) !important;
    
    overflow: visible !important; /* Permitir que el resplandor salga de la diapositiva */
    z-index: 99 !important;       /* Posicionar por encima de las celdas de los lados */
    
    transform: scale(1.02);       /* Un pequeño toque de crecimiento para que resalte visualmente */
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

/* 2. En caso de que uses el Modo Lista Clásica (Evitamos que se deforme con el scale) */
#songResultsContainer:not(.song-grid-mode) .song-line-item.active {
    transform: none !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    background-color: rgba(0, 118, 255, 0.15) !important; /* Sutil fondo azul en modo lista */
}
