/* Orata — watching together in a call (party.js): the video tile in the call grid, its controls, the queue / add / people panel, and the notes and reactions over the video. */
.party-tile { display: flex; align-items: stretch; justify-content: stretch; background: #000; container-type: inline-size; container-name: party; }
.party-tile:fullscreen { border-radius: 0; }
.party-main { position: relative; flex: 1; min-width: 0; min-height: 0; overflow: hidden; background: #000; color: #fff; }
.party-video { position: absolute; inset: 0; } .party-video iframe { width: 100%; height: 100%; border: 0; display: block; }
.party-shield { position: absolute; inset: 0; z-index: 1; } .party-shield.can { cursor: pointer; }
.party-empty { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; text-align: center; color: #fff; background: radial-gradient(circle at 50% 40%, rgb(var(--accent-rgb) / .35), rgb(0 0 0 / .9) 70%); }
.party-empty b { font-size: 20px; } .party-empty p { margin: 0 0 6px; max-width: 38ch; opacity: .75; font-size: 14px; line-height: 1.5; } .party-empty .icon { opacity: .8; }
.party-empty.over { background: rgb(0 0 0 / .82); }
.party-join { position: absolute; z-index: 3; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border: 0; border-radius: 99px; background: var(--accent-grad, var(--accent)); color: var(--on-accent, #fff); font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; box-shadow: 0 10px 30px rgb(0 0 0 / .5); }
.party-top { position: absolute; z-index: 3; left: 0; right: 0; top: 0; display: flex; align-items: flex-start; gap: 12px; padding: 12px 12px 28px 16px; background: linear-gradient(rgb(0 0 0 / .72), transparent); pointer-events: none; } .party-top > * { pointer-events: auto; }
.pt-text { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; text-shadow: 0 1px 6px rgb(0 0 0 / .6); } .pt-text b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pt-text small { opacity: .78; font-size: 12.5px; }
.party-bar { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; padding: 30px 12px 8px; display: flex; flex-direction: column; gap: 2px; background: linear-gradient(transparent, rgb(0 0 0 / .8)); }
.party-top, .party-bar { transition: opacity .25s ease, transform .25s ease; }
.party-tile.idle .party-top { opacity: 0; transform: translateY(-6px); pointer-events: none; }
.party-tile.idle .party-bar { opacity: 0; transform: translateY(6px); pointer-events: none; }
.party-tile.idle .party-main, .party-tile.idle .party-shield { cursor: none; }
.party-note { transition: bottom .25s ease; } .party-tile.idle .party-note { bottom: 28px; }
.party-paused { position: absolute; z-index: 2; left: 50%; top: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px; display: grid; place-items: center; border-radius: 50%; background: rgb(0 0 0 / .5); color: #fff; backdrop-filter: blur(6px); pointer-events: none; animation: fade-in var(--t-med) ease both; }
.pb-seek { display: flex; align-items: center; gap: 10px; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.party-range { -webkit-appearance: none; appearance: none; flex: 1; min-width: 0; height: 16px; margin: 0; background: transparent; cursor: pointer; --pct: 0%; }
.party-range::-webkit-slider-runnable-track { height: 5px; border-radius: 99px; background: linear-gradient(to right, var(--accent) var(--pct), rgb(255 255 255 / .3) var(--pct)); }
.party-range::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -4.5px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgb(0 0 0 / .5); }
.party-range::-moz-range-track { height: 5px; border-radius: 99px; background: rgb(255 255 255 / .3); } .party-range::-moz-range-progress { height: 5px; border-radius: 99px; background: var(--accent); }
.party-range::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: #fff; }
.party-range.ro { display: block; flex: 1; height: 5px; border-radius: 99px; background: linear-gradient(to right, var(--accent) var(--pct), rgb(255 255 255 / .3) var(--pct)); cursor: default; }
.party-range.vol { flex: none; width: 76px; }
.pb-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.pb-group { display: flex; align-items: center; gap: 2px; }
.pb-btn { position: relative; display: inline-grid; place-items: center; min-width: 36px; height: 36px; padding: 0 6px; border: 0; border-radius: 10px; background: transparent; color: inherit; font: inherit; cursor: pointer; transition: background var(--t-fast); }
.pb-btn:hover:not(:disabled) { background: rgb(255 255 255 / .16); } .pb-btn:disabled { opacity: .4; cursor: default; } .pb-btn.big { min-width: 44px; } .pb-btn.txt { font-size: 13px; font-weight: 700; } .pb-btn.on { background: rgb(255 255 255 / .22); }
.pb-count { position: absolute; top: 1px; right: -2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: var(--accent); color: var(--on-accent, #fff); font-size: 11px; font-style: normal; font-weight: 700; line-height: 16px; text-align: center; }
.pb-lock { display: inline-flex; align-items: center; gap: 6px; padding: 0 8px; font-size: 13px; font-weight: 700; opacity: .85; }
.pb-menu { position: relative; display: inline-block; }
.pb-pop { position: absolute; bottom: 44px; left: 0; z-index: 6; margin: 0; padding: 6px; list-style: none; min-width: 100px; display: flex; flex-direction: column; border-radius: 12px; border: 1px solid rgb(255 255 255 / .14); background: rgb(18 18 26 / .96); backdrop-filter: blur(10px); }
.pb-pop button { width: 100%; padding: 7px 12px; border: 0; border-radius: 8px; background: none; color: #fff; font: inherit; text-align: left; cursor: pointer; } .pb-pop button:hover, .pb-pop button.on { background: rgb(255 255 255 / .16); }
.pb-pop.emoji { flex-direction: row; min-width: 0; left: auto; right: -50px; } .pb-pop.emoji button { width: auto; padding: 4px 7px; font-size: 22px; text-align: center; }
.party-note { position: absolute; z-index: 4; left: 50%; bottom: 96px; transform: translateX(-50%); max-width: 82%; padding: 8px 16px; border-radius: 99px; background: rgb(0 0 0 / .74); color: #fff; font-size: 14px; font-weight: 600; text-align: center; backdrop-filter: blur(8px); pointer-events: none; animation: party-note 4.5s ease both; }
@keyframes party-note { 0% { opacity: 0; transform: translate(-50%, 8px); } 8%, 85% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, 0); } }
.party-floats { position: absolute; inset: 0; z-index: 4; overflow: hidden; pointer-events: none; }
.pf { position: absolute; bottom: 74px; display: inline-flex; align-items: center; gap: 6px; font-size: 34px; line-height: 1; animation: party-float 3.2s ease-out both; filter: drop-shadow(0 2px 6px rgb(0 0 0 / .5)); }
@keyframes party-float { 0% { transform: translateY(0) scale(.6); opacity: 0; } 12% { opacity: 1; transform: translateY(-18px) scale(1); } 100% { transform: translateY(-240px) scale(1.15); opacity: 0; } }

/* the panel: beside the video when the tile is wide, over it when it is not */
.party-panel { flex: none; width: 340px; min-height: 0; display: flex; flex-direction: column; background: rgb(var(--panel-rgb) / .97); border-left: 1px solid var(--border); color: var(--text, inherit); }
@container party (max-width: 759px) { .party-panel { position: absolute; z-index: 7; top: 0; right: 0; bottom: 0; width: min(340px, 100%); box-shadow: -10px 0 30px rgb(0 0 0 / .45); backdrop-filter: blur(14px); } }
.party-panel .pb-btn { color: inherit; } .party-panel .pb-btn:hover:not(:disabled) { background: var(--hover); }
.pp-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 8px 8px 8px 10px; border-bottom: 1px solid var(--border); }
.pp-tabs { display: flex; gap: 4px; } .pp-tabs button { padding: 7px 14px; border: 0; border-radius: 99px; background: none; color: var(--text-2); font: inherit; font-weight: 600; cursor: pointer; } .pp-tabs button:hover { background: var(--hover); }
.pp-tabs button.on { background: var(--accent-grad, var(--accent)); color: var(--on-accent, #fff); }
.pp-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 10px 14px; display: flex; flex-direction: column; gap: 2px; }
.pp-scroll h4 { margin: 14px 4px 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); }
.pp-row { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 10px; } .pp-row:hover { background: var(--hover); } .pp-row.now { background: rgb(var(--surface-rgb) / .09); }
.pp-thumb { position: relative; flex: none; width: 96px; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: rgb(var(--surface-rgb) / .14); } .pp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp-thumb i { position: absolute; right: 3px; bottom: 3px; padding: 0 4px; border-radius: 4px; background: rgb(0 0 0 / .8); color: #fff; font-size: 11px; font-style: normal; font-weight: 700; } .pp-thumb i.live { background: #e0245e; }
.pp-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pp-text b { font-size: 13.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.pp-text small { color: var(--text-3); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-by { flex: none; max-width: 64px; color: var(--text-3); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-act { flex: none; display: flex; gap: 2px; opacity: 0; transition: opacity var(--t-fast); } .pp-row:hover .pp-act, .pp-act.always { opacity: 1; }
.pp-act button { width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 8px; background: rgb(var(--surface-rgb) / .1); color: inherit; cursor: pointer; } .pp-act button:hover { background: var(--accent); color: var(--on-accent, #fff); }
.pp-drag[draggable="true"] { cursor: grab; } .pp-drag .pp-row.dragging { opacity: .4; } .pp-drag .pp-row.drop-before { box-shadow: 0 -2px 0 var(--accent); } .pp-drag .pp-row.drop-after { box-shadow: 0 2px 0 var(--accent); }
.pp-dim { margin: 6px 4px; color: var(--text-3); font-size: 13.5px; line-height: 1.45; } .pp-dim.pad { padding: 22px 8px; text-align: center; } .pp-dim.hint { font-size: 12.5px; }
.pp-center { display: grid; place-items: center; padding: 30px; }
.pp-search { position: relative; display: flex; align-items: center; margin-top: 6px; } .pp-search .icon { position: absolute; left: 12px; color: var(--text-3); pointer-events: none; }
.pp-search input { width: 100%; box-sizing: border-box; padding: 9px 12px 9px 36px; border-radius: 99px; border: 1px solid var(--border); background: rgb(var(--surface-rgb) / .06); color: inherit; font: inherit; font-size: 14px; outline: none; } .pp-search input:focus { border-color: var(--accent); }
.pp-person { display: flex; align-items: center; gap: 10px; padding: 6px; }
.pp-allow { flex: none; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--border); background: none; color: inherit; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; } .pp-allow:hover { background: var(--hover); } .pp-allow.on { background: rgb(var(--surface-rgb) / .14); }
.pp-crown { flex: none; color: #f0b232; display: inline-flex; padding: 0 8px; }
.pp-end { margin-top: 12px; justify-content: center; }

/* on the call panel, bottom left */
.vc-watch { display: flex; align-items: center; gap: 7px; width: 0; min-width: 100%; box-sizing: border-box; margin-top: 8px; padding: 7px 10px; border: 0; border-radius: 10px; background: rgb(var(--surface-rgb) / .1); color: inherit; font: inherit; font-size: 12.5px; text-align: left; cursor: pointer; } .vc-watch:hover { background: var(--hover); } .vc-watch .icon { flex: none; color: var(--accent); } .vc-watch span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 760px) { .pb-row { gap: 4px; } .party-range.vol { display: none; } .pp-thumb { width: 84px; } }
