Commit current project

This commit is contained in:
2026-03-29 22:44:13 +02:00
parent b3bccb2ae3
commit 7f9469c07d
77 changed files with 20495 additions and 0 deletions

View File

@@ -0,0 +1,66 @@
@import './vars.css';
/* AppContainer responsive layout */
@media (max-width: 1365px) {
/* Main grid layout */
[style*="gridTemplateColumns"][style*="280px"] {
grid-template-columns: 1fr !important;
}
/* Sidebar becomes floating/overlay */
[data-sidebar-section] {
display: flex !important;
position: fixed !important;
left: 0 !important;
top: 0 !important;
bottom: 0 !important;
width: 280px !important;
z-index: 1000 !important;
box-shadow: var(--shadow-sm-dark) !important;
}
/* Show close button on mobile */
.sidebar-close-btn-container {
display: flex !important;
}
/* Video on top */
.app-grid {
display: grid !important;
grid-template-columns: 1fr !important;
grid-template-rows: 40vh 1fr !important;
gap: 0 !important;
}
/* When stream embed is hidden, adjust grid to full height for chat */
.app-grid:not(:has([data-stream-embed])) {
grid-template-rows: 1fr !important;
}
.app-grid > [data-stream-embed] {
grid-column: 1 !important;
grid-row: 1 !important;
min-height: 0 !important;
overflow: hidden !important;
height: auto !important;
}
/* Hide resizer */
.app-grid > div:nth-child(2) {
display: none !important;
}
/* Chat at bottom */
.app-grid > [data-chat-section] {
grid-column: 1 !important;
grid-row: 2 !important;
min-height: 0 !important;
overflow: auto !important;
}
[data-resizer] {
display: none !important;
}
}

588
src/styles/ChatDisplay.css Normal file
View File

