/* 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