/* Plyr overrides and player styles shared by AudioPlayer and VideoPlayer. Imported by useMediaPlayer.ts right after the Plyr stylesheet, which keeps the cascade order. */ /* Remove blue overlay when tapping on mobile */ .plyr, .plyr__video-wrapper, .plyr video { -webkit-tap-highlight-color: transparent; } .plyr__video-wrapper:focus, .plyr video:focus { outline: none; } .media-player { height: 100%; width: 100%; } .plyr { --plyr-color-main: var(--primaryColor); --plyr-video-background: rgb(0 0 0 / 100%); --plyr-focus-visible-color: var(--primaryColor); --plyr-audio-control-color: #fff; --plyr-menu-background: rgb(0 0 0 / 70%); --plyr-menu-color: #fff; --plyr-menu-border-shadow-color: rgb(0 0 0 / 50%); --plyr-menu-radius: 12px; --plyr-menu-shadow: 0 1px 2px rgb(0 0 0 / 50%); --plyr-control-radius: 12px; --plyr-control-icon-size: 16px; --plyr-control-spacing: 8px; --plyr-control-padding: 6px; --plyr-tooltip-background: rgb(0 0 0 / 80%); --plyr-tooltip-color: #fff; --plyr-video-controls-background: linear-gradient( transparent, rgb(0 0 0 / 70%) ); overflow: visible; background-color: rgb(216 216 216); box-shadow: 0 2px 6px rgb(88 88 88 / 45%); } .plyr__controls { color: black; } .plyr .plyr__controls { display: flex; flex-direction: row; gap: 8px; background-color: transparent; } .plyr .plyr__controls__items { display: flex; justify-content: space-between; align-items: center; flex-wrap: nowrap; } /* Transitions (e.g. how much time take to hide the player UI) */ .plyr .plyr__control { transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease; flex-shrink: 0; display: flex; min-width: 2em; justify-content: center; align-items: center; } /* Progress bar with full width (audio and video) */ .plyr .plyr__progress__container { flex: 100%; margin: 0; } @media (width <= 768px) { .plyr .plyr__control[data-plyr="rewind"], .plyr .plyr__control[data-plyr="fast-forward"] { display: none; } } /* Hide volume buttons on narrow screens to make more space */ @media (width <= 550px) { .plyr__volume { display: none; } } /* Double-tap / double-click seek feedback (left/right third of video) */ .video-skip-feedback-layer { position: absolute; inset: 0; z-index: 8; display: flex; align-items: center; justify-content: center; pointer-events: none; } .video-skip-feedback-layer--left { justify-content: flex-start; padding-left: min(22%, 7rem); } .video-skip-feedback-layer--right { justify-content: flex-end; padding-right: min(22%, 7rem); } .video-skip-feedback-layer i.material-symbols.video-skip-feedback-layer__icon { flex-shrink: 0; font-size: clamp(2.5rem, 7vmin, 6rem); line-height: 1; color: rgb(255 255 255 / 96%); filter: drop-shadow(0 2px 16px rgb(0 0 0 / 85%)); opacity: 0; transform: scale(0.55); font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 40; } .video-skip-feedback-layer--visible i.material-symbols.video-skip-feedback-layer__icon { animation: video-skip-feedback-pop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; } @keyframes video-skip-feedback-pop { 0% { opacity: 0; transform: scale(0.55); } 28% { opacity: 1; transform: scale(1.12); } 100% { opacity: 0; transform: scale(1); } } /********************* *** PLAYBACK TOAST *** **********************/ .playback-toast { position: fixed; bottom: 50px; left: 50%; transform: translateX(-50%); background: rgb(0 0 0 / 80%); color: white; padding: 15px 25px; border-radius: 8px; font-size: 1.1rem; display: flex; align-items: center; gap: 10px; z-index: 10000; pointer-events: none; user-select: none; opacity: 0; transition: opacity 0.3s ease; box-shadow: 0 4px 12px rgb(0 0 0 / 30%); } .playback-toast.visible { opacity: 1; } .playback-toast .material-symbols { font-size: 24px; color: white; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; } .status-indicator { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-left: 10px; } .status-on { background: #4caf50; } .status-off { background: #f44336; }