/* The team page (voddy.app/team), in the app's own look: its colours,
   top bar and cards. Home, the channels down the left, VODs (by game), members, and a VOD with its comments. */
:root {
  /* the app's look: its greys, panels floating as glass, the purple kept for what you'd press */
  --bg: #09090c; --surface: #111116; --surface2: #17171e; --raised: #1f1f28; --hover: #272732;
  --border: #262630; --text: #f1f1f5; --dim: #a1a1b3; --faint: #686879;
  --accent: #7b61ff; --accent-hover: #8f79ff; --accent-soft: #251f47; --danger: #f05252; --good: #34c77b;
  --new: #f5c04a;
  --glass: var(--surface); --glass-hi: var(--surface2); --glass-edge: var(--border);
}
* { box-sizing: border-box; }
html, body { margin: 0; color: var(--text); font: 14px/1.45 Inter, "Segoe UI", system-ui, sans-serif; }
html { background: var(--bg); }
body { min-height: 100vh; background: var(--bg); }
[hidden] { display: none !important; }
.muted { color: var(--dim); }
h1 { font-size: 24px; font-weight: 700; margin: 0; }
h2 { font-size: 16px; font-weight: 600; margin: 0; }
a { color: var(--accent-hover); }
.grow { flex: 1; }

/* top bar */
.bar { display: flex; align-items: center; gap: 12px; height: 54px; padding: 0 16px; position: sticky; top: 10px; z-index: 5;
  margin: 10px 10px 0; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 15px; }
.me { display: flex; align-items: center; gap: 8px; color: var(--dim); font-size: 13px; }
.me img { border-radius: 50%; }
select { background: var(--surface2); color: var(--text); border: 1px solid var(--border); border-radius: 8px;
  padding: 6px 10px; font: inherit; color-scheme: dark; }

/* the team's name, as its picker (as in the app), and the menus */
.menu-wrap { position: relative; display: inline-block; }
.team-pick { display: inline-flex; align-items: center; gap: 8px; background: none; border: 1px solid transparent; color: var(--text);
  font: inherit; cursor: pointer; padding: 2px 8px 2px 8px; margin-left: -9px; border-radius: 9px; }
