/* YJ_PLAYER_ADAPTIVE_V082 — stable controls, native fullscreen first. */
#yjRotateToggle, .yj-preview-rotate {
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  flex-shrink:0!important;box-sizing:border-box!important;
  min-width:42px!important;min-height:42px!important;padding:7px!important;
  border:1px solid rgba(255,255,255,.45)!important;border-radius:10px!important;
  background:rgba(17,20,28,.89)!important;color:#fff!important;cursor:pointer;touch-action:manipulation;
}
#yjRotateToggle svg,.yj-preview-rotate svg {display:block;width:24px;height:24px;flex:none;}
.yj-preview-rotate {position:absolute;right:12px;bottom:62px;z-index:40;gap:6px;min-width:82px!important;}
.yj-preview-rotate span {font-size:13px;font-weight:600;white-space:nowrap;}
#yjRotateToggle[aria-pressed=true],.yj-preview-rotate[aria-pressed=true] {border-color:#f5c674!important;}
#imPlayer .im-controls {display:flex!important;align-items:center!important;gap:6px!important;min-width:0!important;}
#imPlayer #imSeek {min-width:20px!important;flex:1 1 auto!important;}
#yjRotateToggle:focus-visible,.yj-preview-rotate:focus-visible,.yj82-landscape .yj82-landscape-controls :focus-visible {outline:2px solid #f5c674!important;outline-offset:2px;}
.yj-preview-stage {position:relative;display:block;background:#000;border-radius:10px;overflow:hidden;}
.yj-preview-stage > video {display:block;width:100%;max-height:70vh;}
/* Render a stable video canvas. Never stretch the video. */
.yj82-landscape {box-sizing:border-box!important;isolation:isolate!important;overflow:hidden!important;
 background:#000!important;border:0!important;border-radius:0!important;padding:0!important;margin:0!important;}
.yj82-landscape > video {position:absolute!important;inset:0!important;display:block!important;
 width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;
 max-width:none!important;max-height:none!important;object-fit:contain!important;
 transform:none!important;margin:0!important;background:#000!important;}
.yj82-landscape.yj82-cover-video > video {object-fit:cover!important;}
.yj82-landscape:fullscreen,.yj82-landscape:-webkit-full-screen {position:fixed!important;inset:0!important;
 width:100vw!important;width:100dvw!important;height:100vh!important;height:100dvh!important;
 max-width:none!important;max-height:none!important;transform:none!important;z-index:2147483000!important;}
/* Hide only existing UI while the replacement controls are present. Don't hide paywalls or access warnings. */
.yj82-landscape > .im-bottom,.yj82-landscape > .im-actions,.yj82-landscape > .im-back,
.yj82-landscape > .im-center-play,.yj82-landscape > .im-sheet,.yj82-landscape > .im-shade,
.yj82-landscape > .yj-preview-rotate {visibility:hidden!important;pointer-events:none!important;}
html.yj82-page-locked,html.yj82-page-locked body {overflow:hidden!important;overscroll-behavior:none!important;}
/* CSS fallback uses visualViewport dimensions, not 100vh; orientation changes never leave stale black space. */
.yj82-fallback {position:fixed!important;z-index:2147483000!important;
 left:var(--yj82-x,100vw)!important;top:var(--yj82-y,0px)!important;
 width:var(--yj82-w,100vh)!important;height:var(--yj82-h,100vw)!important;
 max-width:none!important;max-height:none!important;transform-origin:top left!important;}
.yj82-fallback[data-yj82-fallback="portrait"] {transform:rotate(90deg)!important;}
.yj82-fallback[data-yj82-fallback="landscape"] {transform:none!important;}
/* A separate, always-visible player bar: seek above buttons, inside the rotated/fullscreen surface. */
.yj82-landscape-controls {display:none!important;}
.yj82-landscape > .yj82-landscape-controls {
 position:absolute!important;left:0!important;right:0!important;bottom:0!important;
 z-index:2147483500!important;box-sizing:border-box!important;
 display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-end!important;
 min-height:94px!important;gap:2px!important;
 padding:8px max(12px,env(safe-area-inset-right)) max(9px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))!important;
 color:#fff!important;opacity:1!important;visibility:visible!important;pointer-events:auto!important;
 background:linear-gradient(to bottom,transparent 0%,rgba(0,0,0,.72) 17%,rgba(0,0,0,.94) 95%)!important;
 transform:none!important;
}
.yj82-timeline {width:100%;display:flex;align-items:center;gap:9px;min-height:32px;}
.yj82-time {flex:none;min-width:35px;white-space:nowrap;text-align:center;font:600 12px/1.2 system-ui,sans-serif;font-variant-numeric:tabular-nums;}
.yj82-progress {display:block;flex:1 1 auto;width:0!important;min-width:30px!important;height:28px!important;margin:0!important;padding:0!important;accent-color:#f5c674;touch-action:pan-x;cursor:pointer;}
.yj82-actions {display:flex;align-items:center;justify-content:center;gap:clamp(8px,3vw,25px);width:100%;min-height:46px;}
.yj82-actions button {display:inline-flex;flex:0 0 42px;align-items:center;justify-content:center;
 width:42px;height:42px;box-sizing:border-box;padding:7px;border-radius:10px;
 border:1px solid rgba(255,255,255,.30);background:rgba(30,34,41,.90);color:#fff!important;
 cursor:pointer;touch-action:manipulation;}
.yj82-actions button svg {width:24px;height:24px;display:block;}
.yj82-actions button[aria-pressed=true] {border-color:#f5c674;color:#f5c674!important;}
@media (max-height:370px) and (orientation:landscape) {
 .yj82-landscape > .yj82-landscape-controls {min-height:78px!important;padding-top:3px!important;padding-bottom:3px!important;}
 .yj82-timeline {min-height:27px;}
 .yj82-actions {min-height:40px;}
 .yj82-actions button {height:36px;width:38px;flex-basis:38px;}
}
@media (prefers-reduced-motion: reduce) {
 #yjRotateToggle,.yj-preview-rotate,.yj82-landscape-controls button {transition:none!important;}
}
