Add presenter view, stats, lyrics worker, watch party with voice chat, timestamp sharing, soundbites, notes, transcript search, PiP, EQ, sleep fade, gestures and external players; fix the crossfade end-of-song race
This commit is contained in:
@@ -3802,3 +3802,234 @@ body.remote-open { overflow: hidden; }
|
||||
color: var(--text-2); font-size: 12px; cursor: pointer;
|
||||
}
|
||||
.wave-loud:hover { color: var(--text); border-color: var(--accent); }
|
||||
|
||||
/* ============================================================================
|
||||
* Stats view (renderStats in app.js)
|
||||
* ========================================================================== */
|
||||
.stats { grid-column: 1 / -1; position: relative; display: flex; flex-direction: column; gap: 16px; padding-bottom: 24px; }
|
||||
.stats-empty { grid-column: 1 / -1; }
|
||||
.st-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
|
||||
.st-tile, .st-panel {
|
||||
background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
|
||||
border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px;
|
||||
}
|
||||
.st-label { font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); }
|
||||
.st-big { font-family: var(--mono); font-size: 32px; font-weight: 700; color: var(--text); margin: 6px 0 4px; font-variant-numeric: tabular-nums; }
|
||||
.st-sub { font-size: 12px; color: var(--text-2); }
|
||||
.st-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
|
||||
.st-panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 12px; font-weight: 700; font-size: 14px; color: var(--text); }
|
||||
.st-panel-head small { font-weight: 400; font-size: 11px; color: var(--text-dim); text-align: right; }
|
||||
.st-none { font-size: 13px; color: var(--text-dim); }
|
||||
.st-bar-row { display: grid; grid-template-columns: minmax(80px, 34%) 1fr 34px; align-items: center; gap: 10px; padding: 5px 0; }
|
||||
.st-bar-name { font-size: 13px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.st-bar-track { height: 10px; }
|
||||
.st-bar { display: block; height: 10px; border-radius: 0 4px 4px 0; background: var(--accent); }
|
||||
.st-bar-row:hover .st-bar { background: var(--accent-bright); }
|
||||
.st-bar-val { font-family: var(--mono); font-size: 12px; color: var(--text-2); text-align: right; font-variant-numeric: tabular-nums; }
|
||||
.st-song { display: grid; grid-template-columns: 24px 1fr 96px 34px; align-items: center; gap: 10px; padding: 6px 0; cursor: pointer; border-bottom: 1px solid var(--line-soft); }
|
||||
.st-song:last-child { border-bottom: none; }
|
||||
.st-song:hover b { color: var(--accent-bright); }
|
||||
.st-rank { font-family: var(--mono); font-size: 11px; color: var(--text-dim); }
|
||||
.st-song-text { display: flex; flex-direction: column; min-width: 0; }
|
||||
.st-song-text b { font-size: 13px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.st-song-text small { font-size: 11px; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.st-spark polyline { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
|
||||
.st-heat-wrap { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
|
||||
.st-heat-days { display: grid; grid-template-rows: 14px repeat(7, 14px); row-gap: 3px; font-size: 9px; color: var(--text-dim); font-family: var(--mono); }
|
||||
.st-heat-days span { line-height: 14px; }
|
||||
.st-heat-months { display: grid; grid-template-columns: repeat(16, 14px); column-gap: 3px; height: 14px; font-size: 9px; color: var(--text-dim); font-family: var(--mono); white-space: nowrap; margin-bottom: 3px; }
|
||||
.st-heat { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 14px); grid-template-columns: repeat(16, 14px); gap: 3px; }
|
||||
.st-cell { width: 14px; height: 14px; border-radius: 3px; background: var(--bg-3); }
|
||||
.st-cell.l1 { background: color-mix(in srgb, var(--accent) 28%, var(--bg-3)); }
|
||||
.st-cell.l2 { background: color-mix(in srgb, var(--accent) 50%, var(--bg-3)); }
|
||||
.st-cell.l3 { background: color-mix(in srgb, var(--accent) 74%, var(--bg-3)); }
|
||||
.st-cell.l4 { background: var(--accent); }
|
||||
.st-cell.future { background: transparent; border: 1px dashed var(--line); box-sizing: border-box; }
|
||||
.st-heat .st-cell:hover { outline: 2px solid var(--text); outline-offset: 1px; }
|
||||
.st-legend { display: flex; align-items: center; gap: 4px; margin-top: 10px; font-size: 11px; color: var(--text-dim); }
|
||||
.st-legend span:first-child { margin-right: 4px; }
|
||||
.st-legend span:last-child { margin-left: 4px; }
|
||||
.st-table { margin-top: 10px; font-size: 12px; color: var(--text-2); }
|
||||
.st-table summary { cursor: pointer; color: var(--text-dim); }
|
||||
.st-table table { margin-top: 8px; border-collapse: collapse; }
|
||||
.st-table td, .st-table th { padding: 3px 12px 3px 0; text-align: left; font-variant-numeric: tabular-nums; }
|
||||
.st-tip {
|
||||
position: absolute; transform: translate(-50%, -100%); pointer-events: none; z-index: 5;
|
||||
background: var(--bg-3); border: 1px solid var(--line); color: var(--text);
|
||||
padding: 5px 9px; border-radius: 8px; font-size: 12px; white-space: nowrap; box-shadow: var(--shadow);
|
||||
}
|
||||
|
||||
/* ============================================================================
|
||||
* Presenter / projector view (Presenter in app.js) — always dark
|
||||
* ========================================================================== */
|
||||
.presenter-view {
|
||||
--text: #f7f5f2; --text-2: #c9c8d0; --text-dim: #8a8994; --line: #2a2a33;
|
||||
position: fixed; inset: 0; z-index: 420;
|
||||
background: #000; color: var(--text);
|
||||
overflow: hidden;
|
||||
}
|
||||
body.presenter-open { overflow: hidden; }
|
||||
.pv-list { position: absolute; inset: 4vh 0 8vh 0; }
|
||||
.presenter-view .sl-line { cursor: default; }
|
||||
.pv-title {
|
||||
position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
|
||||
text-align: center; padding: 0 6vw; font-family: var(--display); font-weight: 800;
|
||||
font-size: clamp(32px, 6vw, 96px); line-height: 1.1; color: var(--text);
|
||||
}
|
||||
.pv-title small { font-family: var(--ui); font-weight: 500; font-size: clamp(16px, 2vw, 28px); color: var(--text-dim); margin-top: 16px; }
|
||||
.pv-bar {
|
||||
position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 16px;
|
||||
padding: 10px 18px; font-size: 13px; color: var(--text-dim);
|
||||
background: linear-gradient(transparent, rgba(0, 0, 0, 0.85)); transition: opacity 0.4s;
|
||||
}
|
||||
.pv-status { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.pv-hint { font-size: 11px; }
|
||||
.pv-btn { background: #16161b; color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; cursor: pointer; }
|
||||
.presenter-view.idle { cursor: none; }
|
||||
.presenter-view.idle .pv-bar { opacity: 0; }
|
||||
.pv-pair {
|
||||
position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
|
||||
width: min(420px, 90vw); display: flex; flex-direction: column; gap: 12px; text-align: center;
|
||||
background: #111116; border: 1px solid var(--line); border-radius: 16px; padding: 24px;
|
||||
}
|
||||
.pv-pair-title { font-family: var(--display); font-size: 26px; font-weight: 700; }
|
||||
.pv-pair p { margin: 0; font-size: 13px; color: var(--text-2); line-height: 1.5; }
|
||||
.pv-pair input {
|
||||
font-family: var(--mono); font-size: 32px; letter-spacing: 0.2em; text-align: center;
|
||||
background: #000; color: var(--text); border: 1px solid var(--line); border-radius: 12px; padding: 12px;
|
||||
}
|
||||
.pv-blank { position: absolute; inset: 0; background: #000; z-index: 5; }
|
||||
.rh-present { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
|
||||
.rh-qr-sm { width: 96px; height: 96px; }
|
||||
.rh-present code { font-family: var(--mono); font-size: 11px; word-break: break-all; }
|
||||
|
||||
/* Timestamp sharing (Share in app.js) */
|
||||
.share-moment { display: flex; flex-direction: column; gap: 12px; }
|
||||
.sm-row { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-dim); }
|
||||
.sm-time { width: 90px; background: var(--bg-1); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 7px 9px; font-family: var(--mono); font-size: 14px; }
|
||||
.sm-links { display: flex; flex-direction: column; gap: 8px; }
|
||||
.sm-link { display: grid; grid-template-columns: 64px 1fr auto; gap: 8px; align-items: center; font-size: 12px; color: var(--text-dim); }
|
||||
.sm-link code { font-family: var(--mono); font-size: 11px; color: var(--text); background: var(--bg-1); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; user-select: all; }
|
||||
.sm-gif { border-top: 1px solid var(--line-soft); padding-top: 12px; }
|
||||
.sm-gif-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--text-dim); }
|
||||
.sm-gif-controls select { background: var(--bg-1); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px; }
|
||||
.sm-gif-out { margin-top: 10px; }
|
||||
.sm-preview { display: block; max-width: 100%; border-radius: 10px; border: 1px solid var(--line); }
|
||||
.sm-gif-actions { display: flex; gap: 8px; margin-top: 8px; }
|
||||
.sm-busy, .sm-err { font-size: 13px; color: var(--text-2); }
|
||||
.sm-err { color: var(--accent-bright); }
|
||||
|
||||
/* Sleep timer panel, curtain, equalizer */
|
||||
.sleep-panel, .eq-panel { display: flex; flex-direction: column; gap: 8px; }
|
||||
.sp-label { font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); margin-top: 6px; }
|
||||
.sp-chips, .eq-presets { display: flex; flex-wrap: wrap; gap: 6px; }
|
||||
.sp-chip {
|
||||
background: var(--bg-1); color: var(--text-2); border: 1px solid var(--line); border-radius: 999px;
|
||||
padding: 7px 12px; font-size: 13px; cursor: pointer;
|
||||
}
|
||||
.sp-chip:hover { color: var(--text); border-color: var(--text-dim); }
|
||||
.sp-chip.on { color: var(--text); border-color: var(--accent); background: var(--bg-3); }
|
||||
.sp-note { margin: 6px 0 0; font-size: 11px; line-height: 1.5; color: var(--text-dim); }
|
||||
.sleep-curtain {
|
||||
position: fixed; inset: 0; z-index: 500; background: #000; cursor: pointer;
|
||||
display: flex; align-items: flex-end; justify-content: center; padding-bottom: 12vh;
|
||||
}
|
||||
.sleep-curtain span { color: #666; font-size: 14px; transition: opacity 2s; }
|
||||
.sleep-curtain.dim span { opacity: 0; }
|
||||
.eq-bands { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 8px; }
|
||||
.eq-band { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; color: var(--text-dim); }
|
||||
.eq-band input[type=range] { writing-mode: vertical-lr; direction: rtl; width: 28px; height: 150px; accent-color: var(--accent); }
|
||||
.eq-val { font-family: var(--mono); font-size: 11px; color: var(--text); min-height: 14px; }
|
||||
.eq-f { font-family: var(--mono); }
|
||||
|
||||
/* Touch gestures (Gestures in app.js) */
|
||||
.player-stage { touch-action: pan-y; } /* page still scrolls; we get double-tap + pinch */
|
||||
:fullscreen .player-stage, .player-stage:fullscreen,
|
||||
body.landscape-fs .player-stage { touch-action: none; } /* fullscreen (real or the iOS landscape one): swipes too */
|
||||
#video { transform-origin: center center; transition: transform 0.05s linear; }
|
||||
.gesture-hud {
|
||||
position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 6;
|
||||
min-width: 140px; padding: 12px 16px; border-radius: 14px; text-align: center;
|
||||
background: rgba(0, 0, 0, 0.62); color: #fff; pointer-events: none; font-family: var(--ui);
|
||||
}
|
||||
.gh-label { font-size: 14px; font-weight: 600; }
|
||||
.gh-bar { margin-top: 8px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.25); overflow: hidden; }
|
||||
.gh-bar span { display: block; height: 100%; background: #fff; }
|
||||
.gh-seek { font-size: 22px; font-weight: 700; }
|
||||
|
||||
/* Notes: long personal notes + the 📝 Notes view */
|
||||
.marker-form textarea {
|
||||
background: var(--bg-1); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius-sm);
|
||||
padding: 9px 10px; font: 14px/1.5 var(--ui); resize: vertical;
|
||||
}
|
||||
.mk-note.long { white-space: pre-wrap; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
|
||||
.notes-view { display: flex; flex-direction: column; gap: 12px; padding-bottom: 24px; }
|
||||
.nv-filter { background: var(--bg-1); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 9px 11px; font-size: 14px; }
|
||||
.nv-group { background: linear-gradient(180deg, var(--bg-2), var(--bg-1)); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; }
|
||||
.nv-head { display: flex; flex-direction: column; margin-bottom: 6px; }
|
||||
.nv-head b { font-size: 14px; color: var(--text); }
|
||||
.nv-head small { font-size: 11px; color: var(--text-dim); }
|
||||
.nv-item { display: flex; gap: 10px; width: 100%; text-align: left; background: transparent; border: none; border-top: 1px solid var(--line-soft); padding: 8px 2px; cursor: pointer; color: var(--text-2); }
|
||||
.nv-item:hover .nv-title { color: var(--accent-bright); }
|
||||
.nv-time { flex: none; width: 48px; font-family: var(--mono); font-size: 12px; color: var(--accent-bright); }
|
||||
.nv-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
|
||||
.nv-title { font-size: 13px; color: var(--text); }
|
||||
.nv-note { font-size: 12px; white-space: pre-wrap; color: var(--text-2); }
|
||||
|
||||
/* Transcript search tab */
|
||||
.ts-bar { display: flex; gap: 8px; margin-bottom: 8px; }
|
||||
.ts-query { flex: 1; min-width: 0; background: var(--bg-1); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 10px; font-size: 14px; }
|
||||
.ts-source { background: var(--bg-1); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 6px 8px; font-size: 12px; }
|
||||
.ts-info { font-size: 11px; color: var(--text-dim); margin-bottom: 6px; }
|
||||
.ts-results { max-height: min(46vh, 420px); overflow-y: auto; overscroll-behavior: contain; }
|
||||
.ts-hit { display: flex; gap: 10px; width: 100%; text-align: left; background: transparent; border: none; border-radius: 8px; padding: 6px; cursor: pointer; color: var(--text-2); font-size: 14px; line-height: 1.4; }
|
||||
.ts-hit:hover { background: var(--bg-3); color: var(--text); }
|
||||
.ts-time { flex: none; width: 42px; font-family: var(--mono); font-size: 11px; color: var(--accent-bright); padding-top: 2px; }
|
||||
.ts-hit mark { background: color-mix(in srgb, var(--accent) 35%, transparent); color: var(--text); border-radius: 3px; padding: 0 1px; }
|
||||
.sm-bite input { width: 70px; background: var(--bg-1); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 5px 7px; font-family: var(--mono); font-size: 12px; }
|
||||
.sm-bite-out { margin-top: 10px; }
|
||||
.sm-audio { width: 100%; }
|
||||
.ext-panel { display: flex; flex-direction: column; gap: 10px; }
|
||||
.ext-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
|
||||
.ext-buttons a.np-btn { text-decoration: none; display: inline-flex; align-items: center; }
|
||||
|
||||
/* Watch party panel (Party in app.js) */
|
||||
.party-panel {
|
||||
position: fixed; right: 16px; top: 76px; bottom: 96px; width: 340px; z-index: 160;
|
||||
display: flex; flex-direction: column; gap: 10px; padding: 12px 14px;
|
||||
background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
|
||||
}
|
||||
.party-panel.min { bottom: auto; }
|
||||
.party-panel.min .pt-body { display: none; }
|
||||
.pt-head { display: flex; align-items: center; gap: 8px; font-weight: 700; }
|
||||
.pt-head .rv-icon { width: 30px; height: 30px; font-size: 12px; margin-left: auto; }
|
||||
.pt-status { font-family: var(--mono); font-size: 10px; color: var(--text-dim); font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.pt-body { display: flex; flex-direction: column; gap: 10px; min-height: 0; flex: 1; }
|
||||
.pt-row { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--text-dim); }
|
||||
.pt-row input, .pt-msg, .pt-name {
|
||||
flex: 1; min-width: 0; background: var(--bg-1); color: var(--text); border: 1px solid var(--line);
|
||||
border-radius: var(--radius-sm); padding: 8px 10px; font-size: 14px;
|
||||
}
|
||||
.pt-code { font-family: var(--mono); letter-spacing: 0.2em; text-transform: uppercase; }
|
||||
.pt-or { text-align: center; font-size: 11px; color: var(--text-dim); }
|
||||
.pt-share { display: flex; gap: 6px; align-items: center; }
|
||||
.pt-share code { flex: 1; min-width: 0; font-family: var(--mono); font-size: 11px; background: var(--bg-1); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.pt-now { font-size: 12px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.pt-members { display: flex; flex-wrap: wrap; gap: 6px; }
|
||||
.pt-member { font-size: 12px; padding: 3px 9px; border-radius: 999px; background: var(--bg-3); color: var(--text-2); }
|
||||
.pt-member.me { color: var(--text); border: 1px solid var(--accent); }
|
||||
.pt-toggle { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); }
|
||||
.pt-voice { display: flex; align-items: center; gap: 8px; }
|
||||
.pt-voice .np-btn.on { border-color: #7ee0a8; }
|
||||
.pt-voice-n { font-size: 11px; color: var(--text-dim); }
|
||||
.pt-chat { flex: 1; min-height: 80px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; padding: 6px; background: var(--bg-1); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); }
|
||||
.pt-line { font-size: 13px; color: var(--text-2); line-height: 1.4; overflow-wrap: anywhere; }
|
||||
.pt-line b { color: var(--text); }
|
||||
.pt-line.me b { color: var(--accent-bright); }
|
||||
.pt-sys { font-size: 11px; color: var(--text-dim); text-align: center; }
|
||||
.pt-send { display: flex; gap: 6px; }
|
||||
.pt-leave { background: transparent; border: none; color: var(--text-dim); font-size: 12px; cursor: pointer; text-decoration: underline; align-self: center; }
|
||||
@media (max-width: 720px) {
|
||||
.party-panel { left: 8px; right: 8px; width: auto; top: auto; bottom: 8px; height: 62vh; }
|
||||
.party-panel.min { height: auto; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user