Files
EuerChat/ui/style.css
T

2291 lines
42 KiB
CSS

:root {
--bg-primary: #121316;
--bg-secondary: #18191d;
--bg-tertiary: #202227;
--bg-card: #272a30;
--bg-hover: #32353d;
--accent-cyan: #00d2ff;
--accent-blue: #3a86ff;
--accent-green: #00f59b;
--accent-red: #ff3366;
--accent-purple: #9d4edd;
--text-main: #f0f2f5;
--text-muted: #9aa0a6;
--text-dim: #6c727c;
--border-color: #2c2f36;
--border-highlight: #3f444e;
--shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.5);
--shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
--radius-sm: 6px;
--radius-md: 10px;
--radius-lg: 14px;
/* Chat Customization Variables */
--chat-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
--chat-font-size: 14px;
--chat-line-height: 1.5;
--chat-msg-gap: 6px;
--chat-emote-size: 26px;
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
}
body.dark-theme {
background-color: var(--bg-primary);
color: var(--text-main);
height: 100vh;
overflow: hidden;
user-select: none;
}
/* App container */
.app-container {
display: flex;
flex-direction: column;
height: 100vh;
width: 100vw;
}
/* Header */
.app-header {
height: 60px;
background-color: var(--bg-secondary);
border-bottom: 1px solid var(--border-color);
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 16px;
flex-shrink: 0;
}
.header-left, .header-right {
display: flex;
align-items: center;
gap: 12px;
}
.header-left {
flex: 1;
min-width: 0;
}
.header-brand {
display: flex;
align-items: center;
gap: 10px;
}
.header-logo {
height: 46px;
width: auto;
flex-shrink: 0;
}
.header-brand-title {
font-size: 16px;
font-weight: 800;
letter-spacing: 0.5px;
background: linear-gradient(135deg, #00d2ff, #3a7bd5);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.header-cover-box {
width: 46px;
height: 46px;
border-radius: var(--radius-sm);
overflow: hidden;
background: var(--bg-card);
border: 1px solid var(--border-color);
flex-shrink: 0;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}
.header-cover-img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}
.header-track-info {
display: flex;
flex-direction: column;
justify-content: center;
gap: 2px;
min-width: 0;
overflow: hidden;
}
.header-artist {
font-size: 16px;
font-weight: 800;
color: #ffffff;
letter-spacing: -0.2px;
line-height: 1.2;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
.header-track {
font-size: 13.5px;
font-weight: 600;
color: var(--accent-cyan);
line-height: 1.2;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.header-listeners-badge {
display: flex;
align-items: center;
gap: 8px;
background: var(--bg-tertiary);
border: 1px solid var(--border-color);
border-radius: 20px;
padding: 5px 12px;
font-size: 12px;
font-weight: 600;
color: var(--text-main);
white-space: nowrap;
}
.live-dot-pulse {
width: 8px;
height: 8px;
border-radius: 50%;
background-color: var(--accent-red);
box-shadow: 0 0 6px var(--accent-red);
animation: pulse-dot 1.8s infinite;
}
.btn-grussbox-header {
background: linear-gradient(135deg, #f72585, #7209b7);
color: #fff;
border: none;
border-radius: 20px;
padding: 6px 14px;
font-size: 12.5px;
font-weight: 700;
cursor: pointer;
display: flex;
align-items: center;
gap: 6px;
box-shadow: 0 2px 10px rgba(247, 37, 133, 0.35);
transition: all 0.2s ease;
white-space: nowrap;
}
.btn-grussbox-header:hover {
transform: translateY(-1px);
box-shadow: 0 4px 14px rgba(247, 37, 133, 0.5);
filter: brightness(1.1);
}
.btn-grussbox-header:active {
transform: translateY(0);
}
.connection-status {
display: flex;
align-items: center;
gap: 6px;
font-size: 12px;
background: var(--bg-tertiary);
padding: 4px 10px;
border-radius: 20px;
border: 1px solid var(--border-color);
}
.status-dot {
width: 8px;
height: 8px;
border-radius: 50%;
display: inline-block;
}
.status-dot.connected {
background-color: var(--accent-green);
box-shadow: 0 0 8px var(--accent-green);
}
.status-dot.connecting {
background-color: #ffb703;
box-shadow: 0 0 8px #ffb703;
}
.status-dot.disconnected {
background-color: var(--accent-red);
}
.status-ping {
font-size: 11px;
font-weight: 700;
color: var(--accent-green);
background: rgba(0, 245, 155, 0.12);
padding: 1px 7px;
border-radius: 10px;
margin-left: 2px;
border: 1px solid rgba(0, 245, 155, 0.25);
transition: all 0.2s ease;
}
.status-ping.ping-medium {
color: #facc15;
background: rgba(250, 204, 21, 0.12);
border-color: rgba(250, 204, 21, 0.25);
}
.status-ping.ping-high {
color: var(--accent-red);
background: rgba(255, 51, 102, 0.12);
border-color: rgba(255, 51, 102, 0.25);
}
.btn-connect-header {
background: var(--bg-tertiary);
color: var(--text-main);
border: 1px solid var(--border-color);
border-radius: 20px;
padding: 4px 12px;
font-size: 11.5px;
font-weight: 600;
cursor: pointer;
transition: all 0.2s ease;
display: flex;
align-items: center;
gap: 5px;
}
.btn-connect-header:hover {
background: var(--bg-hover);
border-color: var(--accent-cyan);
color: #fff;
}
.btn-connect-header.connected {
border-color: rgba(255, 51, 102, 0.4);
color: #ff88a0;
}
.btn-connect-header.connected:hover {
background: rgba(255, 51, 102, 0.15);
border-color: var(--accent-red);
color: #fff;
}
.header-center {
flex: 1;
display: flex;
justify-content: center;
}
.channel-info {
display: flex;
align-items: center;
gap: 8px;
max-width: 500px;
}
.current-chan-name {
font-weight: 700;
font-size: 15px;
color: var(--accent-cyan);
}
.current-chan-topic {
font-size: 12px;
color: var(--text-muted);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
/* Modi Switch Button */
.btn-modi-switch {
display: flex;
align-items: center;
gap: 8px;
background: var(--bg-tertiary);
border: 1px solid var(--border-color);
color: var(--text-muted);
padding: 6px 14px;
border-radius: 20px;
font-size: 12.5px;
font-weight: 600;
cursor: pointer;
transition: all 0.2s ease;
}
.btn-modi-switch:hover {
background: var(--bg-hover);
color: #fff;
border-color: var(--border-highlight);
}
.modi-dot {
width: 8px;
height: 8px;
border-radius: 50%;
background: var(--text-dim);
transition: all 0.2s;
}
.btn-modi-switch.modi-active {
background: rgba(255, 51, 102, 0.15);
border-color: var(--accent-red);
color: #fff;
box-shadow: 0 0 12px rgba(255, 51, 102, 0.3);
}
.btn-modi-switch.modi-active .modi-dot {
background: var(--accent-red);
box-shadow: 0 0 8px var(--accent-red);
}
.btn-icon {
background: var(--bg-tertiary);
color: var(--text-main);
border: 1px solid var(--border-color);
border-radius: var(--radius-sm);
padding: 6px 12px;
display: flex;
align-items: center;
gap: 6px;
font-size: 12px;
cursor: pointer;
transition: all 0.2s ease;
}
.btn-icon:hover {
background: var(--bg-hover);
border-color: var(--border-highlight);
}
/* Header Stream Pill */
.btn-stream-pill {
background: rgba(0, 210, 255, 0.1);
color: var(--accent-cyan);
border: 1px solid rgba(0, 210, 255, 0.3);
border-radius: 20px;
padding: 5px 12px;
font-size: 12px;
font-weight: 600;
cursor: pointer;
display: flex;
align-items: center;
gap: 6px;
transition: all 0.2s ease;
}
.btn-stream-pill:hover {
background: rgba(0, 210, 255, 0.2);
border-color: var(--accent-cyan);
color: #fff;
}
.stream-pulse-dot {
width: 7px;
height: 7px;
border-radius: 50%;
background-color: var(--accent-red);
box-shadow: 0 0 6px var(--accent-red);
animation: pulse-dot 1.8s infinite;
}
@keyframes pulse-dot {
0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 51, 102, 0.7); }
70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(255, 51, 102, 0); }
100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 51, 102, 0); }
}
/* Stream Bar */
.stream-bar {
background: #15171b;
border-bottom: 1px solid var(--border-color);
padding: 6px 16px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
flex-shrink: 0;
min-height: 48px;
}
.stream-left {
display: flex;
align-items: center;
gap: 12px;
min-width: 0;
flex: 1;
}
.stream-cover-container {
width: 36px;
height: 36px;
border-radius: var(--radius-sm);
overflow: hidden;
background: var(--bg-card);
border: 1px solid var(--border-color);
flex-shrink: 0;
display: flex;
align-items: center;
justify-content: center;
}
.stream-cover-thumb {
width: 100%;
height: 100%;
object-fit: cover;
}
.stream-track-details {
display: flex;
flex-direction: column;
gap: 2px;
min-width: 0;
}
.stream-track-line {
display: flex;
align-items: center;
gap: 8px;
min-width: 0;
}
.stream-badge-live {
font-size: 9.5px;
font-weight: 800;
background: var(--accent-red);
color: #fff;
padding: 1px 5px;
border-radius: 4px;
letter-spacing: 0.5px;
flex-shrink: 0;
}
.stream-now-playing {
font-size: 13px;
font-weight: 600;
color: var(--text-main);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.stream-sub-info {
display: flex;
align-items: center;
gap: 6px;
font-size: 11.5px;
color: var(--text-muted);
}
.stream-dot-sep {
color: var(--text-dim);
}
.stream-right {
display: flex;
align-items: center;
gap: 8px;
flex-shrink: 0;
}
.btn-stream-ctrl {
background: var(--bg-tertiary);
color: var(--text-main);
border: 1px solid var(--border-color);
border-radius: 20px;
padding: 4px 10px;
font-size: 12px;
font-weight: 600;
cursor: pointer;
display: flex;
align-items: center;
gap: 6px;
transition: all 0.2s ease;
}
.btn-stream-ctrl:hover {
background: var(--bg-hover);
border-color: var(--border-highlight);
color: #fff;
}
.btn-stream-ctrl.is-muted {
background: rgba(255, 51, 102, 0.12);
border-color: rgba(255, 51, 102, 0.3);
color: #ff7597;
}
.btn-stream-ctrl.is-muted:hover {
background: rgba(255, 51, 102, 0.2);
border-color: var(--accent-red);
color: #fff;
}
.stream-vol-container {
display: flex;
align-items: center;
gap: 6px;
background: var(--bg-tertiary);
border: 1px solid var(--border-color);
padding: 3px 8px;
border-radius: 20px;
}
.stream-vol-icon {
font-size: 12px;
}
.stream-volume-slider {
width: 65px;
height: 4px;
appearance: none;
background: var(--border-highlight);
border-radius: 2px;
outline: none;
cursor: pointer;
}
.stream-volume-slider::-webkit-slider-thumb {
appearance: none;
width: 12px;
height: 12px;
border-radius: 50%;
background: var(--accent-cyan);
cursor: pointer;
}
.btn-video-toggle {
background: rgba(58, 134, 255, 0.15);
color: var(--accent-blue);
border-color: rgba(58, 134, 255, 0.35);
}
.btn-video-toggle:hover {
background: rgba(58, 134, 255, 0.3);
color: #fff;
}
.btn-video-toggle.active {
background: var(--accent-blue);
color: #fff;
border-color: var(--accent-blue);
}
.btn-stream-ctrl.btn-icon-only {
padding: 4px 8px;
border-radius: 50%;
}
/* Stream Video Panel (Collapsible) */
.stream-video-panel {
background: #090a0c;
border-bottom: 1px solid var(--border-color);
position: relative;
display: flex;
justify-content: center;
align-items: center;
max-height: 42vh;
overflow: hidden;
transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.stream-video-panel.hidden {
display: none !important;
}
.video-container {
position: relative;
width: 100%;
height: 280px;
max-height: 42vh;
background: #000;
display: flex;
justify-content: center;
align-items: center;
}
#streamVideo {
width: 100%;
height: 100%;
object-fit: contain;
}
.video-top-bar {
position: absolute;
top: 10px;
left: 12px;
right: 12px;
display: flex;
justify-content: space-between;
align-items: center;
pointer-events: none;
}
.video-badges {
display: flex;
align-items: center;
gap: 8px;
pointer-events: auto;
}
.video-badge-live {
background: rgba(255, 51, 102, 0.85);
color: #fff;
font-size: 11px;
font-weight: 700;
padding: 3px 8px;
border-radius: 12px;
backdrop-filter: blur(4px);
}
.video-badge-now {
background: rgba(0, 0, 0, 0.7);
color: #e0e0e0;
font-size: 11px;
font-weight: 500;
padding: 3px 10px;
border-radius: 12px;
backdrop-filter: blur(4px);
max-width: 320px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.btn-video-close {
pointer-events: auto;
background: rgba(0, 0, 0, 0.65);
color: #fff;
border: 1px solid rgba(255, 255, 255, 0.2);
padding: 4px 10px;
border-radius: 14px;
font-size: 11px;
font-weight: 600;
cursor: pointer;
backdrop-filter: blur(4px);
transition: all 0.2s ease;
}
.btn-video-close:hover {
background: rgba(255, 51, 102, 0.8);
border-color: var(--accent-red);
}
/* Main Layout */
.main-layout {
display: flex;
flex: 1;
overflow: hidden;
}
/* Chat Area (Expanded full width) */
.chat-area {
flex: 1;
display: flex;
flex-direction: column;
background: var(--bg-primary);
overflow: hidden;
position: relative;
}
.messages-container {
flex: 1;
overflow-y: auto;
padding: 16px 20px;
display: flex;
flex-direction: column;
gap: var(--chat-msg-gap);
font-family: var(--chat-font-family);
font-size: var(--chat-font-size);
user-select: text;
}
.chat-msg {
display: flex;
align-items: baseline;
gap: 10px;
line-height: var(--chat-line-height);
font-size: var(--chat-font-size);
word-break: break-word;
}
.msg-time {
font-size: calc(var(--chat-font-size) - 2.5px);
color: var(--text-dim);
flex-shrink: 0;
font-variant-numeric: tabular-nums;
}
.msg-nick {
font-weight: 600;
flex-shrink: 0;
cursor: pointer;
}
.msg-text {
color: var(--text-main);
flex: 1;
}
.msg-action-star {
font-weight: 700;
color: var(--accent-purple);
margin-right: 4px;
}
.chat-msg.action-msg {
font-style: italic;
color: #d1b3ff;
}
.chat-msg.system-msg {
color: var(--text-dim);
font-style: italic;
font-size: calc(var(--chat-font-size) - 1.5px);
}
.chat-msg.notice-msg {
color: #ffb703;
background: rgba(255, 183, 3, 0.05);
padding: 4px 8px;
border-radius: 4px;
}
.chat-msg.highlight-msg {
background: rgba(0, 210, 255, 0.08);
padding: 4px 8px;
border-radius: 4px;
border-left: 3px solid var(--accent-cyan);
}
/* Emote image inside message */
.chat-emote {
height: var(--chat-emote-size);
max-width: 48px;
vertical-align: middle;
margin: -3px 2px 0;
display: inline-block;
image-rendering: auto;
transition: transform 0.15s ease;
}
.chat-emote:hover {
transform: scale(1.4);
}
/* Chat Input Bar */
.chat-input-wrapper {
padding: 10px 16px 6px;
background: var(--bg-secondary);
border-top: 1px solid var(--border-color);
}
.chat-input-box {
display: flex;
align-items: center;
background: var(--bg-tertiary);
border: 1px solid var(--border-color);
border-radius: var(--radius-md);
padding: 4px 8px 4px 14px;
transition: border-color 0.2s;
}
.chat-input-box:focus-within {
border-color: var(--accent-cyan);
box-shadow: 0 0 0 2px rgba(0, 210, 255, 0.15);
}
.chat-input-box input {
flex: 1;
background: transparent;
border: none;
color: #fff;
font-size: 14px;
outline: none;
}
.chat-input-box input::placeholder {
color: var(--text-dim);
}
.input-actions {
display: flex;
align-items: center;
gap: 6px;
}
.btn-emote {
background: transparent;
border: none;
font-size: 18px;
cursor: pointer;
padding: 6px;
border-radius: var(--radius-sm);
transition: background 0.15s;
}
.btn-emote:hover {
background: var(--bg-hover);
}
.btn-send {
background: var(--accent-blue);
color: #fff;
border: none;
font-weight: 600;
font-size: 12.5px;
padding: 6px 14px;
border-radius: var(--radius-sm);
cursor: pointer;
transition: background 0.15s;
}
.btn-send:hover {
background: #2563eb;
}
/* Bottom Bar (Channels, Chat status & User status directly under chat input) */
.bottom-bar {
display: flex;
align-items: center;
justify-content: space-between;
padding: 5px 12px;
background: #111317;
border-top: 1px solid var(--border-color);
gap: 10px;
flex-shrink: 0;
min-height: 40px;
}
.bottom-chat-left {
display: flex;
align-items: center;
gap: 6px;
flex-shrink: 0;
min-width: 0;
}
.connection-status-compact {
display: flex;
align-items: center;
gap: 6px;
padding: 3px 6px;
background: rgba(255, 255, 255, 0.03);
border: 1px solid rgba(255, 255, 255, 0.06);
border-radius: var(--radius-sm);
cursor: default;
}
.status-ping {
font-size: 11px;
color: var(--accent-green);
font-family: monospace;
font-weight: 700;
letter-spacing: 0.2px;
}
.status-ping.ping-medium {
color: #fbbf24;
}
.status-ping.ping-high {
color: var(--accent-red);
}
.btn-connect-header {
background: rgba(255, 255, 255, 0.05);
border: 1px solid var(--border-color);
color: var(--text-secondary);
padding: 3px 8px;
font-size: 11.5px;
font-weight: 600;
border-radius: var(--radius-sm);
cursor: pointer;
transition: all 0.15s ease;
white-space: nowrap;
}
.btn-connect-header:hover {
background: var(--bg-hover);
color: #fff;
border-color: var(--border-highlight);
}
.btn-connect-header.connected {
color: #fca5a5;
border-color: rgba(239, 68, 68, 0.35);
background: rgba(239, 68, 68, 0.1);
}
.btn-connect-header.connected:hover {
background: rgba(239, 68, 68, 0.25);
color: #fff;
border-color: #ef4444;
}
.channel-tabs-container {
display: flex;
align-items: center;
gap: 6px;
overflow-x: auto;
flex: 1;
min-width: 0;
}
.channel-tabs {
display: flex;
align-items: center;
gap: 4px;
}
.channel-tab {
display: flex;
align-items: center;
gap: 6px;
background: var(--bg-tertiary);
border: 1px solid var(--border-color);
padding: 4px 10px;
border-radius: var(--radius-sm);
color: var(--text-muted);
font-size: 12.5px;
cursor: pointer;
transition: all 0.15s ease;
white-space: nowrap;
user-select: none;
}
.channel-tab:hover {
background: var(--bg-hover);
color: #fff;
}
.channel-tab.active {
background: var(--bg-card);
color: #fff;
border-color: var(--accent-blue);
font-weight: 600;
}
.channel-tab.dragging {
opacity: 0.8;
border-color: var(--accent-cyan);
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
transition: none;
cursor: grabbing;
}
body.tab-dragging,
body.tab-dragging * {
cursor: grabbing !important;
user-select: none;
}
.channel-tab.has-unread {
color: #ffffff;
border-color: rgba(0, 210, 255, 0.75);
animation: tabUnreadPulse 1.8s infinite ease-in-out;
}
.channel-tab.is-pm.has-unread {
color: #ffffff;
border-color: rgba(247, 37, 133, 0.85);
animation: pmUnreadPulse 1.8s infinite ease-in-out;
}
@keyframes tabUnreadPulse {
0% {
box-shadow: 0 0 0 0 rgba(0, 210, 255, 0.6);
border-color: rgba(0, 210, 255, 0.5);
}
50% {
box-shadow: 0 0 9px 2px rgba(0, 210, 255, 0.4);
border-color: rgba(0, 210, 255, 1);
}
100% {
box-shadow: 0 0 0 0 rgba(0, 210, 255, 0);
border-color: rgba(0, 210, 255, 0.5);
}
}
@keyframes pmUnreadPulse {
0% {
box-shadow: 0 0 0 0 rgba(247, 37, 133, 0.7);
border-color: rgba(247, 37, 133, 0.6);
}
50% {
box-shadow: 0 0 11px 2px rgba(247, 37, 133, 0.5);
border-color: rgba(247, 37, 133, 1);
}
100% {
box-shadow: 0 0 0 0 rgba(247, 37, 133, 0);
border-color: rgba(247, 37, 133, 0.6);
}
}
.btn-tab-close {
background: transparent;
border: none;
color: var(--text-dim);
font-size: 13px;
line-height: 1;
padding: 0 3px;
margin-left: 4px;
cursor: pointer;
border-radius: 3px;
opacity: 0.5;
transition: opacity 0.15s, color 0.15s, background-color 0.15s;
}
.channel-tab:hover .btn-tab-close {
opacity: 0.9;
}
.btn-tab-close:hover {
opacity: 1;
color: #fff;
background-color: var(--accent-red);
}
.chan-prefix {
color: var(--accent-blue);
font-weight: 700;
}
.btn-tab-add {
background: var(--bg-tertiary);
border: 1px solid var(--border-color);
color: var(--text-dim);
border-radius: var(--radius-sm);
width: 26px;
height: 26px;
font-size: 16px;
line-height: 1;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: all 0.15s;
}
.btn-tab-add:hover {
background: var(--bg-hover);
color: #fff;
}
.unread-badge {
background: var(--accent-red);
color: #fff;
font-size: 10px;
font-weight: 700;
padding: 1px 5px;
border-radius: 10px;
}
.bottom-user-status {
display: flex;
align-items: center;
gap: 8px;
}
.bottom-user-avatar {
width: 26px;
height: 26px;
border-radius: 50%;
background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
display: flex;
align-items: center;
justify-content: center;
font-weight: 700;
font-size: 12px;
color: #fff;
}
.bottom-user-info {
display: flex;
align-items: baseline;
gap: 6px;
}
.bottom-user-nick {
font-size: 12.5px;
font-weight: 600;
color: #fff;
}
.bottom-user-host {
font-size: 11px;
color: var(--text-dim);
}
/* Draggable Sidebar Resizer */
.sidebar-resizer {
width: 5px;
background: var(--border-color);
cursor: col-resize;
flex-shrink: 0;
transition: background 0.15s, box-shadow 0.15s;
position: relative;
z-index: 10;
}
.sidebar-resizer:hover,
body.resizing .sidebar-resizer {
background: var(--accent-cyan);
box-shadow: 0 0 8px rgba(0, 210, 255, 0.6);
}
body.resizing {
cursor: col-resize !important;
user-select: none !important;
}
body.resizing * {
user-select: none !important;
}
/* Right Sidebar: Users & Video Player */
.sidebar-users {
width: 240px;
min-width: 160px;
max-width: calc(100vw - 260px);
background: var(--bg-secondary);
border-left: 1px solid var(--border-color);
display: flex;
flex-direction: column;
flex-shrink: 0;
}
.sidebar-section-title {
padding: 12px 14px 6px;
font-size: 11px;
font-weight: 700;
color: var(--text-dim);
display: flex;
justify-content: space-between;
align-items: center;
letter-spacing: 0.5px;
}
.user-count {
font-size: 10px;
background: var(--bg-tertiary);
padding: 1px 6px;
border-radius: 10px;
}
.user-list {
flex: 1;
overflow-y: auto;
padding: 6px 8px;
}
.user-item {
display: flex;
align-items: center;
gap: 8px;
padding: 5px 8px;
border-radius: var(--radius-sm);
font-size: 13px;
color: var(--text-muted);
cursor: pointer;
transition: background 0.15s, color 0.15s;
}
.user-item:hover {
background: var(--bg-tertiary);
color: #fff;
}
.user-prefix {
font-weight: 700;
width: 14px;
text-align: center;
}
.user-prefix.op {
color: var(--accent-red);
}
.user-prefix.voice {
color: var(--accent-green);
}
/* Sidebar Media Area: Listener Bar & Video Player */
.sidebar-media-area {
display: flex;
flex-direction: column;
flex-shrink: 0;
border-top: 1px solid var(--border-color);
background: #000;
}
/* Sidebar Track Header: Interpret / Titel DIREKT ÜBER DEM PLAYER (ohne Cover) */
.sidebar-track-header {
display: flex;
align-items: center;
justify-content: center;
text-align: center;
padding: 8px 12px;
background: #15181d;
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
min-width: 0;
overflow: hidden;
user-select: none;
}
.sidebar-cover-box {
width: 44px;
height: 44px;
border-radius: var(--radius-sm);
overflow: hidden;
background: var(--bg-card);
border: 1px solid var(--border-color);
flex-shrink: 0;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
.sidebar-cover-img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}
.sidebar-track-info {
display: flex;
flex-direction: column;
justify-content: center;
gap: 2px;
min-width: 0;
flex: 1;
overflow: hidden;
}
.sidebar-artist {
font-size: 15px;
font-weight: 800;
color: #ffffff;
letter-spacing: -0.2px;
line-height: 1.2;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
transition: font-size 0.08s ease;
}
.sidebar-track {
font-size: 13px;
font-weight: 600;
color: var(--accent-cyan);
line-height: 1.2;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
transition: font-size 0.08s ease;
}
.sidebar-listeners-display {
display: inline-flex;
align-items: center;
gap: 4.5px;
color: #eb4848;
white-space: nowrap;
user-select: none;
}
.twitch-viewer-icon {
width: 16px;
height: 16px;
color: #eb4848;
display: block;
flex-shrink: 0;
}
.sidebar-listeners-display .stat-val {
font-size: 13.5px;
font-weight: 700;
color: #eb4848;
letter-spacing: 0.2px;
line-height: 1;
}
.btn-grussbox-compact {
background: linear-gradient(135deg, #f72585, #7209b7);
color: #fff;
border: none;
border-radius: 6px;
padding: 4px 10px;
font-size: 11.5px;
font-weight: 700;
cursor: pointer;
display: flex;
align-items: center;
gap: 4px;
box-shadow: 0 2px 8px rgba(247, 37, 133, 0.35);
transition: all 0.2s ease;
white-space: nowrap;
}
.btn-grussbox-compact:hover {
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(247, 37, 133, 0.5);
filter: brightness(1.1);
}
/* Video Player in Right Sidebar (Compact & 16:9 Responsive) */
.sidebar-video-box {
background: #000;
display: flex;
flex-direction: column;
flex-shrink: 0;
overflow: hidden;
}
.sidebar-video-wrapper {
position: relative;
width: 100%;
aspect-ratio: 16 / 9;
background: #050608;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
}
.sidebar-video-wrapper video {
width: 100%;
height: 100%;
object-fit: contain;
display: block;
background: #000;
}
/* User Context Menu Popover */
.user-context-menu {
position: fixed;
background: #191b20;
border: 1px solid var(--border-highlight);
border-radius: var(--radius-sm);
box-shadow: 0 12px 32px rgba(0, 0, 0, 0.7);
padding: 4px;
z-index: 99999;
min-width: 195px;
backdrop-filter: blur(12px);
animation: ctxFadeIn 0.12s ease-out;
}
@keyframes ctxFadeIn {
from { opacity: 0; transform: scale(0.96); }
to { opacity: 1; transform: scale(1); }
}
.ctx-header {
padding: 6px 10px 6px;
font-size: 12.5px;
font-weight: 700;
color: #ffffff;
border-bottom: 1px solid var(--border-color);
display: flex;
align-items: center;
gap: 6px;
background: rgba(255, 255, 255, 0.02);
border-radius: 4px 4px 0 0;
}
.ctx-prefix {
color: var(--accent-cyan);
font-weight: 800;
}
.ctx-list {
display: flex;
flex-direction: column;
gap: 1px;
padding-top: 3px;
}
.ctx-item {
display: flex;
align-items: center;
gap: 8px;
padding: 6px 10px;
border: none;
background: transparent;
color: var(--text-main);
font-size: 12px;
font-weight: 500;
border-radius: 4px;
cursor: pointer;
text-align: left;
width: 100%;
transition: background 0.15s, color 0.15s;
}
.ctx-item:hover {
background: var(--bg-hover);
color: #ffffff;
}
.ctx-item.ctx-danger:hover {
background: rgba(255, 51, 102, 0.2);
color: #ff5577;
}
.ctx-icon {
font-size: 13px;
width: 16px;
text-align: center;
}
.ctx-divider {
height: 1px;
background: var(--border-color);
margin: 4px 0;
}
.ctx-subhead {
padding: 4px 10px 2px;
font-size: 9.5px;
font-weight: 800;
color: var(--text-dim);
letter-spacing: 0.6px;
text-transform: uppercase;
}
.sidebar-player-controls {
display: flex;
align-items: center;
justify-content: space-between;
padding: 4px 6px;
background: #101216;
border-top: 1px solid rgba(255, 255, 255, 0.05);
gap: 5px;
min-height: 34px;
}
.player-ctrls-left,
.player-ctrls-center,
.player-ctrls-right {
display: flex;
align-items: center;
gap: 5px;
flex-shrink: 0;
}
.player-ctrls-center {
flex: 1;
justify-content: center;
min-width: 0;
}
.btn-video-mute {
background: var(--bg-card);
border: 1px solid var(--border-color);
color: var(--text-main);
border-radius: 4px;
padding: 2px 6px;
font-size: 12px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.15s;
}
.btn-video-mute:hover {
background: var(--bg-hover);
border-color: var(--accent-cyan);
}
.btn-video-mute.is-muted {
background: rgba(255, 51, 102, 0.15);
border-color: rgba(255, 51, 102, 0.4);
}
.mini-volume-slider {
width: 48px;
height: 4px;
appearance: none;
background: var(--border-highlight);
border-radius: 2px;
outline: none;
cursor: pointer;
}
.mini-volume-slider::-webkit-slider-thumb {
appearance: none;
width: 10px;
height: 10px;
border-radius: 50%;
background: var(--accent-cyan);
cursor: pointer;
}
.video-quality-select {
background: var(--bg-card);
border: 1px solid var(--border-color);
color: var(--text-main);
font-size: 11px;
font-weight: 700;
padding: 2px 4px;
border-radius: 4px;
outline: none;
cursor: pointer;
}
.video-quality-select:focus {
border-color: var(--accent-cyan);
}
.btn-video-resync {
background: var(--bg-card);
border: 1px solid var(--border-color);
color: var(--text-main);
border-radius: 4px;
padding: 2px 6px;
font-size: 11px;
cursor: pointer;
transition: all 0.15s;
}
.btn-video-resync:hover {
background: var(--bg-hover);
border-color: var(--accent-cyan);
}
/* Sidebar Modi Panel (Rechts unten unter Nick-Liste) */
.sidebar-modi-panel {
padding: 10px;
border-top: 1px solid var(--border-color);
background: var(--bg-tertiary);
display: flex;
flex-direction: column;
gap: 6px;
flex-shrink: 0;
}
.modi-panel-title {
font-size: 10px;
font-weight: 700;
color: var(--text-dim);
letter-spacing: 0.5px;
text-align: center;
}
.btn-modi-switch.full-width {
width: 100%;
justify-content: center;
padding: 8px 10px;
font-size: 12px;
}
/* Emote Picker Popover */
.emote-picker {
position: absolute;
bottom: 84px;
right: 220px;
width: 340px;
height: 380px;
background: var(--bg-secondary);
border: 1px solid var(--border-highlight);
border-radius: var(--radius-md);
box-shadow: var(--shadow-lg);
display: flex;
flex-direction: column;
z-index: 100;
overflow: hidden;
}
.emote-picker-header {
padding: 10px;
display: flex;
gap: 8px;
border-bottom: 1px solid var(--border-color);
}
.emote-picker-header input {
flex: 1;
background: var(--bg-tertiary);
border: 1px solid var(--border-color);
border-radius: var(--radius-sm);
color: #fff;
padding: 6px 10px;
font-size: 12.5px;
outline: none;
}
.btn-close-mini {
background: transparent;
border: none;
color: var(--text-dim);
font-size: 14px;
cursor: pointer;
padding: 0 4px;
}
.emote-picker-tabs {
display: flex;
padding: 6px 10px;
gap: 6px;
background: var(--bg-tertiary);
}
.emote-tab {
background: transparent;
border: none;
color: var(--text-dim);
font-size: 11.5px;
padding: 4px 8px;
border-radius: var(--radius-sm);
cursor: pointer;
}
.emote-tab.active {
background: var(--bg-card);
color: #fff;
font-weight: 600;
}
.emote-grid {
flex: 1;
overflow-y: auto;
padding: 10px;
display: grid;
grid-template-columns: repeat(auto-fill, minmax(42px, 1fr));
gap: 8px;
align-content: start;
}
.emote-item {
display: flex;
align-items: center;
justify-content: center;
padding: 4px;
border-radius: var(--radius-sm);
cursor: pointer;
transition: all 0.15s;
background: var(--bg-tertiary);
}
.emote-item:hover {
background: var(--bg-hover);
transform: scale(1.15);
}
.emote-item:active {
transform: scale(0.92);
background: var(--accent-blue);
}
.emote-item img {
max-width: 32px;
max-height: 32px;
object-fit: contain;
}
/* Unified Settings Modal */
.modal-overlay {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.75);
backdrop-filter: blur(4px);
display: flex;
align-items: center;
justify-content: center;
z-index: 1000;
}
.modal-card {
background: var(--bg-secondary);
border: 1px solid var(--border-highlight);
border-radius: var(--radius-lg);
box-shadow: var(--shadow-lg);
overflow: hidden;
animation: modalIn 0.2s ease-out;
}
.modal-card-wide {
max-width: 740px;
width: 95%;
}
@keyframes modalIn {
from { opacity: 0; transform: scale(0.96) translateY(-10px); }
to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-header {
padding: 16px 20px;
border-bottom: 1px solid var(--border-color);
display: flex;
justify-content: space-between;
align-items: center;
}
.modal-header h2 {
font-size: 16px;
font-weight: 700;
color: #fff;
}
.modal-close {
background: transparent;
border: none;
color: var(--text-dim);
font-size: 16px;
cursor: pointer;
}
.modal-tabs {
display: flex;
border-bottom: 1px solid var(--border-color);
background: var(--bg-tertiary);
}
.tab-btn {
flex: 1;
padding: 12px;
background: transparent;
border: none;
border-bottom: 2px solid transparent;
color: var(--text-muted);
font-weight: 600;
font-size: 13px;
cursor: pointer;
transition: all 0.2s;
}
.tab-btn.active {
color: var(--accent-cyan);
border-bottom-color: var(--accent-cyan);
background: var(--bg-secondary);
}
.tab-btn.hidden {
display: none !important;
}
.settings-body {
padding: 20px;
max-height: 75vh;
overflow-y: auto;
display: flex;
flex-direction: column;
gap: 20px;
}
.settings-section-pane {
display: flex;
flex-direction: column;
gap: 16px;
}
.settings-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 24px;
}
@media (max-width: 640px) {
.settings-grid {
grid-template-columns: 1fr;
}
}
.settings-section-title {
font-size: 13px;
font-weight: 700;
color: var(--accent-cyan);
text-transform: uppercase;
letter-spacing: 0.5px;
margin-bottom: 4px;
border-bottom: 1px solid var(--border-color);
padding-bottom: 4px;
}
.section-desc {
font-size: 12.5px;
color: var(--text-muted);
line-height: 1.5;
}
.settings-col {
display: flex;
flex-direction: column;
gap: 14px;
}
.form-group {
display: flex;
flex-direction: column;
gap: 6px;
}
.form-group.flex-1 { flex: 1; }
.form-group.flex-2 { flex: 2; }
.form-row {
display: flex;
gap: 12px;
}
.form-group label {
font-size: 12px;
font-weight: 600;
color: var(--text-muted);
}
.form-group input {
background: var(--bg-tertiary);
border: 1px solid var(--border-color);
border-radius: var(--radius-sm);
padding: 9px 12px;
color: #fff;
font-size: 13.5px;
outline: none;
transition: border-color 0.2s;
}
.form-group input:focus {
border-color: var(--accent-cyan);
}
.form-select {
background: var(--bg-tertiary);
border: 1px solid var(--border-color);
border-radius: var(--radius-sm);
padding: 8px 10px;
color: #fff;
font-size: 13px;
outline: none;
cursor: pointer;
transition: border-color 0.2s;
}
.form-select:focus {
border-color: var(--accent-cyan);
}
.form-select option {
background: var(--bg-secondary);
color: #fff;
}
.label-with-value {
display: flex;
justify-content: space-between;
align-items: center;
}
.range-val-badge {
font-size: 11.5px;
background: var(--bg-card);
padding: 2px 8px;
border-radius: 10px;
color: var(--accent-cyan);
font-weight: 700;
}
.form-range {
accent-color: var(--accent-cyan);
cursor: pointer;
height: 6px;
background: var(--bg-tertiary);
border-radius: 3px;
outline: none;
}
.settings-checkboxes {
display: flex;
flex-direction: column;
gap: 10px;
margin-top: 4px;
}
.form-checkbox {
display: flex;
align-items: center;
gap: 8px;
font-size: 12.5px;
color: var(--text-muted);
cursor: pointer;
}
.form-checkbox input {
accent-color: var(--accent-cyan);
width: 16px;
height: 16px;
}
.field-hint {
font-size: 11px;
color: var(--text-dim);
}
/* Server Selector */
.server-type-selector {
display: flex;
background: var(--bg-tertiary);
border-radius: var(--radius-sm);
padding: 3px;
gap: 4px;
margin-bottom: 8px;
}
.server-type-btn {
flex: 1;
background: transparent;
border: none;
color: var(--text-muted);
padding: 8px;
border-radius: var(--radius-sm);
font-size: 12.5px;
font-weight: 600;
cursor: pointer;
transition: all 0.2s;
}
.server-type-btn.active {
background: var(--bg-card);
color: var(--accent-cyan);
box-shadow: var(--shadow-sm);
}
.form-sub-section {
display: flex;
flex-direction: column;
gap: 14px;
}
.server-connect-action {
margin-top: 10px;
display: flex;
gap: 10px;
align-items: center;
flex-wrap: wrap;
}
.btn-success {
background: linear-gradient(135deg, #059669, #10b981);
color: #fff;
border: none;
font-weight: 700;
font-size: 13.5px;
padding: 9px 18px;
border-radius: var(--radius-sm);
cursor: pointer;
box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
transition: opacity 0.2s, transform 0.1s;
}
.btn-success:hover {
opacity: 0.92;
transform: translateY(-1px);
}
.config-save-feedback {
margin-top: 10px;
padding: 9px 14px;
border-radius: var(--radius-sm);
font-size: 12.5px;
background: rgba(16, 185, 129, 0.15);
border: 1px solid rgba(16, 185, 129, 0.35);
color: #34d399;
font-weight: 600;
}
/* Modi Preview Box */
.modi-status-preview-box {
display: flex;
flex-direction: column;
gap: 10px;
background: var(--bg-tertiary);
border-radius: var(--radius-sm);
padding: 12px;
border: 1px solid var(--border-color);
}
.modi-preview-item {
display: flex;
align-items: center;
gap: 10px;
font-size: 12.5px;
color: var(--text-muted);
}
.preview-badge {
font-size: 11px;
font-weight: 700;
padding: 3px 8px;
border-radius: var(--radius-sm);
}
.preview-badge.normal {
background: var(--bg-card);
color: var(--accent-cyan);
}
.preview-badge.modi {
background: rgba(255, 51, 102, 0.2);
color: var(--accent-red);
}
/* Script Upload Box */
.script-upload-box {
display: flex;
align-items: center;
gap: 12px;
background: var(--bg-tertiary);
padding: 12px;
border-radius: var(--radius-sm);
border: 1px dashed var(--border-highlight);
}
.btn-secondary {
background: var(--bg-card);
border: 1px solid var(--border-color);
color: #fff;
padding: 8px 14px;
border-radius: var(--radius-sm);
font-size: 12.5px;
cursor: pointer;
}
.selected-file-name {
font-size: 12px;
color: var(--text-dim);
}
.loaded-scripts-list {
background: var(--bg-tertiary);
border-radius: var(--radius-sm);
padding: 10px;
min-height: 60px;
}
/* Live Preview Box */
.settings-preview-wrapper {
background: var(--bg-tertiary);
border: 1px solid var(--border-color);
border-radius: var(--radius-md);
padding: 12px;
display: flex;
flex-direction: column;
gap: 8px;
}
.preview-title {
font-size: 10.5px;
font-weight: 700;
color: var(--text-dim);
letter-spacing: 0.5px;
}
.settings-preview {
background: var(--bg-primary);
border-radius: var(--radius-sm);
padding: 12px 14px;
display: flex;
flex-direction: column;
gap: var(--chat-msg-gap);
font-family: var(--chat-font-family);
font-size: var(--chat-font-size);
border: 1px solid var(--border-highlight);
}
.modal-actions {
padding: 14px 20px;
border-top: 1px solid var(--border-color);
background: var(--bg-tertiary);
display: flex;
justify-content: flex-end;
gap: 10px;
}
.btn-primary {
background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
color: #fff;
border: none;
font-weight: 700;
font-size: 13.5px;
padding: 9px 20px;
border-radius: var(--radius-sm);
cursor: pointer;
box-shadow: 0 4px 12px rgba(0, 210, 255, 0.25);
transition: opacity 0.2s;
}
.btn-primary:hover {
opacity: 0.9;
}
.hidden {
display: none !important;
}
/* Update-Dialog */
.update-body {
padding: 18px 20px;
}
.update-summary {
font-size: 13px;
font-weight: 700;
color: var(--text-main);
margin-bottom: 10px;
}
.update-notes {
max-height: 190px;
overflow-y: auto;
margin: 6px 0 12px;
padding: 10px 12px;
background: var(--bg-tertiary);
border: 1px solid var(--border-color);
border-radius: var(--radius-sm);
font-size: 12.5px;
line-height: 1.5;
color: var(--text-muted);
white-space: pre-wrap;
word-break: break-word;
}
.update-progress {
height: 8px;
background: var(--bg-tertiary);
border: 1px solid var(--border-color);
border-radius: 4px;
overflow: hidden;
margin-bottom: 8px;
}
.update-progress-bar {
height: 100%;
width: 0;
background: linear-gradient(90deg, #00d2ff, #3a7bd5);
transition: width 0.15s ease;
}
.update-status {
min-height: 18px;
margin-top: 8px;
font-size: 12.5px;
font-weight: 600;
color: var(--text-muted);
}
.update-status.success {
color: var(--accent-green);
}
.update-status.error {
color: var(--accent-red);
}
/* Grußbox Modal */
.modal-card-sm {
max-width: 440px;
width: 90%;
}
.grussbox-body {
display: flex;
flex-direction: column;
gap: 12px;
}
.grussbox-desc {
font-size: 12.5px;
color: var(--text-muted);
line-height: 1.4;
}
.form-textarea {
width: 100%;
background: var(--bg-tertiary);
border: 1px solid var(--border-color);
border-radius: var(--radius-sm);
color: #fff;
padding: 10px 12px;
font-size: 13px;
font-family: inherit;
resize: vertical;
outline: none;
transition: border-color 0.2s;
box-sizing: border-box;
}
.form-textarea:focus {
border-color: var(--accent-cyan);
box-shadow: 0 0 0 2px rgba(0, 210, 255, 0.15);
}
.grussbox-feedback {
padding: 8px 12px;
border-radius: var(--radius-sm);
font-size: 12.5px;
font-weight: 600;
text-align: center;
transition: all 0.2s;
}
.grussbox-feedback.success {
background: rgba(0, 245, 155, 0.15);
color: var(--accent-green);
border: 1px solid rgba(0, 245, 155, 0.35);
}
.grussbox-feedback.error {
background: rgba(255, 51, 102, 0.15);
color: var(--accent-red);
border: 1px solid rgba(255, 51, 102, 0.35);
}
.btn-submit-gruss {
background: linear-gradient(135deg, #f72585, #7209b7);
box-shadow: 0 4px 12px rgba(247, 37, 133, 0.35);
}
.btn-submit-gruss:hover {
filter: brightness(1.1);
}
/* Scrollbars */
::-webkit-scrollbar {
width: 6px;
height: 6px;
}
::-webkit-scrollbar-track {
background: transparent;
}
::-webkit-scrollbar-thumb {
background: var(--border-highlight);
border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
background: #505663;
}