:root {
  --bg: #0d0d0f;
  --content: #101012;
  --sidebar: #0b0b0d;
  --topbar: #141416;
  --card: #232327;
  --text: #f3f3f5;
  --muted: #a2a2aa;
  --muted-2: #67676f;
  --accent: #e5a00d;
  --accent-2: #cc7b19;
  --edge: #242428;
  --shadow: 0 8px 26px rgba(0,0,0,.6);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text);
  font-family: -apple-system, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased; overflow: hidden; }
.app { display: flex; flex-direction: column; height: 100vh; border: 2px solid #4a4a52;
  border-radius: 11px; overflow: hidden; }

/* ---------- Top toolbar ---------- */
.topbar { position: relative; height: 52px; flex: 0 0 52px; display: flex; align-items: center; gap: 8px;
  padding: 0 14px; background: var(--topbar); border-bottom: 1px solid var(--edge); }
.tb-btn { width: 34px; height: 34px; border-radius: 8px; border: none; background: transparent;
  color: var(--muted); cursor: pointer; display: grid; place-items: center; padding: 0; }
.tb-btn:hover { background: rgba(255,255,255,.08); color: var(--text); }
.tb-btn.accent-btn { color: var(--accent); }
.tb-btn.accent-btn:hover { background: rgba(229,160,13,.16); }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; }
.ic.sm { width: 16px; height: 16px; }
.tb-logo { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  display: flex; align-items: baseline; gap: 3px; cursor: pointer; padding: 0 6px; user-select: none; z-index: 2; }
.tb-logo .pl { font-size: 21px; font-weight: 800; letter-spacing: .5px; color: #fff; }
.tb-logo .pe { font-size: 12px; font-weight: 800; color: var(--accent);
  background: rgba(229,160,13,.15); border-radius: 5px; padding: 1px 5px; }
.tb-search { flex: 0 1 320px; max-width: 320px; display: flex; align-items: center; gap: 9px;
  height: 34px; padding: 0 12px; margin: 0 6px; background: #0a0a0c; border: 1px solid var(--edge);
  border-radius: 9px; color: var(--muted-2); cursor: text; }
.tb-search input { flex: 1; background: transparent; border: none; outline: none; color: var(--text); font-size: 13px; }
.topbar .spacer { flex: 1; }
.pill { font-size: 11px; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--edge); color: var(--muted); }
.pill-demo { color: var(--accent); border-color: rgba(229,160,13,.4); }
.pill-live { color: #4ad07a; border-color: rgba(74,208,122,.4); }
.pill-error { color: #ff6b6b; border-color: rgba(255,107,107,.4); }
.tb-account { display: flex; align-items: center; gap: 3px; border: none; background: transparent;
  cursor: pointer; color: var(--muted); padding: 4px 4px; border-radius: 8px; }
.tb-account:hover { background: rgba(255,255,255,.08); }
.avatar { width: 28px; height: 28px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #6a6a74, #2b2b31); border: 1px solid var(--edge); }

/* ---------- Body: sidebar + content ---------- */
.body { flex: 1; display: flex; min-height: 0; }
.sidebar { width: 288px; flex: 0 0 288px; background: var(--sidebar); border-right: 1px solid var(--edge);
  overflow-y: auto; overflow-x: hidden; padding: 12px 10px 24px; transition: width .12s; }
.app.collapsed .sidebar { width: 60px; flex-basis: 60px; padding: 12px 8px; }
.app.collapsed .sb-item .lbl, .app.collapsed .sb-more .lbl, .app.collapsed .sb-cat { display: none; }
.app.collapsed .sb-item { justify-content: center; }
.sb-cat { font-size: 10px; text-transform: uppercase; letter-spacing: 1.4px; color: var(--muted-2); padding: 12px 10px 6px; }
.sb-item { display: flex; align-items: center; gap: 14px; padding: 11px 12px; border-radius: 8px;
  color: var(--muted); cursor: pointer; font-size: 17px; line-height: 1.2; }
.sb-item .si { width: 24px; height: 24px; flex: 0 0 24px; stroke: currentColor; fill: none; stroke-width: 1.8; opacity: .9; }
/* Watchlist sidebar icon: solid gold bookmark while the list has items, clear otherwise. */
.sb-item.wl-active .si { fill: var(--accent); stroke: var(--accent); opacity: 1; }
.sb-item .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-item:hover { background: rgba(255,255,255,.06); color: var(--text); }
.sb-item.active { color: var(--accent); }
.sb-item.active .si { opacity: 1; }
.sb-more { display: flex; align-items: center; gap: 8px; padding: 10px 11px; color: var(--muted-2);
  font-size: 13px; cursor: pointer; }
.sb-more:hover { color: var(--text); }

/* ---------- Content ---------- */
.content { flex: 1; min-width: 0; overflow-y: auto; overflow-x: hidden; background: var(--content); }
.content-pad { padding: 18px 30px 70px; }

/* home tabs row */
.tabsrow { display: flex; align-items: center; margin-bottom: 22px; }
.tabsrow .page-name { font-size: 15px; color: var(--muted); }
.tabsrow .tabs { flex: 1; display: flex; justify-content: center; gap: 26px; }
.tabsrow .tab { font-size: 14px; color: var(--muted); cursor: pointer; padding-bottom: 5px; }
.tabsrow .tab:hover { color: var(--text); }
.tabsrow .tab.active { color: #fff; box-shadow: inset 0 -2px 0 var(--accent); }
.tabsrow .rightctl { display: flex; align-items: center; gap: 12px; color: var(--muted-2); }
.grid-ic { width: 22px; height: 22px; fill: #fff; }
/* Live Activity indicator — matches original Plex: a PLAIN count number on the
   LEFT, and a YELLOW RING around the zig-zag icon; both appear only while streaming.
   Idle = plain white zig-zag, no number, no ring. */
#tb-activity { width: auto; min-width: 34px; display: flex; align-items: center; gap: 5px;
  padding: 0 7px; color: #fff; overflow: visible; }
#tb-activity .act-count { font-size: 12px; font-weight: 800; color: var(--accent); line-height: 1; }
#tb-activity .act-ic { position: relative; display: grid; place-items: center; width: 26px; height: 26px;
  border-radius: 50%; box-sizing: border-box; border: 1.6px solid transparent; }
#tb-activity.live .act-ic { background: var(--accent); border-color: var(--accent); color: #1a1a1a; }
/* "Checking for updates" — a yellow ring spins around the zig-zag while PPX is
   syncing with Plex (the recycle cycle or a manual rescan). */
#tb-activity.checking .act-ic::after {
  content: ""; position: absolute; inset: -3px; border-radius: 50%;
  border: 2px solid rgba(229,160,13,.22); border-top-color: var(--accent);
  animation: ppx-spin .8s linear infinite; }
@keyframes ppx-spin { to { transform: rotate(360deg); } }

/* rows */
.row { margin-bottom: 30px; }
.row h2 { font-size: 20px; font-weight: 700; margin: 0 0 14px; }
.row-head h2.row-title-link { display: inline-block; cursor: pointer; padding-bottom: 3px;
  border-bottom: 2px solid transparent; transition: border-color .12s; user-select: none; }
.row-head h2.row-title-link:hover { border-bottom-color: var(--accent); }
/* Top+left padding gives the hover lift+scale room so the yellow ring is never
   clipped by the row's overflow (was cutting each poster's top, and the first
   poster's left). */
.rail { display: flex; gap: 30px; overflow-x: auto; overflow-y: hidden; padding: 8px 4px 8px 4px; }
.rail { scrollbar-width: none; }
.rail::-webkit-scrollbar { height: 0; width: 0; display: none; }
.rail .card { flex: 0 0 var(--pw, 133px); width: var(--pw, 133px); }
.rail.wide .card { flex: 0 0 286px; width: 286px; }
.size-slider { -webkit-appearance: none; appearance: none; width: 56px; height: 3px;
  background: rgba(255,255,255,.35); border-radius: 3px; cursor: pointer; }
.size-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none;
  width: 11px; height: 11px; border-radius: 50%; background: #fff; border: none; cursor: pointer; }
.size-slider:hover { background: rgba(255,255,255,.5); }
.size-slider:hover::-webkit-slider-thumb { background: var(--accent); }
/* Live zoom % bubble — fades in while dragging (see .show), fades out after. */
.size-bub { font-size: 11px; font-weight: 700; color: var(--accent); min-width: 30px;
  text-align: right; opacity: 0; transform: translateY(1px); transition: opacity .18s;
  pointer-events: none; font-variant-numeric: tabular-nums; }
.size-bub.show { opacity: 1; }
.grid-btn { display: inline-flex; align-items: center; border-radius: 6px; padding: 2px;
  transition: background .12s; }
.grid-btn:hover { background: rgba(255,255,255,.08); }

/* grid (library view) */
.lib-head { margin: 2px 0 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.lib-head h1 { font-size: 26px; font-weight: 700; margin: 0; }
.lib-head .sub { color: var(--muted); font-size: 13px; margin-top: 4px; }
/* Column count is computed in JS (layoutGrids) so posters always justify edge-
   to-edge at any zoom level and the last row is kept as full as possible — no
   stray blank tracks on the right/bottom. --cols is set per-grid; the default
   is just a pre-paint fallback. minmax(0,1fr) lets posters flex to fill. */
.grid { display: grid; grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr)); gap: 26px 18px; }

/* poster card */
.card { cursor: default; }
.poster { position: relative; aspect-ratio: 2/3; border-radius: 6px; overflow: hidden;
  background: #26262b; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.card.land .poster { aspect-ratio: 16/9; }
.card:hover .poster { transform: translateY(-3px) scale(1.02); box-shadow: 0 14px 30px rgba(0,0,0,.65); }
.poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.poster .grad { position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  padding: 12px; font-weight: 800; font-size: 15px; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.7); }
.poster .badge { position: absolute; right: 6px; top: 6px; font-size: 10px; padding: 2px 6px;
  border-radius: 5px; background: var(--accent); color: #1a1a1a; font-weight: 700; }
/* Watchlist bookmark — lives in the hover overlay (top-left) so it only shows on
   hover, like the edit/more buttons. Clear/outlined by default, gold when saved. */
.poster .wl-btn { position: absolute; top: 8px; left: 8px; width: 24px; height: 28px; z-index: 3;
  cursor: pointer; display: grid; place-items: center;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.85)); transition: transform .12s; }
.poster .wl-btn svg { width: 18px; height: 24px; fill: rgba(0,0,0,.25); stroke: #fff; stroke-width: 1.7;
  stroke-linejoin: round; transition: fill .12s, stroke .12s; }
.poster .wl-btn:hover { transform: scale(1.14); }
.poster .wl-btn.on svg { fill: var(--accent); stroke: #1a1a1a; stroke-width: 1.2; }
/* Orange resume/progress bar (Plex gold), pinned to the bottom of the poster */
.poster .progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: rgba(0,0,0,.55); z-index: 4; }
.poster .progress i { display: block; height: 100%; background: #e5a00d; }
/* Ring lives on the hover overlay (above the image, inside the poster) so the
   scrolling rails can never clip its top/left edges. */
.poster .hover { position: absolute; inset: 0; opacity: 0; display: flex; align-items: center;
  justify-content: center; gap: 12px; background: rgba(8,8,10,.42); transition: opacity .14s;
  box-sizing: border-box; border: 2px solid #ffd60a; border-radius: 6px; }
.card:hover .poster .hover { opacity: 1; }
.circle { width: 42px; height: 42px; border-radius: 50%; background: rgba(0,0,0,.4);
  border: 2px solid #fff; color: #fff; display: grid; place-items: center; cursor: pointer; }
.circle svg { width: 18px; height: 18px; fill: currentColor; }
.circle.edit { width: 34px; height: 34px; border-color: var(--accent); color: var(--accent); }
.circle.edit svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
/* Poster hover controls. Play stays white; only a DIRECT hover on the play
   button turns it orange (reverts to white on mouse-out). Pencil + dots have
   NO circle — just white icons. */
.circle.play-c:hover { background: #ff8c1a; color: #111; border-color: #ff8c1a; }
.corner-btn { position: absolute; bottom: 8px; width: 26px; height: 26px;
  display: grid; place-items: center; background: transparent; border: none;
  color: #fff; cursor: pointer; z-index: 3; filter: drop-shadow(0 1px 2px rgba(0,0,0,.85)); }
.corner-btn.edit-c { left: 8px; }
.corner-btn.more-c { right: 8px; font-size: 22px; font-weight: 800; line-height: 0; padding-bottom: 4px; }
.corner-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; }
.corner-btn:hover { color: #ffd60a; }
.meta { margin-top: 9px; }
.meta .t { font-size: 13px; color: var(--text); line-height: 1.25; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.meta .s { font-size: 11.5px; color: var(--muted-2); margin-top: 2px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.empty { color: var(--muted); padding: 70px 20px; text-align: center; font-size: 15px; }

/* ---------- popovers ---------- */
.pop { position: fixed; z-index: 70; background: #1c1c20; border: 1px solid var(--edge);
  border-radius: 12px; box-shadow: var(--shadow); padding: 7px; min-width: 230px; }
.pop.hidden { display: none; }
/* Visible scrollbar for the poster ⋯ menu when it's taller than the screen. */
#more-pop::-webkit-scrollbar { width: 11px; }
#more-pop::-webkit-scrollbar-thumb { background: #55555f; border-radius: 6px; border: 2px solid #1c1c20; background-clip: padding-box; }
#more-pop::-webkit-scrollbar-thumb:hover { background: #6c6c78; }
#more-pop::-webkit-scrollbar-track { background: transparent; }
.pop .pop-h { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted-2); padding: 8px 12px 6px; }
.pop .pop-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px;
  color: var(--text); font-size: 13.5px; cursor: pointer; }
.pop .pop-item:hover { background: rgba(255,255,255,.07); }
/* Delete row — soft red on hover. */
.pop .pop-item.danger:hover { color: #ff6b6b; background: rgba(255,90,90,.10); }
.pop .pop-item .mut { color: var(--muted-2); font-size: 12px; }
.pop .pop-sep { height: 1px; background: var(--edge); margin: 6px 4px; }
.pop .acc-head { display: flex; gap: 11px; align-items: center; padding: 10px 12px; }
.pop .acc-head .avatar { width: 40px; height: 40px; }
.pop .acc-head .nm { font-size: 13.5px; } .pop .acc-head .sv { font-size: 12px; color: var(--muted-2); }

/* ---------- modals ---------- */
.modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.55); }
.modal.hidden { display: none; }
.card-modal { width: 460px; max-width: 92vw; background: var(--card); border: 1px solid var(--edge);
  border-radius: 15px; padding: 22px; box-shadow: var(--shadow); }
.card-modal.wide { width: 560px; }
/* Pure-black modal (Manage profiles etc.) — user wants "just blackness", no dark gray. */
.card-modal.ppx-black { background: #000; border: 1.5px solid rgba(255,255,255,.35); }
.card-modal.ppx-black input[type=text],
.card-modal.ppx-black .btn { background: #000; }
.card-modal h3 { margin: 0 0 15px; font-size: 17px; }
/* Block-access button — yellow caution styling. */
.btn.btn-caution { background:#000; color:#F5C518; border:1px solid rgba(245,197,24,.55); font-weight:700;
  display:inline-flex; align-items:center; gap:6px; }
.btn.btn-caution:hover { border-color:#F5C518; background:rgba(245,197,24,.08); }
.btn.btn-caution .caution-tri { font-size:12px; line-height:1; }
.btn.btn-caution.is-blocked { color:#7bd88f; border-color:rgba(123,216,143,.55); }
.btn.btn-caution.is-blocked:hover { border-color:#7bd88f; background:rgba(123,216,143,.08); }
/* Blocked profile tile on the picker. */
.who-tile.who-blocked .who-av { opacity:.42; filter:grayscale(.7); }
.who-tile.who-blocked .who-name { opacity:.6; }
.who-tile.who-blocked .who-sub { color:#F5C518; }
/* "PIN set" status pill in Manage profiles (green when a PIN exists). */
.pin-badge { font-size:11px; color:#7bd88f; display:inline-flex; align-items:center; gap:4px;
  padding:3px 9px; border:1px solid rgba(123,216,143,.45); border-radius:20px; white-space:nowrap; }
.pin-badge .chk { font-size:10px; }
.pin-badge.none { color:#8a8a8f; border-color:rgba(255,255,255,.18); }
.field { display: block; margin-bottom: 13px; }
.field > span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.field.check { display: flex; align-items: center; gap: 10px; } .field.check > span { margin: 0; }
input[type=text] { width: 100%; padding: 11px 12px; font-size: 15px; background: var(--bg); color: var(--text);
  border: 1px solid var(--edge); border-radius: 10px; outline: none; }
input[type=text]:focus { border-color: var(--accent); }
.emoji-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 4px; }
.emoji-btn { font-size: 18px; padding: 5px 7px; border-radius: 8px; cursor: pointer; background: var(--bg); border: 1px solid var(--edge); }
.emoji-btn:hover { border-color: var(--accent); }
.actions { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.spacer { flex: 1; } .note { font-size: 12px; color: var(--muted); margin-top: 12px; min-height: 15px; }
.btn { font-size: 13px; padding: 8px 13px; border-radius: 9px; border: 1px solid var(--edge); background: var(--bg); color: var(--text); cursor: pointer; }
.btn:hover { border-color: #45454c; } .btn-accent { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #1a1a1a; border: none; font-weight: 700; }
.btn-danger { background: linear-gradient(135deg, #e5534b, #b3352e); color: #fff; border: none; font-weight: 700; }
.btn-danger:hover { box-shadow: 0 0 0 2px rgba(255,255,255,.75); }
.choices { display: flex; flex-direction: column; gap: 8px; max-height: 60vh; overflow-y: auto; }
.choice { padding: 12px 14px; border-radius: 10px; cursor: pointer; background: var(--bg); border: 1px solid var(--edge); font-size: 13.5px; }
.choice:hover { border-color: var(--accent); background: #26262a; }
.sess { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 10px; background: var(--bg); border: 1px solid var(--edge); }
.sess img { width: 40px; height: 60px; border-radius: 5px; object-fit: cover; }
.sess .who { font-size: 14px; } .sess .what { font-size: 12px; color: var(--muted); margin-top: 3px; }

/* ---- Home tabs: Activity / Find Friends / My Profile panels -------------- */
.sess-list { display: flex; flex-direction: column; gap: 10px; }
.sess .prog2 { height: 4px; border-radius: 3px; background: rgba(255,255,255,.12); margin-top: 7px; overflow: hidden; }
.sess .prog2 i { display: block; height: 100%; background: #e5a00d; }

.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; }
.person { position: relative; background: var(--bg); border: 1px solid var(--edge); border-radius: 12px;
  padding: 18px 12px 14px; text-align: center; cursor: pointer; transition: border-color .12s, transform .12s; }
.person:hover { border-color: #45454c; transform: translateY(-2px); }
.person-av { width: 62px; height: 62px; margin: 0 auto 10px; }
.person .p-name { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person .p-tag { font-size: 11px; color: var(--muted-2); margin-top: 3px; }
.online-dot { position: absolute; top: 12px; right: 12px; width: 10px; height: 10px; border-radius: 50%;
  background: #4ad07a; box-shadow: 0 0 0 3px rgba(74,208,122,.18); }

.profile-card { display: flex; align-items: center; gap: 18px; background: var(--bg); border: 1px solid var(--edge);
  border-radius: 14px; padding: 20px 22px; }
.profile-av { width: 84px; height: 84px; flex: 0 0 84px; }
.profile-meta .pf-name { font-size: 22px; font-weight: 700; }
.profile-meta .pf-row { font-size: 13px; color: var(--muted); margin-top: 3px; }
.profile-meta .pf-row.mut { color: var(--muted-2); }
.profile-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0 4px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.stat { background: var(--bg); border: 1px solid var(--edge); border-radius: 12px; padding: 16px; }
.stat .stat-n { font-size: 24px; font-weight: 800; color: var(--accent); }
.stat .stat-l { font-size: 12px; color: var(--muted); margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: #26262a;
  border: 1px solid var(--edge); color: var(--text); padding: 11px 17px; border-radius: 11px; z-index: 90; box-shadow: var(--shadow); font-size: 13px; }
.toast.hidden { display: none; } .toast.ok { border-color: rgba(74,208,122,.5); } .toast.err { border-color: rgba(255,107,107,.5); }
/* toast now lays out an optional action button and a working spinner */
.toast { display: flex; align-items: center; gap: 12px; }
.toast-act { background: transparent; border: 1px solid var(--accent); color: var(--accent);
  padding: 4px 12px; border-radius: 8px; font-size: 12px; font-weight: 700; cursor: pointer; }
.toast-act:hover { background: var(--accent); color: #fff; }
.toast.work .toast-msg { padding-left: 22px; position: relative; }
.toast.work .toast-msg::before { content: ""; position: absolute; left: 0; top: 50%; width: 13px; height: 13px;
  margin-top: -7px; border: 2px solid rgba(255,255,255,.3); border-top-color: var(--accent);
  border-radius: 50%; animation: toastspin .7s linear infinite; }
@keyframes toastspin { to { transform: rotate(360deg); } }

/* ---------- add-file progress card (lives in a section's row header) ---------- */
.row-head .addprog { margin-left: 14px; }
.addprog { background: #26262a; border: 1px solid rgba(255,255,255,.08); border-radius: 11px;
  padding: 8px 11px; width: 360px; flex: 0 0 auto; }
.addprog.floating { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%);
  z-index: 200; box-shadow: 0 12px 40px rgba(0,0,0,.5); }
.addprog.done { border-color: rgba(74,208,122,.5); }
.addprog.failed { border-color: rgba(255,107,107,.5); }
.addprog .c1 { display: flex; align-items: center; gap: 7px; margin-bottom: 5px; }
.addprog .ic { display: inline-flex; line-height: 0; }
.addprog .nm { color: #fff; font-size: 11.5px; font-weight: 600; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; max-width: 210px; }
.addprog .pc { margin-left: auto; color: #e5a00d; font-size: 11.5px; font-weight: 600; }
.addprog.done .pc { color: #4ad07a; }
.addprog.failed .pc { color: #ff6b6b; }
.addprog .dst { color: #a0a0a8; font-size: 10px; margin-bottom: 5px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
.addprog .trk { height: 5px; background: rgba(255,255,255,.10); border-radius: 4px; overflow: hidden; }
.addprog .fl { width: 0; height: 100%; background: #e5a00d; border-radius: 4px; transition: width .18s linear; }
.addprog.done .fl { background: #4ad07a; }
.addprog .st { display: flex; justify-content: space-between; margin-top: 5px; color: #8f8f97; font-size: 10px; }
.addprog.fade { transition: opacity .8s ease; opacity: 0; }

/* library header controls (sort + size) */
.head-controls { display: flex; align-items: center; gap: 14px; }
.sortctl { display: inline-flex; align-items: center; }
.sort-select { background: var(--card, #1c1c20); color: var(--text); border: 1px solid var(--edge);
  border-radius: 8px; padding: 5px 26px 5px 10px; font-size: 12px; cursor: pointer;
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat; background-position: right 7px center; background-size: 13px; }
.sort-select:hover { border-color: var(--accent); }
.sort-select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

/* keyboard focus ring for poster cards */
.card:focus { outline: none; }
.card:focus-visible { outline: none; }
.card:focus-visible .poster { outline: 2px solid var(--accent); outline-offset: 2px; box-shadow: 0 0 0 4px rgba(255,122,26,.25); }

/* ---------- movie detail page ---------- */
.detail { position: relative; }
.detail-topbar { display: flex; justify-content: flex-end; position: relative; z-index: 3; margin-bottom: 4px; }
.score.clk, .imdb-chip { cursor: pointer; }
.imdb-chip { font-size: 14px; padding: 4px 9px; border-radius: 7px; background: #1e1e22; border: 1px solid var(--edge); }
.imdb-chip b { color: #f5c518; margin-right: 4px; }  /* IMDb yellow */
.imdb-chip:hover { border-color: #f5c518; }
.tmdb-chip { font-size: 14px; padding: 4px 9px; border-radius: 7px; background: #1e1e22; border: 1px solid var(--edge); }
.tmdb-chip b { color: #01b4e4; margin-right: 4px; }  /* TMDB blue */
.tmdb-chip:hover { border-color: #01b4e4; }
.icon-round.on { background: var(--accent); color: #1a1a1a; border-color: var(--accent); }
.circle.info { width: 34px; height: 34px; font-size: 18px; border-color: #fff; }
.rate-info { margin-top: 14px; font-size: 13.5px; color: var(--muted); }
.rate-info .your-r { color: var(--accent); }
.detail-bg { position: absolute; top: -18px; left: -30px; right: -30px; height: 460px; z-index: 0;
  background-size: cover; background-position: center top; opacity: .16; filter: blur(6px);
  -webkit-mask-image: linear-gradient(#000 0%, transparent 88%); mask-image: linear-gradient(#000 0%, transparent 88%); }
/* Ambient color wash — dims the top of the page to the poster's color (Plex-like) */
.detail-ambient { position: absolute; top: -18px; left: -30px; right: -30px; height: 640px; z-index: 0; pointer-events: none; }
/* "♪ Theme" chip — shown only while the show theme song is playing; click to mute */
.theme-chip { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: none; align-items: center; gap: 7px;
  padding: 8px 13px; border-radius: 20px; background: rgba(28,28,32,.92); border: 1px solid var(--edge);
  color: #eaeaea; font-size: 13px; font-weight: 600; cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,.5); }
.theme-chip .tc-note { color: var(--accent); font-size: 15px; }
.theme-chip:hover { border-color: #55555f; }
.theme-chip.muted { opacity: .55; } .theme-chip.muted .tc-note { color: var(--muted-2); }
/* Season poster cards */
.season-rail { margin: 4px 0 6px; }
.season-card .poster { position: relative; }
.season-card .season-lbl { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 8px 8px;
  font-size: 14px; font-weight: 700; color: #fff; text-align: center;
  background: linear-gradient(transparent, rgba(0,0,0,.85)); }
.season-card.active .poster { outline: 2px solid var(--accent); outline-offset: 2px; }
.season-card { cursor: pointer; }
.detail-top { position: relative; z-index: 1; display: flex; gap: 30px; }
.detail-poster { flex: 0 0 232px; position: relative; border-radius: 10px; overflow: hidden; }
.detail-poster img { width: 232px; border-radius: 10px; box-shadow: var(--shadow); display: block; }
.detail-poster .hover { position: absolute; inset: 0; opacity: 0; display: flex; align-items: center;
  justify-content: center; background: rgba(8,8,10,.42); transition: opacity .14s; border-radius: 10px; }
.detail-poster:hover .hover { opacity: 1; }
.detail-info { flex: 1; min-width: 0; padding-top: 4px; }
.detail-info h1 { font-size: 30px; font-weight: 800; margin: 0 0 6px; }
.detail-info .dir { color: var(--muted); font-size: 13.5px; margin-bottom: 12px; }
.detail-info .metaline { color: var(--muted); font-size: 13.5px; margin-bottom: 8px; letter-spacing: .3px; }
.detail-info .genres { color: var(--text); font-size: 14px; margin-bottom: 16px; }
.scores { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.scores .score { font-size: 15px; font-weight: 600; }
.rate-btn { margin-left: 6px; background: #1e1e22; }
.d-actions { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.btn-accent.big { font-size: 15px; padding: 11px 26px; border-radius: 10px; }
.icon-round { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--edge);
  background: #1e1e22; color: var(--text); font-size: 17px; cursor: pointer; display: grid; place-items: center; }
.icon-round:hover { border-color: var(--accent); color: var(--accent); }
.summary { font-size: 15px; line-height: 1.6; color: #dcdce0; max-width: 820px; margin-bottom: 20px; }
.techgrid { display: flex; gap: 34px; font-size: 13.5px; color: var(--text); }
.techgrid span { color: var(--muted-2); margin-right: 8px; }
.d-sec { font-size: 19px; font-weight: 700; margin: 34px 0 15px; position: relative; z-index: 1; }
.cast-rail { display: flex; gap: 20px; overflow-x: auto; padding-bottom: 8px; position: relative; z-index: 1; }
.cast-rail { scrollbar-width: none; }
.cast-rail::-webkit-scrollbar { height: 0; width: 0; display: none; }
.cast-head { display: flex; align-items: center; gap: 8px; }
.cast-head .spacer { flex: 1; }
.cast { flex: 0 0 104px; width: 104px; text-align: center; }
.cast-av { width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 8px; overflow: hidden;
  background: #2a2a30; }
.cast-av img { width: 100%; height: 100%; object-fit: cover; }
.cast-nm { font-size: 12.5px; color: var(--text); line-height: 1.25; }
.cast-rl { font-size: 11.5px; color: var(--muted-2); margin-top: 2px; }
/* clickable cast/crew card -> opens the person portfolio */
.cast.clk { cursor: pointer; border-radius: 10px; padding: 6px 2px; transition: background .12s; }
.cast.clk:hover, .cast.clk:focus { background: rgba(255,255,255,.06); outline: none; }
.cast.clk:hover .cast-av { box-shadow: 0 0 0 2px var(--accent, #e5a00d); }
/* person portfolio page */
.person-photo { flex: 0 0 200px; }
.person-photo img { width: 200px; border-radius: 12px; box-shadow: var(--shadow); display: block; }
.person-ph { width: 200px; height: 280px; border-radius: 12px; background: #2a2a30; }
.person-bio { color: var(--text); font-size: 14.5px; line-height: 1.6; margin-top: 16px; max-width: 720px; }
.person-bio.muted { color: var(--muted-2); }
.reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; position: relative; z-index: 1; }
.review { background: var(--card); border: 1px solid var(--edge); border-radius: 12px; padding: 15px; }
.rv-h { font-size: 13px; margin-bottom: 8px; } .rv-h .rv-src { color: var(--muted-2); }
.rv-i { margin-right: 6px; } .rv-t { font-size: 13px; color: #d8d8dc; line-height: 1.5; }

/* stars */
.stars { display: flex; gap: 8px; font-size: 34px; margin: 6px 0 4px; }
.stars .star { color: #44444c; cursor: pointer; } .stars .star.on { color: var(--accent); }

/* in-app player */
.player { position: fixed; inset: 0; z-index: 100; background: #000; display: none; flex-direction: column; }
/* While the fullscreen player is open, take the rest of the app out of the render
   tree — blur/mask elements elsewhere otherwise make WKWebView draw <video> black. */
body.player-open > *:not(#player) { display: none !important; }
.player.show { display: flex; }
.player-bar { height: 48px; display: flex; align-items: center; padding: 0 16px; background: #0c0c0e; border-bottom: 1px solid #1c1c1e; }
.player-title { flex: 1; font-size: 14px; color: #fff; }
.player-x { background: transparent; border: 1px solid #333; color: #fff; border-radius: 8px; padding: 6px 12px; cursor: pointer; font-size: 13px; }
.player-x:hover { border-color: var(--accent); color: var(--accent); }
.player-video { flex: 1; width: 100%; height: 100%; background: #000; }

/* ---------- account ---------- */
.acc-photo { cursor: pointer; }
.acc-photo:hover { outline: 2px solid var(--accent); outline-offset: 1px; }
.user-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px;
  cursor: pointer; background: var(--bg); border: 1px solid var(--edge); }
.user-row:hover { border-color: var(--accent); background: #26262a; }
.user-av { width: 36px; height: 36px; border-radius: 50%; flex: 0 0 36px;
  background: radial-gradient(circle at 35% 30%, #6a6a74, #2b2b31); background-size: cover; background-position: center; }
.user-nm { flex: 1; font-size: 14px; } .user-lock { font-size: 13px; color: var(--muted-2); }

/* signed-out screen */
.signedout { max-width: 460px; margin: 0 auto; min-height: 100vh; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.so-logo { display: flex; align-items: baseline; gap: 5px; margin-bottom: 6px; }
.so-logo .pl { font-size: 34px; font-weight: 800; color: #fff; }
.so-logo .pe { font-size: 16px; font-weight: 800; color: var(--accent); background: rgba(229,160,13,.15); border-radius: 6px; padding: 2px 7px; }
.signedout h2 { font-size: 22px; margin: 0; } .signedout p { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0 0 8px; }
.signedout .big { padding: 12px 30px; font-size: 15px; }
.signin-input { width: 280px; max-width: 80vw; padding: 11px 14px; font-size: 14px; color: #fff;
  background: transparent; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; outline: none; }
.signin-input:focus { border-color: var(--accent); background: transparent; }
.signin-input::placeholder { color: var(--muted); }
/* Blend autofilled fields into the page background (the browser otherwise paints its own). */
.signin-input:-webkit-autofill, .signin-input:-webkit-autofill:hover, .signin-input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px var(--bg) inset; -webkit-text-fill-color: #fff; caret-color: #fff; }
/* The generic input[type=text] rule above sets a --bg background + --edge border
   and outranks .signin-input; re-assert the transparent blend for sign-in fields. */
input.signin-input { background: transparent; border-color: rgba(255,255,255,.14); }
input.signin-input:focus { background: transparent; border-color: var(--accent); }
.signin-err { color: #ff6b6b !important; font-size: 13px; min-height: 16px; margin: 2px 0 0 !important; }
/* Server dropdown on the sign-in screen */
.signin-select { width: 308px; max-width: 80vw; -webkit-appearance: none; appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2 4l4 4 4-4' fill='none' stroke='%239aa' stroke-width='1.6'/></svg>");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px;
  background-color: var(--card); border-color: var(--edge); }
.signin-select option { color: #fff; background: var(--card); }
/* Custom server dropdown — transparent so the box AND the open list blend into
   the dark page background instead of showing as a lighter card. The list stays
   just opaque enough to hide the field beneath it while still reading as part of
   the background. (native <select> popups can't be recolored on macOS/WKWebView.) */
.signin-dropdown { position: relative; width: 308px; max-width: 80vw; }
/* Override .signin-select's card background so the box stays transparent; use
   background-color (not the shorthand) so the dropdown-arrow image is kept. */
.signin-dropdown .sd-box { width: 100%; text-align: left; display: flex; align-items: center;
  background-color: transparent; border-color: rgba(255,255,255,.14); }
.signin-dropdown .sd-box:focus { border-color: var(--accent); background-color: transparent; }
.signin-dropdown .sd-list { position: absolute; top: calc(100% + 5px); left: 0; right: 0; z-index: 30;
  background: rgba(13,13,15,.97); border: 1px solid rgba(255,255,255,.14); border-radius: 10px; overflow: hidden;
  display: none; box-shadow: 0 10px 28px rgba(0,0,0,.55); }
.signin-dropdown.open .sd-list { display: block; }
.signin-dropdown .sd-opt { padding: 11px 14px; font-size: 14px; color: #fff; cursor: pointer; }
.signin-dropdown .sd-opt:hover { background: rgba(255,255,255,.07); }
/* Keep me signed in */
.signin-keep { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); cursor: pointer; user-select: none; }
.signin-keep input { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }
/* Forgot-password link + back link on the sign-in / reset screens */
.signin-forgot { display: inline-block; margin-top: 12px; font-size: 13px; color: var(--muted);
  text-decoration: none; cursor: pointer; }
.signin-forgot:hover { color: var(--accent); text-decoration: underline; }
/* "Back to website" pill on the web sign-in screen — ghosted by default, lights
   up teal with a glow on hover, arrow slides left. z-index sits BELOW the intro
   cover (9000) so it's revealed together with the login when the box opens. */
.back-to-site { position: fixed; top: 20px; left: 20px; z-index: 40;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 15px 9px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 600; letter-spacing: .2px; line-height: 1;
  color: rgba(255,255,255,.5); text-decoration: none; cursor: pointer;
  background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.12);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: color .25s ease, background .25s ease, border-color .25s ease, box-shadow .3s ease, transform .25s ease; }
.back-to-site .bts-arrow { transition: transform .25s ease; }
.back-to-site:hover { color: #16E0C8; background: rgba(22,224,200,.10);
  border-color: rgba(22,224,200,.5);
  box-shadow: 0 0 0 1px rgba(22,224,200,.25), 0 8px 26px rgba(22,224,200,.18);
  transform: translateX(-1px); }
.back-to-site:hover .bts-arrow { transform: translateX(-3px); }

/* Signed-out: show ONLY the sign-in form — hide the app chrome. */
#app.signed-out .topbar,
#app.signed-out .sidebar { display: none !important; }
#app.signed-out .content { width: 100%; }
/* Let the sign-in block center perfectly (the pad's default padding offsets it). */
#app.signed-out .content-pad { padding: 0; }

/* Box cover — shared by the sign-in intro (#signin-cover) AND the whole-app
   idle "sleep" screensaver (#sleep-cover). Seamless black field + a MEGA box;
   .open breaks it apart to reveal what's underneath. The sign-in intro is
   overlay-only (pointer-events:none so it never blocks the form); the sleep
   screensaver catches the pointer while asleep (see #sleep-cover rules below). */
.sc-cover { position: fixed; inset: 0; z-index: 9000; pointer-events: none; }
.sc-cover .sc-black { position: absolute; inset: 0; z-index: 2; background: #0E1116; transition: opacity .95s ease .65s; }
.sc-cover .sc-shard { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center;
  transition: transform 1.7s cubic-bezier(.62,.02,.2,1) .5s, opacity 1.15s ease .65s; will-change: transform, opacity; }
/* The actual MEGA PPN logo image shown by the cover (each shard shows a quadrant). */
.sc-cover .sc-logo { width: 520px; height: 520px; display: block; user-select: none; pointer-events: none; }
/* Blade lines that slice an X across the logo before the pieces tear apart. */
.sc-cover .sc-blade { position: absolute; left: 50%; top: 50%; width: 150%; height: 2px; z-index: 4; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg,transparent,rgba(22,224,200,.05) 12%,#16E0C8 50%,rgba(22,224,200,.05) 88%,transparent);
  transform: translate(-50%,-50%) rotate(45deg) scaleX(0); }
.sc-cover .sc-blade.b1 { --r: 45deg; }
.sc-cover .sc-blade.b2 { --r: -45deg; transform: translate(-50%,-50%) rotate(-45deg) scaleX(0); }
.sc-cover .sc-top { clip-path: polygon(0 0,100% 0,50% 50%); }
.sc-cover .sc-right { clip-path: polygon(100% 0,100% 100%,50% 50%); }
.sc-cover .sc-bottom { clip-path: polygon(100% 100%,0 100%,50% 50%); }
.sc-cover .sc-left { clip-path: polygon(0 100%,0 0,50% 50%); }
.sc-cover.open .sc-black { opacity: 0; }
.sc-cover.open .sc-shard { opacity: 0; }
.sc-cover.open .sc-top { transform: translateY(-130%) rotate(-7deg); }
.sc-cover.open .sc-right { transform: translateX(130%) rotate(7deg); }
.sc-cover.open .sc-bottom { transform: translateY(130%) rotate(-7deg); }
.sc-cover.open .sc-left { transform: translateX(-130%) rotate(7deg); }
.sc-cover.open .sc-blade { animation: sc-slice .6s ease-out forwards; }
/* Idle screensaver: hidden during use; when asleep it covers the whole app and
   catches the pointer so the first hover/move wakes it with the reveal. */
#sleep-cover { display: none; }
#sleep-cover.sleeping { display: block; pointer-events: auto; }
/* Blade slices the X, then the four pieces tear apart. Plays regardless of
   Reduce Motion — this intro is an intentional, user-requested effect. */
@keyframes sc-slice {
  0%   { opacity: 0; transform: translate(-50%,-50%) rotate(var(--r,45deg)) scaleX(0); }
  35%  { opacity: 1; }
  55%  { opacity: 1; transform: translate(-50%,-50%) rotate(var(--r,45deg)) scaleX(1); }
  100% { opacity: 0; transform: translate(-50%,-50%) rotate(var(--r,45deg)) scaleX(1); }
}

/* ---------- TV episodes list ---------- */
.ep-list { display: flex; flex-direction: column; gap: 12px; }
.ep-row { display: flex; gap: 16px; padding: 10px; border-radius: 12px; cursor: pointer;
  background: var(--card); border: 1px solid var(--edge); align-items: center; }
.ep-row:hover { border-color: var(--accent); }
.ep-thumb { position: relative; flex: 0 0 150px; width: 150px; aspect-ratio: 16/9;
  border-radius: 8px; overflow: hidden; background: #26262b; }
.ep-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ep-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  opacity: 0; background: rgba(8,8,10,.42); transition: opacity .14s; }
.ep-play svg { width: 32px; height: 32px; fill: #fff; }
.ep-row:hover .ep-play { opacity: 1; }
.ep-body { flex: 1; min-width: 0; }
.ep-t { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.ep-sum { font-size: 13px; color: var(--muted); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- TV episodes grid on detail page ---------- */
.ep-head { display: flex; align-items: center; gap: 16px; }
.season-sel { background: #1e1e22; color: var(--text); border: 1px solid var(--edge);
  border-radius: 8px; padding: 6px 10px; font-size: 13px; cursor: pointer; }
.ep-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 22px 18px; position: relative; z-index: 1; }
.ep-card { cursor: pointer; }
.ep-card .ep-thumb { position: relative; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden;
  background: #26262b; box-shadow: var(--shadow); }
.ep-card .ep-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ep-card .ep-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  opacity: 0; background: rgba(8,8,10,.42); transition: opacity .14s; }
.ep-card .ep-play svg { width: 34px; height: 34px; fill: #fff; }
.ep-card:hover .ep-play { opacity: 1; }
.ep-card:hover .ep-thumb { box-shadow: 0 12px 26px rgba(0,0,0,.6); }
.ep-ct { font-size: 13.5px; margin-top: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ep-cs { font-size: 11.5px; color: var(--muted-2); margin-top: 2px; }

/* ---------- A–Z jump bar (right edge) ---------- */
.azbar { position: fixed; right: 3px; top: 62px; bottom: 20px; z-index: 25;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; }
.azbar .az { font-size: 15px; line-height: 1.4; font-weight: 600; color: var(--muted-2); cursor: pointer;
  width: 23px; text-align: center; border-radius: 4px; }
.azbar .az:hover { color: #1a1a1a; background: var(--accent); font-weight: 700; }
.content-pad .grid { padding-right: 26px; }

/* ---------- Plex-style inline star rater ---------- */
.rate-pop { position: fixed; z-index: 85; background: #1c1c20; border: 1px solid var(--edge);
  border-radius: 12px; padding: 11px 13px; box-shadow: var(--shadow); }
.rate-pop.hidden { display: none; }
.rp-title { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.rstars { display: flex; gap: 3px; cursor: pointer; }
.rstar { position: relative; display: inline-block; width: 30px; height: 30px; font-size: 30px; line-height: 1; }
.rstar .rb { color: #45454e; }
.rstar .rf { position: absolute; left: 0; top: 0; width: 0; overflow: hidden; white-space: nowrap; color: var(--accent); }
.rp-label { font-size: 12px; color: var(--muted); margin-top: 9px; }
.rp-label .imdb-chip { cursor: pointer; padding: 2px 6px; }

/* ---- Plex-style Rate & Review dialog ---- */
/* Blur + dim the background behind the dialog (only for the rate modal). */
#rate-modal.pedit-ov { background: rgba(8,8,11,0.6); -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px); }
.rate-card { width: 460px; max-width: 94vw; height: auto; max-height: 88vh; }
.pedit-body.rate-body { flex: 0 1 auto; display: block; padding: 20px 22px; overflow-y: auto; }
.rev-lb { font-size: 12px; color: var(--muted); margin: 16px 0 8px; letter-spacing: .3px; }
.rev-lb:first-child { margin-top: 0; }
.rstars-lg .rstar { width: 38px; height: 38px; font-size: 38px; }
.rstars.ro { cursor: default; }
.rstars-sm .rstar { width: 15px; height: 15px; font-size: 15px; }
.rev-text { width: 100%; min-height: 92px; resize: vertical; background: #1c1c20; color: var(--text);
  border: 1px solid var(--edge); border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 14px; }
.rev-text:focus { outline: none; border-color: var(--accent); }
.rev-aud { width: 100%; background: #1c1c20; color: var(--text); border: 1px solid var(--edge);
  border-radius: 10px; padding: 9px 12px; font: inherit; font-size: 14px; cursor: pointer; }
.rev-aud:focus { outline: none; border-color: var(--accent); }
.rev-del { margin-right: auto; }

/* Inline "★★★★★ Add review" strip + saved review block on the detail page */
.myrate { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; padding: 3px 6px; border-radius: 8px; }
.myrate:hover, .myrate:focus { background: rgba(255,255,255,.06); outline: none; }
.myrate-lb { font-size: 12.5px; color: var(--muted); }
.myrate:hover .myrate-lb { color: var(--text); }
.myreview { margin: 12px 0 4px; padding: 12px 14px; background: var(--card); border: 1px solid var(--edge);
  border-radius: 12px; max-width: 560px; }
.myreview-h { display: flex; align-items: center; gap: 9px; margin-bottom: 7px; }
.myreview-who { font-size: 12px; color: var(--muted-2); }
.myreview-edit { margin-left: auto; font-size: 12.5px; color: var(--accent); cursor: pointer; }
.myreview-t { font-size: 14px; color: var(--text); line-height: 1.55; white-space: pre-wrap; }

/* ---------- rail header arrows + Show-all tile ---------- */
.row-head { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.row-head h2 { margin: 0; }
.row-head .spacer { flex: 1; }
/* Bare ‹ › scroll arrows — no circle, just the glyphs. */
.rail-arr { width: 26px; height: 30px; border: none; border-radius: 0;
  background: transparent; color: var(--muted); font-size: 24px; line-height: 1; cursor: pointer; padding: 0; }
.rail-arr:hover { color: var(--text); }
.rail-arr.disabled { opacity: .14; cursor: default; }
.rail-arr.disabled:hover { color: var(--muted); }
.showall { flex: 0 0 var(--pw,158px); width: var(--pw,158px); cursor: pointer; }
.showall .sa-box { aspect-ratio: 2/3; background: transparent; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 11px; }
.showall .sa-logo { width: 62px; height: 62px; display: grid; place-items: center; transition: transform .12s; }
.showall .sa-logo svg { width: 100%; height: 100%; }
.showall:hover .sa-logo { transform: scale(1.08); }
.showall .sa-t { font-size: 13px; color: var(--muted); text-align: center; }

/* ---------- per-directory drop boxes ---------- */
.addboxes .addbox { flex: 0 0 var(--pw,158px); width: var(--pw,158px); }
.ab-thumb { position: relative; aspect-ratio: 2/3; border-radius: 8px; overflow: hidden;
  border: 2px dashed var(--edge); background: #161618; display: flex; align-items: center; justify-content: center; }
.ab-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ab-plus { font-size: 40px; color: var(--muted-2); }
.ab-drop { position: absolute; bottom: 8px; left: 0; right: 0; text-align: center; font-size: 11px; color: var(--muted); }
.addbox.over .ab-thumb { border-color: var(--accent); background: rgba(229,160,13,.14); }
.ab-edit { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%;
  border: none; background: rgba(0,0,0,.55); color: #fff; cursor: pointer; font-size: 13px; }
.ab-edit:hover { background: var(--accent); color: #1a1a1a; }
.ab-name { margin-top: 8px; font-size: 12.5px; text-align: center; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Add-to-directory popup grid ---------- */
#add-modal .card-modal { width: min(1180px, 96vw); max-width: 96vw; background: transparent; border: none; box-shadow: none; }
#add-modal .card-modal h3 { text-align: center; }
.addbox-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px; }
.addbox-grid .addbox { width: auto; }
.addbox-grid .ab-thumb { background: rgba(255,255,255,0.04); }

/* Raise the Add popup to the top (off the posters) */
#add-modal { align-items: flex-start; justify-content: flex-start; padding: 60px 30px 0; background: rgba(0,0,0,.35); }
#add-modal .card-modal { margin: 0; padding-top: 4px; }
#add-modal .card-modal h3 { text-align: left; }

/* Add popup: compact, right side, off the sidebar & centre posters */
#add-modal { align-items: center !important; justify-content: flex-end !important;
  padding: 0 26px 0 0 !important; background: transparent !important; }
#add-modal .card-modal { width: 300px !important; max-width: 300px !important; margin: 0 !important;
  background: var(--card) !important; border: 1px solid var(--edge) !important; box-shadow: var(--shadow) !important; }
#add-modal .card-modal h3 { text-align: left; font-size: 15px; }
#add-modal .addbox-grid { grid-template-columns: 1fr !important; gap: 8px !important; max-height: 74vh; overflow-y: auto; }
#add-modal .addbox { display: flex; align-items: center; gap: 10px; }
#add-modal .ab-thumb { width: 46px; aspect-ratio: 1/1; flex: 0 0 46px; background: #161618; }
#add-modal .ab-thumb .ab-drop { display: none; }
#add-modal .ab-thumb .ab-plus { font-size: 22px; }
#add-modal .ab-name { margin: 0; text-align: left; font-size: 12.5px; flex: 1; }

/* Restore horizontal 7-in-a-row, shifted to the right */
#add-modal { align-items: center !important; justify-content: flex-end !important; padding: 0 34px 0 0 !important; background: transparent !important; }
#add-modal .card-modal { width: min(1060px, 80vw) !important; max-width: 80vw !important; margin: 0 !important; background: transparent !important; border: none !important; box-shadow: none !important; }
#add-modal .card-modal h3 { text-align: left !important; }
#add-modal .addbox-grid { grid-template-columns: repeat(7, 1fr) !important; gap: 12px !important; max-height: none !important; overflow: visible !important; }
#add-modal .addbox { display: block !important; }
#add-modal .ab-thumb { width: auto !important; aspect-ratio: 2/3 !important; flex: none !important; background: rgba(255,255,255,0.04) !important; }
#add-modal .ab-thumb .ab-drop { display: block !important; }
#add-modal .ab-thumb .ab-plus { font-size: 34px !important; }
#add-modal .ab-name { text-align: center !important; margin-top: 8px !important; }

/* Position Add popup in the top-right black area, over the arrows, shrunk */
#add-modal { align-items: flex-start !important; justify-content: flex-end !important; padding: 58px 200px 0 0 !important; }
#add-modal .card-modal { width: 720px !important; max-width: 720px !important; }
#add-modal .card-modal h3 { font-size: 13px !important; margin-bottom: 8px !important; }
#add-modal .addbox-grid { grid-template-columns: repeat(7,1fr) !important; gap: 8px !important; }
#add-modal .ab-thumb .ab-plus { font-size: 22px !important; }
#add-modal .ab-thumb .ab-drop { font-size: 9px !important; bottom: 5px !important; }
#add-modal .ab-name { font-size: 10.5px !important; margin-top: 5px !important; }
#add-modal .ab-edit { width: 20px !important; height: 20px !important; font-size: 10px !important; top: 4px !important; right: 4px !important; }
#add-modal .actions { margin-top: 8px !important; }

/* Nudge Add popup down + left into the black spot */
#add-modal { padding: 112px 360px 0 0 !important; }

/* ===== FINAL Add-popup layout (overrides all above) ===== */
#add-modal { align-items: flex-start !important; justify-content: center !important; padding: 108px 0 0 236px !important; background: transparent !important; }
#add-modal .card-modal { width: 760px !important; max-width: 760px !important; margin: 0 !important; padding: 12px 16px !important; background: rgba(18,18,20,0.78) !important; border: 1px solid var(--edge) !important; border-radius: 14px !important; box-shadow: var(--shadow) !important; }
#add-modal .card-modal h3 { text-align: center !important; font-size: 14px !important; margin: 0 0 10px !important; }
#add-modal .addbox-grid { display: grid !important; grid-template-columns: repeat(7,1fr) !important; gap: 9px !important; align-items: start !important; max-height: none !important; overflow: visible !important; }
#add-modal .addbox { display: block !important; width: auto !important; }
#add-modal .ab-thumb { width: auto !important; aspect-ratio: 2/3 !important; flex: none !important; background: rgba(255,255,255,0.05) !important; border: 2px dashed var(--edge) !important; position: relative !important; }
#add-modal .ab-thumb .ab-drop { display: none !important; }
#add-modal .ab-thumb .ab-plus { font-size: 20px !important; }
#add-modal .ab-edit { width: 18px !important; height: 18px !important; font-size: 9px !important; top: 3px !important; right: 3px !important; }
#add-modal .ab-name { text-align: center !important; margin-top: 5px !important; font-size: 10px !important; line-height: 1.2 !important; height: 26px !important; overflow: hidden !important; display: -webkit-box !important; -webkit-line-clamp: 2 !important; -webkit-box-orient: vertical !important; white-space: normal !important; }
#add-modal .actions { margin-top: 8px !important; }
#add-modal .actions .btn { padding: 5px 11px !important; font-size: 11px !important; }

/* Make Add popup a little bigger */
#add-modal .card-modal { width: 900px !important; max-width: 900px !important; padding: 14px 18px !important; }
#add-modal .card-modal h3 { font-size: 15px !important; }
#add-modal .ab-thumb .ab-plus { font-size: 24px !important; }
#add-modal .ab-name { font-size: 11px !important; height: 28px !important; }

/* Remove the lines around the popup panel and the folder boxes */
#add-modal .card-modal { border: none !important; }
#add-modal .ab-thumb { border: none !important; }

/* Drag-over: yellow ring around the individual box only */
#add-modal .addbox.over .ab-thumb { box-shadow: inset 0 0 0 3px var(--accent) !important; background: rgba(229,160,13,0.10) !important; }
#add-modal .addbox { cursor: pointer; }

/* ===== POLISH: stop the popup bleeding into the movies behind it =====
   The stacked rules above left the backdrop transparent and the panel
   translucent, so the posters showed through. Dim + blur the background,
   and make the panel a solid, clearly-bounded card. */
#add-modal { background: rgba(8,8,11,0.62) !important; -webkit-backdrop-filter: blur(9px) !important; backdrop-filter: blur(9px) !important; }
#add-modal .card-modal {
  background: #131316 !important;                     /* fully opaque surface */
  border: 1px solid rgba(255,255,255,0.09) !important;
  border-radius: 16px !important;
  box-shadow: 0 24px 60px rgba(0,0,0,0.55), 0 0 0 1px rgba(0,0,0,0.4) !important;
}
#add-modal .ab-thumb { background: rgba(255,255,255,0.055) !important; }

@keyframes p2espin{to{transform:rotate(360deg)}}
#tb-rescan.spin .ic{animation:p2espin .8s linear infinite;transform-origin:50% 50%;}

/* ---------- Plex-style Edit dialog (dark palette) ---------- */
.pedit-ov { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center;
  justify-content: center; background: rgba(0,0,0,.6); }
.pedit-ov.hidden { display: none; }
.pedit { width: 860px; max-width: 94vw; height: 620px; max-height: 90vh; display: flex;
  flex-direction: column; background: var(--card); border: 1px solid var(--edge);
  border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.pedit-head { display: flex; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--edge); }
.pedit-title { font-size: 16px; font-weight: 700; flex: 1; }
.pedit-title .pe-pen { color: var(--accent); margin-right: 4px; }
.pedit-title .pe-name { color: var(--accent); }
.pedit-x { background: transparent; border: none; color: var(--muted); font-size: 16px; cursor: pointer;
  width: 30px; height: 30px; border-radius: 8px; }
.pedit-x:hover { background: rgba(255,255,255,.08); color: var(--text); }
.pedit-body { flex: 1; display: flex; min-height: 0; }
.pedit-tabs { width: 168px; flex: 0 0 168px; border-right: 1px solid var(--edge); padding: 10px 8px;
  overflow-y: auto; background: var(--sidebar); }
.pe-tab { display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-radius: 9px;
  font-size: 13.5px; color: var(--muted); cursor: pointer; }
.pe-tab:hover { background: rgba(255,255,255,.06); color: var(--text); }
.pe-tab.active { background: rgba(229,160,13,.14); color: var(--accent); }
.pe-tab .pe-ti { width: 18px; text-align: center; font-size: 14px; }
.pedit-pane { flex: 1; min-width: 0; overflow-y: auto; padding: 20px 24px; }
.pe-panel { display: none; }
.pe-panel.active { display: block; }
.pf { margin-bottom: 15px; }
.pf > label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.pf-in { display: flex; align-items: stretch; gap: 8px; }
.pf-lock { flex: 0 0 auto; width: 38px; border: 1px solid var(--edge); background: var(--bg);
  border-radius: 10px; cursor: pointer; font-size: 13px; color: var(--muted); }
.pf-lock.on { color: var(--accent); border-color: rgba(229,160,13,.5); background: rgba(229,160,13,.08); }
.pf-in input[type=text], .pf-in textarea { flex: 1; width: 100%; padding: 10px 12px; font-size: 14px;
  background: var(--bg); color: var(--text); border: 1px solid var(--edge); border-radius: 10px; outline: none; }
.pf-in input[type=text]:focus, .pf-in textarea:focus { border-color: var(--accent); }
.pf-in textarea { min-height: 92px; resize: vertical; font-family: inherit; line-height: 1.5; }
.pf-row { display: flex; gap: 14px; }
.pf-row .pf { flex: 1; }
.pe-emoji { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.pe-stars { display: flex; gap: 3px; align-items: center; height: 40px; }
.pe-star { font-size: 22px; color: #3a3a40; cursor: pointer; line-height: 1; }
.pe-star.on { color: var(--accent); }
.pe-art-prev { width: 100%; min-height: 180px; max-height: 300px; display: flex; align-items: center;
  justify-content: center; background: var(--bg); border: 1px solid var(--edge); border-radius: 10px;
  color: var(--muted); font-size: 13px; overflow: hidden; margin-bottom: 12px; }
.pe-art-prev img { max-width: 100%; max-height: 300px; object-fit: contain; }
.pe-art-row { display: flex; gap: 8px; }
.pe-art-row .pe-art-url { flex: 1; }
.pe-info { display: flex; flex-direction: column; gap: 2px; }
.pe-info-row { display: flex; justify-content: space-between; padding: 9px 2px; border-bottom: 1px solid var(--edge); font-size: 13.5px; }
.pe-info-k { color: var(--muted); }
.pe-note { font-size: 12px; color: var(--muted); margin-top: 10px; }
.pedit-foot { display: flex; align-items: center; gap: 10px; padding: 13px 18px; border-top: 1px solid var(--edge); }
.pedit-save { padding: 9px 18px; }

/* ===================================================================== *
 *  MOBILE / PHONE LAYOUT (PWA)  —  <= 680px
 *  Turns the desktop layout into a single-column phone UI: the sidebar
 *  becomes a slide-in drawer, content goes full-width with an auto-fitting
 *  poster grid, and the toolbar slims to the essentials. Desktop is
 *  untouched (all rules live inside this media query).
 * ===================================================================== */
@media (max-width: 680px) {
  /* full-bleed on a phone — drop the desktop window chrome/border */
  .app { border: none; border-radius: 0; height: 100vh; height: 100dvh; }

  /* --- toolbar: compact, essentials only --- */
  .topbar { gap: 4px; padding: 0 6px; padding-top: env(safe-area-inset-top, 0); }
  .tb-logo { display: none; }                 /* centered logo overlaps search on phones */
  #tb-add, #tb-fullscreen, #tb-rescan { display: none; }  /* desktop/admin actions */
  .tb-search { flex: 1 1 auto; min-width: 0; max-width: none; margin: 0 2px; }
  .tb-btn { width: 38px; height: 38px; }      /* bigger touch targets */

  /* --- sidebar becomes an off-canvas drawer --- */
  .sidebar {
    position: fixed; top: 52px; left: 0; bottom: 0; z-index: 60;
    width: 84vw; max-width: 330px; flex-basis: auto;
    transform: translateX(-100%); transition: transform .25s ease;
    box-shadow: 0 0 44px rgba(0,0,0,.65);
  }
  .app.nav-open .sidebar { transform: translateX(0); }
  /* neutralise the desktop "collapsed" rail behaviour on phones */
  .app.collapsed .sidebar { width: 84vw; flex-basis: auto; padding: 12px 10px; }
  .app.collapsed .sb-item { justify-content: flex-start; }
  .app.collapsed .sb-item .lbl, .app.collapsed .sb-more .lbl, .app.collapsed .sb-cat { display: inline; }
  .sb-item { padding: 12px 12px; }            /* bigger tap rows */

  /* tap-scrim behind the open drawer */
  #nav-scrim { display: none; position: fixed; inset: 52px 0 0 0; z-index: 55;
    background: rgba(0,0,0,.5); }
  .app.nav-open #nav-scrim { display: block; }

  /* --- content full width --- */
  .content { width: 100%; }
  .content-pad { padding: 12px !important; }
  .content-pad .grid { padding-right: 0; }

  /* --- responsive poster grid: ignore the desktop inline --cols --- */
  .grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)) !important;
    gap: 14px 12px !important; }
  .rail .card { flex-basis: 118px; width: 118px; }
  .rail.wide .card { flex-basis: 240px; width: 240px; }

  /* detail page: single column, no giant side gutters */
  .detail-hero, .detail-top { flex-direction: column; }
}

/* ===================== Multi-user profiles (Who's watching + PIN) ===================== */
.who { max-width: 720px; margin: 0 auto; padding: 40px 16px 60px; text-align: center; }
.who-brand { display:flex; align-items:center; justify-content:center; gap:8px; font-weight:600; letter-spacing:.5px; margin-bottom:10px; }
.who-brand .star { color:#FF8C00; } .who-brand .ppn { color:#16E0C8; }
.who-hex { width:22px; height:22px; border:2px solid #16E0C8; border-radius:6px; display:inline-block; position:relative; }
.who-hex::after { content:""; position:absolute; inset:6px; border-radius:50%; background:#2F6BFF; }
.who h2 { font-weight:500; margin:6px 0 30px; }
.who-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(120px, 140px)); gap:26px 14px; justify-content:center; }
.who-tile { cursor:pointer; border-radius:14px; padding:10px 6px; transition:background .12s; outline:none; }
.who-tile:hover, .who-tile:focus { background:rgba(255,255,255,.05); }
.who-av { width:84px; height:84px; border-radius:50%; margin:0 auto; display:flex; align-items:center; justify-content:center; font-size:30px; font-weight:500; color:#fff; position:relative; border:2px solid transparent; }
.who-tile:hover .who-av, .who-tile:focus .who-av { border-color:#16E0C8; }
.who-avadd { background:transparent !important; border:2px dashed #44444b; color:#8a8a93; }
.who-crown { position:absolute; top:-4px; right:-4px; width:26px; height:26px; border-radius:50%; background:#FF8C00; color:#3a2200; display:flex; align-items:center; justify-content:center; font-size:14px; }
.who-name { margin-top:10px; font-size:14px; }
.who-sub { font-size:11px; color:#8a8a93; margin-top:2px; }
.who-loading { grid-column:1/-1; color:#8a8a93; padding:30px; }

.pinpad { max-width:340px; margin:0 auto; padding:30px 16px; }
.pin-top { display:flex; align-items:center; gap:12px; margin-bottom:24px; }
.pin-back { background:transparent; border:none; color:#8a8a93; font-size:24px; cursor:pointer; padding:0 4px; }
.pin-av { width:36px; height:36px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:15px; color:#fff; }
.pin-dots { display:flex; justify-content:center; gap:18px; margin:14px 0 8px; }
.pin-dots.shake { animation:pinshake .4s; }
@keyframes pinshake { 0%,100%{transform:translateX(0)} 20%,60%{transform:translateX(-8px)} 40%,80%{transform:translateX(8px)} }
.pin-dot { width:16px; height:16px; border-radius:50%; border:2px solid #44444b; }
.pin-dot.on { background:#16E0C8; border-color:#16E0C8; }
.pin-err { color:#ff6b6b; font-size:13px; min-height:18px; text-align:center; margin-bottom:8px; }
.pin-keys { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; max-width:256px; margin:0 auto; }
.pin-key { height:60px; display:flex; align-items:center; justify-content:center; font-size:24px; font-weight:500; background:#16161a; border:.5px solid #2a2a31; border-radius:16px; cursor:pointer; user-select:none; }
.pin-key:hover { background:#1f1f26; } .pin-key:active { transform:scale(.96); }
.pin-key.wide { background:transparent; border-color:transparent; color:#8a8a93; }
.pin-save { display:flex; align-items:center; justify-content:center; gap:9px; margin-top:20px; font-size:13px; color:#d7d7db; cursor:pointer; }
.pin-save-cb { width:18px; height:18px; accent-color:#16E0C8; cursor:pointer; }
.pin-save-hint { text-align:center; font-size:11px; color:#8a8a8f; margin-top:5px; }
.pin-forgot { text-align:center; margin-top:14px; font-size:12px; color:#16E0C8; min-height:16px; }

.mp-list { display:flex; flex-direction:column; gap:8px; margin:6px 0; }
.mp-row { display:flex; align-items:center; gap:10px; padding:8px 4px; border-bottom:.5px solid var(--edge); }
.mp-nm { font-size:13px; white-space:nowrap; } .who-av.sm { width:34px; height:34px; font-size:14px; border:none; }
.btn.sm { padding:5px 10px; font-size:12px; }
@media (max-width: 680px){ .who-grid{ grid-template-columns:repeat(auto-fit,minmax(96px,1fr)); } .who-av{ width:70px; height:70px; font-size:26px; } }

/* ===================== Remote Access panel (Plex-style) ===================== */
.ra-body { display:flex; flex-direction:column; gap:10px; margin:4px 0 2px; }
.ra-pill { align-self:flex-start; font-size:13px; font-weight:600; padding:6px 14px; border-radius:999px; }
.ra-pill.ok { color:#4ad07a; background:rgba(74,208,122,.12); border:1px solid rgba(74,208,122,.4); }
.ra-pill.off { color:var(--accent); background:rgba(229,160,13,.12); border:1px solid rgba(229,160,13,.4); }
.ra-addr { font-family:ui-monospace,Menlo,Consolas,monospace; font-size:14px; background:#0a0a0c; border:1px solid var(--edge); border-radius:9px; padding:11px 12px; color:#16E0C8; word-break:break-all; }
.ra-qr { text-align:center; margin-top:6px; }
.ra-qr img { width:170px; height:170px; background:#fff; padding:8px; border-radius:12px; }

/* ✕ delete badge on non-admin profile tiles ("Who's watching?") — PIN-gated.
   Hidden until you hover the tile; fades away when the mouse leaves. */
.who-del { position:absolute; top:-4px; right:-4px; width:26px; height:26px; border-radius:50%;
  background:#e24b4a; color:#fff; display:flex; align-items:center; justify-content:center;
  font-size:14px; font-weight:600; cursor:pointer; border:2px solid var(--bg);
  opacity:0; transition:opacity .12s ease; }
.who-tile:hover .who-del, .who-tile:focus-within .who-del { opacity:.95; }
.who-del:hover { opacity:1; transform:scale(1.08); }
@media (hover: none) { .who-del { opacity:.9; } }   /* touch screens: no hover, keep it visible */

/* The MEGA icon next to the "MEGA*ppn" wordmark on the "Who's watching?" header */
.who-brand-icon { width:24px; height:24px; border-radius:6px; object-fit:contain; vertical-align:middle; }

/* Administrator tile: orange hover ring (everyone else stays teal) */
.who-tile.who-admin:hover .who-av, .who-tile.who-admin:focus .who-av { border-color:#FF8C00; }
