/* --- AOnePlayer for AIO Video - MPEG-DASH, live rewind (DVR), Vimeo and the audio tracks of a stream.   Author: MD OMAR FARUK | www.faruk.bd | Copyright (c) 2026 --- */

/* ---- the LIVE pill: red at the live edge, dimmed while behind it; a click goes back to live ---- */
.aone-livepill { display: none !important; }
.aiop.aone-live .aone-livepill { display: inline-flex !important; align-items: center; gap: 6px; height: 26px; margin: 0 4px; padding: 0 10px 0 8px;
    border-radius: 6px; background: #e41e3f; color: #fff; font: 800 12px/1 system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase;
    white-space: nowrap; opacity: 1; cursor: default; }
.aone-livepill i { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: aone-live-blink 1.4s infinite; }
.aiop.aone-live.aone-behind .aone-livepill { background: rgba(255, 255, 255, .16); opacity: .7; cursor: pointer; }
.aiop.aone-live.aone-behind .aone-livepill:hover { opacity: 1; background: rgba(255, 255, 255, .26); }
.aiop.aone-live.aone-behind .aone-livepill i { background: #9ca3af; animation: none; }
@keyframes aone-live-blink { 50% { opacity: .35; } }

/* ---- live rewind: the seek bar is the window of the past the stream keeps ---- */
.aiop.aone-dvr .aiop-skipbtn { display: grid; }
.aiop.aone-dvr:not(.aone-behind) .aiop-time { display: none; }
.aiop.aone-dvr .aiop-scrub .played { transition: none; }

/* the Live TV pages say LIVE in the time box and hide the seek bar; with the pill and a window they need neither */
.ltv-player .aiop.aone-live .aiop-time::before { content: none; display: none; }
.ltv-player .aiop.aone-dvr .aiop-time { font-size: 12.5px !important; }
.ltv-player .aiop.aone-dvr .aiop-scrub { visibility: visible; }

/* ---- a Vimeo video under our controls: Vimeo's frame never takes the pointer ---- */
.aiop.is-vimeo .aiop-remote, .aiop.is-vimeo .aiop-remote iframe { pointer-events: none; }
.aone-vimeo-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* a page of the gear menu: the engine's style sheet gives its back arrow no size (it filled the menu) */
.aiop-menu .head svg { width: 20px; height: 20px; flex: none; fill: currentColor; }
