.song-info-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
}

.song-info-modal.show {
    display: flex;
}

.song-info-modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
}

.song-info-modal .modal-content {
    position: relative;
    background: #181818;
    color: #fff;
    border-radius: 12px;
    max-width: 500px;
    width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    padding: 0;
    z-index: 10000;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    border-radius: 12px 12px 0 0;
}

.modal-info-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.modal-proposer {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 0.95em;
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 20px;
}

.modal-proposer i {
    font-size: 1.1em;
}

.modal-votes {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 0.95em;
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 20px;
}

.modal-votes i {
    font-size: 1.1em;
    color: #ff6b6b;
}

.modal-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 4px 12px;
    border-radius: 50%;
    opacity: 0.9;
    transition: all 0.2s;
    line-height: 1;
}

.modal-close-btn:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.modal-song-info {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    padding: 24px;
}

.modal-song-image {
    width: 180px;
    height: 180px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.modal-song-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-song-details h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.modal-song-details h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    color: #b3b3b3;
    margin-bottom: 16px;
}

.modal-song-details p {
    margin: 4px 0;
    font-size: 14px;
    color: #9f9f9f;
    display: flex;
    align-items: center;
    gap: 6px;
}

.modal-song-details p i {
    color: #1db954;
}

.modal-lyrics-section {
    margin-top: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px;
}

.modal-lyrics-section h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-lyrics-section h4 i {
    color: #1db954;
}

.modal-song-lyrics {
    white-space: pre-line;
    font-size: 14px;
    line-height: 1.6;
    color: #b3b3b3;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 16px;
    max-height: 300px;
    overflow-y: auto;
}

.modal-song-lyrics::-webkit-scrollbar {
    width: 8px;
}

.modal-song-lyrics::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.modal-song-lyrics::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.modal-song-lyrics::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Estado de carga de letra */
.modal-song-lyrics.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    font-style: italic;
    color: #666;
}

.modal-song-lyrics.loading i {
    margin-right: 8px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Información de la fuente de letras */
.lyrics-source {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #333;
    text-align: center;
}

.lyrics-source small {
    color: #888;
    font-size: 12px;
}

.lyrics-source i {
    margin-right: 6px;
    color: #27ae60;
}

/* Animación de fade para el modal */
.fade-enter {
    opacity: 0;
}

.fade-enter-active {
    opacity: 1;
    transition: opacity 200ms ease-in;
}

.fade-exit {
    opacity: 1;
}

.fade-exit-active {
    opacity: 0;
    transition: opacity 200ms ease-in;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .modal-song-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .modal-song-image {
        width: 150px;
        height: 150px;
    }

    .modal-song-details h2 {
        font-size: 24px;
    }

    .modal-song-details h3 {
        font-size: 16px;
    }
}

/* ===== MODAL DE TRACKS DE PLAYLIST ===== */
.large-modal {
    max-width: 900px;
    width: 95vw;
    max-height: 90vh;
}

.playlist-tracks-info {
    margin-bottom: 20px;
}

.playlist-header-info {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    border-radius: 8px;
    color: white;
}

.playlist-image-large {
    position: relative;
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.playlist-image-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.playlist-image-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.playlist-image-placeholder i {
    font-size: 48px;
    color: rgba(255, 255, 255, 0.5);
}

.playlist-meta {
    flex: 1;
    min-width: 0;
}

.playlist-meta h3 {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: bold;
    color: white;
    word-wrap: break-word;
}

.playlist-owner {
    margin: 0 0 12px 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
}

.playlist-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.playlist-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.playlist-stat i {
    color: rgba(255, 255, 255, 0.7);
}

.playlist-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tracks-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
    flex-wrap: wrap;
}

.tracks-search {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-input {
    width: 100%;
    padding: 10px 40px 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    color: #333;
}

.search-input:focus {
    outline: none;
    border-color: #1db954;
    box-shadow: 0 0 0 2px rgba(29, 185, 84, 0.2);
}

.search-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
}

.search-clear:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
}

.tracks-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: white;
    color: #333;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    background: #f5f5f5;
    border-color: #1db954;
}

.filter-btn.active {
    background: #1db954;
    color: white;
    border-color: #1db954;
}

.tracks-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.tracks-loading i {
    font-size: 32px;
    margin-bottom: 10px;
    color: #1db954;
}

.tracks-container {
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: 8px;
    background: white;
}

.tracks-list {
    display: flex;
    flex-direction: column;
}

.track-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
    gap: 12px;
}

.track-item:hover {
    background-color: #f8f9fa;
}

.track-item:last-child {
    border-bottom: none;
}

.track-number {
    width: 30px;
    text-align: center;
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.track-album-image {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    position: relative;
}

.track-album-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.track-album-image .track-image-placeholder {
    width: 100%;
    height: 100%;
    background: #f0f0f0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.track-album-image .track-image-placeholder i {
    color: #ccc;
    font-size: 20px;
}

.track-info {
    flex: 1;
    min-width: 0;
}

.track-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.track-artists {
    color: #666;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.track-album {
    color: #888;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 150px;
}

.track-duration {
    color: #666;
    font-size: 14px;
    font-weight: 500;
    min-width: 50px;
    text-align: right;
}

.track-actions {
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.track-item:hover .track-actions {
    opacity: 1;
}

.track-btn {
    padding: 6px;
    border: none;
    background: #f0f0f0;
    color: #666;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.track-btn:hover {
    background: #1db954;
    color: white;
}

.track-btn.spotify {
    background: #1db954;
    color: white;
}

.track-btn.spotify:hover {
    background: #1ed760;
}

.tracks-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 20px 0;
}

.pagination-btn {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: white;
    color: #333;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: #f5f5f5;
    border-color: #1db954;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f9f9f9;
}

.page-info {
    padding: 8px 16px;
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.tracks-empty {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-state i {
    font-size: 64px;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-state h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 20px;
}

.empty-state p {
    margin: 0;
    color: #666;
    font-size: 16px;
}

/* Responsive para modal de tracks */
@media (max-width: 768px) {
    .large-modal {
        width: 98vw;
        max-height: 95vh;
    }
    
    .playlist-header-info {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .playlist-image-large {
        width: 80px;
        height: 80px;
        align-self: center;
    }
    
    .playlist-meta h3 {
        font-size: 20px;
    }
    
    .tracks-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .tracks-search {
        max-width: none;
    }
    
    .track-album {
        display: none;
    }
    
    .track-number {
        width: 20px;
        font-size: 12px;
    }
    
    .track-album-image {
        width: 40px;
        height: 40px;
    }
    
    .tracks-pagination {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .pagination-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}