/* MF Big Box: video review */
.rv { display: flex; flex-direction: column; height: 100%; min-height: 0; background: var(--bg); color: var(--fg); }
.rv-top { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.rv-brand .mark { width: 30px; height: 30px; border-radius: 8px; background: var(--acc); color: var(--acc-fg); display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.rv-title { flex: 1; min-width: 120px; overflow: hidden; }
.rv-title b { display: block; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: default; }
.rv-title b[data-k]:hover { color: var(--acc); cursor: text; }
.rv-title small { display: block; color: var(--fg3); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-ver { background: var(--bg3); border: 1px solid var(--line2); color: var(--fg); border-radius: 8px; padding: 6px 28px 6px 10px; font-weight: 600; appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--fg2) 50%), linear-gradient(135deg, var(--fg2) 50%, transparent 50%); background-position: calc(100% - 14px) 55%, calc(100% - 9px) 55%; background-size: 5px 5px; background-repeat: no-repeat; max-width: 220px; }
.rv-seg { display: inline-flex; background: var(--bg3); border: 1px solid var(--line); border-radius: 8px; padding: 2px; }
.rv-seg button { background: none; border: 0; color: var(--fg2); padding: 4px 10px; border-radius: 6px; font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.rv-seg button.on { background: var(--bg4); color: var(--fg); }
.rv-seg button.on.ok { background: rgba(52,211,153,.18); color: var(--ok); } .rv-seg button.on.warn { background: rgba(251,191,36,.18); color: var(--warn); }
.rv-status { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 20px; background: var(--bg3); color: var(--fg2); }
.rv-status.ok { background: rgba(52,211,153,.18); color: var(--ok); } .rv-status.warn { background: rgba(251,191,36,.18); color: var(--warn); }
.rv-ib { width: 32px; height: 32px; display: inline-grid; place-items: center; border-radius: 7px; border: 0; background: transparent; color: var(--fg2); flex: none; }
.rv-ib:hover { background: var(--bg3); color: var(--fg); } .rv-ib.on { color: var(--acc); background: var(--acc-dim); }
.rv-ib svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rv-grow { flex: 1; }
.rv-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 360px; }
.rv-stage { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #0b0c0f; }
.rv-video { flex: 1; min-height: 0; position: relative; display: grid; place-items: center; overflow: hidden; }
.rv-frame { position: relative; background: #000; }
.rv-frame video { display: block; width: 100%; height: 100%; }
.rv-frame canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; touch-action: none; }
.rv-frame canvas.on { pointer-events: auto; cursor: crosshair; }
.rv-frame.drawing { outline: 2px solid var(--acc); outline-offset: -2px; }
.rv-state { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); background: rgba(22,24,29,.92); border: 1px solid var(--line2); border-radius: 12px; padding: 10px 16px; font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; text-align: center; max-width: 90%; }
.rv-state small { display: block; width: 100%; color: var(--fg3); font-weight: 400; font-size: 12px; }
.rv-state.block { top: 50%; bottom: auto; transform: translate(-50%, -50%); }
.rv-spin { width: 16px; height: 16px; border: 2px solid var(--line2); border-top-color: var(--acc); border-radius: 50%; animation: rvspin .8s linear infinite; }
@keyframes rvspin { to { transform: rotate(360deg); } }
.rv-controls { border-top: 1px solid var(--line); background: var(--bg); padding: 0 12px 6px; }
.rv-timeline { position: relative; height: 26px; cursor: pointer; margin: 0 4px; touch-action: none; }
.rv-timeline::before { content: ''; position: absolute; left: 0; right: 0; top: 11px; height: 4px; background: var(--bg4); border-radius: 2px; }
.rv-buf { position: absolute; left: 0; top: 11px; height: 4px; background: var(--line2); border-radius: 2px; width: 0; }
.rv-prog { position: absolute; left: 0; top: 11px; height: 4px; background: var(--acc); border-radius: 2px; width: 0; }
.rv-head { position: absolute; top: 7px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 2px var(--bg); pointer-events: none; }
.rv-markers { position: absolute; left: 0; right: 0; top: 0; height: 26px; pointer-events: none; }
.rv-mark { position: absolute; top: 17px; width: 8px; min-width: 8px; height: 8px; margin-left: -4px; border-radius: 4px; background: var(--warn); border: 0; padding: 0; pointer-events: auto; cursor: pointer; opacity: .9; }
.rv-mark.done { background: var(--fg3); } .rv-mark.sel { background: #fff; box-shadow: 0 0 0 2px var(--acc); }
.rv-mark:hover { transform: scaleY(1.4); }
.rv-ctl { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.rv-tc { font-family: var(--mono); font-size: 13.5px; font-variant-numeric: tabular-nums; margin-left: 8px; color: var(--fg); }
.rv-dur { font-family: var(--mono); font-size: 12px; color: var(--fg3); }
.rv-speed { background: transparent; border: 0; color: var(--fg2); font-size: 12px; padding: 4px; }
.rv-tools { display: flex; align-items: center; gap: 2px; background: var(--bg3); border-radius: 8px; padding: 2px 4px; margin-right: 6px; }
.rv-colors { display: inline-flex; gap: 5px; padding: 0 6px; }
.rv-colors button { width: 16px; height: 16px; border-radius: 50%; border: 2px solid transparent; padding: 0; }
.rv-colors button.on { border-color: var(--fg); box-shadow: 0 0 0 1px var(--bg); }
/* side panel */
.rv-side { display: flex; flex-direction: column; min-height: 0; border-left: 1px solid var(--line); background: var(--bg2); }
.rv-side-h { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--fg2); }
.rv-list { flex: 1; overflow: auto; min-height: 0; }
.rv-empty { padding: 30px 18px; text-align: center; color: var(--fg3); font-size: 13px; line-height: 1.5; }
.rv-c { display: flex; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); cursor: pointer; }
.rv-c:hover { background: var(--bg3); } .rv-c.sel { background: var(--acc-dim); box-shadow: inset 3px 0 0 var(--acc); }
.rv-c.reply { padding-left: 44px; background: transparent; } .rv-c.reply .rv-av { width: 22px; height: 22px; font-size: 9px; }
.rv-c.done .rv-text { color: var(--fg3); text-decoration: line-through; }
.rv-av { width: 28px; height: 28px; border-radius: 50%; background: var(--bg4); color: var(--acc); display: grid; place-items: center; font-weight: 700; font-size: 11px; flex: none; }
.rv-cb { flex: 1; min-width: 0; }
.rv-ch { display: flex; align-items: center; gap: 8px; font-size: 12.5px; flex-wrap: wrap; } .rv-ch b { font-weight: 600; } .rv-when { color: var(--fg3); font-size: 11.5px; }
.rv-tcchip { font-family: var(--mono); font-size: 11.5px; background: var(--bg4); color: var(--acc); border: 0; border-radius: 5px; padding: 1px 6px; cursor: pointer; }
.rv-draw-badge svg { width: 12px; height: 12px; stroke: var(--fg3); fill: none; stroke-width: 2; vertical-align: -2px; }
.rv-text { margin-top: 3px; font-size: 13.5px; line-height: 1.45; word-wrap: break-word; }
.rv-ca { display: flex; gap: 12px; margin-top: 5px; font-size: 12px; align-items: center; }
.rv-ca button { background: none; border: 0; color: var(--fg3); padding: 0; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; }
.rv-ca button:hover { color: var(--fg); } .rv-ca button.danger:hover { color: var(--err); }
.rv-ca button svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; }
.rv-ca label { color: var(--fg3); display: inline-flex; align-items: center; gap: 4px; cursor: pointer; } .rv-ca input { width: 13px; height: 13px; margin: 0; }
.rv-compose { border-top: 1px solid var(--line); padding: 8px 12px 10px; background: var(--bg2); }
.rv-composetc, .rv-replyto { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--fg3); margin-bottom: 6px; min-height: 24px; }
.rv-composetc b { font-family: var(--mono); color: var(--acc); font-weight: 600; } .rv-composetc svg { width: 13px; height: 13px; stroke: var(--acc); fill: none; stroke-width: 2; }
.rv-composetc .rv-ib { width: 24px; height: 24px; } .rv-composetc .rv-ib svg { width: 13px; height: 13px; }
.rv-who { background: var(--bg3); border: 1px solid var(--line); color: var(--fg2); border-radius: 6px; padding: 2px 8px; font-size: 12px; }
.rv-composerow { display: flex; gap: 8px; align-items: flex-end; }
.rv-composerow textarea { flex: 1; background: var(--bg3); border: 1px solid var(--line); border-radius: 8px; color: var(--fg); padding: 8px 10px; resize: none; outline: none; font: inherit; font-size: 13.5px; min-height: 40px; }
.rv-composerow textarea:focus { border-color: var(--acc); }
.rv-menu { position: fixed; z-index: 70; background: var(--bg2); border: 1px solid var(--line2); border-radius: 10px; box-shadow: var(--shadow); padding: 5px; min-width: 200px; }
.rv-menu button { display: block; width: 100%; background: none; border: 0; color: var(--fg); padding: 8px 10px; border-radius: 7px; text-align: left; font-size: 13.5px; }
.rv-menu button:hover { background: var(--bg3); } .rv-menu button.danger { color: var(--err); }
.rv-sharerow { display: grid; grid-template-columns: 1fr auto auto; gap: 6px; align-items: center; margin-bottom: 10px; } .rv-sharerow .hint { grid-column: 1 / -1; }
.rv-newshare { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 6px; } .rv-newshare h4 { margin: 0 0 10px; font-size: 13px; }
.rv-chk { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 8px; }
.rv-lock { display: grid; place-items: center; min-height: 100vh; }
.rv-lockbox { width: min(360px, 92vw); background: var(--bg2); border: 1px solid var(--line); border-radius: 16px; padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.rv-lockbox h2 { margin: 0 0 6px; font-size: 16px; }
.rv-hide-m { display: inline; }
@media (max-width: 900px) {
  .rv-body { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .rv-stage { max-height: 62vh; } .rv-video { min-height: 200px; aspect-ratio: 16/9; flex: none; }
  .rv-side { border-left: 0; border-top: 1px solid var(--line); }
  .rv-top { padding: 8px 10px; gap: 6px; padding-top: calc(8px + env(safe-area-inset-top)); }
  .rv-title small { display: none; } .rv-hide-m { display: none; }
  .rv-statusseg button { padding: 4px 7px; font-size: 11.5px; }
  .rv-ctl .rv-ib { width: 36px; height: 36px; } .rv-speed, [data-k="loop"] { display: none; }
  .rv-tools { order: 10; width: 100%; margin: 4px 0 0; justify-content: center; }
  .rv-compose { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
  .rv-ca button, .rv-ca label { font-size: 13px; }
}
