/* FiniteTube design system */
:root {
  --font: "Roboto", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --brand: #ff3b5c; --brand-2: #ff7a45; --brand-ink: #fff;
  --radius: 12px; --radius-lg: 16px; --radius-pill: 999px;
  --top: 56px; --side: 240px; --side-mini: 72px; --bottom: 0px;
  --ease: cubic-bezier(.2,.8,.2,1);
}
:root:not([data-theme="light"]), [data-theme="dark"] {
  --bg: #0f0f10; --bg-2: #161618; --surface: #1d1d20; --surface-2: #272729; --surface-3: #323235;
  --text: #f2f2f3; --text-2: #b5b5ba; --text-3: #8a8a90; --line: rgba(255,255,255,.1); --line-2: rgba(255,255,255,.18);
  --hover: rgba(255,255,255,.08); --press: rgba(255,255,255,.14); --chip: rgba(255,255,255,.1); --chip-on: #f2f2f3; --chip-on-ink: #0f0f10;
  --shadow: 0 8px 32px rgba(0,0,0,.55); --scrim: rgba(0,0,0,.6); --link: #6eb4ff;
  --ok: #2fbf71; --warn: #f5b301; --bad: #ff5a5a; --info: #4da3ff;
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #ffffff; --bg-2: #f7f7f8; --surface: #f2f2f3; --surface-2: #e7e7ea; --surface-3: #dcdce0;
  --text: #0f0f10; --text-2: #55555c; --text-3: #7a7a82; --line: rgba(0,0,0,.1); --line-2: rgba(0,0,0,.18);
  --hover: rgba(0,0,0,.05); --press: rgba(0,0,0,.1); --chip: rgba(0,0,0,.06); --chip-on: #0f0f10; --chip-on-ink: #fff;
  --shadow: 0 8px 32px rgba(0,0,0,.16); --scrim: rgba(0,0,0,.4); --link: #065fd4;
  --ok: #188a4f; --warn: #b07d00; --bad: #d62f2f; --info: #1a6fd6;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
body { overflow-y: scroll; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.01em; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; border-radius: 6px; }
.ic { width: 24px; height: 24px; fill: currentColor; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--text-2); } .dim { color: var(--text-3); } .small { font-size: 12px; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clamp1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row { display: flex; align-items: center; gap: 8px; } .wrap { flex-wrap: wrap; } .grow { flex: 1; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.spacer { flex: 1; }

/* ---------- shell ---------- */
.topbar { position: fixed; inset: 0 0 auto 0; height: var(--top); z-index: 50; display: flex; align-items: center; gap: 8px;
  padding: 0 16px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.4) blur(12px); }
.topbar .left { display: flex; align-items: center; gap: 4px; min-width: 200px; }
.logo { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 19px; letter-spacing: -.03em; padding: 6px 8px; }
.logo .mark { width: 32px; height: 23px; border-radius: 7px; background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: grid; place-items: center; box-shadow: 0 2px 10px color-mix(in srgb, var(--brand) 45%, transparent); }
.logo .mark svg { width: 14px; height: 14px; fill: #fff; }
.logo .word { display: inline-flex; } .logo b { font-weight: 800; } .logo .word span { font-weight: 400; }
.search { flex: 1; max-width: 640px; margin: 0 auto; display: flex; position: relative; }
.search input { flex: 1; min-width: 0; height: 40px; padding: 0 16px; border: 1px solid var(--line-2); border-right: 0;
  border-radius: var(--radius-pill) 0 0 var(--radius-pill); background: var(--bg); color: var(--text); font-size: 16px; outline: none; }
.search input:focus { border-color: var(--link); box-shadow: inset 0 0 0 1px var(--link); }
.search button { width: 64px; height: 40px; border: 1px solid var(--line-2); border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
  background: var(--surface); cursor: pointer; display: grid; place-items: center; }
.suggest { position: absolute; top: 44px; left: 0; right: 64px; background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 8px 0; z-index: 60; }
.suggest a { display: flex; gap: 12px; align-items: center; padding: 8px 16px; font-weight: 500; }
.suggest a:hover, .suggest a.on { background: var(--hover); }
.topbar .right { display: flex; align-items: center; gap: 6px; min-width: 200px; justify-content: flex-end; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; display: grid; place-items: center;
  cursor: pointer; position: relative; flex: none; }
.icon-btn:hover { background: var(--hover); } .icon-btn:active { background: var(--press); }
.icon-btn .badge { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--bg); }
.avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--surface-3); flex: none;
  display: grid; place-items: center; font-weight: 600; color: #fff; overflow: hidden; }
.avatar.lg { width: 48px; height: 48px; font-size: 18px; } .avatar.xl { width: 120px; height: 120px; font-size: 44px; }
.avatar.sm { width: 24px; height: 24px; font-size: 11px; }
.search-toggle { display: none; }

.sidebar { position: fixed; top: var(--top); bottom: 0; left: 0; width: var(--side); overflow-y: auto; padding: 12px; z-index: 40;
  background: var(--bg); scrollbar-width: thin; }