@@ -0,0 +1,588 @@
@import './vars.css';
.chat-display {
display: flex;
flex-direction: column;
height: 100%;
background: var(--color-bg-primary);
overflow: hidden;
box-shadow: var(--shadow-sm);
position: relative;
}
.chat-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 8px 12px;
background: var(--color-bg-primary);
color: var(--color-text-white);
border-bottom: 1px solid var(--color-border-dark);
gap: 8px;
}
.header-button {
background: var(--color-bg-tertiary);
border: 1px solid var(--color-border-light);
color: var(--color-text-primary);
padding: 6px 12px;
border-radius: var(--radius-md);
cursor: pointer;
font-size: 12px;
font-weight: 500;
transition: all 0.2s ease;
margin-right: 8px;
}
.header-button:hover:not(:disabled) {
background: var(--color-bg-hover);
border-color: var(--color-border-lighter);
color: var(--color-text-white);
}
.header-button:disabled {
opacity: 0.6;
cursor: not-allowed;
}
.chat-header-content {
display: flex;
align-items: center;
gap: 12px;
flex: 1;
min-width: 0;
}
.chat-header-content h2 {
flex-shrink: 0;
}
.chat-header-actions {
display: flex;
align-items: center;
gap: 8px;
}
.chat-header h2 {
margin: 0;
font-size: 0.95rem;
font-weight: 600;
}
.stream-title {
font-size: 0.75rem;
color: var(--color-text-secondary);
background: var(--color-bg-secondary);
padding: 2px 6px;
border-radius: var(--radius-sm);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 200px;
}
.loading-indicator {
font-size: 1.5rem;
color: #4ade80;
animation: pulse 1s infinite;
}
@keyframes pulse {
0%, 100% {
opacity: 1;
}
50% {
opacity: 0.5;
}
}
@keyframes spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
.messages-container {
flex: 1;
overflow-y: auto;
overflow-x: hidden;
padding: 8px;
display: flex;
flex-direction: column;
gap: 4px;
font-size: var(--chat-font-size, 0.9rem);
}
/* Custom scrollbar styling */
.messages-container::-webkit-scrollbar {
width: 8px;
}
.messages-container::-webkit-scrollbar-track {
background: var(--color-bg-primary);
}
.messages-container::-webkit-scrollbar-thumb {
background: var(--color-border-medium);
border-radius: var(--radius-md);
}
.messages-container::-webkit-scrollbar-thumb:hover {
background: var(--color-border-lighter);
}
.no-messages {
display: flex;
align-items: center;
justify-content: center;
height: 100%;
color: var(--color-text-muted);
font-style: italic;
}
.message {
background: var(--color-bg-secondary);
padding: 6px 8px;
border-left: 3px solid var(--color-border-medium);
transition: background-color 0.2s ease, border-left-color 0.2s ease;
cursor: pointer;
}
.message:hover {
background: #252525;
border-left-color: #444444;
}
@keyframes slideIn {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.message-single-line {
display: flex;
align-items: center;
gap: 6px;
font-size: var(--chat-font-size, 0.85rem);
flex-wrap: wrap;
}
.avatar {
width: 20px;
height: 20px;
object-fit: cover;
border-radius: var(--radius-full);
flex-shrink: 0;
}
.author {
font-weight: 600;
flex-shrink: 0;
}
.message-separator {
color: #94a3b8;
flex-shrink: 0;
}
.message-text {
color: #cbd5e1;
word-wrap: break-word;
overflow-wrap: break-word;
word-break: break-word;
line-height: 1.3;
font-size: var(--chat-font-size, 0.9rem);
flex: 1;
}
.message-actions {
display: flex;
gap: 4px;
margin-left: auto;
flex-shrink: 0;
}
.action-button {
background: transparent;
border: 1px solid #444444;
color: #cbd5e1;
cursor: pointer;
padding: 4px 8px;
font-size: 11px;
font-weight: 500;
opacity: 0.8;
transition: all 0.2s ease;
flex-shrink: 0;
border-radius: var(--radius-sm);
}
.action-button:hover {
opacity: 1;
background: #2a2a2a;
border-color: #555555;
color: #e2e8f0;
}
.timestamp {
font-size: 0.7rem;
color: #94a3b8;
flex-shrink: 0;
}
.go-to-bottom-button {
position: absolute;
bottom: 8px;
right: 16px;
background: var(--color-accent);
border: 1px solid var(--color-accent-hover);
color: #ffffff;
padding: 8px 12px;
border-radius: var(--radius-md);
cursor: pointer;
font-size: 12px;
font-weight: 600;
transition: all 0.2s ease;
z-index: 100;
box-shadow: var(--shadow-accent-sm);
}
.go-to-bottom-button:hover {
background: var(--color-accent-hover);
box-shadow: var(--shadow-accent-md);
transform: translateY(-2px);
}
.go-to-bottom-button:active {
transform: translateY(0);
}
.chat-emote {
position: relative;
}
.chat-emote-tooltip {
position: fixed;
background: rgba(0, 0, 0, 0.95);
border: 1px solid #444;
border-radius: var(--radius-xl);
padding: 8px;
z-index: 10000;
pointer-events: none;
width: auto;
height: auto;
display: flex;
flex-direction: column;
gap: 6px;
animation: tooltipFade 0.2s ease-out;
}
.chat-emote-tooltip img {
width: 100%;
height: auto;
display: block;
border-radius: var(--radius-md);
object-fit: contain;
}
.chat-emote-tooltip-name {
color: #e2e8f0;
font-size: 0.85rem;
text-align: center;
word-break: break-word;
}
@keyframes tooltipFade {
from {
opacity: 0;
transform: translateY(-5px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes pulse {
0%, 100% {
opacity: 1;
}
50% {
opacity: 0.7;
}
}
.sidebar-toggle-button {
padding: 4px 8px;
background-color: #1a1a1a;
color: #e2e8f0;
border: 1px solid #333;
border-radius: 3px;
cursor: pointer;
font-size: 11px;
font-weight: 600;
transition: background-color 0.2s;
}
.sidebar-toggle-button:hover {
background-color: #2a2a2a;
}
.show-stream-button {
padding: 4px 8px;
background-color: #6366f1;
color: #fff;
border: none;
border-radius: 3px;
cursor: pointer;
font-size: 11px;
font-weight: 600;
transition: background-color 0.2s;
}
.show-stream-button:hover {
background-color: #4f46e5;
}
.status-badge-live {
display: inline-flex;
align-items: center;
gap: 4px;
background-color: #dc2626;
color: #ffffff;
padding: 2px 8px;
border-radius: 3px;
font-size: 0.75em;
font-weight: 600;
margin-right: 8px;
}
.status-badge-offline {
display: inline-flex;
align-items: center;
gap: 4px;
background-color: #6b7280;
color: #ffffff;
padding: 2px 8px;
border-radius: 3px;
font-size: 0.75em;
font-weight: 600;
margin-right: 8px;
}
.status-dot {
display: inline-block;
width: 6px;
height: 6px;
border-radius: 50%;
background-color: #ffffff;
}
.status-dot.pulse {
animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
.channel-link {
color: #e2e8f0;
text-decoration: none;
transition: color 0.2s;
}
.channel-link:hover {
color: #9146ff;
}
.viewer-count-display {
margin-left: 12px;
font-size: 0.85em;
color: #94a3b8;
font-weight: 500;
display: inline-flex;
align-items: center;
gap: 4px;
}
.uptime-display {
margin-left: 12px;
font-size: 0.85em;
color: #94a3b8;
font-weight: 500;
}
.message.preloaded {
opacity: 0.55;
background-color: #0a0a0a;
}
.message.bot {
opacity: 0.6;
background-color: #0f0f0f;
}
.message.redemption,
.message.subscription,
.message.resub,
.message.subgift {
background-color: rgba(145, 71, 255, 0.4);
border-left: 3px solid #9147ff;
}
.message.cheer {
background-color: rgba(255, 183, 0, 0.4);
border-left: 3px solid #ffb700;
}
.message.mention {
background-color: rgba(99, 102, 241, 0.2);
border-left: 3px solid #6366f1;
padding-left: 8px;
margin-left: -8px;
}
.reply-info {
font-size: 0.75em;
color: #64748b;
margin-bottom: 2px;
font-style: italic;
opacity: 0.8;
display: flex;
align-items: center;
gap: 4px;
}
.reply-target-content {
color: #94a3b8;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 450px;
display: inline-block;
vertical-align: bottom;
}
.reply-target-content .chat-emote {
height: 1.25em !important;
margin: 0 1px !important;
}
.author.self {
background-color: #3b82f6;
padding: 2px 6px;
border-radius: 3px;
}
.author-link {
text-decoration: none;
cursor: pointer;
}
.author-link:hover {
text-decoration: underline;
}
/* Responsive design for lower resolutions */
@media (max-width: 768px) {
.header-button {
font-size: 0;
gap: 0 !important;
}
.header-button svg {
display: inline;
}
.message-single-line {
gap: 2px;
}
.message {
padding: 4px 6px;
}
.avatar {
width: 16px;
height: 16px;
}
.author {
font-size: 0.8rem;
}
.timestamp {
font-size: 0.65rem;
}
.message-text {
font-size: 0.85rem;
margin-top: 2px;
flex-basis: 100%;
}
.message-actions {
margin-left: auto;
margin-top: 4px;
flex-basis: 100%;
}
}
@media (max-width: 480px) {
.message-single-line {
gap: 1px;
font-size: 0.75rem;
}
.message {
padding: 3px 4px;
gap: 2px;
}
.avatar {
width: 14px;
height: 14px;
}
.author {
font-size: 0.75rem;
}
.timestamp {
font-size: 0.6rem;
}
.message-text {
font-size: 0.8rem;
margin-top: 1px;
flex-basis: 100%;
}
.message-separator {
display: none;
}
.message-actions {
gap: 2px;
margin-top: 3px;
flex-basis: 100%;
margin-left: auto;
justify-content: flex-end;
}
.action-button {
padding: 2px 4px;
font-size: 10px;
}
}

311
src/styles/EmoteMenu.css Normal file
View File

@@ -0,0 +1,311 @@
@import './vars.css';
.emote-menu-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.7);
display: flex;
align-items: center;
justify-content: center;
z-index: 2000;
animation: fadeIn 0.2s ease-in-out;
}
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
.emote-menu-modal {
background: var(--color-bg-primary);
border: 1px solid var(--color-accent);
border-radius: var(--radius-2xl);
width: 90%;
max-width: 600px;
max-height: 80vh;
display: flex;
flex-direction: column;
box-shadow: var(--shadow-accent-lg);
animation: slideIn 0.3s ease-out;
}
@keyframes slideIn {
from {
transform: translateY(-20px);
opacity: 0;
}
to {
transform: translateY(0);
opacity: 1;
}
}
.emote-menu-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px;
border-bottom: 1px solid var(--color-border-medium);
}
.emote-menu-header h2 {
margin: 0;
color: var(--color-text-primary);
font-size: 1.5rem;
}
.emote-menu-close {
background: transparent;
border: none;
color: var(--color-text-secondary);
font-size: 1.5rem;
cursor: pointer;
padding: 0;
width: 32px;
height: 32px;
display: flex;
align-items: center;
justify-content: center;
transition: color 0.2s;
}
.emote-menu-close:hover {
color: var(--color-text-primary);
}
.emote-menu-search {
display: flex;
align-items: center;
gap: 10px;
padding: 12px 20px;
border-bottom: 1px solid var(--color-border-medium);
background: var(--color-bg-primary);
}
.emote-search-input {
flex: 1;
background: var(--color-bg-secondary);
border: 1px solid var(--color-border-medium);
border-radius: var(--radius-lg);
padding: 8px 12px;
color: var(--color-text-primary);
font-size: 0.95rem;
transition: border-color 0.2s;
}
.emote-search-input:focus {
outline: none;
border-color: var(--color-accent);
box-shadow: var(--shadow-accent-sm);
}
.emote-search-input::placeholder {
color: var(--color-text-muted);
}
.emote-menu-tabs {
display: flex;
gap: 0;
padding: 0 20px;
border-bottom: 2px solid var(--color-border-medium);
background: var(--color-bg-secondary);
height: 50px;
align-items: center;
}
.emote-tab {
flex: 1;
min-width: 80px;
padding: 12px 16px;
background: transparent;
border: none;
border-bottom: 3px solid transparent;
color: var(--color-text-secondary);
font-weight: 600;
font-size: 0.9rem;
cursor: pointer;
transition: all 0.2s;
white-space: nowrap;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
}
.emote-tab:hover:not(.active) {
color: var(--color-text-primary);
opacity: 0.8;
}
.emote-tab.active {
border-bottom-color: var(--color-accent);
color: var(--color-accent);
}
.emote-menu-content {
flex: 1;
overflow-y: auto;
padding: 16px 20px;
}
.emote-source-section {
margin-bottom: 24px;
}
.emote-source-section:last-child {
margin-bottom: 0;
}
.emote-source-header {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 12px;
padding-bottom: 8px;
border-bottom: 2px solid var(--color-border-medium);
}
.emote-source-dot {
width: 12px;
height: 12px;
border-radius: var(--radius-full);
flex-shrink: 0;
}
.emote-source-header h3 {
margin: 0;
font-size: 1rem;
font-weight: 600;
}
.emote-source-count {
color: var(--color-text-muted);
font-size: 0.85rem;
margin-left: auto;
}
.emote-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
gap: 12px;
}
.emote-item {
display: flex;
flex-direction: column;
align-items: center;
gap: 6px;
padding: 12px;
border: 1px solid var(--color-border-medium);
border-radius: var(--radius-xl);
cursor: pointer;
transition: all 0.2s;
background: var(--color-bg-secondary);
overflow: hidden;
}
.emote-item {
position: relative;
}
.emote-disable-btn {
position: absolute;
top: 6px;
right: 6px;
background: rgba(0,0,0,0.35);
border: 1px solid rgba(255,255,255,0.06);
color: var(--color-text-secondary);
padding: 4px 6px;
font-size: 0.7rem;
border-radius: 6px;
cursor: pointer;
}
.emote-disable-btn:hover {
background: rgba(0,0,0,0.5);
}
.emote-disabled {
opacity: 0.45;
filter: grayscale(70%);
}
.emote-item:hover {
background: var(--color-bg-tertiary);
border-color: var(--color-accent);
transform: translateY(-2px);
box-shadow: var(--shadow-accent-md);
}
.emote-image {
width: 48px;
height: 48px;
object-fit: contain;
object-position: center;
}
.emote-name {
font-size: 0.75rem;
color: var(--color-text-secondary);
text-align: center;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
width: 100%;
}
.emote-no-results {
text-align: center;
padding: 40px 20px;
color: var(--color-text-muted);
font-size: 0.95rem;
}
.emote-no-results-section {
text-align: center;
padding: 20px;
color: var(--color-text-muted);
font-size: 0.85rem;
}
/* Scrollbar styling */
.emote-menu-content::-webkit-scrollbar {
width: 8px;
}
.emote-menu-content::-webkit-scrollbar-track {
background: transparent;
}
.emote-menu-content::-webkit-scrollbar-thumb {
background: var(--color-border-medium);
border-radius: var(--radius-md);
}
.emote-menu-content::-webkit-scrollbar-thumb:hover {
background: var(--color-accent);
}
/* Mobile responsive */
@media (max-width: 600px) {
.emote-menu-modal {
width: 95%;
max-height: 90vh;
}
.emote-grid {
grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
}
.emote-image {
width: 40px;
height: 40px;
}
}

View File

@@ -0,0 +1,146 @@
.live-notification {
position: fixed;
bottom: 20px;
right: 20px;
background: #0a0a0a;
border: 2px solid #6366f1;
border-radius: 12px;
padding: 20px;
max-width: 320px;
box-shadow: 0 8px 32px rgba(99, 102, 241, 0.2);
z-index: 1000;
animation: slideIn 0.3s ease-out;
}
@keyframes slideIn {
from {
transform: translateX(400px);
opacity: 0;
}
to {
transform: translateX(0);
opacity: 1;
}
}
.live-notification-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 12px;
gap: 10px;
}
.live-notification-title {
display: flex;
align-items: center;
gap: 10px;
flex: 1;
min-width: 0;
}
.live-badge {
background: #6366f1;
color: white;
font-weight: bold;
font-size: 12px;
padding: 4px 8px;
border-radius: 4px;
white-space: nowrap;
animation: pulse 1s infinite;
}
@keyframes pulse {
0%, 100% {
opacity: 1;
}
50% {
opacity: 0.7;
}
}
.streamer-name {
color: #e0e0e0;
font-weight: 600;
font-size: 16px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.live-notification-close {
background: none;
border: none;
color: #999;
cursor: pointer;
font-size: 18px;
padding: 4px;
display: flex;
align-items: center;
justify-content: center;
transition: color 0.2s;
flex-shrink: 0;
}
.live-notification-close:hover {
color: #e0e0e0;
}
.streamer-avatar {
width: 100%;
max-width: 300px;
height: auto;
border-radius: 8px;
margin-bottom: 12px;
display: block;
}
.stream-title {
color: #b0b0b0;
font-size: 14px;
margin-bottom: 8px;
line-height: 1.4;
overflow: hidden;
display: -webkit-box;
-webkit-line-clamp: 2;
line-clamp: 2;
-webkit-box-orient: vertical;
}
.viewer-count {
color: #a0a0a0;
font-size: 13px;
margin-bottom: 12px;
}
.view-now-button {
width: 100%;
background: #6366f1;
color: white;
border: none;
padding: 12px;
border-radius: 6px;
font-weight: 600;
font-size: 14px;
cursor: pointer;
transition: all 0.2s;
}
.view-now-button:hover {
background: #4f46e5;
transform: translateY(-2px);
box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}
.view-now-button:active {
transform: translateY(0);
}
@media (max-width: 480px) {
.live-notification {
bottom: 10px;
right: 10px;
left: 10px;
max-width: none;
}
}

View File

@@ -0,0 +1,39 @@
@import './vars.css';
.loading-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(10, 10, 10, 0.85);
backdrop-filter: blur(4px);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
z-index: 1000;
color: white;
}
.loading-spinner {
width: 50px;
height: 50px;
border: 4px solid var(--color-border-medium);
border-top-color: var(--color-accent);
border-radius: var(--radius-full);
animation: spin 1s linear infinite;
margin-bottom: 20px;
}
.loading-text {
font-size: 1.2rem;
color: var(--color-text-primary);
font-weight: 500;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}

