/* FilmDesk – dark "film room" theme */
:root {
  --bg: #0d1014;
  --bg2: #141920;
  --panel: #181e26;
  --panel2: #1f2731;
  --line: #2a3441;
  --text: #e8edf2;
  --muted: #8b98a8;
  --accent: #e8b021;
  --team: var(--accent);
  --ok: #34c759;
  --err: #ff5a4f;
  --warn: #ffb020;
  --radius: 10px;
  --font: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Barlow Condensed', 'Barlow', system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--display); letter-spacing: .01em; margin: 0; font-weight: 700; }
h1 { font-size: 30px; text-transform: uppercase; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
p { margin: .4em 0; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.row { display: flex; align-items: center; }
.row.gap { gap: 8px; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; gap: 8px; }
.grow { flex: 1; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.ok-text { color: var(--ok); }
.err-text { color: var(--err); }

/* form controls */
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=time], input:not([type]), select, textarea {
  width: 100%; background: var(--bg2); color: var(--text); border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 10px; font: inherit; outline: none; transition: border-color .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
input:disabled { opacity: .6; }
input[type=color] { width: 100%; height: 38px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg2); padding: 3px; }
input[type=checkbox] { accent-color: var(--accent); width: 16px; height: 16px; }
textarea { resize: vertical; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field > span { font-size: 13px; color: var(--muted); font-weight: 500; }
.field small { color: var(--muted); font-size: 12px; }
.check { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.checks { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.checks.tall { flex-direction: column; flex-wrap: nowrap; max-height: 320px; overflow: auto; padding: 8px; background: var(--bg2); border-radius: 8px; border: 1px solid var(--line); }
.search { max-width: 280px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 8px 14px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--panel2); color: var(--text); font: 600 14px var(--font); cursor: pointer;
  white-space: nowrap; transition: background .15s, border-color .15s, transform .05s; text-decoration: none !important;
}
.btn:hover { background: #283240; border-color: #3a4757; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #111; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.accent { background: color-mix(in srgb, var(--team) 22%, var(--panel2)); border-color: var(--team); }
.btn.danger { color: var(--err); border-color: color-mix(in srgb, var(--err) 45%, var(--line)); background: transparent; }
.btn.danger:hover { background: color-mix(in srgb, var(--err) 14%, transparent); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--text); background: var(--panel2); }
.btn.sm { padding: 5px 10px; font-size: 13px; }
.btn.block { width: 100%; }
.icon-btn { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 16px; padding: 4px 8px; border-radius: 6px; }
.icon-btn:hover { color: var(--text); background: var(--panel2); }

.badge { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 2px 7px; border-radius: 99px; background: var(--panel2); color: var(--muted); margin-left: 6px; }
.badge.ok { background: color-mix(in srgb, var(--ok) 20%, transparent); color: var(--ok); }
.badge.err { background: color-mix(in srgb, var(--err) 20%, transparent); color: var(--err); }
.badge.warn { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); margin: 0; }
.chip { display: inline-block; font-size: 12px; padding: 2px 8px; margin: 2px 4px 2px 0; border-radius: 99px; background: var(--panel2); color: var(--text); border: 1px solid var(--line); cursor: pointer; font-family: var(--font); }
.chip.add { color: var(--accent); }
.count { font-family: var(--font); font-size: 13px; font-weight: 600; color: var(--muted); margin-left: 8px; }

/* header */
header.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 18px; padding: 0 20px; height: 56px; background: rgba(13,16,20,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font: 700 20px var(--display); text-transform: uppercase; color: var(--text); letter-spacing: .03em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-mark { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; background: var(--accent); color: var(--bg); font-size: 13px; }
.brand.big { font-size: 28px; margin-bottom: 18px; }
.brand.big .brand-mark { width: 36px; height: 36px; font-size: 16px; }
.team-nav { display: flex; gap: 4px; overflow-x: auto; flex: 1; scrollbar-width: none; }
.team-nav a, .top-right a { color: var(--muted); padding: 6px 12px; border-radius: 8px; font-weight: 600; white-space: nowrap; }
.team-nav a:hover, .top-right a:hover { color: var(--text); text-decoration: none; background: var(--panel); }
.team-nav a.active { color: var(--text); background: var(--panel); box-shadow: inset 0 -2px 0 var(--team); }
.top-right { display: flex; gap: 2px; align-items: center; }
.top-right a.active { color: var(--text); background: var(--panel); }
.me-link { border: 1px solid var(--line); }

/* pages */
.page { max-width: 1280px; margin: 0 auto; padding: 24px 20px 80px; }
.page.list-page { max-width: none; padding: 16px 20px 40px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.team-head h1 { border-left: 5px solid var(--team); padding-left: 12px; }
.team-head .muted { padding-left: 17px; }
.season-select { width: auto; min-width: 140px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs a { padding: 10px 16px; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a.active { color: var(--text); border-color: var(--team); }
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
.panel.flush { padding: 0; overflow-x: auto; }
.panel.narrow { max-width: 520px; }
.panel-title { padding: 14px 16px 6px; }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty.small { padding: 24px; }
.section-title { margin: 22px 0 10px; font-size: 16px; text-transform: uppercase; color: var(--muted); letter-spacing: .06em; }
.section-title:first-child { margin-top: 4px; }
.sticky-save { position: sticky; bottom: 16px; display: flex; justify-content: flex-end; }
details.sub { border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; background: var(--bg2); }
details.sub summary { cursor: pointer; font-weight: 600; }
details.sub[open] summary { margin-bottom: 12px; }
.steps { padding-left: 18px; margin: 0; }
.test-out { margin-top: 8px; white-space: pre-wrap; }
.test-out.ok { color: var(--ok); }
.test-out.err { color: var(--err); }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.card { position: relative; display: block; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; color: var(--text); transition: border-color .15s, transform .15s; overflow: hidden; }
a.card:hover { border-color: #3d4a5b; text-decoration: none; transform: translateY(-1px); }
.card h3 { margin: 8px 0 4px; font-size: 19px; }
.team-card .team-stripe { position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--team); }
.team-card.archived { opacity: .55; }
.list-card-top { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; }
.kind { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 2px 8px; border-radius: 4px; background: var(--panel2); color: var(--muted); }
.kind-game { color: #ffd166; background: rgba(255,209,102,.12); }
.kind-scout { color: #ff7b6b; background: rgba(255,123,107,.12); }
.kind-practice { color: #6bd3ff; background: rgba(107,211,255,.12); }
.kind-highlight { color: #c59bff; background: rgba(197,155,255,.13); }
.vis { color: var(--muted); font-size: 12px; }
.list-card-foot { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.viewed { flex: 1; height: 4px; background: var(--panel2); border-radius: 4px; overflow: hidden; }
.viewed i { display: block; height: 100%; background: var(--team); }
.ann-chip { color: var(--accent); font-size: 12px; font-weight: 700; }

/* tables */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.table td { padding: 9px 12px; border-bottom: 1px solid #222a35; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .num { width: 44px; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.table.compact td { padding: 5px 6px; }
.table tr.inactive { opacity: .5; }
.schedule tr.past td { color: #b5bfcb; }
.etype { font-size: 12px; font-weight: 600; }
.etype-game { color: #ffd166; }
.etype-practice { color: #6bd3ff; }
.result { font-weight: 700; font-variant-numeric: tabular-nums; }
.r-W { color: var(--ok); } .r-L { color: var(--err); } .r-T { color: var(--muted); }
.progress { position: relative; height: 18px; background: var(--bg2); border-radius: 5px; overflow: hidden; min-width: 120px; }
.progress .bar { height: 100%; background: color-mix(in srgb, var(--accent) 70%, transparent); transition: width .3s; }
.progress span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 11px; font-weight: 600; }
.pre { white-space: pre-wrap; font-size: 12px; background: var(--bg2); padding: 10px; border-radius: 6px; max-height: 300px; overflow: auto; }

/* modal & toast */
.modal-wrap { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.6); display: grid; place-items: center; padding: 16px; animation: fade .12s; }
.modal { width: 100%; max-width: 480px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.modal.wide { max-width: 720px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px 6px 20px; }
.modal-body { padding: 10px 20px; overflow: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px 18px; flex-wrap: wrap; }
.modal-foot .btn.danger { margin-right: auto; }
@keyframes fade { from { opacity: 0; } }
#toasts { position: fixed; z-index: 200; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: #24303d; border: 1px solid var(--line); border-left: 4px solid var(--ok); padding: 10px 16px; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.4); transition: opacity .4s, transform .4s; max-width: 90vw; }
.toast.err { border-left-color: var(--err); }
.toast.out { opacity: 0; transform: translateY(8px); }
.invite-box { background: var(--bg2); border: 1px dashed var(--line); padding: 12px; border-radius: 8px; display: flex; flex-direction: column; gap: 8px; }
.invite-link { font-family: ui-monospace, monospace; font-size: 12px; word-break: break-all; color: var(--accent); }

/* auth */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(1200px 600px at 20% -10%, rgba(232,176,33,.12), transparent), var(--bg); }
.auth-card { width: 100%; max-width: 380px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 30px; }
.auth-card h2 { margin-bottom: 14px; }
.lang-switch { margin-top: 16px; display: flex; gap: 6px; }
.lang-switch button { background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 6px; padding: 4px 10px; cursor: pointer; font: 600 12px var(--font); }
.lang-switch button.active { color: var(--text); border-color: var(--accent); }

/* search */
.search-row { display: block; padding: 8px 10px; border-radius: 6px; color: var(--text); }
.search-row:hover { background: var(--panel2); text-decoration: none; }
.search-results { max-height: 420px; overflow: auto; }

/* ============================ list page */
.list-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.list-head h1 { font-size: 26px; margin: 2px 0; }
.back { font-size: 13px; color: var(--muted); }
.list-notes { max-width: 70ch; color: #c6d0db; font-size: 14px; }
.list-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, 40%); gap: 16px; align-items: start; }
.list-page.dropping .list-grid { outline: 2px dashed var(--accent); outline-offset: 6px; border-radius: 12px; }
.player-col { min-width: 0; }
.stage { position: relative; background: #000; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 9; max-height: calc(100vh - 260px); width: 100%; user-select: none; }
.stage:fullscreen { max-height: none; border-radius: 0; aspect-ratio: auto; width: 100vw; height: 100vh; }
.stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.stage canvas.overlay { position: absolute; pointer-events: none; }
.stage.drawing canvas.overlay { pointer-events: auto; cursor: crosshair; }
.stage.drawing { box-shadow: inset 0 0 0 3px var(--accent); }
.stage-empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; color: var(--muted); }
.big-play { position: absolute; inset: 0; margin: auto; width: 72px; height: 72px; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #fff; font-size: 28px; cursor: pointer; }
.ann-note { position: absolute; left: 50%; bottom: 56px; transform: translateX(-50%); max-width: min(560px, 86%); background: rgba(10,12,16,.88); border: 1px solid rgba(255,255,255,.12); border-left: 4px solid var(--accent); padding: 10px 14px; border-radius: 8px; font-size: 16px; backdrop-filter: blur(4px); }
.ann-note b { display: block; font-size: 12px; color: var(--accent); text-transform: uppercase; letter-spacing: .05em; }
.ann-note p { margin: 2px 0 0; white-space: pre-wrap; }
.continue { position: absolute; right: 14px; bottom: 14px; background: var(--accent); color: #111; border: 0; border-radius: 99px; padding: 8px 16px; font: 700 14px var(--font); cursor: pointer; box-shadow: 0 4px 16px rgba(0,0,0,.4); }
.hold-bar { position: absolute; left: 0; right: 0; top: 0; height: 4px; background: rgba(255,255,255,.12); }
.hold-bar i { display: block; height: 100%; width: 0; background: var(--accent); }
.text-entry { position: absolute; z-index: 5; width: 260px; min-height: 60px; background: rgba(0,0,0,.8); border: 2px solid var(--accent); font: 700 18px var(--font); }

.controls { display: flex; align-items: center; gap: 4px; padding: 8px 4px; flex-wrap: nowrap; }
.ctl { background: none; border: 0; color: var(--text); font-size: 17px; width: 34px; height: 34px; border-radius: 8px; cursor: pointer; flex: none; }
.ctl:hover { background: var(--panel2); }
.ctl.play { background: var(--accent); color: #111; width: 42px; font-size: 15px; }
.ctl.toggle { color: var(--muted); }
.ctl.toggle.on { color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.time { font: 600 13px var(--font); font-variant-numeric: tabular-nums; color: var(--muted); padding: 0 6px; white-space: nowrap; min-width: 92px; text-align: center; }
.rate { width: auto; padding: 5px 6px; font-size: 13px; flex: none; }
.timeline { flex: 1; min-width: 80px; height: 34px; display: flex; align-items: center; cursor: pointer; touch-action: none; }
.track { position: relative; width: 100%; height: 8px; background: var(--panel2); border-radius: 4px; }
.trim-out { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(45deg, rgba(0,0,0,.5) 0 4px, rgba(0,0,0,.25) 4px 8px); border-radius: 4px; }
.playhead { position: absolute; top: -5px; width: 3px; height: 18px; background: var(--text); border-radius: 2px; transform: translateX(-1px); pointer-events: none; }
.ann-marker { position: absolute; top: -7px; width: 12px; height: 12px; transform: translateX(-6px) rotate(45deg); background: var(--accent); border: 2px solid var(--bg); border-radius: 2px; cursor: pointer; padding: 0; z-index: 2; }
.ann-marker:hover { transform: translateX(-6px) rotate(45deg) scale(1.3); }

.coach-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; padding: 4px 0 10px; }
.coach-row .sep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; }
.drawbar { background: var(--panel); border: 1px solid var(--accent); border-radius: 10px; padding: 10px; margin: 4px 0 10px; display: flex; flex-direction: column; gap: 8px; }
.drawbar-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.drawbar textarea { flex: 1; min-width: 200px; }
.drawbar .inline { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.drawbar .inline select { width: auto; }
.draw-at { font-weight: 700; color: var(--accent); font-size: 13px; }
.tools { display: flex; gap: 3px; background: var(--bg2); padding: 3px; border-radius: 8px; }
.tool { min-width: 32px; height: 32px; border: 0; border-radius: 6px; background: none; color: var(--text); font-size: 16px; cursor: pointer; }
.tool.small { font: 700 12px var(--font); }
.tool:hover { background: var(--panel2); }
.tool.on { background: var(--accent); color: #111; }
.swatch { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); cursor: pointer; margin: 4px 2px; }
.swatch.on { border-color: #fff; box-shadow: 0 0 0 2px var(--accent); }

.clip-info { display: flex; flex-direction: column; gap: 8px; }
.clip-info-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.clip-no { font: 700 14px var(--display); color: var(--muted); }
.clip-info h3 { flex: 1; }
.clip-title-input { flex: 1; font: 700 17px var(--display) !important; background: transparent !important; border-color: transparent !important; padding: 4px 6px !important; }
.clip-title-input:hover, .clip-title-input:focus { border-color: var(--line) !important; }
.data-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dchip { font-size: 12px; padding: 2px 8px; border-radius: 5px; background: var(--panel); border: 1px solid var(--line); }
.dchip b { color: var(--muted); font-weight: 600; }
.clip-note-view { background: var(--panel); border-left: 3px solid var(--accent); padding: 8px 12px; border-radius: 6px; white-space: pre-wrap; }
.ann-list { display: flex; flex-direction: column; gap: 4px; }
.ann-row { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 6px; background: var(--panel); cursor: pointer; border: 1px solid transparent; }
.ann-row:hover { border-color: var(--line); }
.ann-row.on { border-color: var(--accent); }
.ann-time { font: 600 13px var(--font); font-variant-numeric: tabular-nums; color: var(--accent); min-width: 44px; }
.ann-text { flex: 1; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.clips-col { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; display: flex; flex-direction: column; max-height: calc(100vh - 140px); position: sticky; top: 72px; min-width: 0; }
.clips-tools { display: flex; align-items: center; gap: 10px; padding: 10px 10px 6px; }
.clips-tools .search { max-width: none; flex: 1; padding: 6px 10px; }
.sel-info { white-space: nowrap; }
.bulk { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 10px 8px; border-bottom: 1px solid var(--line); }
.clips-scroll { overflow: auto; flex: 1; }
table.clips { width: 100%; border-collapse: collapse; font-size: 13px; }
table.clips th { position: sticky; top: 0; z-index: 1; background: var(--panel); text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); padding: 6px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.clips td { padding: 4px 6px; border-bottom: 1px solid #222a35; white-space: nowrap; }
table.clips tr { cursor: pointer; }
table.clips tbody tr:hover { background: #1d2530; }
table.clips tr.cur { background: color-mix(in srgb, var(--team) 16%, transparent); box-shadow: inset 3px 0 0 var(--team); }
table.clips tr.sel { background: rgba(110,160,255,.10); }
table.clips tr.cur.sel { background: color-mix(in srgb, var(--team) 22%, rgba(110,160,255,.1)); }
table.clips tr.dragging { opacity: .4; }
table.clips tr.drop-target { box-shadow: inset 0 2px 0 var(--accent); }
table.clips .chk { width: 26px; }
table.clips .num { width: 30px; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
table.clips td.title { display: flex; align-items: center; gap: 8px; min-width: 150px; max-width: 240px; }
table.clips .thumb { width: 56px; height: 32px; object-fit: cover; border-radius: 4px; background: #000; flex: none; display: inline-block; }
table.clips .ttl { overflow: hidden; text-overflow: ellipsis; display: flex; flex-direction: column; line-height: 1.2; }
table.clips .ttl small { color: var(--muted); font-size: 11px; }
table.clips .dcol { font-variant-numeric: tabular-nums; max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
table.clips td.editable:hover { box-shadow: inset 0 0 0 1px var(--line); }
table.clips .icons { text-align: right; }
table.clips .icons span { margin-left: 4px; }
.cell-edit { padding: 2px 4px !important; font-size: 13px !important; min-width: 60px; }
.note-chip { font-size: 11px; }
.seen { color: var(--ok); font-size: 9px; vertical-align: middle; }

.upload-panel { position: fixed; right: 16px; bottom: 16px; z-index: 90; width: 320px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; box-shadow: 0 12px 40px rgba(0,0,0,.5); display: flex; flex-direction: column; gap: 8px; }
.up-item { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; }
.up-item span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* responsive */
@media (max-width: 1000px) {
  .list-grid { grid-template-columns: 1fr; }
  .clips-col { position: static; max-height: 60vh; }
  .stage { max-height: none; }
}
@media (max-width: 680px) {
  header.top { gap: 8px; padding: 0 10px; }
  .brand span:last-child { display: none; }
  .page { padding: 16px 12px 60px; }
  .page.list-page { padding: 8px 0 30px; }
  .list-head { padding: 0 12px; }
  .stage { border-radius: 0; }
  .controls { flex-wrap: wrap; padding: 6px 8px; }
  .timeline { order: -1; flex-basis: 100%; height: 28px; }
  .time { min-width: auto; }
  .coach-row, .clip-info, .drawbar { margin-left: 8px; margin-right: 8px; }
  .clips-col { border-radius: 0; border-left: 0; border-right: 0; max-height: none; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .ann-note { left: 8px; bottom: 8px; transform: none; max-width: calc(100% - 110px); font-size: 13px; padding: 6px 10px; }
  .ann-note b { font-size: 10px; }
  .continue { right: 8px; bottom: 8px; padding: 6px 12px; font-size: 13px; }
  h1 { font-size: 24px; }
  .modal-wrap { padding: 0; align-items: end; }
  .modal { max-width: none !important; border-radius: 14px 14px 0 0; }
  .upload-panel { left: 8px; right: 8px; width: auto; }
  .table th, .table td { padding: 8px; }
}