.sidebar .sect { padding: 12px 0; border-bottom: 1px solid var(--line); } .sidebar .sect:last-child { border: 0; }
.sidebar h4 { margin: 4px 12px 8px; font-size: 16px; font-weight: 600; }
.nav-item { display: flex; align-items: center; gap: 24px; height: 40px; padding: 0 12px; border-radius: 10px; font-weight: 400; }
.nav-item:hover { background: var(--hover); } .nav-item.on { background: var(--chip); font-weight: 600; }
.nav-item .avatar { width: 24px; height: 24px; font-size: 11px; }
.nav-item .count { margin-left: auto; font-size: 12px; background: var(--brand); color: #fff; border-radius: 10px; padding: 0 7px; }
.sidebar .foot { padding: 16px 12px; color: var(--text-3); font-size: 12px; line-height: 1.7; }
main { padding: calc(var(--top) + 8px) 24px calc(24px + var(--bottom)); margin-left: var(--side); min-height: 100vh; outline: none; }
body.mini .sidebar { width: var(--side-mini); padding: 4px; }
body.mini .sidebar .nav-item { flex-direction: column; height: 74px; gap: 6px; justify-content: center; font-size: 10px; padding: 0; }
body.mini .sidebar .sect:not(.primary), body.mini .sidebar .foot, body.mini .sidebar h4 { display: none; }
body.mini .sidebar .sect { border: 0; padding: 0; }
body.mini main { margin-left: var(--side-mini); }
body.watch-layout .sidebar { transform: translateX(-100%); box-shadow: var(--shadow); width: var(--side); padding: 12px; transition: transform .2s var(--ease); z-index: 70; }
body.watch-layout.drawer .sidebar { transform: none; visibility: visible; }
body.watch-layout:not(.drawer) .sidebar { visibility: hidden; box-shadow: none; transition: transform .2s var(--ease), visibility 0s .2s; }
body.watch-layout.mini .sidebar .nav-item { flex-direction: row; height: 40px; gap: 24px; font-size: 14px; padding: 0 12px; }
body.watch-layout.mini .sidebar .sect, body.watch-layout.mini .sidebar .foot, body.watch-layout.mini .sidebar h4 { display: block; }
body.watch-layout main { margin-left: 0; }
.scrim { position: fixed; inset: 0; background: var(--scrim); z-index: 65; opacity: 0; pointer-events: none; transition: opacity .2s; }
body.drawer .scrim { opacity: 1; pointer-events: auto; }
.bottomnav { display: none; }
.boot { display: grid; place-items: center; height: 60vh; }
.spinner { width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--brand); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1312px) { body:not(.watch-layout):not(.full-side) .sidebar { width: var(--side-mini); padding: 4px; }
  body:not(.watch-layout):not(.full-side) .sidebar .nav-item { flex-direction: column; height: 74px; gap: 6px; justify-content: center; font-size: 10px; padding: 0; }
  body:not(.watch-layout):not(.full-side) .sidebar .sect:not(.primary), body:not(.watch-layout):not(.full-side) .sidebar .foot, body:not(.watch-layout):not(.full-side) .sidebar h4 { display: none; }
  body:not(.watch-layout):not(.full-side) .sidebar .sect { border: 0; padding: 0; }
  body:not(.watch-layout):not(.full-side) main { margin-left: var(--side-mini); } }
@media (max-width: 792px) {
  .sidebar, body:not(.watch-layout):not(.full-side) .sidebar { transform: translateX(-100%); width: var(--side) !important; padding: 12px !important; z-index: 70; transition: transform .2s var(--ease); box-shadow: var(--shadow); }
  body.drawer .sidebar { transform: none; }
  .sidebar .nav-item, body:not(.watch-layout):not(.full-side) .sidebar .nav-item { flex-direction: row !important; height: 40px !important; gap: 24px !important; font-size: 14px !important; padding: 0 12px !important; }
  .sidebar .sect, .sidebar .foot, .sidebar h4 { display: block !important; }
  main, body:not(.watch-layout):not(.full-side) main, body.mini main { margin-left: 0; padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 640px) {
  :root { --bottom: 52px; --top: 48px; }
  .topbar { padding: 0 8px; } .topbar .left { min-width: 0; } .topbar .right { min-width: 0; gap: 0; }
  .topbar .menu-btn { display: none; }
  .search { display: none; } .search-toggle { display: grid; }
  body.searching .search { display: flex; position: fixed; inset: 0 0 auto 0; height: var(--top); background: var(--bg); padding: 4px 8px; z-index: 80; gap: 4px; }
  body.searching .search input { border-radius: var(--radius-pill); border-right: 1px solid var(--line-2); background: var(--surface); }
  body.searching .search .go { display: none; }
  .suggest { right: 0; top: var(--top); left: 0; border-radius: 0; }
  .topbar .create-btn span, .topbar .create-label { display: none; }
  .bottomnav { display: flex; position: fixed; inset: auto 0 0 0; height: calc(var(--bottom) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--line); z-index: 50; }
  .bottomnav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 10px; color: var(--text-2); }
  .bottomnav a.on { color: var(--text); } .bottomnav a.on .ic { transform: scale(1.06); }
  .bottomnav .plus { width: 40px; height: 28px; border-radius: 10px; border: 1.5px solid var(--text); display: grid; place-items: center; }
  main { padding-top: calc(var(--top) + 4px); padding-left: 12px; padding-right: 12px; }
  .logo { font-size: 17px; }
}

