.caption-control{position:relative;flex:0 0 auto}
.video-shell .caption-control[hidden],.video-shell .caption-menu[hidden]{display:none!important}
.video-shell .video-controls #captions-button{font-size:.72rem;font-weight:800;letter-spacing:-.04em;border-radius:.35rem;border:1px solid #ffffff70;flex:0 0 auto}
.video-shell #captions-button[aria-pressed="true"]{color:#111;background:#ffe066;border-color:#ffe066}
.video-shell #captions-button:disabled{opacity:.35;cursor:default}
.video-shell .caption-menu{position:absolute;z-index:20;right:0;bottom:calc(100% + .65rem);width:max-content;min-width:11rem;max-width:min(20rem,calc(100vw - 2rem));max-height:min(18rem,45dvh);overflow:auto;overscroll-behavior:contain;padding:.35rem;background:rgb(15 15 15 / .97);border:1px solid #555;border-radius:.55rem;box-shadow:0 .3rem 1.4rem #0009}
.video-shell .caption-menu button{display:block!important;width:100%!important;height:auto!important;min-height:2.4rem!important;margin:0!important;padding:.55rem .75rem!important;border:0!important;border-radius:.3rem!important;background:transparent!important;color:#f4f4f4;text-align:start;white-space:normal;font:inherit;font-size:.9rem!important}
.video-shell .caption-menu button[aria-checked="true"]{background:#ffe066!important;color:#111!important}
.video-shell .caption-menu button:focus-visible,.video-shell #captions-button:focus-visible{outline:2px solid #fff;outline-offset:2px}
.video-shell:has(.caption-menu:not([hidden])) .video-controls{opacity:1!important;pointer-events:auto!important}
.video-shell:has(.caption-menu:not([hidden])){cursor:auto!important}
html.touch-player-ui .video-shell .video-controls #captions-button{width:2.65rem!important;height:2.65rem!important;min-height:2.65rem!important;touch-action:manipulation}
