/* Only main R4D players are opted in by R4DControlStrip.configure. */
html body .screen-frame.r4d-attached-player {display:flex!important;flex-direction:column!important;aspect-ratio:auto!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:hidden;background:#000}
.screen-frame.r4d-attached-player::before {display:none!important}
.r4d-attached-player>.r4d-picture {position:relative;flex:none;width:100%;min-height:0;padding-top:56.25%;overflow:hidden}
.r4d-picture>#homepage-decks,.r4d-picture>#watch-decks {position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%}
.r4d-attached-player #screen-toggle,.r4d-attached-player #watch-exit-fullscreen {display:none!important}
.r4d-attached-player video[data-r4d-strip]::-webkit-media-controls {display:none!important}
.r4d-control-strip {flex:none;position:relative;background:#143859;color:#fff;padding:10px;border-top:1px solid #f58a25;box-sizing:border-box;min-height:86px}
.r4d-control-strip [hidden],.r4d-control-strip[hidden] {display:none!important}
.r4d-strip-playback {display:flex;flex-direction:column;gap:6px;min-height:64px;justify-content:center}
.r4d-control-strip .continuous-segments {position:static!important;display:flex;gap:6px;width:100%;margin:0!important;padding:0!important;height:22px!important;pointer-events:auto}
.r4d-control-strip .continuous-segments button {flex-basis:0;min-width:0;min-height:22px!important;height:22px!important;max-height:none!important;margin:0!important;padding:1px 3px!important;border:1px solid #a9bac9!important;border-radius:5px!important;background:#758390!important;color:white!important;font:600 12px/18px Arial,sans-serif!important;overflow:hidden;text-overflow:ellipsis}
.r4d-control-strip .continuous-segments button.is-played {background:#ffd34e!important;color:#143859!important}
.r4d-control-strip .continuous-segments button.is-active {background:#ff8500!important;color:#143859!important;border-color:#fff!important}
.r4d-transport {display:flex;align-items:center;gap:8px;min-width:0;height:36px}
.r4d-transport button {display:inline-flex;align-items:center;justify-content:center;flex:0 0 36px;width:36px;min-width:0;height:36px;min-height:36px;padding:4px;border:0;border-radius:5px;background:transparent;color:white;font:22px Arial;box-shadow:none;cursor:pointer}
.r4d-transport button:hover {background:#ffffff20}
.r4d-transport svg {width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.r4d-transport input[type=range] {height:30px;min-height:0;margin:0;padding:0;accent-color:#ffd34e;min-width:0;background:transparent;border:0}
.r4d-transport .r4d-seek {flex:1;width:0}
.r4d-transport .r4d-volume {flex:0 0 70px;width:70px}
.r4d-time {white-space:nowrap;font:12px Arial;color:white;font-variant-numeric:tabular-nums}
.r4d-captions {font:12px Arial;max-width:100px;min-height:32px;padding:2px}
.r4d-control-strip .r4d-ad-bar {position:static!important;display:flex!important;margin:0;padding:0;background:transparent;opacity:1!important;visibility:visible!important;pointer-events:auto!important;transform:none!important}
.r4d-control-strip .r4d-replay-row {position:static!important;display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:10px!important;align-items:stretch!important;width:100%!important;margin:0!important;padding:0!important;transform:none!important}
.r4d-control-strip .r4d-replay-row.r4d-single-replay {grid-template-columns:1fr}
html body .r4d-attached-player #completion-actions #replay, html body .r4d-attached-player #completion-actions #another, html body .r4d-attached-player #homepage-completion #homepage-replay, html body .r4d-attached-player #homepage-completion #homepage-another {display:flex!important;position:relative!important;align-items:center!important;justify-content:center!important;gap:3px!important;min-width:0!important;width:100%!important;min-height:48px!important;height:48px!important;max-width:none!important;aspect-ratio:auto!important;padding:4px!important;border:1px solid #e8a025!important;border-radius:12px!important;background:#ffe14d!important;color:#12395b!important;box-shadow:none!important;font:700 var(--r4d-replay-font,14px)/1.2 Arial,sans-serif!important;white-space:nowrap!important;word-break:normal!important;overflow-wrap:normal!important;flex-wrap:nowrap!important}
html body .r4d-attached-player #completion-actions #another, html body .r4d-attached-player #homepage-completion #homepage-another {background:#ffae25!important}
.r4d-replay-row>button::before,.r4d-replay-row>button>.arrow,.r4d-replay-row>button>img:not(.completion-r4d-logo) {display:none!important}
html body .r4d-attached-player #completion-actions img.completion-r4d-logo,html body .r4d-attached-player #homepage-completion img.completion-r4d-logo {position:static!important;display:inline-block!important;object-fit:contain;width:var(--r4d-replay-logo,32px)!important;height:var(--r4d-replay-logo-height,20px)!important;margin:0!important;flex-shrink:0}
.r4d-control-strip button:focus-visible,.r4d-control-strip input:focus-visible,.r4d-control-strip select:focus-visible {outline:2px solid white!important;outline-offset:2px}
.r4d-control-strip button:disabled {opacity:.55;cursor:wait}
.r4d-completed .screen-poster-copy>p {display:none!important}
.r4d-strip-exit {position:static;margin:6px 0 0 auto;display:block;min-height:32px;padding:4px 10px;color:white;background:transparent;border:1px solid #a9bac9;border-radius:6px;font:13px Arial}
html body .screen-frame.r4d-attached-player:fullscreen,html body .screen-frame.r4d-attached-player.r4d-fallback-fullscreen {width:100vw!important;height:100vh!important;height:100dvh!important;max-height:none!important;border-radius:0!important;border:0!important}
.r4d-attached-player:fullscreen>.r4d-picture,.r4d-attached-player.r4d-fallback-fullscreen>.r4d-picture {flex:1 1 0!important;padding:0!important;min-height:0!important}
.r4d-attached-player:fullscreen .screen-poster,.r4d-fallback-fullscreen .screen-poster {background-size:contain!important;background-repeat:no-repeat;background-color:#000}
.r4d-attached-player:fullscreen .r4d-control-strip,.r4d-fallback-fullscreen .r4d-control-strip {padding-left:max(10px,env(safe-area-inset-left));padding-right:max(10px,env(safe-area-inset-right));padding-bottom:max(10px,env(safe-area-inset-bottom))}
.r4d-fallback-fullscreen {position:fixed!important;top:0!important;left:0!important;z-index:2147483000!important}
body.r4d-fullscreen-open {overflow:hidden!important}
html[data-embed=true] body .r4d-attached-player {height:100vh!important}
html[data-embed=true] .r4d-attached-player>.r4d-picture {flex:1 1 0;padding:0}
@media(max-width:540px) {
 .r4d-control-strip{padding:8px;min-height:82px}
 .r4d-transport{gap:3px}
 .r4d-transport .r4d-volume{display:none}
 .r4d-time{font-size:10px}
 .r4d-captions{max-width:62px}

}

.r4d-control-strip .r4d-replay-row[hidden]{display:none!important}

/* The end state needs only its compact buttons; playback keeps its two rows. */
.r4d-completed .r4d-control-strip {min-height:0;padding:8px}
