/* Mobile Google Drive preview recovery. Provider controls remain clickable. */
#player #ksP1EmbedRetry{min-height:42px;padding:7px 10px;border:1px solid rgba(126,191,237,.42);border-radius:9px;background:#203347;color:#e7f6ff;font-weight:700;touch-action:manipulation}
#player #ksP1EmbedRetry:hover,#player #ksP1EmbedRetry:focus-visible{background:#2c4860;outline:2px solid #8bd5ff;outline-offset:1px}
#player #playerMediaStage.ks-p1-fallback-fullscreen{position:fixed!important;inset:0!important;width:100vw!important;width:100dvw!important;height:100dvh!important;min-height:0!important;max-height:none!important;z-index:2147483647!important;background:#000!important}
#player #playerMediaStage.ks-p1-fallback-fullscreen>iframe#embedPlayer{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;pointer-events:auto!important}
@media(max-width:720px){
 #player .ks-p1-embed-fit:not([hidden]){grid-template-columns:minmax(0,1fr) auto!important;gap:7px!important}
 #player .ks-p1-embed-fit label{grid-column:1;grid-row:1}
 #player .ks-p1-embed-fit select{grid-column:1;grid-row:2;min-width:0!important;width:100%}
 #player .ks-p1-embed-fit #ksP1EmbedRetry{grid-column:2;grid-row:1/3;max-width:106px;padding:7px 8px;font-size:11px}
}
@media(max-width:350px){#player .ks-p1-embed-fit #ksP1EmbedRetry{grid-row:2}}

/* V1.4.50: leave real room for Google's player chrome on touch devices.
   The iframe stays at 100% size; no scaling, crop or click-blocking cover. */
@media (pointer:coarse) and (max-width:1180px){
 #player #playerMediaStage.ks-p1-embed:not(.ks-p1-fullscreen):not(.ks-p1-fallback-fullscreen):not(:fullscreen){
   height:max(620px,82svh,var(--ks-p1-embed-height,620px))!important;
   min-height:620px!important;max-height:none!important;aspect-ratio:auto!important;
 }
 #player #playerMediaStage.ks-p1-embed>iframe#embedPlayer:not(.hidden){inset:0!important;width:100%!important;height:100%!important;pointer-events:auto!important}
 #player .ks-p1-embed-fit:not([hidden]){position:relative!important;z-index:2;display:grid!important;visibility:visible!important;grid-template-columns:minmax(0,1fr) auto!important;gap:7px!important;min-height:68px!important}
}
@media (pointer:coarse) and (max-height:520px) and (orientation:landscape){
 #player #playerMediaStage.ks-p1-embed:not(.ks-p1-fullscreen):not(.ks-p1-fallback-fullscreen):not(:fullscreen){height:620px!important}
}
#player #playerMediaStage .ks-p1-embed-stage-fullscreen{position:absolute;z-index:552;left:calc(100% - 72px);top:calc(100% - 62px);display:grid;place-items:center;width:44px;height:44px;padding:8px;border:0;border-radius:9px;background:rgba(255,255,255,.025);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);color:#fff;box-shadow:none;touch-action:manipulation;pointer-events:auto!important}
#player #playerMediaStage .ks-p1-embed-stage-fullscreen svg{width:24px;height:24px;pointer-events:none}
#player #playerMediaStage .ks-p1-embed-stage-fullscreen[hidden],#player #playerMediaStage:not(.ks-p1-embed) .ks-p1-embed-stage-fullscreen{display:none!important}
#player #playerMediaStage .ks-p1-embed-stage-fullscreen:focus-visible{outline:2px solid #f4d38c;outline-offset:2px}
/* Clear square: the Google glyph remains visible, but taps stop at this layer. */
#player #playerMediaStage .ks-drive-popout-shield{position:absolute;z-index:553;width:52px;height:52px;box-sizing:border-box;border:0;border-radius:7px;background:transparent;backdrop-filter:blur(1px);-webkit-backdrop-filter:blur(1px);box-shadow:none;pointer-events:auto!important;touch-action:none;cursor:default}
#player #playerMediaStage .ks-drive-popout-shield[hidden]{display:none!important}
@media(pointer:fine),(min-width:1181px){#player #playerMediaStage .ks-p1-embed-stage-fullscreen{display:none!important}}
@media(pointer:coarse){#player #playerMediaStage.ks127-direct{touch-action:none!important}}
