/* player.css — Радиоплеер (BEM) */

.player__container {
    background: hsla(240, 7%, 12%, 0.88);
    padding: 25px 10px;
    box-shadow: 0px -1px 4px rgb(200 196 196 / 8%), 0px 4px 4px rgb(200 196 196 / 25%);
    border-bottom: 5px solid rgba(85, 122, 149, 0.2);
    border-radius: 7px;
    display: block;
    margin-bottom: 45px;
    width: 100%;
}

.player__header {
    text-align: center;
    font-size: 14px;
    color: #5ab9ea;
    font-weight: 600;
    border-bottom: 1px solid rgba(90, 185, 234, 0.2);
    padding: 5px 0 15px;
}

/* === inline style="color:orange" на <i class="fas fa-music"> === */
.player__header .fa-music {
    color: orange;
}

.player__content {
    margin-top: 10px;
}

.player__quality {
    margin: 15px 0;
    text-align: center;
}

.player__quality-title {
    font-size: 13px;
    color: #A4B3BA;
    margin-bottom: 10px;
    font-weight: 500;
}

.player__quality-btn {
    background: rgba(85, 178, 253, 0.08);
    border: 1px solid rgba(85, 178, 253, 0.22);
    border-radius: 8px;
    padding: 8px 15px;
    color: #7fb8f0;
    cursor: pointer;
    margin: 2px 3px;
    font-size: 12px;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    display: inline-block;
}

.player__quality-btn:hover {
    background: rgba(85, 178, 253, 0.22);
    border-color: rgba(85, 178, 253, 0.65);
    color: #fff;
    box-shadow: 0 0 12px rgba(85, 178, 253, 0.30);
    transform: translateY(-1px);
}

.player__quality-btn:active {
    background: rgba(85, 178, 253, 0.30);
    border-color: rgba(85, 178, 253, 0.80);
    color: #fff;
    transform: translateY(0);
}

.player__quality-btn.player__quality-btn--active {
    background: rgba(85, 178, 253, 0.28);
    border-color: rgba(85, 178, 253, 0.60);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 0 10px rgba(85, 178, 253, 0.25);
}

.player__controls {
    margin: 20px 0;
    text-align: center;
}

.player__play-btn {
    background: rgba(85, 178, 253, 0.12);
    border: 1px solid rgba(85, 178, 253, 0.30);
    border-radius: 8px;
    padding: 12px 25px;
    color: #55b2fd;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    margin: 0 5px;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.player__play-btn:hover {
    background: rgba(85, 178, 253, 0.22);
    border-color: rgba(85, 178, 253, 0.65);
    color: #fff;
    box-shadow: 0 0 16px rgba(85, 178, 253, 0.35), 0 4px 12px rgba(85, 178, 253, 0.20);
    transform: translateY(-2px);
}

.player__play-btn:active {
    background: rgba(85, 178, 253, 0.30);
    border-color: rgba(85, 178, 253, 0.80);
    color: #fff;
    box-shadow: 0 0 8px rgba(85, 178, 253, 0.20);
    transform: translateY(0);
}

.player__play-btn i {
    margin-right: 5px;
}

/* === inline style="display:none" убран → CSS начальное состояние === */
.player__stop-btn {
    display: none;
    background: rgba(254, 102, 111, 0.12);
    border: 1px solid rgba(254, 102, 111, 0.30);
    color: #fe666f;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.player__stop-btn:hover {
    background: rgba(254, 102, 111, 0.22);
    border-color: rgba(254, 102, 111, 0.65);
    color: #fff;
    box-shadow: 0 0 16px rgba(254, 102, 111, 0.35), 0 4px 12px rgba(254, 102, 111, 0.20);
    transform: translateY(-2px);
}

.player__stop-btn:active {
    background: rgba(254, 102, 111, 0.30);
    border-color: rgba(254, 102, 111, 0.80);
    color: #fff;
    box-shadow: 0 0 8px rgba(254, 102, 111, 0.20);
    transform: translateY(0);
}

.player__volume {
    margin: 20px 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.player__volume i {
    color: #5ab9ea;
    font-size: 14px;
}

.player__volume-slider {
    width: 120px;
    height: 5px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    outline: none;
    -webkit-appearance: none;
}

.player__volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    background: #5ab9ea;
    border-radius: 50%;
    cursor: pointer;
}

.player__volume-slider::-moz-range-thumb {
    width: 15px;
    height: 15px;
    background: #5ab9ea;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.player__volume-value {
    font-size: 12px;
    color: #A4B3BA;
    min-width: 30px;
    text-align: left;
}

.player__now-playing {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(90, 185, 234, 0.14);
    text-align: center;
}

.player__status {
    font-size: 13px;
    font-weight: 600;
    color: #5ab9ea;
    margin-bottom: 8px;
}

.player__track-info {
    font-size: 12px;
    color: #A4B3BA;
    line-height: 1.4;
}

.player__status--loading {
    opacity: 0.7;
    color: #feca57;
}

.player__status--error {
    color: #e74c3c;
}

.player__stream-links {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(90, 185, 234, 0.12);
}

.player__stream-links-title {
    font-size: 12px;
    color: #5ab9ea;
    font-weight: 600;
    margin-bottom: 10px;
    text-align: center;
}

.player__stream-link-item {
    margin: 5px 0;
}

.player__stream-link {
    display: block;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(90, 185, 234, 0.14);
    border-radius: 8px;
    color: #A4B3BA;
    text-decoration: none;
    font-size: 12px;
    transition: filter 0.2s ease, transform 0.15s ease;
    text-align: center;
}

.player__stream-link:hover {
    background: rgba(90, 185, 234, 0.1);
    border-color: rgba(90, 185, 234, 0.3);
    color: #5ab9ea;
    text-decoration: none;
    transform: translateY(-1px);
}

.player__stream-link i {
    margin-right: 5px;
    font-size: 11px;
}

@media (max-width: 575.98px) {
    .player__quality-btn {
        display: block;
        margin: 5px auto;
        width: 90%;
    }

    .player__controls {
        margin: 15px 0;
    }

    .player__play-btn {
        padding: 10px 20px;
        font-size: 13px;
        margin: 3px;
    }

    .player__volume-slider {
        width: 100px;
    }

    .player__stream-link {
        font-size: 11px;
        padding: 6px 10px;
    }
}
