feat: implement dark mode theme and refactor viewer layout for improved responsiveness

This commit is contained in:
zwitschi committed 2026-08-04 20:51:22 +02:00
1 parent 497f7743f2
commit d4d7806189
4 files changed
+238 -151

No files matched your search

+3
View File
@@ -20,6 +20,8 @@
- Updated chat runtime image to include ffmpeg/ffprobe for media duration probing on upload. - Updated chat runtime image to include ffmpeg/ffprobe for media duration probing on upload.
- Rebuilt viewer, admin, and admin-login pages around custom semantic class structures with accessibility-focused landmarks, tab semantics, and keyboard-focus behavior. - Rebuilt viewer, admin, and admin-login pages around custom semantic class structures with accessibility-focused landmarks, tab semantics, and keyboard-focus behavior.
- Replaced legacy and Tailwind-based stylesheet rules with a custom design-token CSS system covering responsive layouts, forms, tables, and reduced-motion behavior. - Replaced legacy and Tailwind-based stylesheet rules with a custom design-token CSS system covering responsive layouts, forms, tables, and reduced-motion behavior.
- Switched the frontend theme to dark-mode-first token defaults with a light-scheme override path for users who prefer light appearance.
- Refactored the viewer page to a single header plus unified content layout with responsive video/chat split, mobile stacking, and chat panel toggle behavior.
- Code-split `hls.js` via lazy loading in the viewer bootstrap to shrink the main frontend bundle and isolate stream playback logic into a dedicated chunk. - Code-split `hls.js` via lazy loading in the viewer bootstrap to shrink the main frontend bundle and isolate stream playback logic into a dedicated chunk.
### Fixed ### Fixed
@@ -30,6 +32,7 @@
- Removed Tailwind and Alpine runtime/build dependencies from the frontend package configuration and eliminated Tailwind directives/warnings during production build. - Removed Tailwind and Alpine runtime/build dependencies from the frontend package configuration and eliminated Tailwind directives/warnings during production build.
- Enforced 2GB upload ceiling plus server-side media file type/size validation for admin uploads. - Enforced 2GB upload ceiling plus server-side media file type/size validation for admin uploads.
- Increased nginx `client_max_body_size` to allow resumable admin upload chunks and prevent `413 Content Too Large` responses. - Increased nginx `client_max_body_size` to allow resumable admin upload chunks and prevent `413 Content Too Large` responses.
- Removed legacy now-playing viewer UI elements that conflicted with the streamlined single-header layout.
## [1.0.3] - 2026-08-03 ## [1.0.3] - 2026-08-03
+32 -50
View File
@@ -10,63 +10,45 @@
<body class="lv-body"> <body class="lv-body">
<main class="viewer-shell" aria-label="Live player and chat"> <main class="viewer-shell" aria-label="Live player and chat">
<section class="viewer-main" aria-label="Video stream panel"> <header class="viewer-header">
<header class="viewer-header"> <div class="viewer-brand-group">
<div class="viewer-brand-group"> <div class="brand-badge" aria-hidden="true">LV</div>
<div class="brand-badge" aria-hidden="true">LV</div> <div>
<div> <h1 class="viewer-title">Linear Void</h1>
<h1 class="viewer-title">Linear Void</h1> <p class="viewer-subtitle">24/7 Synchronized Channel • Live</p>
<p class="viewer-subtitle">24/7 Synchronized Channel • Live</p>
</div>
</div> </div>
<div class="now-playing-pill" aria-live="polite"> </div>
<span class="live-dot" aria-hidden="true"></span> <button id="chat-toggle" type="button" class="btn btn-secondary chat-toggle-btn" onclick="toggleChatPanel()" aria-controls="chat-panel" aria-expanded="true">Hide Chat</button>
<span id="now-playing">Loading schedule...</span> </header>
</div>
</header>
<section class="viewer-content" aria-label="Live stream and chat layout">
<section class="player-stage" aria-label="Video stage"> <section class="player-stage" aria-label="Video stage">
<video id="player" class="player" controls autoplay muted playsinline></video> <video id="player" class="player" controls autoplay muted playsinline></video>
<div id="now-playing-overlay" class="now-playing-overlay hidden" aria-live="polite">
<div class="now-playing-overlay-inner">
<span class="live-label">LIVE</span>
<span id="overlay-title" class="overlay-title"></span>
</div>
</div>
</section> </section>
<footer class="viewer-footer"> <aside id="chat-panel" class="chat-sidebar" aria-label="Chat panel">
<div>Latency: ~25s • Synced</div> <header class="chat-header">
<nav class="room-links" aria-label="Quick room switch"> <div class="chat-room-title">
<a href="#" onclick="switchRoom('main'); return false;">Main Channel</a> <span class="chat-live-marker" aria-hidden="true">●</span>
<a href="#" onclick="switchRoom('chill'); return false;">Chill Room</a> <span id="room-name">Main Channel</span>
<a href="#" onclick="switchRoom('talk'); return false;">Talk Room</a> </div>
</nav> <button type="button" class="btn btn-secondary" onclick="togglePrivateDM()">New DM</button>
</footer> </header>
<section id="messages" class="chat-messages" aria-live="polite" aria-label="Message stream"></section>
<div class="chat-input-area">
<div class="chat-input-row">
<label for="message-input" class="sr-only">Message input</label>
<input id="message-input" type="text" placeholder="Type a message..." class="input" onkeydown="if(event.key === 'Enter') sendMessage()" />
<button type="button" class="btn btn-primary" onclick="sendMessage()">Send</button>
</div>
<p class="chat-note">
Synced with video • Moderation active
</p>
</div>
</aside>
</section> </section>
<aside class="chat-sidebar" aria-label="Chat panel">
<header class="chat-header">
<div class="chat-room-title">
<span class="chat-live-marker" aria-hidden="true">●</span>
<span id="room-name">Main Channel</span>
</div>
<button type="button" class="btn btn-secondary" onclick="togglePrivateDM()">New DM</button>
</header>
<section id="messages" class="chat-messages" aria-live="polite" aria-label="Message stream"></section>
<div class="chat-input-area">
<div class="chat-input-row">
<label for="message-input" class="sr-only">Message input</label>
<input id="message-input" type="text" placeholder="Type a message..." class="input" onkeydown="if(event.key === 'Enter') sendMessage()" />
<button type="button" class="btn btn-primary" onclick="sendMessage()">Send</button>
</div>
<p class="chat-note">
Synced with video • Moderation active
</p>
</div>
</aside>
</main> </main>
<script type="module" src="/src/main.ts"></script> <script type="module" src="/src/main.ts"></script>
+15 -15
View File
@@ -1,12 +1,13 @@
import "./style.css"; import "./style.css";
type HlsClass = typeof import("hls.js")["default"]; type HlsClass = (typeof import("hls.js"))["default"];
declare global { declare global {
interface Window { interface Window {
switchRoom: (room: string) => void; switchRoom: (room: string) => void;
sendMessage: () => void; sendMessage: () => void;
togglePrivateDM: () => void; togglePrivateDM: () => void;
toggleChatPanel: () => void;
} }
} }
@@ -14,6 +15,7 @@ let hls: InstanceType<HlsClass> | null = null;
let ws: WebSocket | null = null; let ws: WebSocket | null = null;
let currentRoom = "main"; let currentRoom = "main";
let username = "viewer" + Math.floor(Math.random() * 1000); let username = "viewer" + Math.floor(Math.random() * 1000);
let chatVisible = true;
function resolveWebSocketBaseUrl() { function resolveWebSocketBaseUrl() {
const configuredUrl = import.meta.env.VITE_PUBLIC_WS_URL?.trim(); const configuredUrl = import.meta.env.VITE_PUBLIC_WS_URL?.trim();
@@ -134,25 +136,22 @@ async function initPlayerAndChat() {
connectWebSocket("main"); connectWebSocket("main");
setInterval(() => {
const titles = [
"Midnight Jazz Lounge",
"Synthwave Nights",
"Classic Cinema",
"Ambient Void",
];
const title = titles[Math.floor(Math.random() * titles.length)];
document.getElementById("now-playing")!.textContent = title;
const overlay = document.getElementById("now-playing-overlay")!;
overlay.classList.remove("hidden");
document.getElementById("overlay-title")!.textContent = title;
}, 15000);
console.log( console.log(
"Linear Void Frontend initialized - HLS Player + Chat Sidebar ready", "Linear Void Frontend initialized - HLS Player + Chat Sidebar ready",
); );
} }
function toggleChatPanel() {
const shell = document.querySelector(".viewer-shell");
const toggle = document.getElementById("chat-toggle");
if (!shell || !toggle) return;
chatVisible = !chatVisible;
shell.classList.toggle("chat-collapsed", !chatVisible);
toggle.textContent = chatVisible ? "Hide Chat" : "Show Chat";
toggle.setAttribute("aria-expanded", String(chatVisible));
}
function sendMessage() { function sendMessage() {
const input = document.getElementById("message-input") as HTMLInputElement; const input = document.getElementById("message-input") as HTMLInputElement;
const text = input.value.trim(); const text = input.value.trim();
@@ -190,6 +189,7 @@ function togglePrivateDM() {
window.switchRoom = switchRoom; window.switchRoom = switchRoom;
window.sendMessage = sendMessage; window.sendMessage = sendMessage;
window.togglePrivateDM = togglePrivateDM; window.togglePrivateDM = togglePrivateDM;
window.toggleChatPanel = toggleChatPanel;
document.addEventListener("DOMContentLoaded", () => { document.addEventListener("DOMContentLoaded", () => {
void initPlayerAndChat(); void initPlayerAndChat();
+188 -86
View File
@@ -1,29 +1,48 @@
:root { :root {
color-scheme: dark;
--font-body: --font-body:
"Atkinson Hyperlegible", "Segoe UI", "Helvetica Neue", sans-serif; "Atkinson Hyperlegible", "Segoe UI", "Helvetica Neue", sans-serif;
--font-display: "Space Grotesk", "Segoe UI", sans-serif; --font-display: "Space Grotesk", "Segoe UI", sans-serif;
--font-mono: "IBM Plex Mono", Consolas, monospace; --font-mono: "IBM Plex Mono", Consolas, monospace;
--bg-0: #f4f6ef; --bg-0: #0d1417;
--bg-1: #e3e8db; --bg-1: #172227;
--ink-0: #101b18; --bg-2: #0a1012;
--ink-1: #2d3a36; --ink-0: #edf6f3;
--ink-soft: #5a6963; --ink-1: #cadbd6;
--ink-soft: #9cb2ab;
--panel: #fffffd; --panel: #17252b;
--panel-2: #f7fbf2; --panel-2: #1f3138;
--line: #c6d1c5; --line: #30464d;
--line-soft: #3d5962;
--brand: #005f73; --brand: #2ec4b6;
--brand-strong: #00464f; --brand-strong: #20a79a;
--brand-contrast: #f9fffd; --brand-contrast: #061412;
--ok: #2f7a43; --ok: #5add94;
--warn: #b76a00; --warn: #f2b560;
--danger: #a7283f; --danger: #ff7d8f;
--danger-soft: #3a1f27;
--focus: #0a9396; --focus: #78f2e0;
--shadow-1: 0 14px 30px rgba(31, 54, 47, 0.12); --shadow-1: 0 14px 30px rgba(0, 0, 0, 0.34);
--shadow-2: 0 22px 44px rgba(20, 39, 35, 0.2); --shadow-2: 0 22px 44px rgba(0, 0, 0, 0.45);
--bg-grad-a: #132129;
--bg-grad-b: var(--bg-0);
--bg-grad-c: var(--bg-2);
--live-dot: #ff6b6b;
--overlay-bg: rgba(4, 14, 18, 0.84);
--input-bg: #131f24;
--input-border: var(--line-soft);
--placeholder: #90a8a1;
--badge-start: #35c8bb;
--badge-end: #1f8d85;
--radius-1: 0.6rem; --radius-1: 0.6rem;
--radius-2: 1rem; --radius-2: 1rem;
@@ -40,6 +59,50 @@
--fast: 160ms ease; --fast: 160ms ease;
} }
@media (prefers-color-scheme: light) {
:root {
color-scheme: light;
--bg-0: #f4f6ef;
--bg-1: #e3e8db;
--bg-2: #eff3ea;
--ink-0: #101b18;
--ink-1: #2d3a36;
--ink-soft: #5a6963;
--panel: #fffffd;
--panel-2: #f7fbf2;
--line: #c6d1c5;
--line-soft: #d8e2d8;
--brand: #005f73;
--brand-strong: #00464f;
--brand-contrast: #f9fffd;
--ok: #2f7a43;
--warn: #b76a00;
--danger: #a7283f;
--danger-soft: #fff3f6;
--focus: #0a9396;
--shadow-1: 0 14px 30px rgba(31, 54, 47, 0.12);
--shadow-2: 0 22px 44px rgba(20, 39, 35, 0.2);
--bg-grad-a: #dce9d6;
--bg-grad-b: var(--bg-0);
--bg-grad-c: #eff3ea;
--live-dot: #cb271a;
--overlay-bg: rgba(0, 16, 19, 0.84);
--input-bg: #fff;
--input-border: #c2d2c1;
--placeholder: #74817b;
--badge-start: #0a9396;
--badge-end: #005f73;
}
}
* { * {
box-sizing: border-box; box-sizing: border-box;
} }
@@ -48,6 +111,7 @@ html,
body { body {
margin: 0; margin: 0;
padding: 0; padding: 0;
height: 100%;
min-height: 100%; min-height: 100%;
} }
@@ -56,9 +120,9 @@ body {
color: var(--ink-0); color: var(--ink-0);
background: radial-gradient( background: radial-gradient(
circle at 20% 10%, circle at 20% 10%,
#dce9d6 0%, var(--bg-grad-a) 0%,
var(--bg-0) 50%, var(--bg-grad-b) 50%,
#eff3ea 100% var(--bg-grad-c) 100%
); );
line-height: 1.45; line-height: 1.45;
} }
@@ -172,13 +236,13 @@ select {
} }
.btn-danger { .btn-danger {
background: #fff3f6; background: var(--danger-soft);
color: var(--danger); color: var(--danger);
border-color: #f3c0ca; border-color: color-mix(in srgb, var(--danger) 45%, transparent);
} }
.btn-danger:hover { .btn-danger:hover {
background: #ffe8ee; background: color-mix(in srgb, var(--danger-soft) 70%, var(--danger));
} }
.btn-block { .btn-block {
@@ -198,13 +262,13 @@ select {
width: 100%; width: 100%;
border: 1px solid var(--line); border: 1px solid var(--line);
border-radius: var(--radius-1); border-radius: var(--radius-1);
background: #fff; background: var(--input-bg);
color: var(--ink-0); color: var(--ink-0);
padding: 0.65rem 0.8rem; padding: 0.65rem 0.8rem;
} }
.text-input::placeholder { .text-input::placeholder {
color: #74817b; color: var(--placeholder);
} }
.text-area { .text-area {
@@ -239,7 +303,7 @@ select {
.data-table td { .data-table td {
text-align: left; text-align: left;
padding: 0.72rem 0.65rem; padding: 0.72rem 0.65rem;
border-bottom: 1px solid #dfe7de; border-bottom: 1px solid var(--line-soft);
vertical-align: top; vertical-align: top;
} }
@@ -279,34 +343,44 @@ select {
.lv-body { .lv-body {
min-height: 100vh; min-height: 100vh;
padding: var(--space-5); width: 100vw;
height: 100vh;
padding: 0;
overflow: hidden;
} }
.viewer-shell { .viewer-shell {
width: min(1250px, 100%); width: 100vw;
margin: 0 auto; height: 100vh;
margin: 0;
display: grid; display: grid;
grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); grid-template-rows: auto minmax(0, 1fr);
background: linear-gradient(170deg, #f7fbf2 0%, #ebf2e7 40%, #f8fbf5 100%); background: linear-gradient(
170deg,
color-mix(in srgb, var(--panel-2) 72%, var(--panel)) 0%,
var(--panel) 45%,
color-mix(in srgb, var(--panel) 75%, var(--bg-1)) 100%
);
border: 1px solid var(--line); border: 1px solid var(--line);
border-radius: var(--radius-3); border-radius: 0;
box-shadow: var(--shadow-2); box-shadow: var(--shadow-2);
overflow: hidden; overflow: hidden;
} }
.viewer-main { .viewer-content {
display: grid; display: grid;
grid-template-rows: auto 1fr auto; grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
min-height: 76vh; min-height: 0;
height: 100%;
} }
.viewer-header, .viewer-header {
.viewer-footer {
padding: var(--space-5); padding: var(--space-5);
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
gap: var(--space-4); gap: var(--space-4);
border-bottom: 1px solid var(--line);
} }
.viewer-brand-group { .viewer-brand-group {
@@ -324,8 +398,12 @@ select {
font-weight: 800; font-weight: 800;
font-size: 0.95rem; font-size: 0.95rem;
letter-spacing: 0.05em; letter-spacing: 0.05em;
color: #fff; color: var(--brand-contrast);
background: linear-gradient(140deg, #0a9396 0%, #005f73 100%); background: linear-gradient(
140deg,
var(--badge-start) 0%,
var(--badge-end) 100%
);
} }
.brand-text, .brand-text,
@@ -347,29 +425,33 @@ select {
align-items: center; align-items: center;
gap: var(--space-2); gap: var(--space-2);
border-radius: 999px; border-radius: 999px;
background: #fff; background: var(--panel);
border: 1px solid #c9d6c8; border: 1px solid var(--line);
color: var(--ink-1); color: var(--ink-1);
padding: 0.35rem 0.8rem; padding: 0.35rem 0.8rem;
} }
.live-dot, .live-dot,
.chat-live-marker { .chat-live-marker {
color: #cb271a; color: var(--live-dot);
font-weight: 800; font-weight: 800;
} }
.player-stage { .player-stage {
position: relative; min-height: 0;
padding: 0 var(--space-5) var(--space-5); height: 100%;
padding: var(--space-4);
display: grid;
} }
.player { .player {
width: 100%; width: 100%;
height: 100%;
border-radius: 1.1rem; border-radius: 1.1rem;
border: 1px solid #bfd0be; border: 1px solid var(--line-soft);
background: #000; background: #000;
box-shadow: var(--shadow-1); box-shadow: var(--shadow-1);
object-fit: contain;
} }
.now-playing-overlay { .now-playing-overlay {
@@ -382,7 +464,7 @@ select {
display: flex; display: flex;
align-items: center; align-items: center;
gap: var(--space-2); gap: var(--space-2);
background: rgba(0, 16, 19, 0.84); background: var(--overlay-bg);
color: #f0fffb; color: #f0fffb;
padding: 0.44rem 0.72rem; padding: 0.44rem 0.72rem;
border-radius: 999px; border-radius: 999px;
@@ -402,23 +484,16 @@ select {
font-size: 0.86rem; font-size: 0.86rem;
} }
.room-links { .chat-toggle-btn {
display: flex; white-space: nowrap;
flex-wrap: wrap;
gap: var(--space-3);
}
.room-links a {
text-decoration: none;
font-weight: 650;
} }
.chat-sidebar { .chat-sidebar {
background: #f0f6ee; background: color-mix(in srgb, var(--panel) 82%, var(--bg-1));
border-left: 1px solid var(--line); border-left: 1px solid var(--line);
display: grid; display: grid;
grid-template-rows: auto 1fr auto; grid-template-rows: auto 1fr auto;
min-height: 76vh; min-height: 0;
} }
.chat-header, .chat-header,
@@ -430,7 +505,7 @@ select {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
border-bottom: 1px solid #d4dfd3; border-bottom: 1px solid var(--line-soft);
gap: var(--space-3); gap: var(--space-3);
} }
@@ -474,20 +549,20 @@ select {
} }
.message-other { .message-other {
background: #ffffff; background: var(--panel);
border: 1px solid #d3e0d2; border: 1px solid var(--line-soft);
} }
.message-self { .message-self {
background: #005f73; background: var(--brand);
color: #fff; color: var(--brand-contrast);
} }
.message-system { .message-system {
font-size: 0.83rem; font-size: 0.83rem;
color: #1d4441; color: var(--ink-1);
background: #d9efea; background: color-mix(in srgb, var(--brand) 22%, var(--panel-2));
border: 1px solid #b5ddd6; border: 1px solid color-mix(in srgb, var(--brand) 45%, var(--line));
border-radius: 999px; border-radius: 999px;
padding: 0.24rem 0.68rem; padding: 0.24rem 0.68rem;
animation: messageIn var(--fast); animation: messageIn var(--fast);
@@ -524,16 +599,28 @@ select {
.input { .input {
width: 100%; width: 100%;
border: 1px solid #c2d2c1; border: 1px solid var(--input-border);
border-radius: var(--radius-1); border-radius: var(--radius-1);
padding: 0.65rem 0.8rem; padding: 0.65rem 0.8rem;
background: #fff; background: var(--input-bg);
color: var(--ink-0); color: var(--ink-0);
} }
.admin-body { .admin-body {
min-height: 100vh; min-height: 100vh;
padding: var(--space-4); padding: var(--space-4);
background:
radial-gradient(
circle at 82% 12%,
rgba(20, 48, 54, 0.5) 0%,
transparent 44%
),
radial-gradient(
circle at 16% 85%,
rgba(8, 28, 34, 0.55) 0%,
transparent 40%
),
var(--bg-0);
} }
.admin-shell { .admin-shell {
@@ -544,13 +631,13 @@ select {
border-radius: var(--radius-3); border-radius: var(--radius-3);
overflow: hidden; overflow: hidden;
border: 1px solid var(--line); border: 1px solid var(--line);
background: #f7fbf3; background: color-mix(in srgb, var(--panel) 88%, var(--bg-1));
box-shadow: var(--shadow-2); box-shadow: var(--shadow-2);
min-height: calc(100vh - 2 * var(--space-4)); min-height: calc(100vh - 2 * var(--space-4));
} }
.admin-sidebar { .admin-sidebar {
background: #16423d; background: #102a2f;
color: #ecfff6; color: #ecfff6;
display: grid; display: grid;
grid-template-rows: auto auto 1fr; grid-template-rows: auto auto 1fr;
@@ -594,9 +681,9 @@ select {
} }
.tab-trigger.is-active { .tab-trigger.is-active {
background: #0a9396; background: var(--brand);
color: #fff; color: var(--brand-contrast);
border-color: #89d1c8; border-color: color-mix(in srgb, var(--brand) 55%, #fff);
} }
.admin-main { .admin-main {
@@ -604,6 +691,14 @@ select {
overflow: auto; overflow: auto;
} }
.viewer-shell.chat-collapsed .viewer-content {
grid-template-columns: 1fr;
}
.viewer-shell.chat-collapsed .chat-sidebar {
display: none;
}
.tab-panel { .tab-panel {
display: grid; display: grid;
gap: var(--space-4); gap: var(--space-4);
@@ -622,9 +717,9 @@ select {
} }
.panel-card { .panel-card {
border: 1px solid #d8e2d8; border: 1px solid var(--line-soft);
border-radius: var(--radius-2); border-radius: var(--radius-2);
background: #fff; background: var(--panel);
padding: var(--space-4); padding: var(--space-4);
box-shadow: var(--shadow-1); box-shadow: var(--shadow-1);
} }
@@ -636,10 +731,10 @@ select {
} }
.upload-dropzone { .upload-dropzone {
border: 2px dashed #97b8aa; border: 2px dashed color-mix(in srgb, var(--brand) 55%, var(--line));
border-radius: var(--radius-2); border-radius: var(--radius-2);
padding: var(--space-5); padding: var(--space-5);
background: #effaf5; background: color-mix(in srgb, var(--brand) 12%, var(--panel-2));
display: grid; display: grid;
justify-items: start; justify-items: start;
gap: var(--space-2); gap: var(--space-2);
@@ -647,7 +742,7 @@ select {
.upload-dropzone.is-dragover { .upload-dropzone.is-dragover {
border-color: var(--brand); border-color: var(--brand);
background: #e6f6ef; background: color-mix(in srgb, var(--brand) 20%, var(--panel-2));
} }
.upload-progress { .upload-progress {
@@ -668,9 +763,9 @@ select {
} }
.stat-card { .stat-card {
border: 1px solid #dce7db; border: 1px solid var(--line-soft);
border-radius: var(--radius-2); border-radius: var(--radius-2);
background: #fff; background: var(--panel);
padding: var(--space-4); padding: var(--space-4);
box-shadow: var(--shadow-1); box-shadow: var(--shadow-1);
} }
@@ -704,7 +799,7 @@ select {
} }
.service-row { .service-row {
border: 1px solid #dbe5db; border: 1px solid var(--line-soft);
border-radius: var(--radius-1); border-radius: var(--radius-1);
padding: 0.75rem; padding: 0.75rem;
display: flex; display: flex;
@@ -748,9 +843,9 @@ select {
} }
.auth-card { .auth-card {
border: 1px solid #cad8c9; border: 1px solid var(--line);
border-radius: var(--radius-3); border-radius: var(--radius-3);
background: #fff; background: var(--panel);
box-shadow: var(--shadow-2); box-shadow: var(--shadow-2);
padding: var(--space-6); padding: var(--space-6);
display: grid; display: grid;
@@ -781,11 +876,15 @@ select {
} }
@media (max-width: 1080px) { @media (max-width: 1080px) {
.viewer-shell,
.admin-shell { .admin-shell {
grid-template-columns: 1fr; grid-template-columns: 1fr;
} }
.viewer-content {
grid-template-columns: 1fr;
grid-template-rows: minmax(320px, 52vh) minmax(0, 1fr);
}
.chat-sidebar { .chat-sidebar {
border-left: 0; border-left: 0;
border-top: 1px solid var(--line); border-top: 1px solid var(--line);
@@ -821,16 +920,15 @@ select {
} }
.viewer-header, .viewer-header,
.viewer-footer,
.player-stage, .player-stage,
.chat-header, .chat-header,
.chat-input-area { .chat-input-area {
padding: var(--space-3); padding: var(--space-3);
} }
.viewer-footer { .viewer-header {
align-items: flex-start;
flex-direction: column; flex-direction: column;
align-items: start;
} }
.admin-nav { .admin-nav {
@@ -848,6 +946,10 @@ select {
grid-template-columns: 1fr; grid-template-columns: 1fr;
} }
.viewer-shell.chat-collapsed .viewer-content {
grid-template-rows: 1fr;
}
.auth-card { .auth-card {
padding: var(--space-5); padding: var(--space-5);
} }