387
src/styles/LoginPanel.css Normal file
View File

@@ -0,0 +1,387 @@
@import './vars.css';
.login-panel {
display: flex;
flex-direction: column;
gap: 0;
padding: 0;
background: var(--color-bg-secondary);
box-shadow: none;
height: 100%;
overflow: hidden;
}
.login-panel-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
padding: 12px;
border-bottom: 1px solid var(--color-border-medium);
}
.login-panel h3 {
margin: 0;
font-size: 0.75rem;
color: var(--color-text-secondary);
text-transform: uppercase;
letter-spacing: 0.5px;
font-weight: 600;
flex-shrink: 0;
}
.icon-button {
background: none;
border: 1px solid #333333;
color: #6366f1;
cursor: pointer;
padding: 6px 10px;
display: flex;
align-items: center;
justify-content: center;
font-size: 16px;
transition: all 0.2s;
border-radius: 4px;
flex-shrink: 0;
}
.icon-button:hover {
color: #4f46e5;
border-color: #6366f1;
}
.icon-button.youtube-icon-btn {
color: #FF0000;
}
.icon-button.youtube-icon-btn:hover {
color: #cc0000;
border-color: #FF0000;
}
.icon-button.small {
font-size: 14px;
}
.platform-login {
display: flex;
flex-direction: column;
gap: 12px;
padding: 12px;
border: none;
border-bottom: 1px solid var(--color-border-medium);
background: var(--color-bg-primary);
margin: 0;
flex: 1;
min-height: 0;
}
.platform-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
flex-shrink: 0;
}
.platform-name {
font-weight: 600;
font-size: 1rem;
}
.platform-login.twitch .platform-name {
color: var(--color-twitch);
}
.platform-login.youtube .platform-name {
color: var(--color-youtube);
}
.connected-info {
display: flex;
flex-direction: column;
align-items: stretch;
gap: 12px;
flex: 1;
min-height: 0;
overflow: visible;
}
.user-profile-container {
display: flex;
align-items: center;
gap: 8px;
}
.user-profile-link {
cursor: pointer;
display: flex;
align-items: center;
gap: 8px;
flex: 1;
padding: 4px;
border-radius: 6px;
transition: background-color 0.2s;
min-width: 0;
}
.user-profile-link:hover {
background-color: rgba(255, 255, 255, 0.05);
}
.profile-image {
width: 48px;
height: 48px;
border-radius: var(--radius-full);
object-fit: cover;
flex-shrink: 0;
border: 2px solid var(--color-border-medium);
transition: transform 0.2s;
}
.profile-image:hover {
transform: scale(1.05);
}
.user-details {
display: flex;
flex-direction: column;
gap: 4px;
min-width: 0;
flex: 1;
overflow: hidden;
}
.user-name {
margin: 0;
font-size: 0.8rem;
color: #e2e8f0;
font-weight: 600;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.user-actions {
display: flex;
gap: 4px;
}
.channels-section {
margin-top: 12px;
padding-top: 12px;
border-top: 1px solid #333;
display: flex;
flex-direction: column;
flex: 1;
min-height: 0;
}
.section-label {
font-size: 0.75rem;
font-weight: 600;
color: #94a3b8;
margin-bottom: 8px;
display: block;
text-transform: uppercase;
letter-spacing: 0.5px;
flex-shrink: 0;
}
.channel-search-input {
width: 100%;
padding: 8px;
margin-bottom: 8px;
border: 1px solid #333333;
border-radius: 4px;
font-size: 0.9rem;
background-color: #0a0a0a;
color: #e2e8f0;
box-sizing: border-box;
flex-shrink: 0;
}
.channel-list {
display: flex;
flex-direction: column;
gap: 6px;
max-height: calc(100vh - 475px);
overflow-y: auto;
overflow-x: hidden;
padding-right: 4px;
}
.channel-item {
display: flex;
align-items: center;
gap: 10px;
cursor: pointer;
padding: 8px 10px;
border-radius: 6px;
border: 2px solid transparent;
transition: all 0.2s ease;
}
.channel-item.selected {
border-color: var(--color-accent);
background-color: rgba(158, 64, 115, 0.1);
}
.channel-item-image {
width: 32px;
height: 32px;
border-radius: 50%;
object-fit: cover;
border: 1px solid #333333;
flex-shrink: 0;
}
.channel-item-name {
font-size: 0.9rem;
color: #e2e8f0;
flex: 1;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.viewer-count {
font-size: 0.8rem;
color: #94a3b8;
flex-shrink: 0;
margin-left: 4px;
display: flex;
align-items: center;
gap: 2px;
}
.favorite-button {
background: none;
border: none;
cursor: pointer;
padding: 0 4px;
flex-shrink: 0;
color: #666666;
transition: color 0.2s ease;
line-height: 1;
display: flex;
align-items: center;
}
.favorite-button.active {
color: #fbbf24;
}
.manual-join-section {
margin-top: 12px;
padding-top: 12px;
border-top: 1px solid #333;
flex-shrink: 0;
}
.join-form {
display: flex;
gap: 4px;
}
.join-input {
flex: 1;
padding: 8px;
border: 1px solid #333333;
font-size: 0.9rem;
background-color: #0a0a0a;
color: #e2e8f0;
min-width: 0;
}
.login-btn,
.logout-btn {
padding: 8px 12px;
border: none;
font-weight: 600;
font-size: 0.85rem;
cursor: pointer;
transition: transform 0.2s, opacity 0.2s;
white-space: nowrap;
flex-shrink: 0;
}
.login-btn:hover {
transform: translateY(-2px);
opacity: 0.9;
}
.login-btn:active {
transform: translateY(0);
}
.login-btn.twitch-btn {
background-color: #9146ff;
color: white;
}
.login-btn.youtube-btn {
background-color: #ff0000;
color: white;
}
.logout-btn {
background-color: #333333;
color: #e2e8f0;
flex-shrink: 0;
}
.logout-btn:hover {
background-color: #555555;
}
.logout-btn.small {
font-size: 12px;
padding: 4px 8px;
}
.youtube-section {
margin-top: 12px;
padding-top: 12px;
border-top: 1px solid #333;
}
.youtube-info-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
}
.youtube-user-info {
display: flex;
align-items: center;
gap: 8px;
min-width: 0;
}
.youtube-user-name {
font-size: 13px;
color: #e2e8f0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
/* Channel list scrollbar styling */
.channel-list::-webkit-scrollbar {
width: 8px;
}
.channel-list::-webkit-scrollbar-track {
background: #0a0a0a;
}
.channel-list::-webkit-scrollbar-thumb {
background: #333333;
border-radius: var(--radius-md);
}
.channel-list::-webkit-scrollbar-thumb:hover {
background: #555555;
}

289
src/styles/MessageInput.css Normal file
View File

@@ -0,0 +1,289 @@
@import './vars.css';
.message-input {
display: flex;
flex-direction: column;
gap: 12px;
padding: 10px;
background: var(--color-bg-primary);
border-top: 1px solid var(--color-border-dark);
}
.reply-indicator {
order: -1;
margin-bottom: 8px;
}
.reply-indicator > div:first-child {
order: 1;
margin-right: auto;
}
.platform-selector {
display: flex;
gap: 12px;
flex-wrap: wrap;
}
.platform-checkbox {
display: flex;
align-items: center;
gap: 6px;
cursor: pointer;
user-select: none;
}
.platform-checkbox input {
cursor: pointer;
width: 18px;
height: 18px;
}
.platform-checkbox input:disabled {
cursor: not-allowed;
opacity: 0.5;
}
.platform-label {
font-size: 0.95rem;
font-weight: 500;
padding: 4px 8px;
transition: background-color 0.2s;
}
.platform-label.twitch {
color: var(--color-twitch);
}
.platform-label.twitch:not(.disabled):hover {
background-color: rgba(145, 70, 255, 0.1);
}
.platform-label.youtube {
color: var(--color-youtube);
}
.platform-label.youtube:not(.disabled):hover {
background-color: rgba(255, 0, 0, 0.1);
}
.platform-label.disabled {
opacity: 0.5;
cursor: not-allowed;
}
.input-group {
display: flex;
gap: 8px;
align-items: stretch;
height: 36px;
}
.message-textarea {
flex: 1;
padding: 8px 10px;
border: 1px solid var(--color-border-medium);
font-family: inherit;
font-size: 0.95rem;
resize: none;
height: 100%;
box-sizing: border-box;
transition: border-color 0.2s;
background: var(--color-bg-secondary);
color: var(--color-text-primary);
overflow: hidden;
}
.message-textarea:focus {
outline: none;
border-color: var(--color-border-lighter);
box-shadow: 0 0 0 3px rgba(85, 85, 85, 0.2);
}
.message-textarea.twitch {
border-color: #9146ff;
}
.message-textarea.twitch:focus {
border-color: #a970ff;
box-shadow: 0 0 0 3px rgba(145, 70, 255, 0.2);
}
.message-textarea.youtube {
border-color: #ff0000;
}
.message-textarea.youtube:focus {
border-color: #ff3333;
box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.2);
}
.message-textarea:disabled {
background-color: #1a1a1a;
cursor: not-allowed;
opacity: 0.5;
}
.send-button {
padding: 8px 12px;
background: #333333;
color: white;
border: none;
font-weight: 600;
cursor: pointer;
transition: transform 0.2s, box-shadow 0.2s;
height: 100%;
min-width: 36px;
box-sizing: border-box;
display: flex;
align-items: center;
justify-content: center;
}
.send-button:hover:not(:disabled) {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(85, 85, 85, 0.4);
}
.send-button:active:not(:disabled) {
transform: translateY(0);
}
.send-button:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.emote-picker-button {
padding: 0;
width: 36px;
min-width: 36px;
height: 100%;
background: #1a1a1a;
color: #cbd5e1;
border: 1px solid #333333;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s;
flex-shrink: 0;
}
.emote-picker-button:hover:not(:disabled) {
background: #262626;
border-color: #475569;
color: #e2e8f0;
transform: scale(1.05);
}
.emote-picker-button:active:not(:disabled) {
transform: scale(0.95);
}
.emote-picker-button:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.warning {
padding: 8px 12px;
background-color: #3d2817;
border-left: 4px solid #f59e0b;
color: #fde047;
font-size: 0.9rem;
}
/* Responsive design for lower resolutions */
@media (max-width: 768px) {
.message-input {
gap: 8px;
padding: 12px;
}
.platform-selector {
gap: 8px;
}
.platform-checkbox input {
width: 16px;
height: 16px;
}
.platform-label {
font-size: 0.9rem;
padding: 3px 6px;
}
.input-group {
height: 40px;
gap: 6px;
}
.message-textarea {
padding: 8px;
font-size: 0.9rem;
}
.send-button {
padding: 8px 16px;
font-size: 0.9rem;
min-width: 80px;
}
}
@media (max-width: 480px) {
.message-input {
gap: 6px;
padding: 8px;
}
.platform-selector {
gap: 6px;
flex-direction: column;
}
.platform-checkbox {
gap: 4px;
}
.platform-checkbox input {
width: 14px;
height: 14px;
}
.platform-label {
font-size: 0.85rem;
padding: 2px 4px;
}
.input-group {
height: 36px;
gap: 4px;
flex-direction: row;
}
.message-textarea {
padding: 6px;
font-size: 0.85rem;
height: 100%;
min-height: auto;
}
.emote-picker-button {
width: 36px;
min-width: 36px;
height: 100%;
}
.send-button {
padding: 6px 12px;
font-size: 0.85rem;
min-width: 60px;
height: 100%;
}
.warning {
padding: 6px 8px;
font-size: 0.8rem;
}
}

View File

@@ -0,0 +1,55 @@
@import './vars.css';
.notification {
position: fixed;
bottom: 20px;
right: 20px;
padding: 12px 20px;
border-radius: var(--radius-xl);
font-size: 14px;
box-shadow: var(--shadow-md);
animation: slideIn 0.3s ease-out, slideOut 0.3s ease-out 2.7s forwards;
max-width: 300px;
word-wrap: break-word;
z-index: 1000;
}
.notification-success {
background-color: var(--color-notification-success);
color: white;
border: 1px solid var(--color-notification-success-border);
}
.notification-error {
background-color: var(--color-notification-error);
color: white;
border: 1px solid var(--color-notification-error-border);
}
.notification-info {
background-color: var(--color-notification-info);
color: white;
border: 1px solid var(--color-notification-info-border);
}
@keyframes slideIn {
from {
transform: translateX(400px);
opacity: 0;
}
to {
transform: translateX(0);
opacity: 1;
}
}
@keyframes slideOut {
from {
transform: translateX(0);
opacity: 1;
}
to {
transform: translateX(400px);
opacity: 0;
}
}

View File

@@ -0,0 +1,99 @@
@import './vars.css';
.unified-chat-wrapper {
position: relative;
flex: 1;
min-height: 0;
display: flex;
flex-direction: column;
}
.unified-messages-container {
flex: 1;
overflow-y: auto;
padding: 0 0 4px 0;
}
.platform-tag {
display: inline-flex;
align-items: center;
margin-right: 3px;
flex-shrink: 0;
}
.platform-tag.twitch {
color: #9147ff;
}
.platform-tag.youtube {
color: #FF0000;
}
/* Reusing some classes from ChatDisplay via global scope or if added here */
.twitch-event-icon {
margin-right: 4px;
display: inline-flex;
align-items: center;
}
.author.twitch-author:hover {
text-decoration: underline;
}
/* Ensure UnifiedChat specific overrides if needed */
/* Super Chat Styles - Reused from YouTubeChat.css */
.yt-superchat {
margin: 4px 8px;
border-radius: 4px;
overflow: hidden;
display: flex;
flex-direction: column;
box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.yt-superchat-header {
padding: 8px 12px;
display: flex;
align-items: center;
gap: 12px;
font-weight: 600;
}
.yt-superchat-header .avatar {
width: 40px !important;
height: 40px !important;
border-radius: 50%;
}
.yt-superchat-info {
display: flex;
flex-direction: column;
gap: 1px;
}
.yt-superchat-author {
color: rgba(255, 255, 255, 0.9);
font-size: 13px;
}
.yt-superchat-amount {
color: #fff;
font-size: 14px;
}
.yt-superchat-body {
padding: 8px 12px;
background-color: rgba(0, 0, 0, 0.1);
color: #fff;
word-break: break-word;
line-height: 1.4;
}
.yt-superchat-sticker {
width: 72px;
height: 72px;
margin-top: 4px;
object-fit: contain;
}

View File

@@ -0,0 +1,346 @@
.watchlist-manager-overlay {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.7);
display: flex;
align-items: center;
justify-content: center;
z-index: 999;
animation: fadeIn 0.2s ease-out;
}
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
.watchlist-manager {
background: var(--color-bg-primary);
border: 1px solid var(--color-accent);
border-radius: 12px;
padding: 28px;
max-width: 500px;
width: 90%;
max-height: 80vh;
display: flex;
flex-direction: column;
box-shadow: var(--shadow-accent-lg);
color: var(--color-text-primary);
}
.watchlist-manager h2 {
margin: 0 0 8px 0;
font-size: 20px;
font-weight: 600;
color: var(--color-text-white);
}
.subtitle {
margin: 0 0 20px 0;
font-size: 13px;
color: var(--color-text-secondary);
}
.watchlist-add-section {
display: flex;
gap: 8px;
margin-bottom: 20px;
position: relative;
}
.channel-search {
flex: 1;
padding: 10px 12px;
background: var(--color-bg-secondary);
border: 1px solid var(--color-border-medium);
border-radius: 6px;
color: var(--color-text-primary);
font-size: 13px;
cursor: text;
transition: border-color 0.2s;
}
.channel-search:hover,
.channel-search:focus {
border-color: var(--color-accent);
outline: none;
}
.channel-list-dropdown {
position: absolute;
top: 100%;
left: 0;
right: 72px;
background: var(--color-bg-secondary);
border: 1px solid var(--color-border-medium);
border-top: none;
border-radius: 0 0 6px 6px;
max-height: 300px;
overflow-y: auto;
z-index: 10;
display: none;
}
.channel-search:focus ~ .channel-list-dropdown {
display: block;
}
.channel-list-dropdown:hover {
display: block;
}
.channel-search:focus ~ .channel-list-dropdown:hover {
display: block;
}
.no-channels-message {
padding: 16px;
text-align: center;
color: var(--color-text-muted);
font-size: 13px;
}
.channel-list-item {
width: 100%;
display: flex;
align-items: center;
gap: 12px;
padding: 10px 12px;
background: none;
border: none;
border-bottom: 1px solid var(--color-border-dark);
color: var(--color-text-primary);
cursor: pointer;
transition: background 0.2s;
text-align: left;
font-size: 13px;
}
.channel-list-item:last-child {
border-bottom: none;
}
.channel-list-item:hover {
background: var(--color-bg-tertiary);
}
.channel-thumb {
width: 32px;
height: 32px;
border-radius: 4px;
object-fit: cover;
flex-shrink: 0;
}
.channel-info {
flex: 1;
min-width: 0;
}
.channel-display-name {
font-weight: 600;
color: var(--color-text-primary);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.channel-username {
font-size: 12px;
color: var(--color-text-secondary);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.selected-channel-display {
padding: 10px 12px;
background: var(--color-bg-secondary);
border: 1px solid var(--color-border-medium);
border-radius: 6px;
color: var(--color-text-primary);
font-size: 13px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
flex: 1;
}
.add-button {
padding: 10px 16px;
background: var(--color-accent);
color: white;
border: none;
border-radius: 6px;
font-weight: 600;
font-size: 13px;
cursor: pointer;
display: flex;
align-items: center;
gap: 6px;
transition: all 0.2s;
white-space: nowrap;
}
.add-button:hover:not(:disabled) {
background: var(--color-accent-hover);
transform: translateY(-1px);
}
.add-button:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.watchlist-items {
flex: 1;
overflow-y: auto;
margin-bottom: 16px;
padding-right: 8px;
}
.watchlist-items::-webkit-scrollbar {
width: 6px;
}
.watchlist-items::-webkit-scrollbar-track {
background: transparent;
}
.watchlist-items::-webkit-scrollbar-thumb {
background: var(--color-border-medium);
border-radius: 3px;
}
.watchlist-items::-webkit-scrollbar-thumb:hover {
background: var(--color-accent);
}
.empty-message {
text-align: center;
color: var(--color-text-muted);
font-size: 13px;
padding: 20px;
margin: 0;
}
.watchlist-item {
display: flex;
align-items: center;
justify-content: space-between;
padding: 12px;
background: var(--color-bg-secondary);
border: 1px solid var(--color-border-medium);
border-radius: 6px;
margin-bottom: 8px;
transition: all 0.2s;
}
.watchlist-item:hover {
background: var(--color-bg-tertiary);
border-color: var(--color-accent);
}
.item-info {
display: flex;
align-items: center;
gap: 12px;
flex: 1;
min-width: 0;
}
.item-avatar {
width: 40px;
height: 40px;
border-radius: 50%;
object-fit: cover;
flex-shrink: 0;
}
.item-details {
min-width: 0;
flex: 1;
}
.item-name {
font-weight: 600;
font-size: 14px;
color: var(--color-text-primary);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.item-username {
font-size: 12px;
color: var(--color-text-secondary);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.remove-button {
background: none;
border: none;
color: var(--color-accent);
cursor: pointer;
padding: 6px;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s;
flex-shrink: 0;
font-size: 14px;
}
.remove-button:hover {
color: var(--color-accent-hover);
transform: scale(1.1);
}
.watchlist-footer {
border-top: 1px solid var(--color-border-medium);
padding-top: 16px;
}
.info-text {
display: flex;
align-items: center;
font-size: 12px;
color: var(--color-text-secondary);
margin: 0 0 12px 0;
}
.close-button {
width: 100%;
padding: 10px;
background: var(--color-bg-secondary);
color: var(--color-text-primary);
border: 1px solid var(--color-border-medium);
border-radius: 6px;
font-weight: 600;
font-size: 13px;
cursor: pointer;
transition: all 0.2s;
}
.close-button:hover {
background: var(--color-bg-tertiary);
border-color: var(--color-accent);
}
@media (max-width: 480px) {
.watchlist-manager {
padding: 20px;
max-width: 100%;
max-height: 90vh;
}
.watchlist-manager h2 {
font-size: 18px;
}
}

233
src/styles/YouTubeChat.css Normal file
View File

@@ -0,0 +1,233 @@
.yt-chat-outer {
height: 100%;
display: flex;
flex-direction: column;
background-color: var(--color-bg-primary);
color: var(--color-text-white);
}
.yt-chat-container {
font-size: var(--chat-font-size, 13px);
color: var(--color-text-white);
background: var(--color-bg-primary);
height: 100%;
overflow-y: auto;
padding: 10px;
display: flex;
flex-direction: column;
gap: 4px;
}
/* Custom scrollbar styling - matching Twitch chat */
.yt-chat-container::-webkit-scrollbar {
width: 8px;
}
.yt-chat-container::-webkit-scrollbar-track {
background: var(--color-bg-primary);
}
.yt-chat-container::-webkit-scrollbar-thumb {
background: var(--color-border-medium);
border-radius: var(--radius-md);
}
.yt-chat-container::-webkit-scrollbar-thumb:hover {
background: var(--color-border-lighter);
}
.yt-chat-status {
height: 100%;
display: flex;
align-items: center;
justify-content: center;
background-color: #0a0a0a;
color: #999;
}
.yt-chat-error {
flex-direction: column;
padding: 20px;
text-align: center;
gap: 10px;
}
.yt-chat-error-sub {
font-size: 12px;
color: #666;
}
.yt-chat-placeholder {
color: #666;
text-align: center;
padding: 20px;
}
.yt-message-badges {
display: flex;
align-items: center;
margin-right: 4px;
gap: 2px;
}
.yt-badge {
width: 18px;
height: 18px;
vertical-align: middle;
}
.yt-emoji {
vertical-align: middle;
margin: 0 1px;
object-fit: contain;
}
.yt-emoji.custom {
width: 28px;
height: 28px;
}
.yt-emoji.standard {
width: 18px;
height: 18px;
}
.yt-message-input-wrapper {
padding: 8px 10px;
gap: 8px;
display: flex;
}
.yt-input-group {
position: relative;
flex: 1;
}
.emote-autocomplete-menu {
position: absolute;
bottom: 100%;
left: 0;
right: 0;
max-height: 260px;
overflow-y: auto;
background: #1e293b;
border: 1px solid #475569;
border-radius: 8px;
margin-bottom: 6px;
z-index: 1000;
box-shadow: 0 -4px 20px rgba(0,0,0,0.5);
}
.emote-autocomplete-item {
display: flex;
align-items: center;
gap: 10px;
padding: 7px 12px;
cursor: pointer;
transition: background 0.12s;
}
.emote-autocomplete-item.selected {
background: #334155;
}
.emote-autocomplete-item img {
object-fit: contain;
flex-shrink: 0;
}
.emote-autocomplete-info {
display: flex;
flex-direction: column;
gap: 1px;
min-width: 0;
}
.emote-autocomplete-name {
color: #e2e8f0;
font-weight: 500;
font-size: 13px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.emote-autocomplete-type {
color: #94a3b8;
font-size: 11px;
}
.yt-status-refreshing {
padding: 6px 12px;
background-color: #0f0f0f;
border-top: 1px solid #333;
font-size: 11px;
color: #888;
text-align: center;
}
.yt-status-login-required {
padding: 6px 12px;
background-color: #0f0f0f;
border-top: 1px solid #333;
font-size: 11px;
color: #666;
text-align: center;
}
/* Super Chat Styles */
.yt-superchat {
margin: 4px 0;
border-radius: 4px;
overflow: hidden;
display: flex;
flex-direction: column;
box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.yt-superchat-header {
padding: 8px 12px;
display: flex;
align-items: center;
gap: 12px;
font-weight: 600;
}
.yt-superchat-header .avatar {
width: 40px !important;
height: 40px !important;
border-radius: 50%;
}
.yt-superchat-info {
display: flex;
flex-direction: column;
gap: 1px;
}
.yt-superchat-author {
color: rgba(255, 255, 255, 0.9);
font-size: 13px;
}
.yt-superchat-amount {
color: #fff;
font-size: 14px;
}
.yt-superchat-body {
padding: 8px 12px;
background-color: rgba(0, 0, 0, 0.1);
color: #fff;
word-break: break-word;
line-height: 1.4;
}
.yt-superchat-sticker {
width: 72px;
height: 72px;
margin-top: 4px;
object-fit: contain;
}

View File

@@ -0,0 +1,363 @@
/* YouTubeLinker modal mirrors WatchlistManager styles */
.ytlinker-overlay {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.7);
display: flex;
align-items: center;
justify-content: center;
z-index: 999;
animation: fadeIn 0.2s ease-out;
}
.ytlinker-manager {
background: var(--color-bg-primary);
border: 1px solid var(--color-accent);
border-radius: 12px;
padding: 28px;
max-width: 540px;
width: 90%;
max-height: 80vh;
display: flex;
flex-direction: column;
box-shadow: var(--shadow-accent-lg);
color: var(--color-text-primary);
}
.ytlinker-manager h2 {
margin: 0 0 8px 0;
font-size: 20px;
font-weight: 600;
color: var(--color-text-white);
display: flex;
align-items: center;
}
.ytlinker-subtitle {
margin: 0 0 20px 0;
font-size: 13px;
color: var(--color-text-secondary);
}
/* Add section */
.ytlinker-add-section {
display: flex;
flex-direction: column;
gap: 12px;
margin-bottom: 20px;
}
.ytlinker-inputs {
display: flex;
flex-direction: column;
gap: 12px;
}
.ytlinker-channel-select,
.ytlinker-url-input {
position: relative;
display: flex;
flex-direction: column;
gap: 4px;
}
.ytlinker-label {
font-size: 12px;
font-weight: 600;
color: var(--color-text-secondary);
text-transform: uppercase;
letter-spacing: 0.5px;
}
.ytlinker-search {
width: 100%;
padding: 10px 12px;
background: var(--color-bg-secondary);
border: 1px solid var(--color-border-medium);
border-radius: 6px;
color: var(--color-text-primary);
font-size: 13px;
cursor: text;
transition: border-color 0.2s;
box-sizing: border-box;
}
.ytlinker-search:hover,
.ytlinker-search:focus {
border-color: var(--color-accent);
outline: none;
}
/* Dropdown for channel list */
.ytlinker-dropdown {
position: absolute;
top: 100%;
left: 0;
right: 0;
background: var(--color-bg-secondary);
border: 1px solid var(--color-border-medium);
border-top: none;
border-radius: 0 0 6px 6px;
max-height: 200px;
overflow-y: auto;
z-index: 10;
display: none;
}
.ytlinker-search:focus ~ .ytlinker-dropdown {
display: block;
}
.ytlinker-dropdown:hover {
display: block;
}
.ytlinker-search:focus ~ .ytlinker-dropdown:hover {
display: block;
}
.ytlinker-no-channels {
padding: 16px;
text-align: center;
color: var(--color-text-muted);
font-size: 13px;
}
.ytlinker-channel-item {
width: 100%;
display: flex;
align-items: center;
gap: 12px;
padding: 10px 12px;
background: none;
border: none;
border-bottom: 1px solid var(--color-border-dark);
color: var(--color-text-primary);
cursor: pointer;
transition: background 0.2s;
text-align: left;
font-size: 13px;
}
.ytlinker-channel-item:last-child {
border-bottom: none;
}
.ytlinker-channel-item:hover {
background: var(--color-bg-tertiary);
}
.ytlinker-channel-info {
flex: 1;
min-width: 0;
}
.ytlinker-channel-display-name {
font-weight: 600;
color: var(--color-text-primary);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.ytlinker-channel-username {
font-size: 12px;
color: var(--color-text-secondary);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.ytlinker-selected-display {
padding: 6px 10px;
background: rgba(99, 102, 241, 0.1);
border: 1px solid var(--color-accent);
border-radius: 6px;
color: var(--color-accent);
font-size: 12px;
font-weight: 600;
}
.ytlinker-error {
color: #ef4444;
font-size: 12px;
padding: 4px 0;
}
.ytlinker-add-button {
padding: 10px 16px;
background: #FF0000;
color: white;
border: none;
border-radius: 6px;
font-weight: 600;
font-size: 13px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
gap: 6px;
transition: all 0.2s;
white-space: nowrap;
}
.ytlinker-add-button:hover:not(:disabled) {
background: #cc0000;
transform: translateY(-1px);
}
.ytlinker-add-button:disabled {
opacity: 0.5;
cursor: not-allowed;
}
/* Linked items list */
.ytlinker-items {
flex: 1;
overflow-y: auto;
margin-bottom: 16px;
padding-right: 8px;
}
.ytlinker-items::-webkit-scrollbar {
width: 6px;
}
.ytlinker-items::-webkit-scrollbar-track {
background: transparent;
}
.ytlinker-items::-webkit-scrollbar-thumb {
background: var(--color-border-medium);
border-radius: 3px;
}
.ytlinker-items::-webkit-scrollbar-thumb:hover {
background: var(--color-accent);
}
.ytlinker-empty {
text-align: center;
color: var(--color-text-muted);
font-size: 13px;
padding: 20px;
margin: 0;
}
.ytlinker-item {
display: flex;
align-items: center;
justify-content: space-between;
padding: 12px;
background: var(--color-bg-secondary);
border: 1px solid var(--color-border-medium);
border-radius: 6px;
margin-bottom: 8px;
transition: all 0.2s;
}
.ytlinker-item:hover {
background: var(--color-bg-tertiary);
border-color: var(--color-accent);
}
.ytlinker-item-info {
display: flex;
align-items: center;
gap: 12px;
flex: 1;
min-width: 0;
}
.ytlinker-item-details {
min-width: 0;
flex: 1;
}
.ytlinker-item-name {
font-weight: 600;
font-size: 14px;
color: var(--color-text-primary);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.ytlinker-item-url {
font-size: 12px;
color: #FFFFFF;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
text-decoration: none;
display: block;
}
.ytlinker-item-url:hover {
text-decoration: underline;
}
.ytlinker-remove-button {
background: none;
border: none;
color: #FF0000;
cursor: pointer;
padding: 6px;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s;
flex-shrink: 0;
font-size: 14px;
}
.ytlinker-remove-button:hover {
color: #cc0000;
transform: scale(1.1);
}
/* Footer */
.ytlinker-footer {
border-top: 1px solid var(--color-border-medium);
padding-top: 16px;
}
.ytlinker-info-text {
display: flex;
align-items: center;
font-size: 12px;
color: var(--color-text-secondary);
margin: 0 0 12px 0;
}
.ytlinker-close-button {
width: 100%;
padding: 10px;
background: var(--color-bg-secondary);
color: var(--color-text-primary);
border: 1px solid var(--color-border-medium);
border-radius: 6px;
font-weight: 600;
font-size: 13px;
cursor: pointer;
transition: all 0.2s;
}
.ytlinker-close-button:hover {
background: var(--color-bg-tertiary);
border-color: var(--color-accent);
}
@media (max-width: 480px) {
.ytlinker-manager {
padding: 20px;
max-width: 100%;
max-height: 90vh;
}
.ytlinker-manager h2 {
font-size: 18px;
}
}

36
src/styles/global.css Normal file
View File

@@ -0,0 +1,36 @@
@import './vars.css';
* {
box-sizing: border-box;
}
html {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
Ubuntu, Cantarell, 'Fira Sans', 'Droid Sans', sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
body {
margin: 0;
padding: 0;
background: var(--color-bg-primary);
min-height: 100vh;
color: var(--color-text-primary);
}
#app {
min-height: 100vh;
}
/* Responsive layout - stack vertically on smaller screens */
@media (max-width: 1024px) {
[data-app-grid] {
grid-template-columns: 1fr;
grid-template-rows: auto 1fr;
}
[data-stream-embed] {
max-height: 50vh;
}
}

59
src/styles/vars.css Normal file
View File

@@ -0,0 +1,59 @@
/* Normalized Color Palette */
:root {
/* Primary Background Colors */
--color-bg-primary: #0a0a0a;
--color-bg-secondary: #1a1a1a;
--color-bg-tertiary: #2a2a2a;
--color-bg-hover: #3a3a3a;
/* Border & Divider Colors */
--color-border-dark: #1a1a1a;
--color-border-medium: #333333;
--color-border-light: #444444;
--color-border-lighter: #555555;
/* Text Colors */
--color-text-primary: #e2e8f0;
--color-text-secondary: #94a3b8;
--color-text-muted: #64748b;
--color-text-white: #ffffff;
/* Platform Colors */
--color-twitch: #9146ff;
--color-youtube: #ff0000;
/* Accent Color */
--color-accent: #9e4073;
--color-accent-hover: #5e2645;
/* Status Colors */
--color-status-success: #d1fae5;
--color-status-success-text: #065f46;
--color-status-error: #fee2e2;
--color-status-error-text: #7f1d1d;
/* Notification Colors */
--color-notification-success: #10b981;
--color-notification-success-border: #059669;
--color-notification-error: #ef4444;
--color-notification-error-border: #dc2626;
--color-notification-info: #3b82f6;
--color-notification-info-border: #2563eb;
/* Shadow */
--shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
--shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
--shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
--shadow-sm-dark: 2px 0 10px rgba(0, 0, 0, 0.5);
--shadow-accent-sm: 0 0 0 3px rgba(99, 102, 241, 0.1);
--shadow-accent-md: 0 4px 12px rgba(99, 102, 241, 0.2);
--shadow-accent-lg: 0 10px 40px rgba(99, 102, 241, 0.15);
/* Border Radius */
--radius-sm: 3px;
--radius-md: 4px;
--radius-lg: 6px;
--radius-xl: 8px;
--radius-2xl: 12px;
--radius-full: 50%;
}