body {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    background-attachment: fixed;
    margin: 0;
    min-height: 100vh;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    padding: 40px 20px;
}

.site-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.site-header h1 {
    color: #f8fafc;
    margin: 0 0 8px 0;
    font-size: 2rem;
}

.attribution {
    color: #94a3b8;
    font-size: 1rem;
    line-height: 1.5;
}

.attribution strong {
    color: #38bdf8;
}

.attribution span {
    font-style: italic;
    opacity: 0.8;
    font-size: 0.9rem;
}

.main-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.player-box {
    flex: 1;
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    position: sticky;
    top: 20px;
    color: #333;
}

audio {
    width: 100%;
    margin-top: 15px;
}

.list-container {
    flex: 1.5;
}

#playlist {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    color: #333;
    max-height: 600px;
    overflow-y: auto;
}

.song-item {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: 0.2s;
}

.song-item:hover {
    background: #f0f7ff;
}

.song-item.active {
    background: #007bff;
    color: white;
    font-weight: bold;
}

.playlist-footer {
    padding: 15px;
    background: #f8fafc;
    color: #64748b;
    font-size: 0.9rem;
    border-bottom: 1px solid #eee;
}

.playlist-footer strong {
    color: #38bdf8;
}

.playing-icon {
    display: none;
    width: 20px;
    height: 15px;
    gap: 3px;
    align-items: flex-end;
    float: right;
}

.playing-icon span {
    width: 3px;
    background-color: #38bdf8;
    height: 100%;
    animation: bounce 0.8s ease-in-out infinite alternate;
}

.playing-icon span:nth-child(2) {
    animation-duration: 0.5s;
}

.playing-icon span:nth-child(3) {
    animation-duration: 0.7s;
}

@keyframes bounce {
    from { height: 3px; }
    to { height: 15px; }
}

.active .playing-icon {
    display: flex;
}

.controls-extra {
    margin-top: 15px;
    text-align: center;
}

#shuffle-btn {
    background-color: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #475569;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

#shuffle-btn:hover {
    background-color: #38bdf8;
    color: white;
    border-color: #38bdf8;
}

#shuffle-btn.active-shuffle {
    background-color: #007bff;
    color: white;
}

@media screen and (max-width: 768px) {
    body {
        padding: 20px 10px;
    }

    .main-container {
        flex-direction: column;
        align-items: stretch;
    }

    .player-box {
        position: relative;
        top: 0;
        width: 100%;
        box-sizing: border-box;
    }

    #playlist {
        max-height: none;
    }
}