/* Compact session entry beside the clock; the cinema surface owns inactivity. */
.watch-party-header{display:flex;align-items:center;justify-content:flex-end;gap:24px;margin-left:auto;flex:0 0 auto}
#watch-view.cinema-player .watch-party-entry{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:36px;padding:6px 13px;border:1px solid #d6c5ed30;border-radius:999px;background:#19151f80;color:#f6f2fa;font-family:inherit;font-size:15px;font-weight:500;line-height:1.2;white-space:nowrap;box-shadow:none;flex:0 0 auto}
#watch-view.cinema-player .watch-party-entry:hover{background:#241e2bba;border-color:#c4a9e36b}
.watch-party-entry:focus-visible{outline:2px solid #ceb7ec;outline-offset:3px}
.watch-party-avatars{display:flex;align-items:center;padding-left:0}
.watch-party-avatar{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:36px;height:36px;border-radius:50%;background:#62516f;color:#faf6ff;font-size:16px;font-weight:600;line-height:1}
.watch-party-avatars .watch-party-avatar{width:26px;height:26px;border:2px solid #292231;font-size:12px}
.watch-party-avatars .watch-party-avatar+.watch-party-avatar{margin-left:-8px;background:#b494da}
.watch-party-group-icon{width:18px;height:18px;display:inline-flex;align-items:center}
.watch-party-group-icon svg{width:100%;height:100%}
.watch-party-entry [hidden],.watch-party-dialog [hidden],.watch-party-unlock[hidden]{display:none!important}
.cinema-player.controls-idle .watch-party-header{opacity:0;pointer-events:none;transition:opacity .2s}
.watch-party-unlock{position:absolute;z-index:30;top:42%;left:50%;transform:translateX(-50%);max-width:90%;padding:16px 22px;border-radius:10px}
/* The same small centered window is used to create, accept and manage a session. */
dialog.watch-party-dialog{position:fixed;inset:auto;top:50%;left:50%;transform:translate(-50%,-50%);margin:0;width:min(520px,calc(100vw - 32px));max-width:calc(100vw - 32px);height:fit-content;max-height:min(600px,calc(100vh - 48px));max-height:min(600px,calc(100dvh - 48px));padding:26px;border:1px solid #6c5c8066;border-radius:16px;background:#19151ff5;color:#efe8f6;box-shadow:0 18px 65px #0006;font-size:16px;overflow:hidden;box-sizing:border-box}
dialog.watch-party-dialog[open]{display:flex;flex-direction:column}
.watch-party-dialog::backdrop{background:#0004;backdrop-filter:none}
.watch-party-heading{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.watch-party-heading h2{flex:1;font-size:24px;line-height:1.3;font-weight:650;letter-spacing:-.4px;margin:0}
.watch-party-heading .watch-party-close{display:inline-flex;align-items:center;justify-content:center;flex:0 0 30px;width:30px;min-height:30px;padding:0;border:0;border-radius:6px;background:transparent;color:#f3edf8;font-size:28px;line-height:1;box-shadow:none}
.watch-party-description{font-size:16px;line-height:1.4;margin:7px 0 22px;color:#cbc2d3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:0 0 auto}
.watch-party-body{flex:0 1 auto;min-height:0;overscroll-behavior:contain;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#71617e transparent}
.watch-party-body h3{font-size:17px;line-height:1.4;font-weight:600;margin:0 0 12px}
.watch-party-members{display:flex;flex-direction:column;gap:2px;margin:0 0 20px;padding:0 0 18px;border-bottom:1px solid #78638950;max-height:none;overflow:visible}
.watch-party-member,.watch-party-user{display:flex;align-items:center;gap:14px;min-height:48px;padding:4px 0;box-sizing:border-box}
.watch-party-member-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.watch-party-member-status{display:flex;align-items:center;justify-content:flex-end;gap:8px;font-size:14px;line-height:1.4;text-align:right;color:#c7bdce;max-width:48%}
.watch-party-member-status::before{content:'';width:7px;height:7px;border-radius:50%;background:#c7ab6e;flex:0 0 auto}
.watch-party-member-status[data-ready=true]::before{background:#7bd39a}
.watch-party-member-status[data-error=true]{color:#e1b6aa}
.watch-party-member-status[data-error=true]::before{background:#dd9a87}
.watch-party-users{display:flex;flex-direction:column;gap:4px;max-height:none;overflow:visible}
.watch-party-person{display:flex;flex:1;min-width:0;flex-direction:column;gap:3px}
.watch-party-person>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.watch-party-person small{font-size:13px;color:#b9aec4;line-height:1.35}
.watch-party-user input,.watch-party-control input{appearance:auto;width:21px;height:21px;min-height:0;margin:0 1px 0 8px;accent-color:#b7a0e0;cursor:pointer;flex:0 0 auto}
.watch-party-user:has(input:disabled){opacity:.55}
.watch-party-message{margin:10px 0 0;font-size:13px;line-height:1.4;color:#c7b4dd}
.watch-party-message:empty{display:none}
.watch-party-footer{display:flex;align-items:center;justify-content:flex-end;gap:14px;margin-top:26px;flex:0 0 auto}
.watch-party-footer button{min-height:40px;padding:9px 14px;font-size:15px;line-height:1.3;font-weight:500;max-width:75%;white-space:normal;overflow-wrap:anywhere;border-radius:8px}
.watch-party-quiet{background:transparent;border:0;color:#f0eaf5;box-shadow:none}
.watch-party-primary{background:#b7a0e0;color:#19111f;border:1px solid #b7a0e0}
.watch-party-primary:hover{background:#c5adef}
.watch-party-primary:disabled{opacity:.5;cursor:default}
.watch-party-control{flex:0 0 auto;padding-top:16px;margin-top:18px;border-top:1px solid #78638950;display:flex;align-items:center;gap:10px;font-size:14px;line-height:1.4}
.watch-party-control input{margin-left:0;width:18px;height:18px}
.watch-party-leave,.watch-party-begin{padding:9px 0;border:0;background:transparent;color:#cbb5e5;font-size:14px;text-align:left;box-shadow:none}
.watch-party-footer .watch-party-leave{margin-right:auto;padding:5px 0;max-width:40%;font-size:13px;color:#cbb5e5}
.watch-party-begin{display:block;margin-top:10px}
.watch-party-question{font-size:16px;line-height:1.6;margin:0}
.watch-party-dialog :focus-visible{outline:2px solid #d5baf7;outline-offset:3px}
@media(max-width:700px){.watch-party-header{gap:14px}#watch-view.cinema-player .watch-party-entry{font-size:12px;gap:6px;padding:5px 9px;min-height:32px}.watch-party-avatars .watch-party-avatar{width:23px;height:23px;font-size:10px}.watch-party-group-icon{width:15px;height:15px}.watch-party-dialog .watch-party-heading h2{font-size:22px}}
@media(max-width:480px){dialog.watch-party-dialog{padding:22px}.watch-party-header{gap:10px}.watch-party-description{margin-bottom:18px}.watch-party-member,.watch-party-user{gap:10px}.watch-party-footer{gap:8px;margin-top:22px}#watch-view.cinema-player .watch-party-entry{font-size:11px;padding:5px 8px}.watch-party-entry .watch-party-avatars{display:none}}
.austral-tv dialog.watch-party-dialog{width:min(560px,calc(100vw - 70px));max-height:min(640px,calc(100vh - 64px));max-height:min(640px,calc(100dvh - 64px));font-size:20px;padding:30px}.austral-tv .watch-party-heading h2{font-size:28px}.austral-tv .watch-party-member-status{font-size:18px}.austral-tv .watch-party-description,.austral-tv .watch-party-footer button{font-size:19px}.austral-tv #watch-view.cinema-player .watch-party-entry{font-size:19px;min-height:40px}

/* LIVE keeps its own shared-TV controls. */
body.tv-view-active .watch-party-entry,body.tv-view-active .watch-party-unlock{display:none!important}