/* ---------- buttons, chips, inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 16px; border-radius: var(--radius-pill);
  border: 0; background: var(--chip); font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .15s, transform .1s; }
.btn:hover { background: var(--press); } .btn:active { transform: scale(.98); }
.btn .ic { width: 20px; height: 20px; }
.btn.primary { background: var(--text); color: var(--bg); } .btn.primary:hover { opacity: .88; }
.btn.brand { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; } .btn.brand:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; } .btn.ghost:hover { background: var(--hover); }
.btn.outline { background: transparent; border: 1px solid var(--line-2); color: var(--link); }
.btn.danger { background: color-mix(in srgb, var(--bad) 18%, transparent); color: var(--bad); }
.btn.ok { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
.btn.lg { height: 44px; padding: 0 22px; font-size: 15px; } .btn.sm { height: 30px; padding: 0 12px; font-size: 13px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.seg { display: inline-flex; background: var(--chip); border-radius: var(--radius-pill); }
.seg .btn { background: transparent; } .seg .btn + .btn { border-left: 1px solid var(--line-2); border-radius: 0 var(--radius-pill) var(--radius-pill) 0; }
.seg .btn:first-child { border-radius: var(--radius-pill) 0 0 var(--radius-pill); } .seg .btn:hover { background: var(--press); }
.seg .btn.on .ic { fill: var(--text); }
.chips { display: flex; gap: 12px; overflow-x: auto; padding: 4px 0 12px; scrollbar-width: none; position: sticky; top: var(--top); z-index: 20;
  background: var(--bg); margin: 0 -4px; padding-left: 4px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 32px; padding: 0 12px; border-radius: 8px; border: 0; background: var(--chip); font-weight: 500; cursor: pointer; text-transform: capitalize; }
.chip:hover { background: var(--press); } .chip.on { background: var(--chip-on); color: var(--chip-on-ink); }
.field { display: flex; flex-direction: column; gap: 6px; } .field > label { font-weight: 500; font-size: 13px; color: var(--text-2); }
.input, .select, .textarea { width: 100%; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-2);
  color: var(--text); font: inherit; font-size: 15px; outline: none; transition: border-color .15s, box-shadow .15s; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--link); box-shadow: 0 0 0 3px color-mix(in srgb, var(--link) 25%, transparent); }
.textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.hint { font-size: 12px; color: var(--text-3); } .err { color: var(--bad); font-size: 13px; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; } .check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--brand); }
.switch { position: relative; width: 40px; height: 22px; flex: none; } .switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--surface-3); border-radius: 11px; transition: .2s; cursor: pointer; }
.switch span::after { content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; border-radius: 50%; background: #fff; transition: .2s; }
.switch input:checked + span { background: var(--brand); } .switch input:checked + span::after { transform: translateX(18px); }
.tag { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 600;
  background: var(--chip); white-space: nowrap; }
.tag.ok { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
.tag.warn { background: color-mix(in srgb, var(--warn) 20%, transparent); color: var(--warn); }
.tag.bad { background: color-mix(in srgb, var(--bad) 18%, transparent); color: var(--bad); }
.tag.info { background: color-mix(in srgb, var(--info) 18%, transparent); color: var(--info); }
.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; }
.empty { text-align: center; padding: 64px 16px; color: var(--text-2); } .empty .ic { width: 96px; height: 96px; opacity: .35; margin: 0 auto 12px; display: block; }
.empty h2 { color: var(--text); margin-bottom: 8px; font-size: 20px; }
.banner-note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius); background: color-mix(in srgb, var(--warn) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); margin-bottom: 16px; }
.banner-note.bad { background: color-mix(in srgb, var(--bad) 12%, transparent); border-color: color-mix(in srgb, var(--bad) 35%, transparent); }
.banner-note.info { background: color-mix(in srgb, var(--info) 12%, transparent); border-color: color-mix(in srgb, var(--info) 30%, transparent); }

/* ---------- video grid + cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 40px 16px; }
@media (min-width: 2200px) { .grid { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); } }
.vcard { display: flex; flex-direction: column; gap: 12px; position: relative; min-width: 0; }
.thumb { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: opacity .25s; }
.thumb .pv { position: absolute; inset: 0; opacity: 0; }
.vcard:hover .thumb .pv.ready { opacity: 1; }
.thumb .dur { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.8); color: #fff; font-size: 12px; font-weight: 600;
  padding: 1px 5px; border-radius: 5px; letter-spacing: .02em; }
.thumb .prog { position: absolute; left: 0; bottom: 0; height: 4px; background: var(--brand); }
.thumb .prog::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 100vw; background: rgba(255,255,255,.3); z-index: -1; }
.vcard .meta { display: flex; gap: 12px; padding-right: 24px; }
.vcard .meta .title { font-weight: 600; font-size: 16px; line-height: 22px; margin-bottom: 4px; }
.vcard .meta .sub { color: var(--text-2); font-size: 14px; line-height: 20px; }
.vcard .meta .sub a:hover { color: var(--text); }
.vcard .menu { position: absolute; right: -8px; top: calc(100% - 66px); opacity: 0; }
.vcard:hover .menu, .vcard:focus-within .menu { opacity: 1; }
@media (hover: none) { .vcard .menu { opacity: 1; } }
.vlist .vcard { flex-direction: row; gap: 16px; } .vlist .thumb { width: 360px; flex: none; }
.vlist .vcard .meta .title { font-size: 18px; line-height: 26px; } .vlist .snip { margin-top: 8px; color: var(--text-2); font-size: 12px; }
.compact .vcard { flex-direction: row; gap: 8px; } .compact .thumb { width: 168px; flex: none; border-radius: 8px; }
.compact .vcard .meta { padding-right: 20px; } .compact .vcard .meta .title { font-size: 14px; line-height: 20px; }
.compact .vcard .meta .sub { font-size: 12px; line-height: 18px; } .compact .vcard .meta .avatar { display: none; }
.compact .vcard .menu { top: -6px; }
@media (max-width: 640px) {
  .grid { gap: 24px; margin: 0 -12px; } .grid .thumb { border-radius: 0; } .grid .vcard .meta { padding: 0 36px 0 12px; }
  .vlist .vcard { flex-direction: column; } .vlist .thumb { width: 100%; }
}
.shelf { margin: 8px 0 32px; } .shelf-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.shelf-head h2 { font-size: 20px; } .shelf-head .ic { fill: var(--brand); }
.shorts-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 1fr); gap: 12px; overflow-x: auto; scrollbar-width: none; }
.scard .thumb { aspect-ratio: 9/16; } .scard .title { font-weight: 600; margin-top: 8px; font-size: 15px; } .scard .sub { color: var(--text-2); font-size: 13px; }
.skel { background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--radius); }
@keyframes sk { to { background-position: -200% 0; } }
.skel-line { height: 14px; margin: 8px 0; border-radius: 6px; }

/* ---------- watch ---------- */
.watch { display: grid; grid-template-columns: minmax(0, 1fr) 402px; gap: 24px; max-width: 1754px; margin: 0 auto; padding-top: 16px; }
.watch.theater { grid-template-columns: minmax(0, 1fr) 402px; }
.watch.theater .player-wrap { grid-column: 1 / -1; margin: -24px -24px 0; max-height: calc(100vh - 169px); }
.watch .primary { min-width: 0; grid-column: 1; grid-row: 2; } .watch .secondary { min-width: 0; grid-column: 2; grid-row: 1 / span 2; }
.watch .player-wrap { grid-column: 1; grid-row: 1; } .watch.theater .secondary { grid-row: 2; }
@media (max-width: 1016px) { .watch, .watch.theater { grid-template-columns: 1fr; } .watch.theater .player-wrap { margin: 0; }
  .watch .player-wrap, .watch .primary, .watch .secondary, .watch.theater .secondary { grid-column: 1; grid-row: auto; } }
