* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #fff;
    background: #061524 url('full.png') no-repeat center center/cover;
    margin: 0;
    min-height: 100vh; 
    display: flex;
    flex-direction: column;
    overflow-x: hidden; 
}

header {
    background: rgba(0, 0, 0, 0.4);
    width: 100%;
}

.header-content {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1000px; 
    margin: 0 auto; 
    padding: 20px; 
}

.logo {
    font-size: 24px;
    font-weight: 700;
    margin-right: 20px;
    padding-right: 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.slogan {
    font-size: 16px;
    font-weight: 400;
    color: #a0b0c0;
}

main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center; 
    padding: 50px;
    position: relative;
}

.bookmark-container {
    margin-top: 30px;
    margin-bottom: 40px;
    padding: 10px 20px;
    background: rgba(0, 150, 255, 0.1);
    border: 1px solid rgba(0, 150, 255, 0.3);
    border-radius: 20px;
    color: #e0e0e0;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 15px; 
}

.bookmark-link {
    background: rgba(0, 150, 255, 0.5);
    color: #fff;
    text-decoration: none;
    padding: 5px 15px;
    border-radius: 15px;
    font-weight: 600;
    cursor: grab;
    transition: background 0.3s ease, transform 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.bookmark-link:hover {
    background: rgba(0, 150, 255, 0.8);
    transform: scale(1.05);
}

.bookmark-link:active {
    cursor: grabbing;
    transform: scale(0.95);
}

.player-box {
    background: rgba(10, 25, 40, 0.7);
    backdrop-filter: blur(10px); 
    border-radius: 8px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    max-width: 950px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.05);
}

.station-cover {
    width: 140px; 
    max-width: 140px; 
    height: 140px; 
    object-fit: cover; 
    border-radius: 8px;
    margin-right: 30px; 
    box-shadow: 0 4px 15px rgba(255, 0, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.player-info {
    flex-grow: 1; 
    min-width: 0; 
    text-align: left; 
}

.player-info h1 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 5px;
}

.player-info .desc {
    font-size: 14px;
    color: #a0b0c0;
    margin-bottom: 20px;
}

.player-info .track-info {
    font-size: 14px;
    line-height: 1.6;
}

.track-line {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.player-info strong {
    font-weight: 600;
    color: #fff;
}

.player-info span {
    color: #c0d0e0;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-left: 20px;
    flex-shrink: 0; 
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mute-btn {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.volume-icon {
    width: 22px;
    height: 22px;
    fill: #c0d0e0;
    transition: transform 0.2s ease, fill 0.2s;
}

.mute-btn:hover .volume-icon {
    transform: scale(1.1); 
    fill: #fff;
}

#volume-slider {
    -webkit-appearance: none;
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    transition: transform 0.2s;
}

#volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.3);
}

.play-btn {
    background: #e0e0e0;
    border: none;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.2s, background 0.2s;
    flex-shrink: 0;
}

.play-btn:hover {
    transform: scale(1.05);
    background: #ffffff;
}

.play-icon, .pause-icon {
    width: 30px;
    height: 30px;
    fill: #1a1a1a;
}

.pause-icon {
    display: none; 
}

/* --- Nowe style dla Loadera --- */
.loader-icon {
    display: none;
    width: 32px;
    height: 32px;
    animation: rotate 2s linear infinite;
}

.loader-icon .path {
    stroke: #1a1a1a;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
    100% { transform: rotate(360deg); }
}

@keyframes dash {
    0% { stroke-dasharray: 1, 150; stroke-dashoffset: 0; }
    50% { stroke-dasharray: 90, 150; stroke-dashoffset: -35; }
    100% { stroke-dasharray: 90, 150; stroke-dashoffset: -124; }
}

/* --- Sekcja dla urządzeń mobilnych --- */
@media (max-width: 850px) {
    .bookmark-container {
        display: none;
    }
    
    /* NOWE: Ukrywamy całkowicie pasek głośności i ikonkę wyciszania na telefonach */
    .volume-control {
        display: none;
    }

    .header-content {
        padding: 12px 20px; 
        justify-content: center; 
    }

    .logo {
        margin-right: 15px;
        padding-right: 15px;
        border-right: 1px solid rgba(255, 255, 255, 0.2);
        margin-bottom: 0;
    }

    .player-box {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    .station-cover {
        margin-right: 0;
        margin-bottom: 20px;
    }
    .player-info {
        text-align: center;
        width: 100%;
    }
    .track-line {
        white-space: normal; 
    }
    .player-controls {
        margin-left: 0;
        margin-top: 25px;
        flex-direction: column-reverse; /* Zostawiamy dla spójności, choć został tu sam przycisk play */
        gap: 20px;
    }
}