Files
Webka/frontend/assets/css/main.css
2026-09-06 16:23:09 +05:00

1707 lines
31 KiB
CSS

:root {
font-family:
-apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
color-scheme: dark;
--bg: #101217;
--surface: #181b20;
--surface-raised: #1e2229;
--text: #f1f3f1;
--muted: #a0a6af;
--line: rgba(255, 255, 255, 0.09);
--glass: rgba(42, 47, 53, 0.64);
--rim: rgba(255, 255, 255, 0.23);
--accent: #c3f66b;
--accent-ink: #17210b;
--shadow: 0 16px 44px rgba(0, 0, 0, 0.2);
font-synthesis: none;
text-rendering: optimizeLegibility;
}
:root[data-theme="light"] {
color-scheme: light;
--bg: #edf0f0;
--surface: #fff;
--surface-raised: #e6eaeb;
--text: #1d272b;
--muted: #59656e;
--line: rgba(20, 36, 46, 0.12);
--glass: rgba(255, 255, 255, 0.78);
--rim: rgba(255, 255, 255, 0.95);
--shadow: 0 12px 40px rgba(32, 51, 69, 0.08);
}
* {
box-sizing: border-box;
}
body {
margin: 0;
background: var(--bg);
color: var(--text);
font-size: 16px;
line-height: 1.5;
}
body::before {
content: "";
position: fixed;
inset: 0;
pointer-events: none;
background:
radial-gradient(
ellipse at 86% -20%,
color-mix(in srgb, var(--accent) 8%, transparent),
transparent 50%
),
radial-gradient(
ellipse at -20% 80%,
rgba(95, 127, 162, 0.07),
transparent 52%
);
z-index: -1;
}
button,
input,
select {
font: inherit;
}
button,
a,
input,
select {
-webkit-tap-highlight-color: transparent;
}
button {
cursor: pointer;
}
button:disabled {
opacity: 0.4;
cursor: not-allowed;
}
a {
color: inherit;
text-decoration: none;
}
button {
color: inherit;
}
h1,
h2,
h3,
p {
margin: 0;
}
h1 {
font-size: clamp(2rem, 3vw, 2.75rem);
font-weight: 550;
line-height: 1.15;
letter-spacing: -0.045em;
}
h2 {
font-size: 1.06rem;
font-weight: 550;
letter-spacing: -0.02em;
}
h3 {
font-size: 1rem;
font-weight: 550;
}
small {
font-size: 0.8rem;
}
svg {
flex-shrink: 0;
}
button,
a,
input,
select {
outline-offset: 5px;
}
:focus-visible {
outline: 2px solid var(--accent);
}
.muted {
color: var(--muted);
}
.eyebrow {
font-size: 0.75rem;
font-weight: 600;
letter-spacing: 0.15em;
text-transform: uppercase;
}
.mono {
font-variant-numeric: tabular-nums;
font-family: ui-monospace, SFMono-Regular, monospace;
}
.heading-dot {
color: var(--accent);
}
.sr-only {
position: absolute;
width: 1px;
height: 1px;
overflow: hidden;
clip-path: inset(50%);
white-space: nowrap;
}
.skip-link {
position: fixed;
top: -80px;
left: 20px;
z-index: 100;
background: var(--accent);
color: #17210b;
padding: 10px 20px;
border-radius: 12px;
}
.skip-link:focus {
top: 10px;
}
.glass {
isolation: isolate;
position: relative;
border: 1px solid transparent;
border-radius: 28px;
background:
linear-gradient(var(--glass), var(--glass)) padding-box,
linear-gradient(
145deg,
var(--rim),
rgba(255, 255, 255, 0.04) 55%,
rgba(255, 255, 255, 0.11)
)
border-box;
backdrop-filter: blur(30px) saturate(175%);
-webkit-backdrop-filter: blur(30px) saturate(175%);
box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.08),
inset 0 -1px 1px rgba(255, 255, 255, 0.03),
var(--shadow);
}
.glass::before {
content: "";
position: absolute;
inset: 0;
border-radius: inherit;
pointer-events: none;
z-index: -1;
background: radial-gradient(
240px circle at var(--glass-x, 15%) var(--glass-y, 0%),
rgba(255, 255, 255, 0.09),
transparent 80%
);
transition: opacity 0.35s;
}
.glass::after {
content: "";
position: absolute;
inset: 1px;
pointer-events: none;
border-radius: inherit;
border: 1px solid transparent;
background: linear-gradient(
110deg,
rgba(255, 255, 255, 0.1),
transparent 30%,
transparent 75%,
rgba(255, 255, 255, 0.04)
)
border-box;
mask:
linear-gradient(#fff 0 0) padding-box,
linear-gradient(#fff 0 0);
mask-composite: exclude;
backdrop-filter: blur(2px);
transform: scale(1.004);
}
.glass-button {
position: relative;
overflow: hidden;
display: inline-flex;
gap: 10px;
align-items: center;
justify-content: center;
border-radius: 100px;
border: 1px solid var(--line);
background: rgba(128, 136, 151, 0.075);
min-height: 44px;
padding: 10px 18px;
font-size: 0.875rem;
font-weight: 550;
white-space: nowrap;
transition:
background 0.35s cubic-bezier(0.22, 1, 0.36, 1),
transform 0.35s,
border-radius 0.35s;
}
.glass-button:hover:enabled {
background: rgba(128, 136, 151, 0.16);
transform: translateY(-1px);
}
.glass-button:active:enabled {
transform: scale(0.97);
}
.glass-button.primary {
background: var(--accent);
color: var(--accent-ink);
border-color: transparent;
box-shadow: 0 3px 18px color-mix(in srgb, var(--accent) 9%, transparent);
}
.glass-button.primary:hover:enabled {
background: color-mix(in srgb, var(--accent) 85%, white);
}
.glass-button.danger {
color: #ffa6a6;
border-color: rgba(255, 150, 150, 0.2);
background: rgba(233, 102, 102, 0.1);
}
[data-theme="light"] .glass-button.danger {
color: #a42c38;
}
.glass-button.ripple::after {
content: "";
position: absolute;
inset: 0;
border-radius: inherit;
background: currentColor;
animation: ripple 0.5s ease-out;
opacity: 0;
}
.icon-button {
padding: 10px;
width: 44px;
min-width: 44px;
}
.small-button {
padding: 7px 13px;
min-height: 36px;
font-size: 0.8rem;
}
.full-width {
width: 100%;
}
.full-width svg {
margin-left: auto;
}
.full-width {
justify-content: flex-start;
}
.status-dot {
display: inline-block;
width: 6px;
height: 6px;
border-radius: 50%;
background: #7d858e;
flex-shrink: 0;
}
.status-dot.live,
.login-intro .status-dot {
background: var(--accent);
box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 25%, transparent);
}
[data-theme="light"] .status-dot.live,
[data-theme="light"] .login-intro .status-dot {
background: #447e13;
}
.topbar {
position: sticky;
top: 0;
z-index: 30;
display: flex;
align-items: center;
justify-content: space-between;
gap: 20px;
margin: auto;
max-width: 1440px;
padding: 26px 48px 20px;
transition:
padding 0.4s cubic-bezier(0.22, 1, 0.36, 1),
background 0.4s;
}
.topbar.compact {
padding-top: 12px;
padding-bottom: 12px;
background: color-mix(in srgb, var(--bg) 80%, transparent);
backdrop-filter: blur(20px);
}
.brand {
display: flex;
align-items: center;
font-size: 1.75rem;
font-weight: 650;
letter-spacing: -0.08em;
gap: 9px;
min-width: 150px;
}
.brand-dot {
color: var(--accent);
margin-left: -8px;
}
.brand-mark {
width: 35px;
height: 35px;
border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
border-radius: 11px;
display: grid;
place-items: center;
color: var(--accent);
background: color-mix(in srgb, var(--accent) 8%, transparent);
margin-right: 3px;
}
[data-theme="light"] .brand-mark {
color: #487e17;
}
.main-nav {
display: flex;
padding: 5px;
border-radius: 100px;
gap: 3px;
}
.main-nav a {
display: flex;
align-items: center;
gap: 9px;
padding: 10px 18px;
border-radius: 100px;
font-size: 0.875rem;
color: var(--muted);
transition:
background 0.4s,
color 0.4s;
}
.main-nav a.router-link-active {
color: var(--text);
background: rgba(145, 152, 159, 0.15);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.main-nav a:hover {
color: var(--text);
}
.topbar-actions {
display: flex;
gap: 9px;
justify-content: flex-end;
min-width: 150px;
}
.language {
position: relative;
}
.language-menu {
position: absolute;
right: 0;
top: calc(100% + 10px);
padding: 7px;
min-width: 160px;
border-radius: 20px;
z-index: 50;
animation: appear 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.language-menu button {
background: transparent;
border: 0;
width: 100%;
padding: 10px 12px;
text-align: left;
border-radius: 13px;
display: flex;
justify-content: space-between;
font-size: 0.875rem;
}
.language-menu button:hover,
.language-menu button[aria-pressed="true"] {
background: rgba(128, 136, 151, 0.15);
}
.page {
max-width: 1344px;
margin: auto;
padding: 26px 48px 0;
}
.page-heading {
display: flex;
align-items: center;
justify-content: space-between;
gap: 24px;
margin-bottom: 30px;
}
.page-heading .eyebrow {
color: var(--muted);
margin-bottom: 11px;
}
.page-heading p {
margin-top: 12px;
font-size: 0.9rem;
}
.page-heading > .glass-button {
padding: 13px 22px;
}
.host-grid {
display: grid;
grid-template-columns: minmax(0, 1fr) 306px;
gap: 26px;
}
.preview {
position: relative;
aspect-ratio: 16/10;
background: #080b10;
border: 1px solid var(--line);
border-radius: 24px;
overflow: hidden;
}
.preview video,
.watch-page video {
width: 100%;
height: 100%;
object-fit: contain;
display: block;
}
.mirrored {
transform: scaleX(-1);
}
.preview-empty {
position: absolute;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
text-align: center;
color: #dce2e7;
background: radial-gradient(
ellipse at center,
rgba(85, 119, 133, 0.12),
transparent 66%
);
}
.preview-empty h2 {
font-size: 1.22rem;
margin-top: 18px;
}
.preview-empty p {
font-size: 0.875rem;
color: #858e9b;
margin: 9px 25px 22px;
max-width: 290px;
}
.camera-orbit {
width: 90px;
height: 90px;
border: 1px solid #2a343d;
border-radius: 28px;
background: #141c24;
color: #9baebb;
display: grid;
place-items: center;
box-shadow:
0 0 0 13px rgba(55, 74, 89, 0.06),
0 0 0 27px rgba(55, 74, 89, 0.035);
}
.preview-top,
.preview-bottom {
position: absolute;
left: 20px;
right: 20px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
}
.preview-top {
top: 19px;
}
.preview-bottom {
bottom: 18px;
}
.status-pill,
.private-pill {
display: inline-flex;
align-items: center;
gap: 8px;
font-size: 0.75rem;
padding: 7px 12px;
border-radius: 100px;
--glass: rgba(26, 32, 38, 0.65);
color: #e4eaed;
}
.private-pill {
color: #bac3cd;
}
.preview-bottom .glass-button {
background: rgba(26, 32, 38, 0.65);
color: #e4eaed;
}
.feed-caption {
display: flex;
justify-content: space-between;
gap: 12px;
padding: 13px 2px 19px;
font-size: 0.75rem;
color: var(--muted);
}
.feed-caption > span:first-child {
display: flex;
align-items: center;
gap: 8px;
}
.source-toolbar {
padding: 18px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 18px;
border-radius: 23px;
}
.toolbar-label {
display: flex;
flex-direction: column;
gap: 6px;
min-width: 110px;
}
.toolbar-label .eyebrow {
font-size: 0.75rem;
letter-spacing: 0.11em;
}
.toolbar-label small {
font-size: 0.75rem;
color: var(--muted);
}
.source-options {
display: flex;
gap: 5px;
flex: 1;
justify-content: flex-end;
}
.source-options button {
display: flex;
flex-direction: column;
align-items: center;
gap: 9px;
background: transparent;
border: 1px solid transparent;
border-radius: 16px;
padding: 13px 16px;
color: var(--muted);
font-size: 0.8rem;
flex: 1;
max-width: 132px;
transition:
background 0.4s,
border-color 0.4s;
}
.source-options button.selected {
background: color-mix(in srgb, var(--accent) 8%, transparent);
color: var(--accent);
border-color: color-mix(in srgb, var(--accent) 24%, transparent);
}
[data-theme="light"] .source-options button.selected {
color: #375c1c;
}
.source-options button:hover:enabled {
background: rgba(127, 145, 165, 0.13);
}
.stats-row {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
margin: 25px 0 8px;
}
.stats-row > div {
display: flex;
flex-direction: column;
gap: 5px;
padding: 0 23px;
border-right: 1px solid var(--line);
}
.stats-row > div:first-child {
padding-left: 0;
}
.stats-row > div:last-child {
border: 0;
}
.stats-row .muted {
font-size: 0.75rem;
}
.stats-row strong {
font-size: 1.55rem;
font-weight: 500;
letter-spacing: -0.03em;
}
.stats-row strong small {
color: var(--muted);
font-size: 0.85rem;
}
.stats-row select {
padding: 5px 0;
border: 0;
background: transparent;
font-size: 1.1rem;
max-width: 100%;
}
.host-aside {
display: flex;
flex-direction: column;
gap: 24px;
}
.share-panel {
padding: 23px;
border-radius: 24px;
}
.section-heading {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
margin-bottom: 12px;
}
.section-heading h2 {
display: flex;
align-items: center;
gap: 10px;
}
.section-heading > svg {
color: var(--muted);
}
.share-panel > .muted {
font-size: 0.83rem;
line-height: 1.65;
}
.qr-wrap {
width: 176px;
height: 176px;
padding: 11px;
margin: 23px auto;
background: #fff;
border-radius: 18px;
box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}
.qr-wrap img {
display: block;
width: 100%;
height: 100%;
border-radius: 4px;
}
.qr-loading {
height: 100%;
display: grid;
place-items: center;
color: #111;
}
.url-copy {
display: flex;
align-items: center;
gap: 7px;
background: rgba(0, 0, 0, 0.13);
border: 1px solid var(--line);
border-radius: 13px;
padding: 2px 4px 2px 11px;
}
.url-copy input {
padding: 0;
min-width: 0;
width: 100%;
font-size: 0.75rem;
background: transparent;
border: 0;
color: var(--text);
}
.url-copy .icon-button {
width: 34px;
min-width: 34px;
min-height: 34px;
border: 0;
padding: 7px;
}
.local-note {
display: flex;
align-items: center;
justify-content: center;
gap: 6px;
font-size: 0.75rem;
color: var(--muted);
margin-top: 13px;
}
.viewers-panel {
padding: 0 4px;
}
.count-badge {
font-size: 0.75rem;
border: 1px solid var(--line);
background: var(--surface-raised);
color: var(--muted);
padding: 1px 7px;
border-radius: 7px;
margin-left: 1px;
}
.empty-viewers {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 150px;
text-align: center;
color: var(--muted);
border-bottom: 1px solid var(--line);
margin-bottom: 14px;
}
.empty-viewers > svg {
opacity: 0.55;
margin-bottom: 12px;
}
.empty-viewers p {
font-size: 0.83rem;
color: var(--text);
margin-bottom: 5px;
}
.empty-viewers small {
font-size: 0.75rem;
}
.text-link {
display: flex;
align-items: center;
justify-content: space-between;
color: var(--muted);
font-size: 0.8rem;
padding: 5px 0;
}
.text-link:hover {
color: var(--text);
}
.viewer-list {
margin: 0 0 16px;
padding: 0;
list-style: none;
max-height: 260px;
overflow: auto;
}
.viewer-list li {
display: flex;
align-items: center;
gap: 10px;
padding: 14px 0;
border-bottom: 1px solid var(--line);
font-size: 0.875rem;
}
.viewer-list li > span:nth-child(2) {
flex: 1;
overflow-wrap: anywhere;
}
.viewer-list small {
display: block;
color: var(--muted);
font-size: 0.75rem;
}
.avatar {
display: inline-grid;
place-items: center;
flex-shrink: 0;
width: 36px;
height: 36px;
border-radius: 12px;
background: var(--surface-raised);
border: 1px solid var(--line);
color: var(--muted);
font-size: 0.875rem;
}
.page-footer {
margin-top: 32px;
border-top: 1px solid var(--line);
padding: 20px 0 25px;
display: flex;
align-items: center;
gap: 9px;
font-size: 0.75rem;
color: var(--muted);
}
.page-footer > span {
margin-left: auto;
font-size: 0.75rem;
letter-spacing: 0.1em;
}
.login-layout {
max-width: 1248px;
margin: 0 auto;
padding: 70px 48px 28px;
display: grid;
grid-template-columns: 1fr 405px;
gap: 70px;
align-items: center;
min-height: calc(100svh - 100px);
}
.login-intro .eyebrow {
display: flex;
gap: 10px;
align-items: center;
color: var(--muted);
margin-bottom: 25px;
}
.login-intro h1 {
font-size: clamp(3rem, 5.4vw, 4.5rem);
font-weight: 500;
letter-spacing: -0.06em;
line-height: 1.1;
}
.login-intro h1 > span {
color: var(--accent);
}
[data-theme="light"] .login-intro h1 > span {
color: #54861e;
}
.login-intro > p {
max-width: 360px;
color: var(--muted);
line-height: 1.8;
margin-top: 26px;
}
.login-principle {
display: flex;
gap: 12px;
align-items: center;
font-size: 0.875rem;
margin-top: 42px;
color: var(--muted);
}
.login-card {
padding: 32px;
border-radius: 32px;
}
.login-icon {
width: 54px;
height: 54px;
display: grid;
place-items: center;
border-radius: 18px;
border: 1px solid var(--rim);
background: rgba(160, 185, 177, 0.07);
margin-bottom: 25px;
}
.login-card h2 {
font-size: 1.6rem;
font-weight: 500;
}
.login-card > .muted {
font-size: 0.875rem;
margin-top: 8px;
margin-bottom: 26px;
}
.login-foot {
display: flex;
justify-content: center;
align-items: center;
gap: 7px;
font-size: 0.75rem;
color: var(--muted);
margin-top: 25px;
}
.login-bottom {
grid-column: 1/-1;
border-top: 1px solid var(--line);
display: flex;
justify-content: space-between;
padding-top: 20px;
font-size: 0.75rem;
letter-spacing: 0.12em;
color: var(--muted);
}
form {
display: flex;
flex-direction: column;
gap: 19px;
}
label {
display: flex;
flex-direction: column;
gap: 9px;
font-size: 0.83rem;
color: var(--muted);
}
input,
select {
width: 100%;
min-height: 44px;
background: color-mix(in srgb, var(--surface) 70%, transparent);
border: 1px solid var(--line);
border-radius: 12px;
padding: 11px 13px;
color: var(--text);
font-size: 0.9rem;
}
input::placeholder {
color: var(--muted);
opacity: 0.65;
}
select {
width: auto;
}
input:focus,
select:focus {
border-color: color-mix(in srgb, var(--accent) 60%, transparent);
}
.field-help {
font-size: 0.75rem;
color: var(--muted);
margin-top: -10px;
}
.error,
.success {
padding: 12px 16px;
border-radius: 13px;
font-size: 0.85rem;
margin-bottom: 18px;
}
.error {
background: rgba(242, 95, 103, 0.1);
border: 1px solid rgba(242, 95, 103, 0.2);
color: #ffacb1;
}
[data-theme="light"] .error {
color: #a01d34;
}
.success {
background: color-mix(in srgb, var(--accent) 10%, transparent);
border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
color: var(--text);
}
form .error {
margin-bottom: 0;
}
.watch-page {
height: calc(100svh - 100px);
min-height: 400px;
position: relative;
background: #070a0e;
margin: 0 22px 22px;
border-radius: 25px;
overflow: hidden;
color: #eff2f3;
}
.watch-page:fullscreen {
height: 100%;
width: 100%;
margin: 0;
border-radius: 0;
}
.watch-empty {
position: absolute;
inset: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 18px;
text-align: center;
padding: 28px 28px 110px;
background: radial-gradient(
ellipse at center,
rgba(69, 112, 118, 0.12),
transparent 60%
);
}
.watch-empty > svg {
color: #a0b2bd;
margin-bottom: 8px;
}
.watch-empty .eyebrow {
color: #a0a6af;
}
.watch-empty h1 {
font-size: clamp(1.6rem, 3vw, 2.5rem);
}
.watch-empty p {
color: #a0a6af;
max-width: 360px;
font-size: 0.9rem;
}
.watch-controls {
position: absolute;
bottom: max(28px, env(safe-area-inset-bottom));
left: 50%;
transform: translateX(-50%);
padding: 7px 8px 7px 20px;
display: flex;
align-items: center;
gap: 16px;
white-space: nowrap;
border-radius: 100px;
--glass: rgba(40, 46, 52, 0.72);
--text: #eff2f3;
--muted: #a0a6af;
--line: rgba(255, 255, 255, 0.12);
}
.watch-state,
.watch-quality {
display: flex;
align-items: center;
gap: 8px;
font-size: 0.8rem;
}
.watch-quality {
color: #a0a6af;
border-left: 1px solid var(--line);
padding-left: 16px;
}
.watch-error {
position: absolute;
top: 15px;
left: 15px;
right: 15px;
}
.watch-controls .language-menu {
top: auto;
bottom: calc(100% + 12px);
}
.settings-page {
padding-bottom: 45px;
}
.narrow {
max-width: 1000px;
}
.security-banner {
display: flex;
align-items: center;
gap: 16px;
background: color-mix(in srgb, var(--accent) 5%, var(--surface));
border: 1px solid color-mix(in srgb, var(--accent) 13%, transparent);
padding: 20px 23px;
border-radius: 20px;
margin-bottom: 26px;
}
.security-banner > svg {
color: var(--accent);
}
[data-theme="light"] .security-banner > svg {
color: #447e13;
}
.security-banner strong {
font-size: 0.9rem;
font-weight: 500;
}
.security-banner p {
color: var(--muted);
font-size: 0.8rem;
margin-top: 4px;
}
.security-banner .status-dot {
margin-left: auto;
}
.content-panel {
background: var(--surface);
border: 1px solid var(--line);
border-radius: 23px;
padding: 25px;
margin-bottom: 24px;
}
.content-panel > .muted {
font-size: 0.875rem;
margin-bottom: 20px;
}
.table-scroll {
overflow-x: auto;
}
table {
border-collapse: collapse;
text-align: left;
width: 100%;
font-size: 0.875rem;
white-space: nowrap;
}
th {
font-size: 0.75rem;
text-transform: uppercase;
letter-spacing: 0.06em;
font-weight: 500;
color: var(--muted);
padding: 20px 14px 14px;
border-bottom: 1px solid var(--line);
}
td {
padding: 18px 14px;
border-bottom: 1px solid var(--line);
}
th:first-child,
td:first-child {
padding-left: 0;
}
th:last-child,
td:last-child {
padding-right: 0;
}
tbody tr:last-child td {
border: 0;
}
.account-name {
display: flex;
align-items: center;
gap: 12px;
}
.account-name small {
color: var(--muted);
}
.role-tag {
font-size: 0.75rem;
padding: 4px 9px;
border: 1px solid var(--line);
border-radius: 7px;
background: var(--surface-raised);
}
.role-tag.admin {
color: var(--accent);
background: color-mix(in srgb, var(--accent) 7%, var(--surface));
}
[data-theme="light"] .role-tag.admin {
color: #3b6818;
}
.row-actions {
display: flex;
gap: 5px;
justify-content: flex-end;
}
.row-actions button {
border-color: transparent;
}
.session-row {
display: flex;
align-items: center;
gap: 14px;
padding: 16px 0;
border-bottom: 1px solid var(--line);
font-size: 0.875rem;
}
.session-row:last-child {
border: 0;
padding-bottom: 0;
}
.session-row > div {
flex: 1;
}
.session-row strong {
font-weight: 500;
}
.session-row small {
color: var(--muted);
font-size: 0.75rem;
}
.session-row > div > small {
display: block;
margin-top: 3px;
}
.session-row strong small {
margin-left: 8px;
border: 1px solid var(--line);
padding: 2px 6px;
border-radius: 5px;
}
.modal {
color: var(--text);
padding: 28px;
max-width: 440px;
width: calc(100% - 32px);
max-height: calc(100svh - 40px);
overflow: auto;
box-shadow: 0 20px 100px rgba(0, 0, 0, 0.4);
}
.modal[open] {
animation: appear 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.modal::backdrop {
background: rgba(0, 0, 0, 0.55);
backdrop-filter: blur(6px);
}
.modal > .section-heading {
margin-bottom: 24px;
}
.modal-actions {
display: flex;
justify-content: flex-end;
gap: 9px;
margin-top: 5px;
}
.modal p {
font-size: 0.875rem;
}
.theme-options {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 20px;
margin: 22px 0;
}
.theme-options > button {
background: transparent;
border: 1px solid var(--line);
padding: 8px;
border-radius: 18px;
text-align: left;
}
.theme-options > button.selected {
border-color: var(--accent);
}
.theme-options > button > span {
display: flex;
gap: 9px;
align-items: center;
padding: 13px 8px 7px;
font-size: 0.85rem;
}
.theme-options > button > span > svg:last-child {
margin-left: auto;
}
.theme-preview {
border-radius: 11px;
position: relative;
height: 125px;
display: grid;
grid-template-columns: 1fr 30%;
grid-template-rows: 18px 1fr;
gap: 9px;
padding: 13px;
}
.dark-preview {
background: #0d1118;
}
.light-preview {
background: #e2e8eb;
}
.theme-preview > span {
border: 1px solid rgba(145, 165, 180, 0.16);
border-radius: 7px;
background: rgba(129, 151, 179, 0.1);
}
.theme-preview > span:first-child {
grid-column: 1/-1;
border-radius: 50px;
width: 65%;
justify-self: center;
}
.theme-preview > span:nth-child(2) {
background: rgba(57, 73, 89, 0.22);
}
.setting-row {
display: flex;
justify-content: space-between;
align-items: center;
gap: 24px;
padding: 23px 0;
border-top: 1px solid var(--line);
}
.setting-row:last-child {
padding-bottom: 0;
}
.setting-row p {
color: var(--muted);
font-size: 0.83rem;
margin-top: 5px;
max-width: 430px;
}
.setting-row h3 {
font-size: 0.9rem;
}
.swatches {
display: flex;
gap: 8px;
flex-shrink: 0;
}
.swatches button {
width: 35px;
height: 35px;
border: 3px solid var(--surface);
border-radius: 50%;
display: grid;
place-items: center;
color: #152119;
}
.swatches button[aria-pressed="true"] {
outline: 1px solid var(--muted);
outline-offset: 2px;
}
.settings-footnote {
text-align: center;
color: var(--muted);
font-size: 0.8rem;
margin-top: 30px;
}
@keyframes ripple {
from {
transform: scale(0);
opacity: 0.13;
}
to {
transform: scale(2);
opacity: 0;
}
}
@keyframes appear {
from {
opacity: 0;
transform: translateY(8px) scale(0.97);
filter: blur(3px);
}
to {
opacity: 1;
transform: translateY(0) scale(1);
filter: blur(0);
}
}
@media (min-width: 1600px) {
.page {
padding-top: 38px;
}
.preview {
aspect-ratio: 16/9;
}
.login-layout {
gap: 120px;
}
}
@media (max-width: 1100px) {
.topbar {
padding-left: 28px;
padding-right: 28px;
}
.page {
padding-left: 28px;
padding-right: 28px;
}
.host-grid {
grid-template-columns: minmax(0, 1fr) 280px;
gap: 20px;
}
.source-toolbar {
display: block;
}
.toolbar-label {
flex-direction: row;
justify-content: space-between;
margin-bottom: 15px;
}
.source-options {
justify-content: stretch;
}
.source-options button {
max-width: none;
}
.main-nav a {
padding: 10px 13px;
}
.login-layout {
gap: 40px;
padding: 50px 35px 25px;
grid-template-columns: 1fr 370px;
}
.login-card {
padding: 28px;
}
.brand {
min-width: 120px;
}
.topbar-actions {
min-width: 120px;
}
.share-panel {
padding: 20px;
}
.preview {
aspect-ratio: 4/3;
}
}
@media (max-width: 800px) {
.topbar {
padding: 18px 22px;
flex-wrap: wrap;
gap: 16px;
}
.brand {
order: 0;
flex: 1;
}
.topbar-actions {
order: 1;
}
.main-nav {
order: 2;
width: 100%;
justify-content: center;
border-radius: 18px;
}
.main-nav a {
flex: 1;
justify-content: center;
font-size: 0.8rem;
border-radius: 13px;
}
.topbar.compact {
padding: 10px 22px;
}
.page {
padding: 22px 22px 0;
}
.page-heading {
margin-bottom: 24px;
}
.page-heading p {
font-size: 0.85rem;
}
.host-grid {
grid-template-columns: 1fr;
}
.preview {
aspect-ratio: 16/10;
}
.source-toolbar {
display: flex;
}
.toolbar-label {
display: flex;
flex-direction: column;
margin-bottom: 0;
}
.host-aside {
display: grid;
grid-template-columns: 1fr 1fr;
align-items: start;
}
.share-panel {
padding: 22px;
}
.viewers-panel {
padding: 12px 4px 0;
}
.page-footer {
margin-top: 25px;
}
.login-layout {
grid-template-columns: 1fr;
gap: 32px;
max-width: 500px;
padding: 30px 22px;
}
.login-intro h1 {
font-size: 3rem;
}
.login-intro > p {
margin-top: 18px;
}
.login-principle {
display: none;
}
.login-intro .eyebrow {
margin-bottom: 20px;
}
.login-card {
padding: 27px;
}
.login-bottom {
margin-top: 0;
}
.watch-page {
height: calc(100svh - 160px);
margin: 0 12px 12px;
}
.settings-page {
padding-bottom: 30px;
}
}
@media (max-width: 520px) {
.page-heading {
align-items: flex-start;
gap: 15px;
}
.page-heading > .glass-button {
font-size: 0.8rem;
padding: 11px 15px;
margin-top: 21px;
}
.page-heading > .glass-button svg {
display: none;
}
h1 {
font-size: 1.95rem;
}
.page-heading .eyebrow {
font-size: 0.75rem;
}
.host-page .page-heading p {
max-width: 210px;
}
.preview {
aspect-ratio: 1.16;
}
.preview-top {
left: 14px;
right: 14px;
top: 14px;
}
.private-pill {
font-size: 0;
padding: 9px;
}
.private-pill svg {
width: 15px;
height: 15px;
}
.preview-empty h2 {
font-size: 1.1rem;
}
.preview-empty p {
font-size: 0.8rem;
margin-bottom: 17px;
}
.camera-orbit {
width: 65px;
height: 65px;
border-radius: 22px;
}
.camera-orbit svg {
width: 29px;
}
.source-toolbar {
display: block;
padding: 15px;
}
.toolbar-label {
flex-direction: row;
margin-bottom: 12px;
gap: 10px;
}
.source-options button {
padding: 12px 5px;
font-size: 0.75rem;
gap: 7px;
}
.stats-row > div {
padding: 0 13px;
}
.stats-row strong {
font-size: 1.3rem;
}
.stats-row select {
font-size: 0.9rem;
}
.host-aside {
grid-template-columns: 1fr;
}
.share-panel {
display: grid;
grid-template-columns: 110px 1fr;
gap: 12px 20px;
}
.share-panel .section-heading {
grid-column: 1/-1;
margin-bottom: 0;
}
.share-panel > .muted {
grid-column: 1/-1;
}
.qr-wrap {
width: 110px;
height: 110px;
margin: 5px 0 0;
padding: 8px;
border-radius: 13px;
grid-row: 3/5;
}
.url-copy {
align-self: end;
}
.local-note {
align-self: start;
justify-content: flex-start;
margin-top: 0;
font-size: 0.75rem;
}
.viewers-panel {
padding: 6px 4px;
}
.empty-viewers {
min-height: 120px;
}
.page-footer {
font-size: 0.75rem;
align-items: flex-start;
}
.page-footer > span {
display: none;
}
.watch-controls {
gap: 8px;
padding: 7px 8px 7px 14px;
bottom: 20px;
max-width: calc(100% - 20px);
flex-wrap: wrap;
justify-content: center;
border-radius: 25px;
}
.watch-quality {
font-size: 0.75rem;
padding-left: 8px;
}
.watch-controls > .glass-button > span {
display: none;
}
.watch-controls .glass-button {
padding: 10px;
min-width: 42px;
}
.watch-state {
font-size: 0.75rem;
}
.security-banner {
padding: 17px;
align-items: flex-start;
}
.security-banner p {
font-size: 0.75rem;
}
.content-panel {
padding: 19px;
border-radius: 20px;
}
.setting-row {
align-items: flex-start;
flex-direction: column;
gap: 17px;
}
.theme-options {
gap: 12px;
}
.theme-preview {
height: 100px;
}
.session-row {
gap: 10px;
}
.session-row .small-button {
font-size: 0.75rem;
}
.session-row strong small {
display: inline-block;
margin-left: 0;
}
.modal {
padding: 23px;
}
}
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
animation: none !important;
transition: none !important;
scroll-behavior: auto !important;
}
.glass::before {
display: none;
}
.glass-button:hover:enabled {
transform: none;
}
}
@supports not (backdrop-filter: blur(1px)) {
.glass {
background: var(--surface-raised);
}
}
.glass-filter {
position: absolute;
pointer-events: none;
}
@supports (backdrop-filter: url("#glass-lens")) {
.glass::after {
backdrop-filter: blur(2px) url("#glass-lens");
}
}