/* Player */
.player {
    padding: 2rem;
    margin-top: 2rem;
    border: 1px solid rgba(255, 255, 255, .1);
    border-top-color: rgba(255, 255, 255, .2);
    border-left-color: rgba(255, 255, 255, .2);
    border-radius: 2rem;
    background: rgba(18, 18, 18, 0);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, .8),
        inset 0 1px 0 rgba(255, 255, 255, .06);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
}

/* Przyciski */
.btn-radio {
    min-width: 3rem;
    min-height: 3rem;
    border: 0;
    border-radius: 1rem;
    color: #fff;
    background: linear-gradient(180deg, #ff8a33, #ff6600);
    box-shadow: 0 6px 18px rgba(255, 102, 0, .28);
    font-size: 18px;
    font-weight: 600;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.btn-radio:hover {
    color: #fff;
    box-shadow: 0 10px 24px rgba(255, 102, 0, .45);
    filter: brightness(1.06);
    transform: translateY(-2px);
}

.btn-radio:active {
    transform: translateY(0);
}

.btn-radio:focus-visible {
    outline: 2px solid #ffb066;
    outline-offset: 3px;
}

.title {
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
}

.artist {
    color: #aaa;
    font-size: 1.2rem;
    text-transform: uppercase;
}

.info {
    color: #aaa;
    font-size: 1rem;
}

.player-controls {
    display: flex;
    align-items: center;
}

/* Suwaki: postęp + głośność */
input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    outline: none;
    background: rgba(255, 255, 255, .10);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, #ff7a1a, #ff9d47);
}

input[type="range"]::-webkit-slider-thumb {
    width: 16px;
    height: 16px;
    margin-top: -5px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #ff7a1a;
    box-shadow:
        0 0 10px rgba(255, 122, 26, .55),
        0 2px 8px rgba(0, 0, 0, .35);
    -webkit-appearance: none;
}

input[type="range"]::-moz-range-track {
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, #ff7a1a, #ff9d47);
}

input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border: 0;
    border-radius: 50%;
    background: #ff7a1a;
    box-shadow:
        0 0 10px rgba(255, 122, 26, .55),
        0 2px 8px rgba(0, 0, 0, .35);
}

.volume-row {
    display: flex;
    align-items: center;
    margin-top: 1rem;
}

.volume-row > div {
    display: flex;
    align-items: center;
    min-height: 30px;
}

.volume-row input[type="range"] {
    flex: 1;
}

/* Okładka */
.cover {
    width: 16rem;
    height: 16rem;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 1rem;
    box-shadow:
        0 12px 40px rgba(0, 0, 0, .8),
        inset 0 1px 0 rgba(255, 255, 255, .1);
    transition: transform .35s ease, box-shadow .35s ease;
}

.cover.playing {
    animation: coverPulse 3s infinite;
}

@keyframes coverPulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(255, 102, 0, .3);
    }
    50% {
        box-shadow: 0 0 35px rgba(255, 102, 0, .7);
    }
}

@media (max-width: 767.98px) {
    .cover {
        margin-bottom: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .btn-radio,
    .cover {
        transition: none;
    }

    .cover.playing {
        animation: none;
    }
}
