.video-subtitles{position:absolute;z-index:4;pointer-events:none;box-sizing:border-box;display:flex;justify-content:center;align-items:flex-start;padding:0;transition:none}
.video-subtitles[hidden]{display:none}.video-subtitles__text{box-sizing:border-box;white-space:pre;text-align:center;background:rgba(0,0,0,.72);color:#fff;padding:5px 12px;border-radius:5px;font-family:system-ui,"Noto Sans Devanagari",sans-serif;font-size:clamp(14px,1.3vw,20px);font-weight:500;line-height:1.5;max-width:100%;text-shadow:0 1px 2px #000;pointer-events:none}.video-subtitles__text:empty{display:none}
.watch.has-subtitles .uploaded-player{inset:0;width:100%;height:100%}.watch.has-subtitles .watch-copy{pointer-events:auto}
.watch header:has(.subtitle-settings){display:flex;align-items:center;gap:8px}.watch header:has(.subtitle-settings)>span{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.subtitle-settings{position:relative;flex:none;order:2;pointer-events:auto}.watch header>[data-sheet="share"]{order:3}
.subtitle-settings summary{list-style:none;display:flex;align-items:center;justify-content:center;min-width:36px;min-height:40px;border:0;border-radius:8px;background:rgba(0,0,0,.3);color:#fff;font:600 12px/1 system-ui;cursor:pointer;letter-spacing:.5px}.subtitle-settings summary::-webkit-details-marker{display:none}.subtitle-settings summary[data-active="false"]{color:#aaa}.subtitle-settings summary:focus-visible{outline:2px solid #ffc928;outline-offset:2px}
.subtitle-settings__menu{position:absolute;top:calc(100% + 6px);right:0;min-width:112px;padding:5px;background:#191b20;border:1px solid #ffffff24;border-radius:10px;box-shadow:0 6px 24px #0008;display:grid;gap:3px}.watch header .subtitle-settings__menu button{width:100%;height:auto;min-height:40px;padding:8px 12px;border-radius:6px;text-align:left;font:500 14px/1.4 system-ui;background:transparent;color:#fff}.watch header .subtitle-settings__menu button[aria-pressed="true"]{background:#ffffff18;color:#ffda66}
.watch.landscape-player header:has(.subtitle-settings) .watch-landscape{margin-left:auto}.watch.landscape-player .video-subtitles{z-index:4}
@media(max-width:600px){.video-subtitles__text{font-size:15px;line-height:1.5}.subtitle-settings summary{min-width:32px}.watch header:has(.subtitle-settings){gap:4px}}
@media(max-height:480px) and (orientation:landscape){.video-subtitles__text{font-size:14px;padding:3px 10px}}
