/* ============================================
   Media Controls — Wolfstorm-style top-right
   ============================================ */

.media-controls {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-right: 12px;
    padding: 0 4px;
    border-right: 1px solid rgba(100, 150, 255, 0.2);
}

/* Individual control button */
.media-ctrl-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 3px;
    background: transparent;
    color: #aac8ee;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, transform 0.1s;
}

.media-ctrl-btn .material-icons {
    font-size: 18px;
}

.media-ctrl-btn:hover {
    background: rgba(100, 150, 255, 0.2);
    color: #fff;
    transform: scale(1.1);
}

.media-ctrl-btn:active {
    transform: scale(0.95);
}

/* Active state — channel is playing */
.media-ctrl-btn.media-ctrl-active {
    color: #5cf;
    text-shadow: 0 0 6px rgba(80, 200, 255, 0.6);
}

.media-ctrl-btn.media-ctrl-active:hover {
    color: #8df;
}

/* Inactive state — nothing to play or stopped */
.media-ctrl-btn.media-ctrl-inactive {
    color: rgba(170, 200, 238, 0.4);
}

.media-ctrl-btn.media-ctrl-inactive:hover {
    color: rgba(170, 200, 238, 0.7);
    background: rgba(100, 150, 255, 0.1);
}

/* Muted state */
.media-ctrl-btn.media-ctrl-muted {
    color: #f66;
}

.media-ctrl-btn.media-ctrl-muted:hover {
    color: #f99;
}

/* Hidden (no URL available) */
.media-ctrl-btn.media-ctrl-hidden {
    display: none;
}

/* When master is muted, dim everything */
.media-controls.media-all-muted .media-ctrl-btn:not(#media-mute-btn) {
    opacity: 0.3;
}

/* Volume slider container */
.media-volume-wrap {
    display: flex;
    align-items: center;
    width: 60px;
    margin-left: 2px;
}

/* Volume slider */
.media-volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: rgba(100, 150, 255, 0.25);
    outline: none;
    cursor: pointer;
    transition: background 0.2s;
}

.media-volume-slider:hover {
    background: rgba(100, 150, 255, 0.4);
}

/* Slider thumb — WebKit */
.media-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #6af;
    border: 1px solid rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.media-volume-slider::-webkit-slider-thumb:hover {
    background: #8cf;
    transform: scale(1.2);
}

/* Slider thumb — Firefox */
.media-volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #6af;
    border: 1px solid rgba(0, 0, 0, 0.4);
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.media-volume-slider::-moz-range-thumb:hover {
    background: #8cf;
}

/* Slider track — Firefox */
.media-volume-slider::-moz-range-track {
    height: 4px;
    border-radius: 2px;
    background: rgba(100, 150, 255, 0.25);
}

/* Responsive: hide slider on very narrow screens */
@media (max-width: 800px) {
    .media-volume-wrap {
        display: none;
    }
    .media-controls {
        gap: 1px;
    }
}

@media (max-width: 600px) {
    .media-controls {
        display: none;
    }
}
