body.studio-theme select.watch-choice-native{display:none!important}
.watch-choice{position:relative;min-width:0;width:100%;font-weight:500;direction:inherit}
body.studio-theme .watch-choice__trigger{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:44px;padding:10px 13px!important;border:1px solid var(--studio-color-border-strong)!important;border-radius:11px!important;background:var(--studio-color-control)!important;color:var(--studio-color-heading)!important;font:inherit;font-size:14px!important;line-height:1.5;text-align:start;cursor:pointer;white-space:normal}
.watch-choice__trigger[aria-expanded=true]{border-color:var(--studio-color-link)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--studio-color-link) 15%,transparent)}
body.studio-theme .watch-choice__menu{position:absolute;inset-inline:0;top:calc(100% + 8px);z-index:1000;min-width:180px;max-height:280px;overflow:auto;overscroll-behavior:contain;touch-action:pan-y;padding:6px;border:1px solid var(--studio-color-border-strong);border-radius:14px;background:var(--studio-color-card);box-shadow:0 14px 38px #0003;scrollbar-width:thin}
.watch-choice__menu[hidden]{display:none!important}
body.studio-theme .watch-choice__option{display:flex;align-items:center;gap:9px;width:100%;padding:11px!important;min-height:44px;border:0!important;border-radius:8px;background:transparent;color:var(--studio-color-text);text-align:start;font:inherit;font-size:13px;line-height:1.6;cursor:pointer}
.watch-choice__option>span{flex:1}.watch-choice__option i{font-style:normal;color:var(--studio-color-link)}
body.studio-theme .watch-choice__option:is(:hover,:focus-visible,[aria-selected=true]){background:var(--studio-color-control)!important;color:var(--studio-color-link)!important}
.watch-choice button:focus-visible{outline:2px solid var(--studio-color-link);outline-offset:2px}
.watch-choice__option b{font-size:10px;padding:2px 7px;border-radius:6px;color:var(--studio-color-success);background:color-mix(in srgb,var(--studio-color-success) 12%,transparent)}
.watch-choice__option b.vip{color:#855b06;background:#ffe7a3}
body.studio-theme .w146-server-select:has(.watch-choice){overflow:visible;display:block}
body.studio-theme .w146-server-select:has(.watch-choice)>span{display:none}
body.studio-theme .a2-episodes:has(.watch-choice__trigger[aria-expanded=true]),body.studio-theme .w146-serverbar:has(.watch-choice__trigger[aria-expanded=true]){position:relative;z-index:50;overflow:visible}
/* The server bar sits inside the clipped player shell. Raise that shell while
   the menu is open; a higher menu z-index alone cannot escape its clipping. */
body.studio-theme.studio-watch-page .w146-player-shell:has(.watch-choice__trigger[aria-expanded=true]){position:relative;z-index:51;overflow:visible}
body.studio-theme.studio-watch-page .w146-player-shell:has(.watch-choice__trigger[aria-expanded=true])>.w146-player{border-start-start-radius:inherit;border-start-end-radius:inherit}
body.studio-theme.studio-watch-page .w146-player-shell:has(.watch-choice__trigger[aria-expanded=true])>.w146-serverbar{border-end-start-radius:inherit;border-end-end-radius:inherit}
@media(max-width:600px){body.studio-theme .watch-choice__menu{min-width:0;max-height:220px}.watch-choice__trigger{font-size:13px!important}}
/* Episode controls are one surface, not a nested bordered button. */
body.studio-theme .a2-episodes__tools>label:has(.watch-choice){position:relative;overflow:visible}
body.studio-theme .a2-episodes__tools .watch-choice{position:static}
body.studio-theme .a2-episodes__tools .watch-choice__trigger{border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;padding:5px 0!important;min-height:34px}
body.studio-theme .a2-episodes__tools>label:has([aria-expanded="true"]){border-color:var(--studio-color-link)!important}
body.studio-theme .a2-episodes__tools .watch-choice__menu{inset-inline:0;top:calc(100% + 6px);width:100%;min-width:0;box-sizing:border-box;border-radius:12px}
body.studio-theme .a2-episodes__tools .watch-choice__trigger:focus-visible{outline:2px solid var(--studio-color-link);outline-offset:3px;border-radius:4px!important}
/* Compact, single-line choices, anchored to the control without squeezing labels. */
body.studio-theme .a2-episodes__tools .watch-choice__menu{width:100%;max-width:calc(100vw - 32px);inset-inline-start:0;inset-inline-end:auto;padding:5px;border-radius:10px}
body.studio-theme .a2-episodes__tools .watch-choice__option{min-height:38px!important;padding:8px 10px!important;font-size:13px!important;font-weight:500!important;line-height:1.5!important;gap:12px!important}
body.studio-theme .a2-episodes__tools .watch-choice__option>span{font-size:13px!important;font-weight:500!important;line-height:1.5!important;white-space:nowrap!important;display:block!important;min-width:0;color:inherit!important}
body.studio-theme .a2-episodes__tools .watch-choice__option>i{font-size:13px!important;width:auto!important;height:auto!important;background:none!important;padding:0!important}
body.studio-theme .w146-server-select:has(.watch-choice){display:flex;padding:0 14px;box-shadow:none!important}
body.studio-theme .w146-server-select:has(.watch-choice)>i{display:none!important}
body.studio-theme .w146-server-select .watch-choice{position:static}
body.studio-theme .w146-server-select .watch-choice__trigger{border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;padding:8px 0!important;min-height:44px}
body.studio-theme .w146-server-select .watch-choice__menu{inset-inline:0;top:calc(100% + 6px);width:100%;min-width:0;box-sizing:border-box}
body.studio-theme .w146-server-select .watch-choice__option>span{display:block;flex:1;min-width:0;font-size:13px!important;font-weight:500!important;line-height:1.5!important;color:inherit!important}
body.studio-theme .w146-server-select .watch-choice__option>i{font-size:13px!important;background:none!important;font-style:normal}

/* Match the native control footprint while retaining the custom menu. */
body.studio-theme .a2-episodes__tools>label:has(.watch-choice){min-width:151px;box-sizing:border-box}
body.studio-theme .a2-episodes__tools .watch-choice__trigger{min-width:125px;min-height:36px;font-size:14px!important;font-weight:800!important;line-height:1.5;white-space:nowrap}
body.studio-theme .a2-episodes__tools .watch-choice__option{min-height:44px!important;padding:10px 12px!important}
body.studio-theme .a2-episodes__tools .watch-choice__option>span{font-size:14px!important;font-weight:600!important}
@media(max-width:600px){body.studio-theme .a2-episodes__tools>label:has(.watch-choice){min-width:0}body.studio-theme .a2-episodes__tools .watch-choice__trigger{min-width:0;width:100%}}
/* Keep tier badges readable despite inherited player text colours. */
body.studio-theme .w146-server-select .watch-choice__option>b.vip{display:inline-flex;align-items:center;justify-content:center;flex:none;min-width:30px;padding:3px 7px;border:1px solid #d4aa4d;border-radius:6px;background:#f5d782!important;color:#513806!important;-webkit-text-fill-color:#513806!important;font-size:10px!important;font-weight:800!important;line-height:1.3;letter-spacing:.03em;box-shadow:none}

/* Mobile app selections live in the native dialog top layer, outside clipped players. */
body.studio-theme .watch-choice-sheet{position:fixed;inset:auto 0 0;margin:0 auto;width:min(100%,560px);max-width:100%;max-height:min(80dvh,640px);box-sizing:border-box;padding:0 0 env(safe-area-inset-bottom,0px);border:1px solid var(--studio-color-border-strong);border-bottom:0;border-radius:24px 24px 0 0;background:var(--studio-color-card);color:var(--studio-color-text);font:inherit;overflow:hidden;box-shadow:0 -12px 50px #0004}
body.studio-theme .watch-choice-sheet[open]{display:flex;flex-direction:column}
.watch-choice-sheet::backdrop{background:#020b15a6;backdrop-filter:blur(3px)}
body.studio-theme .watch-choice-sheet>header{display:flex;align-items:center;justify-content:space-between;gap:16px;flex:none;padding:14px 16px;border-bottom:1px solid var(--studio-color-border)}
body.studio-theme .watch-choice-sheet h2{margin:0;font-size:17px!important;line-height:1.6;color:var(--studio-color-heading)}
body.studio-theme .watch-choice-sheet>header button{flex:none;width:44px;height:44px;border:1px solid var(--studio-color-border);border-radius:14px;background:var(--studio-color-control);color:var(--studio-color-text);font:inherit;font-size:26px;cursor:pointer}
body.studio-theme .watch-choice-sheet .watch-choice__menu{position:static;inset:auto;flex:1 1 auto;min-height:0;width:100%;min-width:0;max-height:none;box-sizing:border-box;border:0;border-radius:0;padding:8px 12px 16px;box-shadow:none;overflow-y:auto;-webkit-overflow-scrolling:touch}
body.studio-theme .watch-choice-sheet .watch-choice__option{min-height:52px;padding:12px!important;font-size:15px;border-radius:12px;gap:12px}
.watch-choice-sheet button:focus-visible{outline:2px solid var(--studio-color-link);outline-offset:-3px}
body.studio-theme .watch-choice-sheet .watch-choice__option:disabled{opacity:.45;cursor:not-allowed}
body.mobile-app-sheet-open{overflow:hidden!important}
body.mobile-app-sheet-open :is(.mobile-app-dock,.a2-support-widget){visibility:hidden!important;pointer-events:none!important}
@media(max-height:500px){body.studio-theme .watch-choice-sheet{max-height:calc(100dvh - 16px)}body.studio-theme .watch-choice-sheet>header{padding:6px 16px}}
@media(min-width:821px) and (min-height:501px),(min-width:1025px){body.studio-theme .watch-choice-sheet{inset:0;margin:auto;width:min(520px,calc(100% - 32px));height:fit-content;max-height:calc(100dvh - 48px);border-bottom:1px solid var(--studio-color-border-strong);border-radius:20px}}