@media (max-width: 640px) { .watch { padding-top: 0; gap: 12px; } .watch .player-wrap { margin: 0 -12px; border-radius: 0 !important; position: sticky; top: var(--top); z-index: 30; } }
.watch h1 { font-size: 20px; line-height: 28px; margin: 12px 0 8px; word-break: break-word; }
.owner-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.owner-row .who { display: flex; gap: 12px; align-items: center; min-width: 0; margin-right: 12px; }
.owner-row .who b { font-size: 16px; display: flex; align-items: center; gap: 4px; } .owner-row .who .ic { width: 14px; height: 14px; fill: var(--text-2); }
.actions { display: flex; gap: 8px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
@media (max-width: 640px) { .actions { margin-left: 0; width: 100%; } }
.desc { background: var(--surface); border-radius: var(--radius); padding: 12px; margin-top: 12px; cursor: pointer; word-break: break-word; }
.desc .dtext { white-space: pre-wrap; }
.desc .stats { font-weight: 600; margin-bottom: 4px; } .desc.open { cursor: auto; } .desc:not(.open) .body { max-height: 60px; overflow: hidden; -webkit-mask: linear-gradient(#000 60%, transparent); }
.desc a, .cbody a { color: var(--link); } .desc .more { font-weight: 600; margin-top: 4px; }
.desc .tags a { color: var(--link); margin-right: 6px; }
.chapters { display: flex; gap: 8px; overflow-x: auto; margin: 12px 0 0; }
.chapter { flex: none; display: flex; flex-direction: column; gap: 2px; background: var(--bg); border-radius: 8px; padding: 8px 10px; min-width: 120px; cursor: pointer; }
.chapter b { font-size: 12px; color: var(--link); }

/* ---------- player ---------- */
.player-wrap { position: relative; aspect-ratio: 16/9; background: #000; border-radius: var(--radius); overflow: hidden; user-select: none; -webkit-user-select: none; }
.player-wrap.vertical { aspect-ratio: auto; height: min(78vh, 900px); }
.player { position: absolute; inset: 0; color: #fff; font-size: 13px; --pc: #fff; }
.player video { width: 100%; height: 100%; display: block; background: #000; object-fit: contain; }
.player .poster { position: absolute; inset: 0; background: #000 center/cover no-repeat; transition: opacity .3s; pointer-events: none; }
.player.started .poster { opacity: 0; }
.player .big { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; border: 0;
  background: rgba(0,0,0,.55); display: grid; place-items: center; cursor: pointer; transition: transform .15s, opacity .2s; backdrop-filter: blur(6px); }
.player .big .ic { width: 40px; height: 40px; fill: #fff; } .player.started .big { opacity: 0; pointer-events: none; }
.player .buffer { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px; border-radius: 50%; border: 4px solid rgba(255,255,255,.25);
  border-top-color: #fff; animation: spin .8s linear infinite; display: none; pointer-events: none; }
.player.waiting .buffer { display: block; }
.player .flash { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px; border-radius: 50%; background: rgba(0,0,0,.55);
  display: grid; place-items: center; opacity: 0; pointer-events: none; }
.player .flash.go { animation: flash .5s ease-out; } @keyframes flash { 0% { opacity: 1; transform: scale(.8); } 100% { opacity: 0; transform: scale(1.4); } }
.player .tapseek { position: absolute; top: 0; bottom: 0; width: 38%; display: grid; place-items: center; font-weight: 700; opacity: 0; pointer-events: none;
  background: radial-gradient(circle at center, rgba(255,255,255,.18), transparent 70%); }
.player .tapseek.l { left: 0; } .player .tapseek.r { right: 0; } .player .tapseek.go { animation: flash .6s ease-out; }
.player .osd { position: absolute; top: 12%; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,.65); padding: 8px 14px; border-radius: 8px;
  font-weight: 600; opacity: 0; transition: opacity .2s; pointer-events: none; }
.player .osd.on { opacity: 1; }
.player .grad { position: absolute; left: 0; right: 0; bottom: 0; height: 160px; background: linear-gradient(transparent, rgba(0,0,0,.75)); pointer-events: none; transition: opacity .25s; }
.player .bar { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 12px 4px; transition: opacity .25s; }
.player.idle.playing .bar, .player.idle.playing .grad, .player.idle.playing .topinfo { opacity: 0; }
.player.idle.playing { cursor: none; }
.player .topinfo { position: absolute; left: 0; right: 0; top: 0; padding: 14px 16px 40px; background: linear-gradient(rgba(0,0,0,.6), transparent);
  font-size: 18px; font-weight: 500; opacity: 0; transition: opacity .25s; pointer-events: none; }
.player.fs .topinfo { opacity: 1; }
.player .seek { position: relative; height: 18px; display: flex; align-items: center; cursor: pointer; touch-action: none; }
.player .rail { position: relative; width: 100%; height: 3px; background: rgba(255,255,255,.25); transition: height .1s; }
.player .seek:hover .rail, .player .seek.drag .rail { height: 5px; }
.player .rail > div { position: absolute; left: 0; top: 0; bottom: 0; }
.player .rail .buf { background: rgba(255,255,255,.4); } .player .rail .hov { background: rgba(255,255,255,.5); display: none; }
.player .seek:hover .rail .hov { display: block; }
.player .rail .done { background: var(--brand); }
.player .rail .chap-gap { position: absolute; top: 0; bottom: 0; width: 2px; background: rgba(0,0,0,.7); z-index: 2; }
.player .knob { position: absolute; top: 50%; width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; border-radius: 50%; background: var(--brand); transform: scale(0); transition: transform .1s; z-index: 3; }
.player .seek:hover .knob, .player .seek.drag .knob { transform: scale(1); }
.player .tip { position: absolute; bottom: 22px; transform: translateX(-50%); background: rgba(20,20,20,.9); padding: 3px 8px; border-radius: 6px; font-weight: 600; white-space: nowrap; display: none; pointer-events: none; }
.player .seek:hover .tip, .player .seek.drag .tip { display: block; }
.player .tip small { display: block; font-weight: 400; opacity: .8; max-width: 200px; overflow: hidden; text-overflow: ellipsis; }
.player .ctrls { display: flex; align-items: center; height: 48px; gap: 2px; }
.player .pbtn { width: 44px; height: 44px; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; border-radius: 50%; opacity: .92; flex: none; color: #fff; }
.player .pbtn:hover { opacity: 1; background: rgba(255,255,255,.08); } .player .pbtn .ic { width: 26px; height: 26px; fill: #fff; }
.player .pbtn.on::after { content: ""; position: absolute; width: 18px; height: 3px; border-radius: 2px; background: var(--brand); transform: translateY(14px); }
.player .pbtn { position: relative; }
.player .pbtn.hd-on::before { content: "HD"; position: absolute; top: 8px; right: 6px; font-size: 8px; font-weight: 800; background: var(--brand); border-radius: 3px; padding: 0 2px; line-height: 11px; }
.player .vol { display: flex; align-items: center; } .player .vol input { width: 0; opacity: 0; transition: width .2s, opacity .2s; accent-color: #fff; }
.player .vol:hover input, .player .vol:focus-within input { width: 64px; opacity: 1; margin-right: 8px; }
.player .time { font-variant-numeric: tabular-nums; padding: 0 8px; white-space: nowrap; font-size: 13px; }
.player .time .chap { opacity: .85; margin-left: 6px; } .player .time .chap::before { content: "• "; }
.player .pmenu { position: absolute; right: 12px; bottom: 60px; min-width: 260px; max-height: calc(100% - 80px); overflow-y: auto; background: rgba(28,28,28,.92);
  border-radius: 12px; padding: 8px 0; backdrop-filter: blur(10px); z-index: 10; text-shadow: none; }
.player .pmenu .it { display: flex; align-items: center; gap: 14px; padding: 0 16px; height: 40px; cursor: pointer; }
.player .pmenu .it:hover { background: rgba(255,255,255,.1); } .player .pmenu .it .v { margin-left: auto; opacity: .8; }
.player .pmenu .it .ic { width: 22px; height: 22px; fill: #fff; } .player .pmenu .head { border-bottom: 1px solid rgba(255,255,255,.2); margin-bottom: 6px; font-weight: 600; }
.player .pmenu .it.sel::before { content: "✓"; width: 22px; } .player .pmenu .it.unsel::before { content: ""; width: 22px; }
.player .stats { position: absolute; left: 12px; top: 12px; background: rgba(0,0,0,.72); padding: 10px 12px; border-radius: 8px; font: 11px/1.6 ui-monospace, Consolas, monospace; z-index: 9; }
.player .stats b { display: inline-block; min-width: 110px; font-weight: 600; }
.player .endcard { position: absolute; inset: 0; background: rgba(0,0,0,.72); display: none; place-items: center; text-align: center; padding: 16px; }
.player.ended .endcard.has { display: grid; }
.player .endcard .nx { display: flex; gap: 14px; align-items: center; text-align: left; max-width: 520px; }
.player .endcard img { width: 200px; border-radius: 10px; aspect-ratio: 16/9; object-fit: cover; }
.player .endcard .ring { font-size: 12px; opacity: .8; }
.player video::cue { background: rgba(8,8,8,.75); color: #fff; font-family: var(--font); font-size: clamp(14px, 2.2vw, 30px); }
.player-wrap.mini-docked { position: fixed !important; right: 16px; bottom: calc(16px + var(--bottom)); width: 400px; height: auto; aspect-ratio: 16/9; z-index: 90; box-shadow: var(--shadow); }
@media (max-width: 640px) { .player .pbtn { width: 38px; } .player .vol input { display: none; } .player .hide-sm { display: none; } .player-wrap.mini-docked { width: 60vw; } }
.player:fullscreen .bar { padding: 0 24px 12px; } .player:fullscreen .ctrls { height: 56px; }

/* ---------- comments ---------- */
.comments { margin-top: 24px; } .comments .head { display: flex; align-items: center; gap: 24px; margin-bottom: 24px; }
.comments .head h3 { font-size: 20px; }
.cform { display: flex; gap: 16px; margin-bottom: 32px; } .cform .grow > .input { border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0; background: transparent; padding: 6px 0; }
.cform .bar { display: none; justify-content: flex-end; gap: 8px; margin-top: 8px; } .cform.open .bar { display: flex; }
.cmt { display: flex; gap: 16px; margin-bottom: 20px; } .cmt .who { font-size: 13px; font-weight: 600; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.cmt .who .creator { background: var(--surface-3); padding: 0 6px; border-radius: 10px; } .cmt .who .dim { font-weight: 400; }
.cmt .cbody { margin: 2px 0 4px; white-space: pre-wrap; word-break: break-word; }
.cmt .cact { display: flex; align-items: center; gap: 4px; color: var(--text-2); font-size: 12px; } .cmt .cact .icon-btn { width: 32px; height: 32px; } .cmt .cact .ic { width: 18px; height: 18px; }
.cmt .cact .on .ic { fill: var(--text); } .cmt .hearted .ic { fill: var(--brand); }
.cmt .replies-btn { color: var(--link); font-weight: 600; } .cmt .replies { margin-top: 8px; }
.cmt .avatar { width: 40px; height: 40px; } .replies .cmt .avatar { width: 24px; height: 24px; }
.pinned-by { font-size: 12px; color: var(--text-2); display: flex; gap: 4px; align-items: center; margin-bottom: 2px; } .pinned-by .ic { width: 14px; height: 14px; }

/* ---------- shorts ---------- */
.shorts-page { margin: calc(-1 * (var(--top) + 8px)) -24px calc(-24px - var(--bottom)); }
.shorts-feed { height: 100vh; height: 100dvh; overflow-y: scroll; scroll-snap-type: y mandatory; scrollbar-width: none; overscroll-behavior: contain; }
.shorts-feed::-webkit-scrollbar { display: none; }
.short { height: 100vh; height: 100dvh; scroll-snap-align: start; scroll-snap-stop: always; display: flex; align-items: center; justify-content: center; gap: 16px; padding: calc(var(--top) + 16px) 0 24px; }
.short .stage { position: relative; height: 100%; aspect-ratio: 9/16; max-width: calc(100vw - 100px); background: #000; border-radius: var(--radius-lg); overflow: hidden; }
.short video { width: 100%; height: 100%; object-fit: cover; } .short.landscape video { object-fit: contain; }
.short .sposter { position: absolute; inset: 0; background: #000 center/cover; transition: opacity .3s; pointer-events: none; } .short.playing .sposter { opacity: 0; }
.short .info { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 16px 18px; background: linear-gradient(transparent, rgba(0,0,0,.75)); color: #fff; }
.short .info .ch { display: flex; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 8px; }
.short .info .btn { height: 30px; background: #fff; color: #000; font-size: 13px; } .short .info .btn.subbed { background: rgba(255,255,255,.25); color: #fff; }
.short .sprog { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.25); } .short .sprog div { height: 100%; background: var(--brand); width: 0; }
.short .stop { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; justify-content: space-between; z-index: 2; }
.short .stop .icon-btn { background: rgba(0,0,0,.35); color: #fff; } .short .stop .ic { fill: #fff; }
.short .side { display: flex; flex-direction: column; gap: 16px; align-self: flex-end; padding-bottom: 8px; }
.short .side button { display: flex; flex-direction: column; align-items: center; gap: 4px; border: 0; background: none; cursor: pointer; font-size: 12px; font-weight: 600; }
.short .side .circle { width: 48px; height: 48px; border-radius: 50%; background: var(--chip); display: grid; place-items: center; } .short .side .circle:hover { background: var(--press); }
.short .side .on .circle { background: var(--text); } .short .side .on .ic { fill: var(--bg); }
.short .paused-ic { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 72px; height: 72px; border-radius: 50%; background: rgba(0,0,0,.45); display: none; place-items: center; }
.short.paused .paused-ic { display: grid; } .short .paused-ic .ic { width: 40px; height: 40px; fill: #fff; }
.shorts-nav { position: fixed; right: 24px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 16px; z-index: 20; }
.shorts-nav .icon-btn { width: 56px; height: 56px; background: var(--chip); }
@media (max-width: 792px) { .shorts-nav { display: none; } }
@media (max-width: 640px) {
  .shorts-page { margin: calc(-1 * (var(--top) + 4px)) -12px calc(-24px - var(--bottom)); }
  .shorts-feed, .short { height: calc(100dvh - var(--bottom)); }
  .short { padding: 0; } .short .stage { max-width: 100vw; width: 100vw; height: 100%; border-radius: 0; aspect-ratio: auto; }
  .short .side { position: absolute; right: 8px; bottom: 90px; color: #fff; z-index: 3; } .short .side .circle { background: rgba(0,0,0,.35); }
  .short .side .ic { fill: #fff; } .short .side .on .circle { background: #fff; } .short .side .on .ic { fill: #000; }
  .short .info { padding-right: 76px; }
  .short .stop { top: calc(var(--top) + 8px); }
  body.shorts-mode .topbar { background: transparent; backdrop-filter: none; } body.shorts-mode .topbar .logo, body.shorts-mode .topbar .ic { color: #fff; fill: #fff; }
}

/* ---------- channel ---------- */
.ch-banner { aspect-ratio: 6.2/1; border-radius: var(--radius-lg); background: var(--surface-2) center/cover; margin-bottom: 16px; }
.ch-head { display: flex; gap: 24px; align-items: center; margin-bottom: 8px; } .ch-head h1 { font-size: 36px; line-height: 1.1; display: flex; gap: 6px; align-items: center; }
.ch-head .ic.v { width: 22px; height: 22px; fill: var(--text-2); }
@media (max-width: 640px) { .ch-head { gap: 14px; } .ch-head h1 { font-size: 22px; } .ch-head .avatar.xl { width: 72px; height: 72px; font-size: 28px; } .ch-banner { border-radius: 10px; } }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 16px 0 24px; overflow-x: auto; scrollbar-width: none; }
.tabs a, .tabs button { padding: 12px 16px; font-weight: 600; color: var(--text-2); border: 0; background: none; cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs .on { color: var(--text); border-bottom-color: var(--text); } .tabs a:hover, .tabs button:hover { color: var(--text); }

/* ---------- menus, modals, toasts ---------- */
.menu-pop { position: fixed; z-index: 120; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px 0; min-width: 220px; max-width: calc(100vw - 16px); max-height: 70vh; overflow-y: auto; }
.menu-pop .mi { display: flex; align-items: center; gap: 16px; padding: 0 16px; height: 40px; cursor: pointer; width: 100%; border: 0; background: none; text-align: left; }
.menu-pop .mi:hover, .menu-pop .mi:focus { background: var(--hover); outline: none; } .menu-pop .mi .ic { width: 22px; height: 22px; }
.menu-pop .sep { height: 1px; background: var(--line); margin: 8px 0; }
.menu-pop .mh { display: flex; gap: 12px; padding: 12px 16px; align-items: center; }
.modal-bg { position: fixed; inset: 0; z-index: 130; background: var(--scrim); display: grid; place-items: center; padding: 16px; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); width: min(100%, 520px); max-height: calc(100vh - 32px);
  display: flex; flex-direction: column; animation: pop .18s var(--ease); }
.modal.wide { width: min(100%, 960px); } .modal.full { width: min(100%, 1200px); height: calc(100vh - 32px); }
@keyframes pop { from { transform: translateY(8px) scale(.98); opacity: 0; } }
.modal .mhead { display: flex; align-items: center; gap: 8px; padding: 16px 20px; border-bottom: 1px solid var(--line); } .modal .mhead h2 { font-size: 18px; flex: 1; }
.modal .mbody { padding: 20px; overflow-y: auto; flex: 1; } .modal .mfoot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--line); }
@media (max-width: 640px) { .modal-bg { padding: 0; place-items: end center; } .modal, .modal.wide, .modal.full { width: 100%; max-height: 92vh; height: auto; border-radius: 18px 18px 0 0; } }
#toasts { position: fixed; left: 24px; bottom: calc(24px + var(--bottom)); z-index: 140; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 10px; box-shadow: var(--shadow); max-width: 420px; animation: pop .2s var(--ease); font-weight: 500; }
.toast.bad { background: var(--bad); color: #fff; }

/* ---------- auth ---------- */
.auth-wrap { min-height: calc(100vh - 120px); display: grid; place-items: center; padding: 24px 0; }
.auth { width: min(100%, 440px); background: var(--bg-2); border: 1px solid var(--line); border-radius: 24px; padding: 36px 32px; }
.auth h1 { font-size: 26px; margin: 18px 0 6px; } .auth .lead { color: var(--text-2); margin-bottom: 24px; }
.gbtn { height: 46px; width: 100%; border-radius: var(--radius-pill); border: 1px solid var(--line-2); background: var(--bg); display: flex; align-items: center; justify-content: center; gap: 12px; font-weight: 600; font-size: 15px; cursor: pointer; }
.gbtn:hover { background: var(--hover); }
.or { display: flex; align-items: center; gap: 12px; color: var(--text-3); margin: 20px 0; font-size: 12px; } .or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.otp { display: flex; gap: 8px; justify-content: space-between; } .otp input { width: 100%; max-width: 52px; height: 58px; text-align: center; font-size: 24px; font-weight: 700; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); outline: none; }
.otp input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent); }
.steps { display: flex; gap: 6px; margin-bottom: 8px; } .steps i { height: 4px; flex: 1; border-radius: 2px; background: var(--surface-3); } .steps i.on { background: var(--brand); }

/* ---------- studio / admin ---------- */
.dash { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 24px; max-width: 1600px; margin: 0 auto; }
.dash-nav { position: sticky; top: calc(var(--top) + 16px); align-self: start; display: flex; flex-direction: column; gap: 2px; }
.dash-nav .who { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px 20px; text-align: center; }
.dash-nav .who .avatar { width: 96px; height: 96px; font-size: 36px; }
.dash-nav .nav-item .ic { width: 22px; height: 22px; }
@media (max-width: 900px) { .dash { grid-template-columns: 1fr; } .dash-nav { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
  .dash-nav .who { display: none; } .dash-nav .nav-item { flex: none; gap: 8px; } }
.dash h1 { font-size: 26px; margin-bottom: 20px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-bottom: 20px; }
.kpi { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px 18px; }
.kpi .k { font-size: 12px; color: var(--text-2); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; } .kpi .v { font-size: 28px; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi.alert { border-color: color-mix(in srgb, var(--warn) 50%, transparent); background: color-mix(in srgb, var(--warn) 8%, var(--bg-2)); }
.cols2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-2); }
table.t { width: 100%; border-collapse: collapse; font-size: 13px; }
.t th { text-align: left; font-weight: 600; color: var(--text-2); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; position: sticky; top: 0; background: var(--bg-2); }
.t td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; } .t tr:last-child td { border-bottom: 0; } .t tbody tr:hover { background: var(--hover); }
.t .vcell { display: flex; gap: 12px; align-items: center; min-width: 280px; } .t .vcell img { width: 120px; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px; background: var(--surface-2); flex: none; }
.t .num { text-align: right; font-variant-numeric: tabular-nums; }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; } .toolbar .input, .toolbar .select { width: auto; min-width: 160px; height: 38px; padding: 6px 12px; font-size: 14px; }
.spark { width: 100%; height: 140px; } .spark .area { fill: color-mix(in srgb, var(--brand) 18%, transparent); } .spark .ln { fill: none; stroke: var(--brand); stroke-width: 2; }
.spark text { fill: var(--text-3); font-size: 10px; } .spark .gl { stroke: var(--line); }
.review { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr); gap: 20px; }
@media (max-width: 1100px) { .review { grid-template-columns: 1fr; } }
.review .player-wrap { border-radius: var(--radius); }
.qitem { display: flex; gap: 12px; padding: 12px; border-radius: var(--radius); cursor: pointer; border: 1px solid transparent; }
.qitem:hover { background: var(--hover); } .qitem.on { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, transparent); }
.qitem img { width: 140px; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; flex: none; background: var(--surface-2); }
.diff { background: var(--bg); border-radius: 8px; padding: 10px 12px; font-size: 13px; white-space: pre-wrap; word-break: break-word; }
.diff del { color: var(--bad); } .diff ins { color: var(--ok); text-decoration: none; }
.upload-drop { display: block; border: 2px dashed var(--line-2); border-radius: var(--radius-lg); padding: 48px 16px; text-align: center; cursor: pointer; transition: .15s; }
.upload-drop.over { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, transparent); }
.upload-drop .big-ic { width: 120px; height: 120px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; margin: 0 auto 20px; }
.upload-drop .big-ic .ic { width: 56px; height: 56px; fill: var(--text-3); }
.progress { height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; } .progress div { height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-2)); transition: width .3s; }
.edit-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; } @media (max-width: 960px) { .edit-grid { grid-template-columns: 1fr; } }
.thumb-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } .thumb-pick > * { aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; border: 2px solid transparent; background: var(--surface-2); cursor: pointer; }
.thumb-pick .on { border-color: var(--brand); } .thumb-pick img { width: 100%; height: 100%; object-fit: cover; }
.thumb-pick .up { display: grid; place-items: center; text-align: center; font-size: 12px; border: 1px dashed var(--line-2); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.ic.vbadge { width: 14px; height: 14px; vertical-align: -2px; fill: var(--text-2); }
.tag .ic { width: 14px; height: 14px; }
.grid > .empty, .compact > .empty, .stack > .empty { grid-column: 1 / -1; }
.sidebar .foot a { color: var(--text-2); } .sidebar .foot a:hover { color: var(--text); }
