Files
Echoion/EchoionWeb/frontend/src/styles/style.css
T
faumaray 24fecc90f3 making WEB
Signed-off-by: faumaray <faumaray@gmail.com>
2026-07-11 00:47:52 +03:00

787 lines
35 KiB
CSS

/* Echoion web UI — dark violet design (see Echoion.html mockup). */
:root {
--bg: #0a0a0e;
--panel: rgba(255, 255, 255, 0.03);
--panel-2: rgba(255, 255, 255, 0.05);
--line: rgba(255, 255, 255, 0.07);
--text: #f3f3f6;
--text-2: #e8e8ee;
--muted: #9a9aa8;
--muted-2: #8a8a98;
--faint: #6a6a78;
--accent: #7c5cff;
--accent-soft: rgba(124, 92, 255, 0.16);
--accent-text: #b5a3ff;
--accent-2: #8f72ff;
--green: #3fd07a;
--green-text: #5fe094;
--red: #ff5c5c;
--red-text: #ff8080;
--yellow: #ffcf4a;
--yellow-text: #ffd977;
--pink: #ff6b9d;
--radius: 14px;
--font-head: 'Space Grotesk', sans-serif;
--font-mono: 'JetBrains Mono', ui-monospace, monospace;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
background: var(--bg);
color: var(--text);
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
font-size: 14px;
min-height: 100vh;
}
button { font-family: inherit; color: inherit; }
input {
font-family: inherit;
color: var(--text);
background: rgba(255, 255, 255, 0.05);
border: 1px solid var(--line);
border-radius: 10px;
padding: 10px 14px;
outline: none;
font-size: 13.5px;
}
input:focus { border-color: rgba(124, 92, 255, 0.45); }
.mono { font-family: var(--font-mono); font-size: 12.5px; }
.muted { color: var(--muted-2); font-weight: 500; }
h1, h2, h3 { font-family: var(--font-head); }
h2 { font-size: 17px; font-weight: 600; }
h3 { font-size: 15px; font-weight: 600; }
#app { display: flex; min-height: 100vh; }
/* ── Sidebar ──────────────────────────────────────────────────────────── */
.sidebar {
width: 236px;
flex: none;
display: flex;
flex-direction: column;
gap: 18px;
padding: 22px 14px;
border-right: 1px solid var(--line);
position: sticky;
top: 0;
height: 100vh;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 0 6px; }
.brand-icon {
width: 42px; height: 42px; border-radius: 13px;
background: linear-gradient(135deg, #7c5cff, #5b3fd6);
display: flex; align-items: center; justify-content: center;
box-shadow: 0 4px 18px rgba(124, 92, 255, 0.35);
}
.brand-name { font-family: var(--font-head); font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.brand-sub { font-size: 10px; font-weight: 600; letter-spacing: 2.4px; color: var(--faint); }
.nav { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.nav-item {
display: flex; align-items: center; gap: 12px;
padding: 10px 12px;
border: none; border-radius: 10px;
background: transparent; color: var(--muted);
font-weight: 600; font-size: 13.5px;
cursor: pointer; width: 100%;
transition: background 0.12s;
text-align: left;
}
.nav-item:hover { background: rgba(255, 255, 255, 0.04); }
.nav-item.active {
background: var(--accent-soft);
color: #fff;
box-shadow: inset 3px 0 0 var(--accent);
}
.nav-ico {
width: 18px; color: inherit; opacity: 0.9;
display: inline-flex; align-items: center; justify-content: center;
font-size: 15px; flex: none;
}
.nav-badge {
margin-left: auto;
font-family: var(--font-mono); font-size: 11px; font-weight: 700;
color: var(--accent-text); background: var(--accent-soft);
padding: 2px 8px; border-radius: 8px;
}
.live-dot, .dot {
width: 8px; height: 8px; border-radius: 50%;
display: inline-block; flex: none;
}
.live-dot { margin-left: auto; background: var(--red); animation: ech-pulse 1.6s infinite; }
.dot-green { background: var(--green); }
@keyframes ech-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.sidebar-foot { display: flex; flex-direction: column; gap: 10px; font-size: 12.5px; }
.conn-row { display: flex; align-items: center; gap: 8px; color: var(--muted-2); padding: 0 6px; }
.conn-dot { width: 8px; height: 8px; border-radius: 50%; background: #5a5a68; }
.conn-dot.on { background: var(--green); }
.conn-dot.err { background: var(--red); }
#authBox { display: flex; flex-direction: column; gap: 8px; }
#authBox input { width: 100%; }
.whoami { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 0 6px; }
.admin-chip {
font-size: 10px; font-weight: 700; letter-spacing: 0.04em;
color: var(--yellow-text); background: rgba(255, 207, 74, 0.12);
padding: 2px 7px; border-radius: 6px;
}
/* ── Main / header ────────────────────────────────────────────────────── */
.main { flex: 1; padding: 26px 30px 90px; min-width: 0; }
.header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 22px; }
.header h1 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.header-sub { color: var(--muted-2); font-size: 13px; margin-top: 3px; }
.header-right { display: flex; gap: 10px; align-items: center; }
.pill {
display: inline-flex; align-items: center; gap: 7px;
padding: 7px 13px; border-radius: 10px;
background: var(--panel-2); font-size: 12.5px; font-weight: 600;
color: var(--text-2);
}
.pill-green { background: rgba(63, 208, 122, 0.12); color: var(--green-text); }
.pill-yellow { background: rgba(255, 207, 74, 0.12); color: var(--yellow-text); }
/* ── Cards / lists ────────────────────────────────────────────────────── */
.card {
background: var(--panel);
border: 1px solid var(--line);
border-radius: var(--radius);
padding: 18px;
margin-bottom: 18px;
}
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 10px; }
.row-gap { display: flex; gap: 8px; align-items: center; }
.col { display: flex; flex-direction: column; min-width: 0; }
.link { background: none; border: none; color: var(--accent-text); cursor: pointer; font-weight: 600; font-size: 12.5px; }
/* Keyboard focus ring for every interactive control; pointer clicks don't
show it. */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button:focus:not(:focus-visible),
select:focus:not(:focus-visible) { outline: none; }
/* Inline SVG icons (components/icons.tsx) baseline-align inside text buttons
and never shrink in flex rows. */
.btn svg, .icon-btn svg, .ctrl svg, .pill svg, .room-chip svg, .link svg {
vertical-align: -0.125em; flex: none;
}
.btn {
padding: 9px 16px;
border-radius: 10px;
border: 1px solid transparent;
cursor: pointer;
font-weight: 600; font-size: 13px;
background: rgba(255, 255, 255, 0.05);
color: var(--text-2);
}
.btn:hover { background: rgba(255, 255, 255, 0.08); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #8b6dff; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--muted); }
.btn-ghost:hover { color: var(--text-2); background: rgba(255, 255, 255, 0.04); }
.btn-danger-ghost { background: transparent; border-color: rgba(255, 92, 92, 0.3); color: var(--red-text); }
.btn-danger-ghost:hover { background: rgba(255, 92, 92, 0.1); }
/* Leave-room button: prominent but not alarming; pushed to the right of the
room header so it reads as the primary in-room action. */
.btn-leave {
margin-left: auto;
display: inline-flex; align-items: center; gap: 6px;
background: rgba(255, 92, 92, 0.12);
border-color: rgba(255, 92, 92, 0.35);
color: var(--red-text);
font-weight: 700;
}
.btn-leave:hover {
background: rgba(255, 92, 92, 0.22);
border-color: rgba(255, 92, 92, 0.6);
}
.src-badge {
font-size: 10px; font-weight: 700; letter-spacing: 0.03em;
padding: 3px 8px; border-radius: 6px; flex: none;
color: var(--red-text); background: rgba(255, 107, 107, 0.14);
align-self: flex-start;
}
.src-badge.yandex { color: var(--yellow-text); background: rgba(255, 207, 74, 0.14); }
.tracklist { display: flex; flex-direction: column; }
.track-row {
display: flex; align-items: center; gap: 14px;
padding: 10px 6px;
border-bottom: 1px solid rgba(255, 255, 255, 0.035);
}
.track-row:last-child { border-bottom: none; }
.track-row.playing { background: var(--accent-soft); border-radius: 10px; }
.track-row.dragging { opacity: 0.4; }
.track-num { font-family: var(--font-mono); font-size: 12px; color: var(--faint); width: 22px; flex: none; }
.track-cover { width: 40px; height: 40px; border-radius: 9px; flex: none; }
.track-main { flex: 1; min-width: 0; }
.track-title { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-sub { color: var(--muted-2); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.track-dur { font-family: var(--font-mono); font-size: 12px; color: var(--muted-2); flex: none; }
.track-actions { display: flex; gap: 4px; flex: none; }
.icon-btn {
background: none; border: none; cursor: pointer;
color: var(--muted-2); font-size: 14px;
width: 30px; height: 30px; border-radius: 8px;
display: flex; align-items: center; justify-content: center;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.07); color: var(--text); }
.icon-btn.danger:hover { color: var(--red-text); }
.icon-btn.fav-on { color: var(--pink); }
.drag-handle { cursor: grab; color: var(--faint); }
.empty { padding: 24px; text-align: center; color: var(--faint); }
/* ── Now Playing ──────────────────────────────────────────────────────── */
.now-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 18px; align-items: start; }
.np-card { display: flex; flex-direction: column; gap: 18px; }
.np-cover {
width: 100%; aspect-ratio: 1.9;
border-radius: 12px;
background: linear-gradient(135deg, #2a1a4a, #0d0d1f);
background-size: cover; background-position: center;
}
.np-info { display: flex; flex-direction: column; gap: 9px; }
.np-title { font-family: var(--font-head); font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.np-artist { color: var(--muted); font-size: 14px; }
.np-added { color: var(--faint); font-size: 12px; }
.progress-row { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.bar {
flex: 1; height: 7px; border-radius: 5px;
background: rgba(255, 255, 255, 0.08);
cursor: pointer; position: relative;
}
.bar-slim { height: 5px; }
.bar-fill { position: relative; height: 100%; width: 0; border-radius: 5px; background: linear-gradient(90deg, #7c5cff, #a68dff); }
/* Locally buffered range, painted behind the progress fill. */
.bar-buffer {
position: absolute; left: 0; top: 0; height: 100%;
border-radius: 5px; background: rgba(255, 255, 255, 0.14);
}
/* Value tooltip that follows the pointer while hovering/dragging a bar. */
.bar-tip {
position: absolute; bottom: 100%; margin-bottom: 8px;
transform: translateX(-50%); pointer-events: none; white-space: nowrap;
background: #1b1b26; color: #f0f0f5; border: 1px solid rgba(255,255,255,0.12);
padding: 2px 7px; border-radius: 6px; font-size: 12px;
font-variant-numeric: tabular-nums; z-index: 5;
box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.transport { display: flex; align-items: center; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.ctrl {
width: 40px; height: 40px;
border: none; border-radius: 11px;
cursor: pointer;
display: flex; align-items: center; justify-content: center;
background: rgba(255, 255, 255, 0.04); color: var(--muted-2);
font-size: 15px;
}
.ctrl:hover { background: rgba(255, 255, 255, 0.08); color: var(--text); }
.ctrl.on { background: rgba(124, 92, 255, 0.2); color: var(--accent-text); }
.ctrl.fav-on { color: var(--pink); }
.ctrl-main {
width: 52px; height: 52px; border-radius: 15px;
background: var(--accent); color: #fff; font-size: 18px;
}
.ctrl-main:hover { background: #8b6dff; color: #fff; }
.voteskip.on { border-color: rgba(124, 92, 255, 0.5); color: var(--accent-text); }
.vol-row { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.vol-row .bar { max-width: 160px; }
.toggle-row { display: flex; align-items: center; gap: 8px; margin-left: auto; cursor: pointer; }
.toggle {
width: 42px; height: 24px; border-radius: 14px; border: none;
cursor: pointer; padding: 2px; display: flex;
background: rgba(255, 255, 255, 0.12);
justify-content: flex-start; transition: background 0.15s;
}
.toggle.on { background: var(--accent); justify-content: flex-end; }
.knob { width: 20px; height: 20px; border-radius: 50%; background: #fff; display: block; }
/* ── People rows (listeners, subscribers, participants) ──────────────── */
.people { display: flex; flex-direction: column; }
.person {
display: flex; align-items: center; gap: 12px;
padding: 9px 4px;
border-bottom: 1px solid rgba(255, 255, 255, 0.035);
}
.person:last-child { border-bottom: none; }
.avatar {
width: 32px; height: 32px; border-radius: 10px; flex: none;
display: inline-flex; align-items: center; justify-content: center;
font-weight: 700; font-size: 14px; color: #fff;
background: linear-gradient(135deg, #7c5cff, #5b3fd6);
}
.person-main { flex: 1; min-width: 0; }
.person-name { font-weight: 600; font-size: 13.5px; }
.person-sub { color: var(--muted-2); font-size: 11.5px; margin-top: 1px; }
.person-status { font-size: 12px; font-weight: 600; flex: none; }
/* ── Search / tabs ────────────────────────────────────────────────────── */
.search-row { display: flex; gap: 10px; margin-bottom: 14px; }
.search-row input { flex: 1; }
.tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.tab {
padding: 9px 18px; border-radius: 10px;
border: 1px solid var(--line);
cursor: pointer; font-weight: 600; font-size: 13.5px;
background: transparent; color: var(--muted);
}
.tab.active { background: var(--accent-soft); border-color: rgba(124, 92, 255, 0.4); color: #fff; }
/* ── Library ──────────────────────────────────────────────────────────── */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.playlist-card {
border: 1px solid var(--line); border-radius: 12px;
padding: 14px; cursor: pointer;
background: var(--panel-2);
display: flex; flex-direction: column; gap: 10px;
}
.playlist-card:hover { border-color: rgba(124, 92, 255, 0.4); }
.playlist-card.active { border-color: rgba(124, 92, 255, 0.7); }
.playlist-actions { display: flex; gap: 6px; margin-top: 2px; }
.playlist-actions .btn { padding: 4px 10px; font-size: 12px; }
.playlist-cover { width: 100%; aspect-ratio: 1.6; border-radius: 9px; }
.playlist-name { font-weight: 600; font-size: 13.5px; }
.playlist-meta { color: var(--muted-2); font-size: 12px; }
/* ── Audit log ────────────────────────────────────────────────────────── */
.audit-scroll { max-height: 420px; overflow-y: auto; }
.audit-row {
display: grid; grid-template-columns: 1fr auto auto; gap: 12px;
align-items: baseline; padding: 8px 4px;
border-bottom: 1px solid var(--line); font-size: 13px;
}
.audit-row:last-child { border-bottom: none; }
.audit-method { font-weight: 600; }
.audit-time { font-size: 12px; white-space: nowrap; }
.audit-client { font-size: 12px; white-space: nowrap; }
/* ── Keyboard shortcuts overlay ───────────────────────────────────────── */
.shortcuts-modal { width: min(380px, 92vw); }
.shortcuts-list { display: flex; flex-direction: column; gap: 8px; margin: 14px 0 18px; }
.shortcut-row { display: flex; align-items: center; gap: 12px; font-size: 13.5px; }
.shortcut-row kbd {
min-width: 64px; text-align: center; padding: 3px 8px; border-radius: 6px;
background: var(--panel-2); border: 1px solid var(--line);
font-family: var(--font-mono, monospace); font-size: 12px; color: var(--text);
}
/* ── Lyrics ───────────────────────────────────────────────────────────── */
.lyrics-body { padding: 4px 2px; }
.lyrics-empty { color: var(--muted-2); font-size: 13px; padding: 8px 4px; }
.lyrics-synced { max-height: 320px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.lyrics-line { color: var(--muted-2); font-size: 14px; line-height: 1.5; transition: color .15s, transform .15s; }
.lyrics-line.active { color: var(--text); font-weight: 600; transform: translateX(2px); }
.lyrics-plain { max-height: 320px; overflow-y: auto; white-space: pre-wrap; font-family: inherit; font-size: 14px; line-height: 1.55; color: var(--text-2); margin: 0; }
.lyrics-source { font-size: 11px; margin-top: 8px; text-align: right; }
/* ── Stats ────────────────────────────────────────────────────────────── */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat-card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.stat-label { color: var(--muted-2); font-size: 12px; font-weight: 600; }
.stat-value { font-family: var(--font-head); font-size: 26px; font-weight: 700; margin-top: 6px; }
.stat-delta { font-size: 12px; margin-top: 4px; color: var(--muted-2); }
.stat-delta.up { color: var(--green-text); }
.stats-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; align-items: start; }
.split-bar { display: flex; height: 12px; border-radius: 7px; overflow: hidden; margin: 8px 0 12px; background: rgba(255,255,255,.06); }
.split-yt { background: #ff8080; }
.split-ya { background: #ffd977; }
.split-legend { display: flex; gap: 18px; font-size: 12.5px; color: var(--muted); }
.split-legend span { display: inline-flex; align-items: center; gap: 6px; }
.split-legend b { color: var(--text-2); margin-left: 2px; }
/* ── Watch Together ───────────────────────────────────────────────────── */
.watch-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; align-items: start; }
.src-yt.active { background: rgba(255, 92, 92, 0.16); border-color: rgba(255, 92, 92, 0.4); color: var(--red-text); }
.src-tw.active { background: rgba(169, 112, 255, 0.18); border-color: rgba(169, 112, 255, 0.4); color: #c3a3ff; }
.src-direct.active { background: rgba(95, 224, 148, 0.16); border-color: rgba(95, 224, 148, 0.4); color: var(--green-text); }
.src-iframe.active { background: rgba(255, 217, 119, 0.16); border-color: rgba(255, 217, 119, 0.4); color: #ffd977; }
/* The direct <video> and generic <iframe> fill the player box like the embeds. */
#watchPlayer video, #watchPlayer iframe { width: 100%; height: 100%; display: block; background: #000; }
.player-box {
position: relative; width: 100%; aspect-ratio: 16 / 9;
border-radius: 12px; overflow: hidden;
background: linear-gradient(135deg, #2a1a4a, #0d0d1f);
margin-bottom: 14px;
}
.player-box iframe, .player-box > div:first-child { position: absolute; inset: 0; width: 100%; height: 100%; }
/* The shell owns the outer spacing; the control bar overlays the video bottom
(windowed and fullscreen) so it can fade out when idle. */
.player-shell { position: relative; margin-bottom: 14px; }
.player-shell .player-box { margin-bottom: 0; }
.player-shell.youtube-native .player-overlay { bottom: 42px; }
.player-overlay {
position: absolute; left: 0; right: 0; bottom: 0; z-index: 5;
padding: 34px 14px 8px;
background: linear-gradient(to top,
rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.45) 46%, rgba(0,0,0,0) 100%);
opacity: 1; transition: opacity 0.25s ease;
}
.player-overlay .watch-controls { margin-bottom: 8px; }
.player-overlay .watch-controls:last-child { margin-bottom: 0; }
/* Lift muted/mono text for legibility over video. */
.player-overlay .muted, .player-overlay .mono { color: #e9e9f2; }
/* Idle-hidden while playing (the hook removes the class when paused). Hover /
keyboard focus (incl. an open quality/speed dropdown) reveals regardless. */
.player-shell.controls-hidden .player-overlay { opacity: 0; pointer-events: none; }
.player-shell.controls-hidden { cursor: none; }
.player-shell.controls-hidden:hover .player-overlay,
.player-shell.controls-hidden:focus-within .player-overlay {
opacity: 1; pointer-events: auto;
}
.player-shell.controls-hidden:hover,
.player-shell.controls-hidden:focus-within { cursor: auto; }
/* Fullscreen targets the shell: the player fills the screen and the overlay
floats at the bottom (controls stay usable while fullscreen). */
.player-shell:fullscreen { background: #000; padding: 0; }
.player-shell:fullscreen .player-box {
width: 100%; height: 100%; aspect-ratio: auto;
border-radius: 0; margin: 0;
}
.player-shell:fullscreen .player-overlay { padding: 46px 24px 18px; }
.player-empty {
position: absolute; inset: 0;
display: flex; align-items: center; justify-content: center;
color: var(--faint); font-size: 13.5px;
pointer-events: none;
text-align: center; padding: 0 24px;
}
.player-empty[hidden] { display: none; }
/* Muted-autoplay affordance overlaid on the player until the user unmutes. */
.unmute-btn {
position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
z-index: 6; box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}
/* Watch lobby (no room joined). */
.watch-lobby { max-width: 640px; margin: 0 auto; }
.watch-lobby .rooms-list { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.watch-lobby .room-chip { justify-content: flex-start; text-align: left; }
.room-now { font-style: italic; }
.watch-controls { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.watch-controls .ctrl-main { width: 42px; height: 42px; }
.watch-local .bar { flex: 0 0 130px; }
.watch-local[hidden] { display: none; }
.quality-select {
background: rgba(255, 255, 255, 0.05);
border: 1px solid var(--line);
color: var(--text-2);
border-radius: 8px;
padding: 6px 8px;
font: inherit;
font-size: 12.5px;
}
.player-settings { position: relative; }
.player-settings-popover {
position: absolute; right: 0; bottom: calc(100% + 10px); z-index: 20;
width: min(290px, 80vw); padding: 10px;
border: 1px solid rgba(255,255,255,0.14); border-radius: 12px;
background: rgba(14, 14, 28, 0.96);
box-shadow: 0 18px 46px rgba(0,0,0,0.5);
backdrop-filter: blur(18px);
}
.player-settings-popover section + section {
margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line);
}
.player-settings-heading {
margin: 0 2px 7px; color: var(--faint); font-size: 10px;
font-weight: 800; letter-spacing: .13em; text-transform: uppercase;
}
.player-setting {
display: grid; grid-template-columns: minmax(80px, 1fr) minmax(110px, 1.35fr);
align-items: center; gap: 10px; padding: 5px 2px;
color: var(--text-2); font-size: 12.5px;
}
.player-setting select {
min-width: 0; width: 100%; padding: 6px 8px;
border: 1px solid var(--line); border-radius: 8px;
background: #1b1b31; color: var(--text-2); font: inherit;
}
.ctrl:disabled, .btn:disabled, .icon-btn:disabled {
opacity: 0.4;
cursor: not-allowed;
}
.reactions { display: flex; gap: 8px; }
.reaction {
padding: 8px 14px; border-radius: 10px;
border: 1px solid var(--line); background: transparent;
cursor: pointer; font-size: 16px;
}
.reaction:hover { background: rgba(255, 255, 255, 0.06); }
.reaction-fly {
position: fixed; font-size: 26px; pointer-events: none;
animation: fly-up 1.6s ease-out forwards; z-index: 60;
}
@keyframes fly-up { to { transform: translateY(-120px); opacity: 0; } }
.chat-card { display: flex; flex-direction: column; }
.chat-log {
display: flex; flex-direction: column; gap: 10px;
max-height: 320px; overflow-y: auto;
margin-bottom: 12px; padding-right: 4px;
}
.chat-msg { display: flex; gap: 10px; align-items: flex-start; }
.chat-body { min-width: 0; }
.chat-name { font-weight: 700; font-size: 12.5px; color: var(--accent-2); }
.chat-time { color: var(--faint); font-size: 11px; margin-left: 6px; }
.chat-text { font-size: 13px; color: var(--text-2); margin-top: 1px; word-break: break-word; }
.chat-row { display: flex; gap: 8px; }
.chat-row input { flex: 1; }
/* ── RPC view ─────────────────────────────────────────────────────────── */
.rpc-fields { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.rpc-field { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rpc-label { min-width: 140px; flex: none; font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; color: var(--faint); }
.rpc-value {
flex: 1; font-family: var(--font-mono); font-size: 12.5px;
background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line);
border-radius: 9px; padding: 9px 12px;
overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.code-block {
font-family: var(--font-mono); font-size: 12px; line-height: 1.55;
background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line);
border-radius: 10px; padding: 14px; overflow-x: auto;
color: #c8c8d2; margin-bottom: 12px;
}
/* ── Mini player ──────────────────────────────────────────────────────── */
.miniplayer {
position: fixed; left: 256px; right: 20px; bottom: 14px;
display: flex; align-items: center; gap: 14px;
background: rgba(18, 18, 26, 0.92);
backdrop-filter: blur(12px);
border: 1px solid var(--line); border-radius: 14px;
padding: 10px 16px; z-index: 40;
}
.mini-cover { width: 38px; height: 38px; border-radius: 9px; background: linear-gradient(135deg, #2a1a4a, #0d0d1f); flex: none; }
.mini-info { min-width: 0; width: 220px; }
.mini-title { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-artist { color: var(--muted-2); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-bar { flex: 1; }
/* ── Toast ────────────────────────────────────────────────────────────── */
.toast {
position: fixed; bottom: 76px; left: 50%; transform: translateX(-50%);
background: #1d1d2a; border: 1px solid rgba(124, 92, 255, 0.35);
color: var(--text); font-size: 13px; font-weight: 600;
padding: 11px 20px; border-radius: 12px;
box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
z-index: 80;
}
/* ── Responsive ───────────────────────────────────────────────────────── */
/* Hamburger + drawer backdrop exist only at drawer widths (≤900px). */
.hamburger { display: none; }
.header-title { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.drawer-backdrop { display: none; }
@media (max-width: 1080px) {
.now-grid, .stats-grid, .watch-grid { grid-template-columns: 1fr; }
}
/* Tablet and below: the sidebar becomes a slide-in drawer. */
@media (max-width: 900px) {
.sidebar {
position: fixed; left: 0; top: 0; bottom: 0; z-index: 90;
width: min(280px, 84vw); height: 100dvh;
background: var(--bg);
transform: translateX(-100%);
transition: transform 0.2s ease;
overflow-y: auto;
}
.sidebar.open { transform: none; box-shadow: 12px 0 40px rgba(0, 0, 0, 0.5); }
.hamburger { display: flex; margin-top: 3px; }
.drawer-backdrop {
display: block; position: fixed; inset: 0; z-index: 85;
background: rgba(0, 0, 0, 0.5);
}
.main { padding: 16px 14px calc(96px + env(safe-area-inset-bottom)); }
.header { flex-wrap: wrap; gap: 8px; }
.miniplayer {
left: 12px; right: 12px;
bottom: calc(10px + env(safe-area-inset-bottom));
}
}
/* Phone density. */
@media (max-width: 560px) {
.main { padding-left: 12px; padding-right: 12px; }
.header h1 { font-size: 20px; }
.card { padding: 14px; }
.np-title { font-size: 19px; }
.search-row, .chat-row, .rooms-create, .row-gap { flex-wrap: wrap; }
.search-row input, .chat-row input { min-width: 0; flex: 1 1 160px; }
.watch-controls { flex-wrap: wrap; row-gap: 8px; }
.watch-local .bar { flex: 1 1 100px; }
.tabs { overflow-x: auto; }
.audit-row { grid-template-columns: 1fr auto; }
.audit-time { grid-column: 1 / -1; }
.rpc-field { flex-direction: column; align-items: stretch; }
.rpc-label { min-width: 0; }
.miniplayer { gap: 10px; }
.mini-info { width: auto; flex: 1; min-width: 0; }
}
/* Touch: bigger targets, and a taller invisible hit area on drag bars. */
@media (pointer: coarse) {
.icon-btn { width: 38px; height: 38px; }
.ctrl { width: 44px; height: 44px; }
.ctrl-main { width: 54px; height: 54px; }
.bar::before { content: ''; position: absolute; inset: -10px 0; }
}
/* ── React port additions ─────────────────────────────────────────────── */
/* Language switcher in the sidebar connection row. */
.lang-select {
margin-left: auto; background: transparent; color: inherit;
border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 6px;
font: inherit; font-size: 11px; padding: 2px 4px; cursor: pointer;
}
.lang-select option { color: #000; }
/* Reactions rendered inside the player box (the vanilla UI appended them
to <body> at fixed coordinates). */
.reaction-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.reaction-fly-abs { position: absolute; bottom: 50px; }
.player-box { position: relative; }
/* Drop indicator for queue drag-and-drop (item 9). */
.drop-indicator {
height: 3px; margin: 1px 0; border-radius: 2px;
background: linear-gradient(90deg, #7c5cff, #b28dff);
box-shadow: 0 0 8px rgba(124, 92, 255, 0.7);
}
/* Real image avatars from TeamSpeak (item 10). */
.avatar-img { object-fit: cover; }
/* Now Playing video (item 11). */
.np-video {
width: 100%; aspect-ratio: 16 / 9; border-radius: 14px;
overflow: hidden; background: #000;
}
.np-video-toggle { align-self: flex-start; margin-bottom: 8px; }
.np-video-toggle.on { color: #b28dff; }
/* Announce composer modal (item 14). */
.modal-backdrop {
position: fixed; inset: 0; z-index: 100; display: flex;
align-items: center; justify-content: center;
background: rgba(6, 6, 14, 0.62); backdrop-filter: blur(3px);
}
.modal {
width: min(560px, 92vw); max-height: 88vh; overflow: auto;
background: #14141f; border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 16px; padding: 18px 20px;
box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}
.modal-wide { width: min(860px, 94vw); }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.modal-head h2 { margin: 0; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.announce-toolbar { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.announce-toolbar .btn { padding: 4px 10px; font-weight: 600; min-width: 34px; }
.announce-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 720px) { .announce-grid { grid-template-columns: 1fr; } }
.announce-input {
width: 100%; resize: vertical; min-height: 220px;
font-family: inherit; font-size: 14px; line-height: 1.5;
}
.announce-preview {
border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 10px;
padding: 10px 12px; overflow: auto;
}
.announce-preview-label {
font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
color: #8a8a98; margin-bottom: 6px;
}
.ts-markup { font-size: 14px; line-height: 1.55; word-break: break-word; }
.ts-markup h3, .ts-markup h4, .ts-markup h5 { margin: 0.5em 0 0.3em; }
.ts-markup p { margin: 0.35em 0; }
.ts-markup blockquote {
border-left: 3px solid rgba(124, 92, 255, 0.6);
margin: 0.4em 0; padding-left: 10px; color: #c9c9d6;
}
.ts-markup code {
background: rgba(255, 255, 255, 0.08); padding: 1px 5px;
border-radius: 4px; font-size: 0.9em;
}
.ts-markup details { margin: 0.4em 0; }
.ts-markup summary { cursor: pointer; font-weight: 600; }
/* Watch Together room switcher (item 3). */
.pill-room { cursor: pointer; border: none; font: inherit; }
.rooms-panel {
display: flex; flex-direction: column; gap: 10px;
padding: 12px; margin: 4px 0 2px;
border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px;
background: rgba(255, 255, 255, 0.03);
}
.rooms-list { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.room-chip {
background: rgba(255, 255, 255, 0.06); border: 1px solid transparent;
border-radius: 8px; padding: 5px 10px; cursor: pointer;
color: inherit; font: inherit; font-size: 13px;
}
.room-chip.active { border-color: #7c5cff; color: #b28dff; }
.rooms-create { display: flex; gap: 8px; }
.rooms-create input { flex: 1; }
/* Watch search (item 20). */
.watch-search { position: relative; margin-bottom: 8px; }
.watch-search-results {
position: absolute; z-index: 30; left: 0; right: 0; top: 100%;
background: #14141f; border: 1px solid rgba(255, 255, 255, 0.12);
border-radius: 10px; margin-top: 4px; max-height: 320px; overflow: auto;
box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}
.watch-search-item {
display: flex; align-items: center; gap: 10px; width: 100%;
padding: 6px 10px; background: transparent; border: none; cursor: pointer;
color: inherit; text-align: left; font: inherit;
}
.watch-search-item:hover { background: rgba(255, 255, 255, 0.06); }
.watch-search-item .track-cover { width: 48px; height: 27px; flex: none; border-radius: 4px; }
.watch-search-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Emoji picker + custom emojis (item 16). */
.emoji-anchor { position: relative; display: inline-flex; }
.emoji-trigger { padding: 6px 8px; }
.emoji-picker {
position: absolute; bottom: 100%; left: 0; z-index: 40; width: 300px;
max-height: 320px; overflow-y: auto; margin-bottom: 6px; padding: 8px;
background: #14141f; border: 1px solid rgba(255, 255, 255, 0.12);
border-radius: 12px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}
.emoji-section { margin-bottom: 8px; }
.emoji-section-label {
font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
color: #8a8a98; margin: 4px 2px;
}
.emoji-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; }
.emoji-btn {
background: transparent; border: none; cursor: pointer; font-size: 20px;
line-height: 1; padding: 4px; border-radius: 6px;
}
.emoji-btn:hover { background: rgba(255, 255, 255, 0.08); }
.emoji-img { width: 20px; height: 20px; vertical-align: middle; object-fit: contain; }
.emoji-img-lg { width: 30px; height: 30px; object-fit: contain; }
.emoji-manage-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.emoji-manage-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.emoji-manage-item {
display: flex; align-items: center; gap: 6px;
background: rgba(255, 255, 255, 0.05); border-radius: 8px; padding: 6px 10px;
}