/* video_options.css: captions / quality / volume panel for room players.
   Paired with video_options.js. Self-contained so it can drop into both the
   chat room and the guest room, which style their control bars differently. */

.vo-gear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s;
}

.vo-gear:hover,
.vo-gear.is-open {
    background: rgba(241, 99, 41, 0.85);
    color: #fff;
}

/* Variant for the guest room, where the button sits on the video overlay */
.vo-gear.vo-gear-overlay {
    width: 28px;
    height: 28px;
    background: transparent;
    font-size: 15px;
}

.vo-gear.vo-gear-overlay:hover,
.vo-gear.vo-gear-overlay.is-open {
    background: rgba(255, 255, 255, 0.15);
    color: #f16329;
}

/* ── Panel ── */
.vo-panel {
    position: fixed;
    z-index: 10050;
    width: 260px;
    max-height: 70vh;
    overflow-y: auto;
    padding: 14px;
    background: #17171a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    color: #e4e4e7;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    display: none;
}

.vo-panel.show { display: block; }

.vo-panel::-webkit-scrollbar { width: 6px; }
.vo-panel::-webkit-scrollbar-track { background: transparent; }
.vo-panel::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }

.vo-section { margin-bottom: 14px; }
.vo-section:last-of-type { margin-bottom: 8px; }

.vo-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #9ca3af;
    margin-bottom: 8px;
}

.vo-label i { color: #f16329; font-size: 12px; }

.vo-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.vo-choice {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: #e4e4e7;
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 12px;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.vo-choice:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

.vo-choice.is-active {
    background: #f16329;
    border-color: #f16329;
    color: #fff;
    font-weight: 600;
}

.vo-empty,
.vo-note,
.vo-foot {
    margin: 0;
    color: #71717a;
    font-size: 11px;
    line-height: 1.5;
}

.vo-note { margin-top: 6px; }

.vo-foot {
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #52525b;
}

.vo-tracks {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
    margin-top: 6px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ── Volume ── */
.vo-volume {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vo-mute {
    border: none;
    background: transparent;
    color: #e4e4e7;
    font-size: 14px;
    cursor: pointer;
    padding: 4px;
    width: 26px;
    flex-shrink: 0;
}

.vo-mute:hover { color: #f16329; }

.vo-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.15);
    outline: none;
    cursor: pointer;
}

.vo-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #f16329;
    cursor: pointer;
    border: none;
}

.vo-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #f16329;
    cursor: pointer;
    border: none;
}

@media (max-width: 600px) {
    .vo-panel { width: calc(100vw - 24px); max-width: 300px; }
}
