/* ===================== CUSTOM VIDEO PLAYER =====================
   Тот же плеер, что на страницах игр, но без привязки к скоупу страницы.
   Подключается там, где в контенте встречается шорткод [video:файл]. */

.game-video-wrap { margin: 34px 0 8px; }
.game-video-label {
    font-family: var(--font-mono); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--zx-amber-dim);
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px;
}
.game-video-label i { color: var(--zx-amber); }
.game-video-player { position: relative; background: #000; overflow: hidden; border: 1px solid var(--zx-line-2); border-radius: 0 !important; }
.game-video-player video { width: 100%; height: auto; display: block; cursor: pointer; }

.game-video-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.game-video-play-btn {
    width: 74px; height: 74px; border: 1.5px solid var(--zx-amber); background: rgba(10,13,12,.55);
    color: var(--zx-amber); font-size: 24px; display: flex; align-items: center; justify-content: center;
    cursor: pointer; pointer-events: auto; transition: all .2s; border-radius: 0 !important;
    clip-path: polygon(12px 0,100% 0,100% calc(100% - 12px),calc(100% - 12px) 100%,0 100%,0 12px);
}
.game-video-play-btn .fa-play { padding-left: 4px; }
.game-video-play-btn:hover { background: var(--zx-amber); color: #10130f; }
.game-video-play-btn.hidden { opacity: 0; pointer-events: none; }

.game-video-controls {
    position: absolute; bottom: 0; left: 0; right: 0; display: flex; align-items: center; gap: 12px;
    padding: 12px 14px; background: linear-gradient(to top, rgba(0,0,0,.82), transparent);
    opacity: 0; transition: opacity .2s;
}
.game-video-player:hover .game-video-controls,
.game-video-player.is-paused .game-video-controls { opacity: 1; }
.game-video-ctrl-btn { background: none; border: none; color: rgba(230,235,225,.82); font-size: 15px; cursor: pointer; transition: color .15s; padding: 4px; }
.game-video-ctrl-btn:hover { color: var(--zx-amber); }
.game-video-progress-wrap { flex: 1; padding: 8px 0; cursor: pointer; }
.game-video-progress-track { height: 3px; background: rgba(200,210,190,.2); transition: height .15s; }
.game-video-progress-wrap:hover .game-video-progress-track { height: 5px; }
.game-video-progress-fill { height: 100%; width: 0%; background: var(--zx-amber); }
.game-video-time { font-family: var(--font-mono); font-size: 11px; color: var(--zx-faint); white-space: nowrap; }

@media (max-width: 620px) {
    .game-video-play-btn { width: 58px; height: 58px; font-size: 19px; }
    .game-video-controls { gap: 8px; padding: 10px; }
}
