:root {
    --accent-yellow: #e1ff00;
    --accent-green: #12d457;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    margin: 0;
    padding: 10px;
    box-sizing: border-box;
}

.player-container {
    position: relative;
    background: transparent;
    padding: 22px 25px;
    text-align: center;
    width: 320px;
    z-index: 1;
    
    border: 1px solid rgba(255, 255, 255, 0.15); 
    border-radius: 24px; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
}

h2 {
    color: #ffffff;
    margin: 0 0 10px 0;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.streamer-container {
    display: none; 
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(18, 212, 87, 0.15);
    border: 1px solid rgba(18, 212, 87, 0.3);
    padding: 5px 10px;
    border-radius: 20px;
    margin-bottom: 12px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
}

.live-badge {
    color: var(--accent-green);
    font-weight: 800;
    animation: radioPulse 1.5s infinite;
}

@keyframes radioPulse {
    0% { opacity: 0.4; }
    50% { opacity: 1; }
    100% { opacity: 0.4; }
}

#albumArt {
    width: 150px;
    height: 150px;
    border-radius: 14px;
    margin-bottom: 12px;
    object-fit: cover;
    box-shadow: 0 6px 15px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-block;
}

.equalizer {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 22px;
    gap: 4px;
    margin-bottom: 10px;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.equalizer .bar {
    width: 4px;
    height: 5px;
    background-color: var(--accent-green);
    border-radius: 2px;
}

.equalizer.active { opacity: 1; }
.equalizer.active .bar { animation: radioBounce 0.8s ease-in-out infinite alternate; }
.equalizer.active .bar:nth-child(1) { animation-duration: 0.5s; animation-delay: 0.1s; }
.equalizer.active .bar:nth-child(2) { animation-duration: 0.7s; animation-delay: 0.4s; }
.equalizer.active .bar:nth-child(3) { animation-duration: 0.6s; animation-delay: 0.2s; }
.equalizer.active .bar:nth-child(4) { animation-duration: 0.8s; animation-delay: 0.5s; }
.equalizer.active .bar:nth-child(5) { animation-duration: 0.5s; animation-delay: 0.3s; }

@keyframes radioBounce {
    0% { height: 5px; }
    100% { height: 22px; }
}

.meta-container {
    margin-bottom: 15px;
    min-height: 50px;
}

#titleText {
    color: #ffffff;
    font-weight: bold;
    font-size: 14px;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#status {
    color: var(--accent-yellow); 
    margin: 4px 0 0 0;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
}

#status.stopped { color: #b3b3b3; }

.play-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    background: linear-gradient(135deg, var(--accent-yellow) 0%, var(--accent-green) 100%);
    border-radius: 30px;
    margin-bottom: 18px;
    box-shadow: 0 4px 15px rgba(225, 255, 0, 0.2);
    color: #000000;
    border: none;
    padding: 13px 0;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.3s, transform 0.1s, box-shadow 0.3s;
    outline: none;
    box-sizing: border-box;
    letter-spacing: 1px;
}

.play-btn:hover { 
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-yellow) 100%);
    transform: scale(1.02); 
    box-shadow: 0 6px 20px rgba(225, 255, 0, 0.35);
}

.play-btn:active { transform: scale(0.99); }

.play-btn.playing { 
    background: linear-gradient(135deg, #f7ffb3 0%, #80f2a4 100%); 
    color: #000000; 
    box-shadow: 0 8px 25px rgba(225, 255, 0, 0.45); 
}

.play-btn.playing:hover {
    background: linear-gradient(135deg, #80f2a4 0%, #f7ffb3 100%); 
    box-shadow: 0 10px 30px rgba(225, 255, 0, 0.55);
}

.volume-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.05); 
    padding: 8px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
}

.volume-container span { color: #ffffff; font-size: 13px; opacity: 0.8; }
.volume-slider { -webkit-appearance: none; width: 80%; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.2); outline: none; cursor: pointer; }
.volume-slider::-webkit-slider-thumb { 
    -webkit-appearance: none; 
    appearance: none; 
    width: 12px; 
    height: 12px; 
    border-radius: 50%; 
    background: var(--accent-green); 
    cursor: pointer; 
}

/* Sekcja historii utworów */
.history-container {
    margin-top: 20px;
    text-align: left;
    background: rgba(255, 255, 255, 0.03); 
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.03);
}

.history-container h3 {
    margin: 0 0 8px 0;
    font-size: 11px;
    color: #b3b3b3;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.history-container ul { list-style: none; padding: 0; margin: 0; }
.history-container li { font-size: 11px; color: #e6e6e6; padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,0.05); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.history-container li:last-child { border-bottom: none; }
