/* ============================================
   MÓDULO DE MÚSICA - LAYOUT 2 COLUMNAS
   ============================================ */

/* Wrapper principal */
.musica-wrapper {
    width: 100%;
    max-width: 100%;
    padding: 1.5rem 2rem;
    box-sizing: border-box;
}

/* Header superior */
.musica-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color, #00f5ff);
}

.musica-header-top h2 {
    font-size: 2rem;
    color: var(--text-primary, #fff);
    margin: 0;
}

/* ============================================
   GRID DE 2 COLUMNAS
   ============================================ */

.musica-layout-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 1.5rem;
    height: calc(100vh - 160px);
    min-height: 650px;
}

/* ============================================
   COLUMNA IZQUIERDA - COLA (350px)
   ============================================ */

.musica-sidebar-cola {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow: hidden;
}

/* Card de cola */
.cola-card {
    background: var(--card-bg, #1e1e2e);
    border-radius: 12px;
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

.cola-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color, #333);
}

.cola-card-header h3 {
    font-size: 1rem;
    color: var(--text-primary, #fff);
    margin: 0;
}

.btn-icon-small {
    background: transparent;
    border: 1px solid var(--border-color, #333);
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.btn-icon-small:hover {
    background: var(--hover-bg, #2a2a3e);
    border-color: var(--primary-color, #00f5ff);
}

/* Lista de cola */
.cola-lista {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.5rem;
}

.cola-vacia {
    text-align: center;
    color: var(--text-muted, #888);
    padding: 2rem 1rem;
    margin: 0;
}

/* Items de cola - LAYOUT REDISEÑADO */
.musica-cola-item {
    background: var(--dark-bg, #16161e);
    border-radius: 8px;
    border-left: 3px solid transparent;
    padding: 0.6rem;
    margin-bottom: 0.5rem;
    transition: all 0.2s;
}

.musica-cola-item.reproduciendo {
    border-left-color: var(--primary-color, #00f5ff);
    background: rgba(0, 245, 255, 0.05);
}

.musica-cola-item:hover {
    background: var(--hover-bg, #2a2a3e);
}

/* Header: Imagen + Botón en misma fila */
.musica-cola-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

/* Thumbnail 60x34 */
.musica-cola-item-thumb {
    width: 60px;
    height: 34px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

/* Botones a la derecha */
.musica-cola-item-acciones {
    display: flex;
    gap: 0.25rem;
    flex-shrink: 0;
}

.btn-cola {
    padding: 0.3rem 0.4rem;
    background: transparent;
    border: 1px solid var(--border-color, #333);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.2s;
    min-width: 28px;
    text-align: center;
}

.btn-cola:hover {
    background: var(--hover-bg, #2a2a3e);
    border-color: var(--primary-color, #00f5ff);
    transform: scale(1.05);
}

.btn-cola.btn-reproducir {
    color: var(--primary-color, #00f5ff);
}

.btn-cola.btn-playlist {
    color: #ffa500;
}

.btn-cola.btn-eliminar {
    color: #ff5555;
}

/* Info: Título completo abajo */
.musica-cola-item-info {
    width: 100%;
}

/* Título hasta 3 LÍNEAS */
.musica-cola-item-titulo {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary, #fff);
    margin-bottom: 0.35rem;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* Duración */
.musica-cola-item-duracion {
    font-size: 0.75rem;
    color: var(--text-muted, #888);
}

.musica-cola-item.reproduciendo {
    border-left-color: var(--primary-color, #00f5ff);
    background: rgba(0, 245, 255, 0.05);
}

.musica-cola-item:hover {
    background: var(--hover-bg, #2a2a3e);
}

/* Thumbnail MÁS PEQUEÑA 50x28 */
.musica-cola-item-thumb {
    width: 50px;
    height: 28px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.musica-cola-item-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

/* Título en 2 LÍNEAS */
.musica-cola-item-titulo {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary, #fff);
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.3;
    max-height: 2.6em;
}

.musica-cola-item-duracion {
    font-size: 0.75rem;
    color: var(--text-muted, #888);
}

.musica-cola-item-acciones {
    display: flex;
    gap: 0.3rem;
    flex-shrink: 0;
    align-self: flex-start;
}

.musica-cola-item-duracion {
    font-size: 0.75rem;
    color: var(--text-muted, #888);
}

.musica-cola-item-acciones {
    display: flex;
    gap: 0.3rem;
    flex-shrink: 0;
}

.btn-cola {
    padding: 0.3rem 0.5rem;
    background: transparent;
    border: 1px solid var(--border-color, #333);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.btn-cola:hover {
    background: var(--hover-bg, #2a2a3e);
    border-color: var(--primary-color, #00f5ff);
}

/* Now playing card */
.now-playing-card {
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.1), rgba(138, 43, 226, 0.1));
    border: 2px solid var(--primary-color, #00f5ff);
    border-radius: 12px;
    padding: 0.75rem;
}

.now-playing-label {
    font-size: 0.75rem;
    color: var(--text-muted, #888);
    margin-bottom: 0.5rem;
}

.now-playing-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.now-playing-thumb {
    width: 60px;
    height: 34px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.now-playing-text {
    flex: 1;
    min-width: 0;
}

.now-playing-titulo {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-color, #00f5ff);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Controles card */
.controles-card {
    background: var(--card-bg, #1e1e2e);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.controles-botones {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.btn-ctrl {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--dark-bg, #16161e);
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-ctrl-main {
    width: 48px;
    height: 48px;
    background: var(--primary-color, #00f5ff);
    color: #000;
    font-size: 1.4rem;
}

.btn-ctrl:hover {
    transform: scale(1.1);
}

.btn-ctrl-main:hover {
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.5);
}

.controles-volumen {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vol-icon {
    font-size: 1rem;
}

.vol-slider {
    flex: 1;
    height: 4px;
    background: var(--border-color, #333);
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
}

.vol-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: var(--primary-color, #00f5ff);
    border-radius: 50%;
    cursor: pointer;
}

.vol-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: var(--primary-color, #00f5ff);
    border-radius: 50%;
    border: none;
    cursor: pointer;
}

.vol-valor {
    font-size: 0.85rem;
    color: var(--text-muted, #888);
    min-width: 35px;
    text-align: right;
}

/* ============================================
   COLUMNA DERECHA - BÚSQUEDA Y RESULTADOS
   ============================================ */

.musica-main-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow: hidden;
    min-height: 0;
}

/* Barra de búsqueda */
.search-bar {
    display: flex;
    gap: 1rem;
    position: relative;
}

.search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: var(--card-bg, #1e1e2e);
    border: 1px solid var(--border-color, #333);
    border-radius: 8px;
    color: var(--text-primary, #fff);
    font-size: 1rem;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color, #00f5ff);
}

/* Barra URL */
.url-bar {
    display: flex;
    gap: 1rem;
}

.url-input {
    flex: 1;
    padding: 0.65rem 1rem;
    background: var(--card-bg, #1e1e2e);
    border: 1px solid var(--border-color, #333);
    border-radius: 8px;
    color: var(--text-primary, #fff);
    font-size: 0.95rem;
}

.url-input:focus {
    outline: none;
    border-color: var(--primary-color, #00f5ff);
}

/* Container de resultados */
.resultados-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    background: var(--card-bg, #1e1e2e);
    border-radius: 12px;
    padding: 1rem;
}

/* Items de resultados */
.musica-resultado-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    background: var(--dark-bg, #16161e);
    border-radius: 8px;
    transition: all 0.2s;
}

.musica-resultado-item:hover {
    background: var(--hover-bg, #2a2a3e);
    transform: translateX(4px);
}

/* Thumbnail de resultados - TAMAÑO ESPECÍFICO 120x68 */
.musica-resultado-thumb {
    width: 120px;
    height: 68px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.musica-resultado-info {
    flex: 1;
    min-width: 0;
}

.musica-resultado-titulo {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary, #fff);
    margin-bottom: 0.3rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.musica-resultado-meta {
    font-size: 0.85rem;
    color: var(--text-muted, #888);
}

.musica-resultado-btn {
    padding: 0.6rem 1.2rem;
    background: var(--primary-color, #00f5ff);
    color: #000;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    white-space: nowrap;
}

.musica-resultado-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.3);
}

/* ============================================
   SUGERENCIAS (autocomplete - SIN IMÁGENES)
   ============================================ */

.sugerencias-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-bg, #1e1e2e);
    border: 1px solid var(--border-color, #333);
    border-radius: 8px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
    margin-top: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.suggestion-item {
    display: flex;
    align-items: flex-start;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid var(--border-color, #333);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: var(--hover-bg, #2a2a3e);
}

/* Info de sugerencia - SIN IMAGEN */
.suggestion-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.suggestion-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary, #fff);
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.suggestion-channel {
    font-size: 0.8rem;
    color: var(--text-muted, #888);
}

/* Ocultar thumbnail de sugerencias */
.suggestion-thumb {
    display: none !important;
}

.suggestion-loading {
    padding: 1rem;
    text-align: center;
    color: var(--text-muted, #888);
}

/* ============================================
   PLAYLISTS
   ============================================ */

.playlists-section {
    margin-top: 1.5rem;
}

.playlists-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.playlists-header h3 {
    font-size: 1.25rem;
    color: var(--text-primary, #fff);
}

.playlists-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.playlist-card {
    background: var(--card-bg, #1e1e2e);
    border-radius: 12px;
    padding: 1rem;
}

.playlist-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.playlist-nombre {
    font-weight: 600;
    color: var(--text-primary, #fff);
}

.playlist-canciones-count {
    font-size: 0.85rem;
    color: var(--text-muted, #888);
}

.playlist-card-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-cargar-playlist,
.btn-eliminar-playlist {
    padding: 0.4rem 0.8rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.btn-cargar-playlist {
    background: var(--primary-color, #00f5ff);
    color: #000;
}

.btn-cargar-playlist:hover {
    box-shadow: 0 0 15px rgba(0, 245, 255, 0.4);
}

.btn-eliminar-playlist {
    background: #ff4757;
    color: #fff;
}

.playlist-vacia {
    text-align: center;
    color: var(--text-muted, #888);
    padding: 2rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet (768px - 1199px) */
@media (max-width: 1199px) {
    .musica-layout-grid {
        grid-template-columns: 300px 1fr;
    }
}

/* Móvil (<768px) */
@media (max-width: 767px) {
    .musica-wrapper {
        padding: 1rem;
    }

    .musica-layout-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        height: auto;
    }

    .musica-sidebar-cola {
        max-height: 400px;
        order: 1;
    }

    .musica-main-content {
        min-height: 500px;
        order: 2;
    }

    .search-bar,
    .url-bar {
        flex-direction: column;
    }

    .musica-resultado-item {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .musica-resultado-thumb {
        width: 100%;
        max-width: 320px;
        height: auto;
        aspect-ratio: 16/9;
    }

    .musica-resultado-info {
        width: 100%;
    }
}

/* Scrollbar personalizado */
.cola-lista::-webkit-scrollbar,
.resultados-container::-webkit-scrollbar,
.sugerencias-dropdown::-webkit-scrollbar {
    width: 6px;
}

.cola-lista::-webkit-scrollbar-track,
.resultados-container::-webkit-scrollbar-track,
.sugerencias-dropdown::-webkit-scrollbar-track {
    background: transparent;
}

.cola-lista::-webkit-scrollbar-thumb,
.resultados-container::-webkit-scrollbar-thumb,
.sugerencias-dropdown::-webkit-scrollbar-thumb {
    background: var(--border-color, #333);
    border-radius: 3px;
}

.cola-lista::-webkit-scrollbar-thumb:hover,
.resultados-container::-webkit-scrollbar-thumb:hover,
.sugerencias-dropdown::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color, #00f5ff);
}

/* ============================================
   LOADING Y ERROR STATES
   ============================================ */

.musica-loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted, #888);
}

.musica-error {
    text-align: center;
    padding: 2rem;
    color: #ff4757;
}

.musica-empty {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted, #888);
}

/* Drag and drop */
.musica-cola-item[draggable="true"] {
    cursor: grab;
}

.musica-cola-item[draggable="true"]:active {
    cursor: grabbing;
}

.musica-cola-item.dragging {
    opacity: 0.5;
    background: rgba(0, 245, 255, 0.2);
    border: 2px dashed var(--primary-color, #00f5ff);
}

.musica-cola-item.drag-over {
    border-top: 3px solid var(--primary-color, #00f5ff);
    background: rgba(0, 245, 255, 0.1);
}

.musica-cola-item-drag-handle {
    cursor: grab;
    color: var(--text-muted, #888);
    font-size: 1.2rem;
    padding: 0.5rem;
    user-select: none;
}

.musica-cola-item-drag-handle:active {
    cursor: grabbing;
}

/* ============================================
   MODAL PLAYLIST
   ============================================ */

.modal-playlist-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-playlist-overlay.active {
    display: flex;
}

.modal-playlist-content {
    background: var(--card-bg, #1e1e2e);
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    border: 1px solid var(--primary-color, #00f5ff);
    box-shadow: 0 0 30px rgba(0, 245, 255, 0.3);
}

.modal-playlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color, #333);
}

.modal-playlist-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text-primary, #fff);
}

.modal-playlist-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted, #888);
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.2s;
}

.modal-playlist-close:hover {
    color: var(--primary-color, #00f5ff);
}

.modal-playlist-body {
    padding: 1rem;
    max-height: 400px;
    overflow-y: auto;
}

.playlist-select-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--dark-bg, #16161e);
    border: 1px solid var(--border-color, #333);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.playlist-select-item:hover {
    border-color: var(--primary-color, #00f5ff);
    background: var(--hover-bg, #2a2a3e);
    transform: translateX(4px);
}

.playlist-select-item .playlist-icon {
    font-size: 1.5rem;
}

.playlist-select-item .playlist-name {
    flex: 1;
    font-weight: 600;
    color: var(--text-primary, #fff);
}

.playlist-select-item .playlist-count {
    font-size: 0.85rem;
    color: var(--text-muted, #888);
}

/* ============================================
   PLAYLISTS DE YOUTUBE
   ============================================ */

.playlist-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.playlist-input {
    flex: 1;
    padding: 0.65rem 1rem;
    background: var(--card-bg, #1e1e2e);
    border: 1px solid var(--border-color, #333);
    border-radius: 8px;
    color: var(--text-primary, #fff);
    font-size: 0.95rem;
}

.playlist-input:focus {
    outline: none;
    border-color: var(--primary-color, #00f5ff);
}

.resultados-seccion {
    margin-bottom: 2rem;
}

.resultados-seccion-titulo {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary, #fff);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color, #333);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.musica-playlist-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.05), rgba(138, 43, 226, 0.05));
    border: 2px solid rgba(0, 245, 255, 0.2);
    border-radius: 8px;
    transition: all 0.2s;
}

.musica-playlist-item:hover {
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.1), rgba(138, 43, 226, 0.1));
    border-color: var(--primary-color, #00f5ff);
    transform: translateX(4px);
}

.musica-playlist-thumb {
    width: 120px;
    height: 68px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.musica-playlist-info {
    flex: 1;
    min-width: 0;
}

.musica-playlist-titulo {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color, #00f5ff);
    margin-bottom: 0.3rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.musica-playlist-meta {
    font-size: 0.85rem;
    color: var(--text-muted, #888);
}

.musica-playlist-count {
    font-weight: 600;
    color: var(--primary-color, #00f5ff);
}

.musica-playlist-btn {
    padding: 0.7rem 1.5rem;
    background: var(--primary-color, #00f5ff);
    color: #000;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.musica-playlist-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(0, 245, 255, 0.4);
}

.modal-importar-playlist {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-importar-content {
    background: var(--card-bg, #1e1e2e);
    border-radius: 16px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    border: 2px solid var(--primary-color, #00f5ff);
    box-shadow: 0 8px 32px rgba(0, 245, 255, 0.3);
}

.modal-importar-titulo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color, #00f5ff);
    margin-bottom: 1rem;
    text-align: center;
}

.modal-importar-mensaje {
    font-size: 1rem;
    color: var(--text-primary, #fff);
    margin-bottom: 1.5rem;
    text-align: center;
    line-height: 1.6;
}

.modal-importar-acciones {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.modal-importar-acciones button {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cancelar {
    background: var(--dark-bg, #16161e);
    color: var(--text-primary, #fff);
    border: 1px solid var(--border-color, #333);
}

.btn-cancelar:hover {
    background: var(--hover-bg, #2a2a3e);
}

.btn-importar {
    background: var(--primary-color, #00f5ff);
    color: #000;
}

.btn-importar:hover {
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.5);
    transform: scale(1.05);
}

/* ===== VER CANCIONES DE PLAYLIST ===== */

.playlist-clickable {
    cursor: pointer;
    transition: color 0.2s;
}

.playlist-clickable:hover {
    color: var(--primary-color, #00f5ff);
    text-decoration: underline;
}

.modal-ver-canciones-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: custom-dialog-fadeIn 0.2s ease;
}

.ver-canciones-modal {
    background: var(--card-bg, #1e1e2e);
    border: 2px solid var(--primary-color, #00f5ff);
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 30px rgba(0, 245, 255, 0.3);
    animation: custom-dialog-slide 0.25s ease;
}

.ver-canciones-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color, #333);
}

.ver-canciones-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text-primary, #fff);
}

.ver-canciones-count {
    font-size: 0.85rem;
    color: var(--text-muted, #888);
}

.ver-canciones-body {
    padding: 1rem 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.ver-canciones-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border-color, #222);
}

.ver-canciones-item:last-child {
    border-bottom: none;
}

.ver-canciones-numero {
    font-size: 0.85rem;
    color: var(--text-muted, #666);
    min-width: 1.5rem;
    text-align: center;
}

.ver-canciones-titulo {
    font-size: 0.95rem;
    color: var(--text-primary, #ddd);
}

.ver-canciones-vacia {
    text-align: center;
    color: var(--text-muted, #666);
    padding: 2rem 0;
    font-style: italic;
}

.ver-canciones-actions {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color, #333);
}

.ver-canciones-btn-cargar {
    flex: 1;
    padding: 0.6rem 1rem;
    background: var(--primary-color, #00f5ff);
    color: #000;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.ver-canciones-btn-cargar:hover {
    box-shadow: 0 0 15px rgba(0, 245, 255, 0.4);
    transform: scale(1.02);
}

.ver-canciones-btn-cerrar {
    flex: 1;
    padding: 0.6rem 1rem;
    background: transparent;
    color: var(--text-muted, #888);
    border: 1px solid var(--border-color, #444);
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.ver-canciones-btn-cerrar:hover {
    background: var(--border-color, #333);
    color: var(--text-primary, #ddd);
}
