/* Стили для зума видео.
 * Подключается в base.html или в custom.css.
 */

/* Контейнер плеера: запрещаем выделение текста при drag,
 * чтобы не было артефактов курсора. */
.video-container {
    user-select: none;
    -webkit-user-select: none;
}

/* Видео в зум-режиме: смена курсора управляется JS-классом VideoZoom,
 * но дефолтное состояние делаем "обычным". */
.video-container video {
    cursor: default;
}

/* Когда видео зазумлено, JS ставит cursor: grab/grabbing инлайном.
 * Для тач-устройств курсор не релевантен, но на всякий случай. */

/* Подсказка пользователю: маленький badge с текущим зумом.
 * Включается опционально, см. video-zoom.js — здесь только стили. */
.zoom-indicator {
    position: absolute;
    top: 8px;
    right: 52px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--live-green, #00cc66);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 5;
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
}

.zoom-indicator.visible {
    opacity: 1;
}

/* Own fullscreen control is intentionally outside the native <video>
 * controls. Firefox fullscreens only the media element from its built-in
 * button, which excludes our sibling zoom overlay from the top layer. */
.video-zoom-fullscreen-button {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 12;
    width: 36px;
    height: 32px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 0.3rem;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font: 600 1.25rem/1 system-ui, sans-serif;
    cursor: pointer;
    opacity: 0.8;
}

.video-zoom-fullscreen-button:hover,
.video-zoom-fullscreen-button:focus-visible {
    opacity: 1;
    border-color: #fff;
    outline: none;
}

.video-container:fullscreen {
    width: 100vw !important;
    height: 100vh !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    border-radius: 0 !important;
    background: #000;
}

.video-container:-webkit-full-screen {
    width: 100vw !important;
    height: 100vh !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    border-radius: 0 !important;
    background: #000;
}
