: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;
    min-height: 100vh;
    background-color: #0d0d0d;
    margin: 0;
    padding: 0; 
    box-sizing: border-box;
    overflow-x: hidden;
}

.player-container {
    position: relative;
    background-image: linear-gradient(rgba(26, 26, 26, 0.5), rgba(26, 26, 26, 0.5)), url('./tlo2.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    width: 100vw;       
    min-height: 100vh;  
    
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    
    padding: 30px 20px;
    z-index: 1;
    border: none;
    box-shadow: none;
    border-radius: 0;
    box-sizing: border-box;
}

h2, .streamer-container, #albumArt, .equalizer, .meta-container, .play-btn, .volume-container, .action-buttons, .history-container {
    width: 100%;
    max-width: 360px;
    box-sizing: border-box;
}

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

.streamer-container {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(18, 212, 87, 0.2);
    border: 1px solid rgba(18, 212, 87, 0.4);
    backdrop-filter: blur(5px);
    padding: 6px 12px;
    border-radius: 20px;
    margin-bottom: 15px;
    color: #ffffff;
    font-size: 13px;
    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: 170px;
    height: 170px;
    border-radius: 16px;
    margin-bottom: 15px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0,0,0,0.6);
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: inline-block;
}

.equalizer {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 25px;
    gap: 4px;
    margin-bottom: 12px;
    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: 25px; }
}

/* Sekcje tekstowe */
.meta-container {
    margin-bottom: 20px;
    min-height: 55px;
    text-align: center;
}

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

#status {
    color: var(--accent-yellow); 
    margin: 6px 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;
    background: linear-gradient(135deg, var(--accent-yellow) 0%, var(--accent-green) 100%);
    border-radius: 30px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(225, 255, 0, 0.3);
    color: #000000;
    border: none;
    padding: 15px 0;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.3s, transform 0.1s, box-shadow 0.3s;
    outline: none;
    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.45);
}

.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.55); 
}

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

.volume-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    padding: 10px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.05);
}

.volume-container span { color: #ffffff; font-size: 14px; opacity: 0.8; }
.volume-slider { -webkit-appearance: none; width: 80%; height: 6px; 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: 14px; 
    height: 14px; 
    border-radius: 50%; 
    background: var(--accent-green); 
    cursor: pointer; 
}

.action-buttons {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 25px;
}

.sub-btn {
    flex: 1;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 11px 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.sub-btn:hover {
    background: rgba(18, 212, 87, 0.1);
    border-color: var(--accent-green);
    color: var(--accent-green);
}

.history-container {
    text-align: left;
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.05);
}

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

.history-container ul { list-style: none; padding: 0; margin: 0; }
.history-container li { font-size: 12px; color: #e6e6e6; padding: 6px 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; }