.team-pick:hover, .team-pick[aria-expanded="true"] { background: var(--hover); border-color: var(--border); }
.team-pick svg { flex: none; }
.menu { position: absolute; left: 0; top: calc(100% + 6px); z-index: 30; min-width: 240px; padding: 5px; border-radius: 10px;
  background: #15151c; border: 1px solid var(--border); box-shadow: 0 18px 50px #000c; display: flex; flex-direction: column; }
.menu.right { left: auto; right: 0; min-width: 160px; }
.menu-item { display: flex; align-items: center; gap: 10px; background: none; border: none; color: var(--text); font: inherit;
  text-align: left; padding: 8px 12px 8px 30px; border-radius: 7px; cursor: pointer; position: relative; white-space: nowrap; }
.menu-item:hover, .menu-item:focus-visible { background: var(--hover); outline: none; }
.menu-item.checked::before { content: "✓"; position: absolute; left: 11px; color: var(--accent-hover); font-weight: 700; }
.menu-item.danger { color: var(--danger); }
.menu-item .sub { margin-left: auto; padding-left: 18px; color: var(--faint); font-size: 12px; }
.menu-sep { height: 1px; background: var(--border); margin: 5px 4px; }
.icon-btn { background: none; border: 1px solid transparent; color: var(--dim); font: inherit; font-size: 18px; line-height: 1; cursor: pointer;
  width: 32px; height: 32px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; }
.icon-btn:hover, .icon-btn[aria-expanded="true"] { background: var(--hover); color: var(--text); }

/* buttons, fields */
.primary, .ghost, .back, .chip-btn { font: inherit; cursor: pointer; border-radius: 8px; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.primary { background: var(--accent); color: #fff; border: 1px solid var(--accent); padding: 8px 16px;
  font-weight: 600; border-radius: 10px; }
.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.primary:disabled { opacity: 0.6; cursor: default; }
.ghost { background: var(--glass-hi); color: var(--dim); border: 1px solid var(--glass-edge); padding: 7px 12px; border-radius: 10px; }
.ghost:hover { background: var(--hover); color: var(--text); }
.ghost.plain { border-color: transparent; }
.ghost.danger:hover { color: var(--danger); border-color: rgba(240, 82, 82, 0.4); background: rgba(240, 82, 82, 0.08); }
.ghost.small, .primary.small { padding: 4px 10px; font-size: 12px; }
.back { background: none; border: none; color: var(--dim); padding: 0; margin-bottom: 12px; font-size: 13px; }
.back:hover { color: var(--text); }
input, textarea { background: var(--bg); border: 1px solid var(--glass-edge); border-radius: 10px; color: var(--text); font: inherit;
  padding: 9px 12px; color-scheme: dark; min-width: 0; }
textarea { resize: vertical; width: 100%; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.row { display: flex; gap: 8px; width: 100%; }
.row input { flex: 1; }

main { max-width: 1240px; margin: 0 auto; padding: 24px 32px 56px; }
.center { text-align: center; margin-top: 80px; }
.center-card { max-width: 440px; margin: 80px auto; text-align: center; background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 32px 28px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.center-card p { margin: 0 0 6px; }
.team-title { display: flex; align-items: center; gap: 12px; }
.folder-tag { font-size: 11px; font-weight: 600; color: var(--dim); background: var(--raised); border-radius: 6px; padding: 2px 7px;
  margin-left: 6px; white-space: nowrap; }
.dialog .perms { border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px 10px; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 12px; }
.dialog .perms legend { font-size: 12px; font-weight: 600; color: var(--dim); padding: 0 4px; }
.dialog .perms label { display: flex; gap: 7px; align-items: center; font-size: 13px; }
.check-line { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.invite-made input { width: 100%; box-sizing: border-box; }
.invites .sub { color: var(--dim); }
.team-avatar { width: 46px; height: 46px; border-radius: 13px; border: 1px solid var(--border); padding: 0; flex: none;
  display: grid; place-items: center; overflow: hidden; color: #fff; font-size: 18px; font-weight: 700; cursor: default;
  background: var(--raised); }
.team-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.team-avatar.can { cursor: pointer; }
.team-avatar.can:hover, .team-avatar[aria-expanded="true"] { border-color: var(--accent); }
.pov.on-pc { cursor: help; }
.pov.on-pc .thumb { background: var(--raised); color: var(--dim); font-size: 12px; text-align: center; padding: 0 14px; }
.badge.pc { background: #2e2614; color: #f5c04a; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.page-head p { margin: 2px 0 0; }
.head-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.note { margin: 6px 0 0; font-size: 13px; color: var(--danger); }
.note.good { color: var(--good); }

.banner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--accent-soft);
  border: 1px solid var(--accent); border-radius: 10px; padding: 10px 14px; margin: 0 0 16px; font-size: 13px; }
.banner .link { font-family: ui-monospace, Consolas, monospace; word-break: break-all; background: rgba(0, 0, 0, 0.3);
  padding: 2px 8px; border-radius: 6px; }

/* tabs and filters */
.tabs { display: flex; gap: 4px; align-items: center; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.tabs .chip-btn { margin-bottom: 6px; }
.tab { background: none; border: none; border-bottom: 2px solid transparent; color: var(--dim); font: inherit; font-weight: 600;
  padding: 8px 14px 10px; cursor: pointer; margin-bottom: -1px; }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }
.filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.chip-btn { background: var(--surface2); border: 1px solid var(--border); color: var(--dim); padding: 5px 12px; font-size: 13px;
  border-radius: 999px; }
.chip-btn:hover { color: var(--text); background: var(--hover); }
.chip-btn[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--text); }
.chip-btn img { width: 18px; height: 18px; border-radius: 50%; }

/* games: a day, its games, each game's POVs */
.day-title { font-size: 13px; font-weight: 600; color: var(--dim); text-transform: uppercase; letter-spacing: 0.04em;
  margin: 26px 0 10px; }
.day-title:first-child { margin-top: 0; }
.game { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px 16px;
  margin-bottom: 12px; }
.game-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.game-head h3 { margin: 0; font-size: 16px; font-weight: 600; }
.game-head h3.untitled { color: var(--dim); font-weight: 500; }
.game-head .meta { color: var(--faint); font-size: 12px; }
.povs { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.pov { display: block; background: var(--surface2); border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 10px;
  overflow: hidden; color: inherit; text-decoration: none; transition: border-color 0.12s, background 0.12s; }
.pov:hover { background: var(--raised); border-color: rgba(255, 255, 255, 0.18); }
.pov.mine { border-color: rgba(123, 97, 255, 0.7); }
.pov .thumb { aspect-ratio: 16 / 9; background: #15151c center / cover no-repeat; position: relative; display: flex;
  align-items: center; justify-content: center; color: rgba(255, 255, 255, 0.8); font-weight: 700; font-size: 22px; }
.badge { position: absolute; font-size: 11px; font-weight: 600; border-radius: 6px; padding: 2px 7px;
  background: rgba(10, 10, 16, 0.82); color: #fff; }
.badge.tl { left: 8px; top: 8px; }
.badge.tr { right: 8px; top: 8px; }
.badge.bl { left: 8px; bottom: 8px; }
.badge.new { background: var(--new); color: #1a1406; }
.badge.you { background: var(--accent); }
.pov .info { padding: 9px 12px 10px; display: flex; gap: 9px; align-items: center; }
.avatar { width: 26px; height: 26px; border-radius: 50%; flex: none; background: var(--raised); object-fit: cover;
  display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #fff; }
.pov .who { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pov .what { color: var(--dim); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pov .text { min-width: 0; }
.add-pov { border: 1px dashed var(--border); border-radius: 10px; background: none; color: var(--faint); font: inherit;
  cursor: pointer; min-height: 120px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.add-pov:hover { color: var(--text); border-color: var(--accent); background: rgba(123, 97, 255, 0.06); }
.add-pov b { font-size: 22px; font-weight: 400; }
.empty-card { background: var(--surface); border: 1px dashed var(--border); border-radius: 14px; padding: 36px 24px;
  text-align: center; color: var(--dim); }
.empty-card h2 { color: var(--text); margin-bottom: 6px; }
.empty-card p { margin: 0 0 14px; }

/* people */
.people { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.person { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.person-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.person .avatar { width: 36px; height: 36px; font-size: 13px; }
.person .who { flex: 1; min-width: 160px; }
.person .name { font-weight: 600; }
.person .handle { color: var(--faint); font-size: 12px; margin-left: 6px; }
.person .sub { color: var(--dim); font-size: 12px; }
.role { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; border-radius: 6px; padding: 2px 7px;
  background: var(--raised); color: var(--dim); }
.role.role-owner { background: rgba(245, 192, 74, 0.15); color: var(--new); }
.role.role-manager { background: var(--accent-soft); color: #c7bbff; }
.person-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.person-actions select { padding: 3px 8px; font-size: 12px; height: 26px; }
.perms > button { justify-self: start; }
.people.left .person { opacity: 0.65; }
.section-title { font-size: 13px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.04em; margin: 26px 0 10px; }
.perms { margin: 12px 0 2px 48px; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px 16px; }
.perms label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--dim); cursor: pointer; }
.perms label.changed { color: var(--text); }
.perms label.changed::after { content: "changed"; font-size: 10px; color: var(--new); text-transform: uppercase; }
.perms input { accent-color: var(--accent); }
.team-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--border); }

/* a VOD and its comments */
.vod-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; align-items: start; }
.player { aspect-ratio: 16 / 9; background: #000; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.player { position: relative; }
.player iframe { width: 100%; height: 100%; border: 0; display: block; }
.player .ink { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.no-embed { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  color: var(--dim); text-align: center; padding: 20px; }
.vod-head { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; align-items: flex-start; flex-wrap: wrap; }
.vod-head h1 { font-size: 20px; }
.vod-sub { display: flex; align-items: center; gap: 8px; color: var(--dim); font-size: 13px; margin-top: 6px; flex-wrap: wrap; }
.vod-sub .avatar { width: 22px; height: 22px; }
.vod-actions { display: flex; gap: 6px; }
.same-game { margin-top: 18px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.same-game > span { color: var(--faint); font-size: 12px; margin-right: 4px; }

.comments { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px;
  position: sticky; top: 70px; max-height: calc(100vh - 90px); display: flex; flex-direction: column; }
.composer { display: flex; flex-direction: column; gap: 8px; padding-bottom: 14px; border-bottom: 1px solid var(--border);
  margin-bottom: 12px; }
.composer-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.at { display: inline-flex; align-items: center; gap: 6px; color: var(--faint); font-size: 12px; }
.at input { width: 74px; padding: 6px 8px; font-variant-numeric: tabular-nums; text-align: center; }
.seg { display: inline-flex; background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; padding: 2px; }
.seg button { background: none; border: none; color: var(--dim); font: inherit; font-size: 12px; padding: 4px 10px;
  border-radius: 6px; cursor: pointer; }
.seg button[aria-checked="true"] { background: var(--raised); color: var(--text); }
.comments-title { margin-bottom: 8px; font-size: 14px; display: flex; align-items: center; gap: 10px; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: var(--good); }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 8px var(--good);
  animation: live 2s ease-in-out infinite; }
@keyframes live { 50% { opacity: .35; } }
.comment.fresh { animation: fresh 3s ease-out; }
@keyframes fresh { 0%, 40% { background: #1f3a2c; } 100% { background: transparent; } }
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 20; display: flex; flex-direction: column; gap: 8px; align-items: flex-end;
  pointer-events: none; }
.toast { display: flex; flex-direction: column; gap: 2px; max-width: min(360px, calc(100vw - 32px)); padding: 10px 14px;
  border-radius: 12px; background: #181624; border: 1px solid #3d3370; box-shadow: 0 14px 40px #000a; font-size: 13px;
  animation: toast-in .3s ease-out; transition: opacity .3s, transform .3s; }
.toast span { color: var(--dim); }
.toast.out { opacity: 0; transform: translateY(8px); }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }
.comment-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 2px;
  margin-right: -6px; padding-right: 6px; }
.comment { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; padding: 9px 8px; border-radius: 8px; }
.comment:hover { background: var(--surface2); }
.comment.active { background: var(--accent-soft); }
.time { font: 600 12px/1 ui-monospace, Consolas, monospace; color: var(--accent-hover); background: rgba(123, 97, 255, 0.12);
  border: none; border-radius: 6px; padding: 5px 7px; cursor: pointer; height: fit-content; text-decoration: none; }
.time:hover { background: rgba(123, 97, 255, 0.25); }
.comment .top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; color: var(--faint); }
.comment .top .avatar { width: 18px; height: 18px; font-size: 9px; }
.comment .author { color: var(--text); font-weight: 600; font-size: 13px; }
.pill { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; border-radius: 5px; padding: 1px 6px; }
.pill.new { background: var(--new); color: #1a1406; }
.pill.private { background: var(--raised); color: var(--dim); }
.pill.label { background: rgba(255, 255, 255, 0.08); color: var(--text); text-transform: none; }
.comment .body { grid-column: 2; white-space: pre-wrap; overflow-wrap: anywhere; }
.comment .drawn { grid-column: 2; font-size: 12px; color: var(--dim); }
.linkish { background: none; border: none; padding: 0; font: inherit; color: var(--accent-hover); cursor: pointer; }
.linkish:hover { text-decoration: underline; }
.comment .tools { margin-left: auto; display: flex; gap: 2px; opacity: 0; transition: opacity 0.1s; }
.comment:hover .tools, .comment:focus-within .tools { opacity: 1; }
@media (hover: none) { .comment .tools { opacity: 1; } }
.comment .tools button { background: none; border: none; color: var(--faint); font: inherit; font-size: 12px; cursor: pointer; padding: 2px 6px 2px 0; }
.comment .tools button:hover { color: var(--text); }
.comment .tools button.del:hover { color: var(--danger); }
.comment .edit { grid-column: 2; display: flex; flex-direction: column; gap: 6px; }
.comment .edit div { display: flex; gap: 6px; justify-content: flex-end; }
.empty { margin: 8px 0; font-size: 13px; }

/* the add / change dialog */
.dialog { background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 14px; padding: 22px;
  width: min(520px, calc(100vw - 32px)); }
.dialog::backdrop { background: rgba(0, 0, 0, 0.6); }
.dialog form { display: flex; flex-direction: column; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 5px; flex: 1; }
.field > span { font-size: 12px; font-weight: 600; color: var(--dim); }
.field em { font-weight: 400; color: var(--faint); font-style: normal; }
.field-row { display: flex; gap: 10px; flex-wrap: wrap; }
.suggest { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: -4px; }
.suggest > span { color: var(--faint); font-size: 12px; }
.hint { margin: 0; color: var(--faint); font-size: 12px; }
.dialog-buttons { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
/* the team's picture: moved and zoomed in its square */
#crop-dialog { width: min(360px, calc(100vw - 32px)); }
.crop-frame { width: 100%; aspect-ratio: 1; display: block; border-radius: 10px; background: #000;
  cursor: grab; touch-action: none; }
.crop-frame.dragging { cursor: grabbing; }
.crop-zoom { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; color: var(--dim); }
.crop-zoom input { flex: 1; accent-color: var(--accent); }

@media (max-width: 960px) {
  .vod-layout { grid-template-columns: 1fr; }
  .comments { position: static; max-height: none; }
}
@media (max-width: 700px) {
  main { padding: 18px 16px 40px; }
  .me span { display: none; }
  .perms { margin-left: 0; }
  .povs { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

/* reviews: made in the app, opened here */
.block-title { font-size: 13px; font-weight: 700; color: var(--dim); text-transform: uppercase; letter-spacing: 0.05em; margin: 4px 0 12px;
  display: flex; align-items: center; gap: 10px; }
.block-title .muted { font-weight: 600; }
#reviews-box + #vods-title { margin-top: 30px; }
/* a saved review: a row, as in the app; click it and its POVs drop down */
.review-rows { display: flex; flex-direction: column; gap: 10px; }
.review-row { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; transition: border-color 0.12s; }
.review-row:hover { border-color: var(--accent); }
.rv-head { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 10px; cursor: pointer; border-radius: 12px; }
.rv-head:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.chev { flex: none; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--dim); transition: transform 0.15s; }
.chev::before { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateX(-1px) rotate(-45deg); border-radius: 1px; }
.review-row.open .chev { transform: rotate(90deg); }
.rv-text { flex: 1; min-width: 0; }
.rv-name { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rv-meta { color: var(--dim); font-size: 12px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.rv-povs { padding: 2px 16px 16px; }
#review .povs { margin-bottom: 26px; }
.review-notes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-width: 860px; }
.review-note { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 11px 12px; border-radius: 10px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); }
.review-note:hover { border-color: rgba(123, 97, 255, 0.6); background: var(--surface2); }
.review-note .top { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 12px; color: var(--faint); }
.review-note .top .avatar { width: 18px; height: 18px; font-size: 9px; }
.review-note .author { color: var(--text); font-weight: 600; font-size: 13px; }
.review-note .on { color: var(--dim); }
.review-note .body { margin-top: 3px; white-space: pre-wrap; overflow-wrap: anywhere; }
.pill.drawn { background: rgba(123, 97, 255, 0.18); color: #c7bbff; text-transform: none; }

/* someone's live */
.live-now { display: flex; flex-direction: column; gap: 8px; margin: 0 0 16px; }
.live-card { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; text-decoration: none; color: var(--text);
  background: #2a1517; border: 1px solid #7a3236; }
.live-card:hover { border-color: #e5484d; }
.live-card .muted { font-size: 13px; }
.live-card .go { margin-left: auto; font-weight: 700; color: #ff8a8a; white-space: nowrap; }
.live-dot { font-size: 11px; font-weight: 800; letter-spacing: 0.06em; color: #fff; background: #e5484d; padding: 3px 8px; border-radius: 6px;
  animation: live-pulse 2.4s ease-in-out infinite; }
@keyframes live-pulse { 50% { box-shadow: 0 0 0 6px rgba(229, 72, 77, 0.18); } }

/* the app's glass: panels float over the lit backdrop, blurring what's behind them */
.center-card, .game, .empty-card, .person, .comments, .review-row, .review-note {
  background: var(--surface); border-color: var(--border); }
.game, .review-row, .comments, .center-card { border-radius: 16px; }
.review-row:hover, .review-note:hover { border-color: var(--accent); }
.pov { background: var(--surface2); border-color: var(--glass-edge); }
.tab[aria-selected="true"] { border-bottom-color: var(--accent); }
.chip-btn { background: var(--glass-hi); border-color: var(--glass-edge); }
.chip-btn[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--text); }
.badge.you { background: var(--accent); }
.menu { background: var(--raised);
  border-color: var(--glass-edge); border-radius: 12px; }
.dialog { background: var(--surface);
  border-color: var(--glass-edge); border-radius: 18px; }
main { padding-top: 22px; }

/* ── laid out as the app's Home: the top bar's path, one floating panel, the team's header and tabs ── */
.bar { gap: 6px; padding: 0 12px; }
.path { display: flex; align-items: center; gap: 4px; min-width: 0; }
.chip { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 5px 8px; border-radius: 9px;
  border: 1px solid transparent; background: none; color: var(--text); font: 600 14px Inter, "Segoe UI", system-ui, sans-serif;
  cursor: pointer; }
.chip:hover, .chip[aria-expanded="true"] { background: var(--hover); border-color: var(--border); }
.chip .chev { flex: none; color: var(--faint); }
.chip-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 240px; }
.chip-face { width: 22px; height: 22px; flex: none; border-radius: 6px; display: grid; place-items: center; overflow: hidden;
  color: #fff; font-size: 10px; font-weight: 700; background: var(--raised); }
.chip-face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slash { color: var(--faint); font-size: 18px; margin: 0 4px; }
.home-btn { display: grid; place-items: center; width: 36px; height: 36px; margin-left: 4px; flex: none; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface2); color: var(--dim); cursor: pointer; }
.home-btn:hover { color: var(--text); background: var(--hover); }
.home-btn[aria-pressed="true"] { color: var(--text); background: var(--raised); }
.bar .menu { min-width: 260px; }

main { max-width: none; margin: 10px; padding: 22px 28px 40px; min-height: calc(100vh - 84px); border-radius: 16px;
  background: var(--surface); border: 1px solid var(--border); }
#team > .page-head, #review > .page-head { align-items: flex-start; }
.team-title { gap: 10px; }
.team-avatar { width: 38px; height: 38px; border-radius: 10px; font-size: 15px; }
.team-title h1 { font-size: 26px; letter-spacing: -0.01em; }
.icon-btn { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; border: 1px solid transparent;
  background: none; color: var(--dim); cursor: pointer; }
.icon-btn:hover, .icon-btn[aria-expanded="true"] { background: var(--hover); color: var(--text); }
#team-sub { font-size: 13px; color: var(--faint); margin-top: 2px; }
.head-actions { margin-top: 6px; }

.tabs { border-bottom: 0; gap: 8px; margin-bottom: 20px; }
.tab { padding: 8px 14px 10px; }
.tabs .chip-btn { margin-bottom: 0; }
.search { display: flex; align-items: center; gap: 8px; width: 260px; max-width: 100%; height: 34px; padding: 0 12px;
  border-radius: 10px; border: 1px solid var(--border); background: var(--bg); color: var(--faint); }
.search:focus-within { border-color: var(--accent); }
.search input { flex: 1; min-width: 0; border: 0; outline: none; background: none; color: var(--text); font: inherit; font-size: 13px; }
.search input::-webkit-search-cancel-button { filter: invert(0.6); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#reviews-view .empty-card .ghost { margin-top: 6px; }
.center-card { background: var(--surface2); }

@media (max-width: 700px) {
  .bar { margin: 8px 8px 0; padding: 0 8px; }
  .chip { padding: 5px 6px; gap: 6px; }
  .chip-text { max-width: 92px; }
  .slash { margin: 0 1px; }
  main { margin: 8px; padding: 18px 14px 32px; }
  .tabs { flex-wrap: wrap; }
  .tabs .grow { display: none; }
  .search { width: 100%; order: 5; }
}

/* ── laid out as the app's Home ────────────────────────────────────────────
   The top bar's path (the team / Home, a review or a VOD; each a menu), Home; the page in one floating
   panel under it; the team's picture, name and ⋯; Reviews, VODs, People. */
.bar { gap: 6px; padding: 0 10px 0 12px; }
.path { display: flex; align-items: center; gap: 4px; min-width: 0; }
.path .menu-wrap { min-width: 0; }
.chip { display: inline-flex; align-items: center; gap: 8px; max-width: 280px; height: 36px; padding: 0 10px 0 8px;
  background: none; border: 1px solid transparent; border-radius: 9px; color: var(--text); font: 600 14px Inter, "Segoe UI", system-ui, sans-serif;
  cursor: pointer; }
.chip:hover, .chip[aria-expanded="true"] { background: var(--hover); border-color: var(--border); }
.chip .chip-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.chip .chev { flex: none; color: var(--faint); }
.chip-face { width: 24px; height: 24px; border-radius: 7px; flex: none; display: grid; place-items: center; overflow: hidden;
  color: #fff; font-size: 10px; font-weight: 700; background: var(--raised); }
.chip-face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slash { color: var(--faint); font-size: 18px; margin: 0 4px; user-select: none; }
.home-btn { display: grid; place-items: center; width: 36px; height: 36px; margin-left: 6px; flex: none; border-radius: 9px;
  border: 1px solid var(--border); background: var(--surface2); color: var(--dim); cursor: pointer; }
.home-btn:hover { color: var(--text); background: var(--hover); }
.home-btn[aria-pressed="true"] { color: var(--text); background: var(--raised); border-color: #34343f; }
.bar .menu { min-width: 260px; }
.menu-item { position: relative; }
.menu-item.checked { padding-left: 30px; }

main { max-width: none; margin: 10px; padding: 20px 28px 40px; min-height: calc(100vh - 86px);
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px; }
main > .center-card { background: var(--surface2); }

.team-title { gap: 10px; }
.team-title h1 { font-size: 26px; font-weight: 700; letter-spacing: -0.01em; }
.team-avatar { width: 38px; height: 38px; border-radius: 10px; font-size: 14px; }
.icon-btn { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; border: 1px solid transparent;
  background: none; color: var(--dim); cursor: pointer; }
.icon-btn:hover, .icon-btn[aria-expanded="true"] { color: var(--text); background: var(--hover); border-color: var(--border); }
#more-menu { min-width: 230px; }
#team-sub { font-size: 12px; color: var(--faint); margin-top: 4px; }
.page-head { align-items: center; }
.head-actions .ghost { color: var(--text); font-weight: 600; font-size: 13px; padding: 8px 14px; }
.head-actions .primary { font-weight: 600; font-size: 13px; padding: 8px 16px; border-radius: 10px; }

.tabs { border-bottom: 0; gap: 2px; margin-bottom: 16px; }
.tab { padding: 8px 14px 12px; }
.search { display: flex; align-items: center; gap: 8px; width: 260px; max-width: 100%; height: 34px; padding: 0 10px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 9px; color: var(--faint); }
.search:focus-within { border-color: var(--accent); }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--text); font: inherit; font-size: 13px; }
.search input::-webkit-search-cancel-button { filter: invert(0.6); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.block-title { color: var(--dim); }
.game, .review-row, .empty-card, .person { background: var(--surface2); }
.pov { background: var(--raised); }

@media (max-width: 700px) {
  main { margin: 8px; padding: 16px 14px 32px; }
  .bar { margin: 8px 8px 0; }
  .chip { max-width: 120px; padding: 0 6px; }
  .slash { margin: 0; }
  .home-btn { margin-left: 2px; }
  .tabs { flex-wrap: wrap; }
  .search { width: 100%; order: 5; margin-top: 8px; }
  .team-title h1 { font-size: 22px; }
}

/* ── channels down the left, as the app's Home (ui/pages/channels.py): Home, All reviews, All VODs, Members, then
   the team's channels (its folders) and players' own; beside them Home or the tab shown ── */
.team-body { display: grid; grid-template-columns: 212px minmax(0, 1fr); gap: 16px; align-items: start; }
.channels { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 1px; padding: 4px 8px 16px 0;
  max-height: calc(100vh - 96px); overflow-y: auto; }
.channel { display: flex; align-items: center; gap: 8px; width: 100%; height: 34px; padding: 0 10px; border: 0; border-radius: 8px;
  background: none; color: var(--dim); font: 500 13px Inter, "Segoe UI", system-ui, sans-serif; cursor: pointer; text-align: left; }
.channel:hover { background: rgba(255, 255, 255, 0.055); }
.channel[aria-current="true"] { background: var(--accent-soft); color: var(--text); font-weight: 600; }
.channel .ico { display: grid; place-items: center; flex: none; }
.ch-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-count { color: var(--faint); font-size: 11px; font-weight: 500; }
.channel-wrap { display: flex; align-items: center; width: 100%; }
.ch-more { position: absolute; right: 5px; top: 5px; width: 24px; height: 24px; border: 0; border-radius: 6px; background: none;
  color: var(--faint); cursor: pointer; opacity: 0; font-size: 14px; line-height: 1; }
.channel-wrap:hover .ch-more, .ch-more:focus-visible, .ch-more[aria-expanded="true"] { opacity: 1; }
.channel-wrap:hover .ch-count { visibility: hidden; }
.ch-more:hover { color: var(--text); background: var(--hover); }
@media (hover: none) { .ch-more { opacity: 1; } .channel-wrap .ch-count { visibility: hidden; } }
.ch-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 0 4px 10px;
  font-size: 12px; font-weight: 700; color: var(--dim); letter-spacing: 1px; text-transform: uppercase; }
.ch-add { display: grid; place-items: center; width: 24px; height: 24px; border: 0; border-radius: 6px; background: none;
  color: var(--dim); cursor: pointer; }
.ch-add:hover { color: var(--text); background: var(--hover); }
.ch-hint { margin: 2px 10px; color: var(--faint); font-size: 12px; }
.team-main { min-width: 0; }
.ico { display: inline-grid; place-items: center; flex: none; }
.menu-heading { padding: 6px 12px 4px; font-size: 11px; font-weight: 700; color: var(--faint); text-transform: uppercase; letter-spacing: 0.06em; }
.menu-item .ico { color: var(--dim); }
.game-head .menu-wrap { margin-left: 2px; }

/* Home: what's new at a glance; beside it, members and recent activity */
.home { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.home-main { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.stat { display: flex; flex-direction: column; align-items: flex-start; gap: 0; padding: 12px 16px; border-radius: 14px; cursor: pointer;
  background: var(--surface2); border: 1px solid var(--border); color: var(--text); font: inherit; text-align: left; }
.stat:hover { border-color: var(--accent-hover); }
.stat.lit { background: var(--accent-soft); border-color: var(--accent); }
.stat-n { font-size: 24px; font-weight: 700; line-height: 1.25; }
.stat-t { font-size: 12px; color: var(--faint); }
.home-head { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.home-head .section-title { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 1px; }
.home .game { margin-bottom: 0; }
.home-main #home-games { display: flex; flex-direction: column; gap: 12px; }
.home-hint { margin: 0; font-size: 13px; }
.home-side { background: var(--surface2); border: 1px solid var(--border); border-radius: 16px; padding: 14px;
  display: flex; flex-direction: column; gap: 2px; }
.home-side .home-head { margin-top: 0; margin-bottom: 4px; }
.home-side > .section-title { margin: 16px 0 4px; font-size: 12px; font-weight: 700; letter-spacing: 1px; }
.home-members, .activity { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.home-member { display: flex; align-items: center; gap: 10px; padding: 3px 4px; font-size: 13px; }
.hm-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-member .role { font-size: 10px; }
.act { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; gap: 10px; padding: 4px; align-items: start;
  font-size: 13px; color: var(--dim); }
.act .ico { margin-top: 2px; }
.act b { color: var(--text); font-weight: 600; }
.act-ago { color: var(--faint); font-size: 12px; white-space: nowrap; }

@media (max-width: 1100px) {
  .home { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .team-body { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .channels { position: static; flex-direction: row; overflow-x: auto; max-height: none; padding: 0 0 6px; gap: 4px; }
  .channel, .channel-wrap { width: auto; flex: none; }
  .ch-header, .ch-hint { display: none; }
  .ch-more { display: none; }
}
.menu.floating { position: fixed; right: auto; min-width: 200px; }   /* (a channel's ⋯: over the page, not inside the channels' scroll) */
.channels { z-index: 4; }   /* (sticky makes it a layer of its own: its menus over the page beside it) */
.channel-wrap:has(.ch-more[aria-expanded="true"]) .ch-count, .channel-wrap:focus-within .ch-count { visibility: hidden; }
