.song-manager-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.song-filters {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 250px;
}

.search-box input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-buttons select {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: white;
}

.songs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.song-card {
    position: relative;
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.song-cover {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 80px; /* adjust as needed */
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}


.song-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.song-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}

.song-artist {
    color: #666;
    margin-bottom: 12px;
}

.song-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #888;
}

.song-audio {
    margin-bottom: 15px;
}

.song-audio audio {
    width: 100%;
}

.song-actions {
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-primary {
    background-color: #007cba;
    color: white;
}

.btn-primary:hover {
    background-color: #005a87;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #545b62;
}

/* Modal Styles */
.song-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.song-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    border: none;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.song-modal-close {
    color: #999;
    float: right;
    font-size: 28px;
    font-weight: bold;
    padding: 15px 20px 0 0;
    cursor: pointer;
}

.song-modal-close:hover,
.song-modal-close:focus {
    color: #333;
    text-decoration: none;
}

#song-modal-body {
    padding: 20px 30px 30px;
}

.modal-song-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.modal-song-title {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #333;
    font-weight: 700;
}

.modal-song-artist {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 15px;
}

.modal-song-meta {
    display: flex;
    gap: 20px;
    justify-content: center;
    font-size: 1rem;
    color: #888;
    flex-wrap: wrap;
}

.modal-song-player,
.modal-song-lyrics,
.modal-song-description {
    margin-bottom: 30px;
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
}

.modal-song-player h3,
.modal-song-lyrics h3,
.modal-song-description h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-song-player audio {
    width: 100%;
    margin-top: 10px;
}

.modal-lyrics-content {
    font-family: 'Georgia', serif;
    font-size: 1rem;
    line-height: 1.7;
    color: #444;
    white-space: pre-wrap;
    background: white;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #007cba;
    max-height: 300px;
    overflow-y: auto;
}

.modal-description-content {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

.modal-song-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.modal-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.modal-btn-download {
    background-color: #28a745;
    color: white;
}

.modal-btn-download:hover {
    background-color: #218838;
    transform: translateY(-2px);
}

.modal-btn-buy {
    background-color: #ffc107;
    color: #212529;
}

.modal-btn-buy:hover {
    background-color: #e0a800;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .song-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        min-width: auto;
    }
    
    .filter-buttons {
        justify-content: center;
    }
    
    .songs-grid {
        grid-template-columns: 1fr;
    }
    
    .song-modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    #song-modal-body {
        padding: 15px 20px 20px;
    }
    
    .modal-song-title {
        font-size: 1.5rem;
    }

    .modal-song-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .modal-song-player,
    .modal-song-lyrics,
    .modal-song-description {
        padding: 20px;
    }
    
    .modal-song-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .modal-btn {
        justify-content: center;
    }
}

.song-row {
    display: flex;
    align-items: center;           /* vertically center title and player */
    justify-content: space-between;
    border-bottom: 1px solid #ddd;
    padding: 8px 0;
    gap: 12px;                     /* small space between title and player */
}

.song-title-small {
    font-weight: 600;
    flex: 1;
    display: flex;
    align-items: center;           /* keep text vertically aligned */
    line-height: 1.2;
}

.song-audio-small {
    flex-shrink: 0;
    height: 32px;                  /* slightly reduce default height */
    transform: translateY(1px);    /* fine-tune vertical balance */
}

.song-row {
    font-size: 0.95rem;
}