:root { color-scheme: dark; } body { margin: 0; font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: #0a0a0a; color: #f4f4f5; min-height: 100vh; } a { color: inherit; text-decoration: none; } main { min-height: 100vh; } .landing { display: grid; place-items: center; padding: 4rem 1.5rem; } .panel { background: rgba(21, 23, 28, 0.85); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 16px; padding: 2.5rem; max-width: 720px; width: min(100%, 720px); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35); } .panel__title { font-size: 1.1rem; font-weight: 600; margin-bottom: 1rem; } .primary, .secondary, .chatItem { font: inherit; border: none; cursor: pointer; } .primary { display: inline-block; margin-top: 1.5rem; padding: 0.85rem 1.6rem; border-radius: 999px; background: linear-gradient(135deg, #ff3b30, #ff9500); color: #fff; font-weight: 600; transition: transform 120ms ease, box-shadow 120ms ease; } .primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255, 99, 71, 0.35); } .secondary { margin-top: 1rem; padding: 0.6rem 1.2rem; border-radius: 999px; background: rgba(255, 255, 255, 0.08); color: #f4f4f5; } .muted { color: rgba(244, 244, 245, 0.6); margin-top: 0.6rem; } .dashboard { display: flex; flex-direction: column; height: 100vh; overflow-y: hidden; overflow-x: hidden; background: #0a0a0a; } .connectionPrompt { display: flex; justify-content: center; align-items: center; min-height: 100vh; padding: 2rem; } .connectionPrompt__content { max-width: 500px; width: 100%; } .connectionPrompt__content h2 { font-size: 1.5rem; margin-bottom: 1.5rem; color: #e5e7eb; text-align: center; } .connectionPrompt__form { display: flex; flex-direction: column; gap: 1rem; } .connectionPrompt__form input { padding: 0.875rem 1rem; background: #1a1a1a; border: 1px solid #2a2a2a; border-radius: 6px; color: #e5e7eb; font-size: 0.95rem; transition: border-color 150ms ease; } .connectionPrompt__form input:focus { outline: none; border-color: #60a5fa; } .connectionPrompt__form input::placeholder { color: #6b7280; } .connectionPrompt__form button { padding: 0.875rem 1rem; background: #60a5fa; border: none; border-radius: 6px; color: #fff; font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: all 150ms ease; } .connectionPrompt__form button:hover:not(:disabled) { background: #3b82f6; } .connectionPrompt__form button:disabled { opacity: 0.5; cursor: not-allowed; } .dashboard__tabs { display: flex; justify-content: space-around; align-items: center; background: #1a1a1a; border-bottom: 1px solid #2a2a2a; padding: 0.3rem 0.5rem; } .tab { flex: 1; text-align: center; padding: 0.5rem 0.75rem; font-size: 0.875rem; font-weight: 500; color: #9ca3af; background: #141414; border-radius: 6px; margin: 0 0.2rem; cursor: pointer; transition: all 200ms ease; } .tab:hover { background: #1f1f1f; color: #d1d5db; } .tab__count { color: #60a5fa; font-weight: 700; margin-left: 0.25rem; } .tab--pulse { animation: tabPulse 1s ease-in-out infinite; } @keyframes tabPulse { 0%, 100% { background: #0f0f0f; box-shadow: 0 0 0 rgba(251, 191, 36, 0); } 50% { background: rgba(251, 191, 36, 0.2); box-shadow: 0 0 20px rgba(251, 191, 36, 0.4); } } .message-count { padding: 0.35rem 0.75rem; background: rgba(255, 255, 255, 0.08); border-radius: 999px; font-size: 0.8rem; font-weight: 600; color: #94a3b8; } .dashboard__grid { flex: 1; display: flex; gap: 0; padding: 0; width: 100%; min-height: 0; height: 100%; overflow: hidden; } .dashboard__grid-right { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow: hidden; } .panel--chat { flex: 2; border-right: 1px solid #2a2a2a; min-width: 0; } .panel--super { flex: 0 1 auto; border-bottom: 1px solid #2a2a2a; min-height: 200px; max-height: 40%; } .panel--members { flex: 1; min-height: 200px; } @media (max-width: 1024px) { .dashboard__grid { flex-direction: column; } .panel--chat { border-right: none; border-bottom: 1px solid #2a2a2a; } .dashboard__grid-right { flex-direction: column; } } .connectionControl { width: 100%; padding: 1rem clamp(1rem, 3vw, 2rem); background: rgba(30, 41, 59, 0.5); border-bottom: 1px solid rgba(255, 255, 255, 0.1); } .connectionControl__content { max-width: 960px; margin: 0 auto; display: flex; justify-content: center; } .connectionControl__connected { display: flex; justify-content: center; align-items: center; gap: 1.25rem; flex-wrap: wrap; } .connectionControl__info { display: flex; align-items: center; gap: 1.25rem; } .connectionControl__badge { padding: 0.5rem 1rem; background: rgba(34, 197, 94, 0.2); color: #4ade80; border-radius: 999px; font-weight: 600; font-size: 0.9rem; } .connectionControl__liveId { color: #94a3b8; font-size: 0.9rem; font-family: 'Monaco', 'Courier New', monospace; } .connectionControl__form { display: flex; gap: 1.25rem; align-items: flex-end; justify-content: center; width: 100%; } .connectionControl__input { flex: 0 1 460px; display: flex; flex-direction: column; gap: 0.5rem; max-width: 100%; min-width: 280px; } .connectionControl__input label { color: #94a3b8; font-size: 0.85rem; font-weight: 500; } .connectionControl__input input { padding: 0.75rem 1rem; background: rgba(15, 23, 42, 0.6); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px; color: #e2e8f0; font-size: 0.95rem; font-family: 'Monaco', 'Courier New', monospace; transition: border-color 150ms ease; } .connectionControl__input input:focus { outline: none; border-color: rgba(96, 165, 250, 0.5); } .connectionControl__input input::placeholder { color: #64748b; } .connectionControl__input input:disabled { opacity: 0.5; cursor: not-allowed; } .btn-connect, .btn-disconnect { padding: 0.75rem 1.5rem; border: none; border-radius: 8px; font-weight: 600; font-size: 0.95rem; cursor: pointer; transition: all 150ms ease; white-space: nowrap; } .btn-connect { background: linear-gradient(135deg, #3b82f6, #8b5cf6); color: #fff; } .btn-connect:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3); } .btn-connect:disabled { opacity: 0.5; cursor: not-allowed; } .btn-disconnect { background: rgba(239, 68, 68, 0.15); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); } .btn-disconnect:hover { background: rgba(239, 68, 68, 0.25); transform: translateY(-1px); } @media (max-width: 768px) { .connectionControl__form { flex-direction: column; align-items: stretch; justify-content: flex-start; } .connectionControl__connected { flex-direction: column; align-items: flex-start; width: 100%; } .connectionControl__content { justify-content: flex-start; } } /* Inline variant for header placement */ .connectionControl--inline { width: auto; padding: 0; background: transparent; border: 0; } .connectionControl--inline .connectionControl__content { max-width: none; margin: 0; } .connectionControl--inline .connectionControl__form { gap: 0.75rem; } .connectionControl--inline .connectionControl__input { flex: 0 1 320px; min-width: 220px; } .connectionControl--inline .btn-connect { padding: 0.5rem 0.9rem; } .connectionControl--inline .connectionControl__connected { gap: 0.75rem; } .panel { background: #141414; border: none; border-radius: 0; padding: 1rem 1.25rem; display: flex; flex-direction: column; min-height: 0; min-width: 0; max-width: 100%; height: 100%; overflow: hidden; } .panel__header { display: flex; justify-content: flex-start; align-items: center; gap: 1rem; padding: 0.75rem 1rem; border-bottom: 1px solid #2a2a2a; background: #141414; flex-shrink: 0; } .panel__header h2 { margin: 0; font-size: 0.8125rem; color: #9ca3af; display: flex; align-items: center; gap: 0.4rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; } .badge--count { background: rgba(96, 165, 250, 0.2); color: #60a5fa; padding: 0.25rem 0.6rem; border-radius: 999px; font-size: 0.8rem; font-weight: 700; } .btn-clear { padding: 0.6rem 1.4rem; background: rgba(239, 68, 68, 0.15); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); border-radius: 999px; font-weight: 600; cursor: pointer; transition: all 150ms ease; } .btn-clear:hover { background: rgba(239, 68, 68, 0.25); transform: translateY(-1px); } .btn-clear-inline { padding: 0.35rem 0.75rem; background: rgba(239, 68, 68, 0.15); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); border-radius: 6px; font-weight: 600; font-size: 0.75rem; letter-spacing: 0.5px; cursor: pointer; transition: all 150ms ease; margin-left: auto; } .btn-clear-inline:hover:not(:disabled) { background: rgba(239, 68, 68, 0.25); transform: translateY(-1px); } .btn-clear-inline:disabled { opacity: 0.4; cursor: not-allowed; background: rgba(239, 68, 68, 0.08); border-color: rgba(239, 68, 68, 0.15); } .btn-clear-fixed { position: fixed; bottom: 2rem; right: 2rem; padding: 0.75rem 2rem; background: #2a2a2a; color: #e5e7eb; border: 1px solid #3a3a3a; border-radius: 6px; font-weight: 600; font-size: 0.9rem; letter-spacing: 0.5px; cursor: pointer; transition: all 200ms ease; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5); z-index: 100; } .btn-clear-fixed:hover { background: #3a3a3a; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6); } .btn-reset { padding: 0.35rem 0.5rem; background: #2a2a2a; color: #e5e7eb; border: 1px solid #3a3a3a; border-radius: 6px; font-size: 1rem; cursor: pointer; transition: all 200ms ease; margin-left: auto; display: flex; align-items: center; justify-content: center; } .btn-reset:hover { background: #3a3a3a; transform: scale(1.05); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4); } .btn-reset:active { transform: scale(0.95); } .chatList { display: flex; flex-direction: column; gap: 0.375rem; flex: 1; overflow-y: auto; overflow-x: hidden; padding-right: 0.5rem; /* Add space for scrollbar */ margin-right: -0.5rem; /* Pull scrollbar into padding */ padding-bottom: 2rem; /* Add more space at the bottom */ min-height: 0; width: 100%; max-width: 100%; box-sizing: border-box; } .chatList::-webkit-scrollbar { width: 6px; } .chatList::-webkit-scrollbar-track { background: #0a0a0a; border-radius: 10px; } .chatList::-webkit-scrollbar-thumb { background: #3a3a3a; border-radius: 10px; } .chatList::-webkit-scrollbar-thumb:hover { background: #4a4a4a; } .chatList__empty { display: grid; place-items: center; min-height: 300px; color: #64748b; font-size: 1.1rem; } .chatItem { display: flex; flex-direction: column; gap: 0.375rem; padding: 0.625rem 0.875rem; border-radius: 6px; background: #1f1f1f; border: 1px solid #2a2a2a; text-align: left; transition: all 250ms ease-out; cursor: pointer; flex-shrink: 0; width: 100%; max-width: 100%; box-sizing: border-box; } .chatItem:hover { background: #262626; border-color: #3a3a3a; transform: translateX(2px); } .chatItem--active { background: rgba(59, 130, 246, 0.15); border-color: rgba(59, 130, 246, 0.5); box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2); filter: brightness(0.85); } .chatItem--previously-selected { filter: brightness(0.6); opacity: 0.7; } /* Ensure active state overrides previously selected state */ .chatItem--active.chatItem--previously-selected { filter: brightness(0.85); opacity: 1; } .chatItem__header { display: flex; gap: 0.75rem; align-items: flex-start; } .chatItem__avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255, 255, 255, 0.1); } .chatItem__meta { flex: 1; display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; overflow: hidden; } .chatItem__authorLine { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; min-width: 0; max-width: 100%; } .chatItem__author { font-weight: 600; font-size: 0.9rem; color: #e5e7eb; } .chatItem__membership { font-weight: 500; font-size: 0.85rem; color: #10b981; font-style: italic; } .chatItem__time { font-size: 0.75rem; color: #64748b; } .chatItem__text { margin: 0; line-height: 1.5; color: #9ca3af; word-break: break-word; overflow-wrap: break-word; font-size: 0.875rem; } .chatItem__superchat { padding: 0.6rem 1rem; border-radius: 8px; font-weight: 600; font-size: 0.9rem; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); align-self: flex-start; /* Align to the left */ } .chatItem__superchat-inline { padding: 0.3rem 0.6rem; border-radius: 6px; font-weight: 700; font-size: 0.85rem; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); margin-left: 0.5rem; display: inline-block; flex-shrink: 0; white-space: nowrap; } .chatItem__membership { padding: 0.6rem 1rem; background: linear-gradient(135deg, #10b981, #059669); border-radius: 8px; font-weight: 600; font-size: 0.9rem; color: #fff; } .badge { font-size: 0.85rem; padding: 0.15rem 0.4rem; border-radius: 4px; font-weight: 600; display: inline-flex; align-items: center; gap: 0.25rem; } .badge--image { width: 16px; height: 16px; padding: 0; border-radius: 2px; } .badge--moderator { background: rgba(239, 68, 68, 0.2); color: #fca5a5; } .badge--member { background: rgba(34, 197, 94, 0.2); color: #86efac; } .badge--verified { background: rgba(59, 130, 246, 0.2); color: #93c5fd; } .memberItem { display: flex; flex-direction: column; gap: 0.375rem; padding: 0.625rem 0.875rem; border-radius: 6px; background: #1f1f1f; border: 1px solid #2a2a2a; text-align: left; transition: all 250ms ease-out; cursor: pointer; flex-shrink: 0; } .memberItem:hover { background: #262626; border-color: #3a3a3a; transform: translateX(2px); } .memberItem--active { background: rgba(16, 185, 129, 0.15); border-color: rgba(16, 185, 129, 0.5); box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2); filter: brightness(0.85); } .memberItem--previously-selected { filter: brightness(0.6); opacity: 0.7; } /* Ensure active state overrides previously selected state */ .memberItem--active.memberItem--previously-selected { filter: brightness(0.85); opacity: 1; } .memberItem__header { display: flex; gap: 0.75rem; align-items: center; } .memberItem__avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(16, 185, 129, 0.4); } .memberItem__info { flex: 1; display: flex; flex-direction: column; gap: 0.25rem; } .memberItem__author { font-weight: 600; font-size: 0.9rem; color: #e5e7eb; } .memberItem__level { font-size: 0.85rem; color: #6ee7b7; font-weight: 600; } .memberItem__time { font-size: 0.7rem; color: #64748b; } .memberItem__text { margin: 0; line-height: 1.4; color: #d1fae5; font-size: 0.9rem; } .selectedPreview { width: 100%; background: rgba(59, 130, 246, 0.1); border: 2px solid rgba(59, 130, 246, 0.3); border-radius: 20px; padding: 1.5rem; backdrop-filter: blur(10px); } .selectedPreview h3 { margin: 0 0 1rem 0; font-size: 1.2rem; color: #93c5fd; } .selectedPreview__card { background: rgba(15, 23, 42, 0.6); padding: 1.5rem; border-radius: 14px; display: flex; flex-direction: column; gap: 1rem; } .selectedPreview__header { display: flex; gap: 1rem; align-items: center; } .selectedPreview__avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(96, 165, 250, 0.4); } .selectedPreview__authorLine { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; } .selectedPreview__author { font-weight: 700; font-size: 1.1rem; color: #60a5fa; } .selectedPreview__superchat { padding: 0.75rem 1.25rem; border-radius: 10px; font-weight: 600; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); } .selectedPreview__text { font-size: 1.1rem; line-height: 1.6; color: #f1f5f9; margin: 0; } .overlay { min-height: 100vh; display: grid; place-items: center; background: transparent; } @keyframes fadeIn { from { opacity: 0; transform: translateY(20px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } } @keyframes fadeOut { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(0.95); } } .overlay__card { background: #1f1f1f; border: 1px solid #3a3a3a; border-radius: 12px; padding: 0; display: flex; flex-direction: column; gap: 0; width: min(100% - 2rem, 600px); max-width: 95vw; animation: fadeIn 0.4s ease-out; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5); overflow: hidden; } .overlay__card--fadeOut { animation: fadeOut 0.3s ease-in forwards; } .overlay__header { display: flex; gap: 0.625rem; align-items: center; padding: 0.75rem 1rem; background: rgba(255, 255, 255, 0.03); border-bottom: 1px solid rgba(255, 255, 255, 0.05); } .overlay__avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255, 255, 255, 0.1); flex-shrink: 0; } .overlay__authorLine { display: flex; align-items: center; gap: 0.375rem; flex-wrap: wrap; flex: 1; min-width: 0; } .overlay__author { font-size: 0.95rem; font-weight: 600; color: #e5e7eb; margin-right: 0.25rem; } .overlay__badge { font-size: 0.75rem; } .overlay__badge--image { width: 16px; height: 16px; border-radius: 2px; } /* Inline emoji images */ .overlay__emoji { width: 1.2em; height: 1.2em; vertical-align: -0.2em; margin: 0 0.08em; display: inline-block; } .chatItem__emoji, .memberItem__emoji { width: 1.1em; height: 1.1em; vertical-align: -0.2em; margin: 0 0.06em; display: inline-block; } /* Message links */ .message-link { color: #60a5fa; text-decoration: underline; cursor: pointer; transition: color 0.2s; } .message-link:hover { color: #93c5fd; } /* Confirmation modal */ .modal-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: 10000; animation: fadeIn 0.2s ease-out; } .modal { background: #1f1f1f; border: 1px solid #3a3a3a; border-radius: 12px; padding: 2rem; max-width: 500px; width: 90%; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5); animation: slideUp 0.3s ease-out; } @keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } } .modal__title { margin: 0 0 1rem 0; font-size: 1.25rem; font-weight: 600; color: #fff; } .modal__url { margin: 0 0 1.5rem 0; padding: 0.75rem; background: #0f0f0f; border: 1px solid #2a2a2a; border-radius: 6px; color: #60a5fa; word-break: break-all; font-family: monospace; font-size: 0.9rem; } .modal__actions { display: flex; gap: 0.75rem; justify-content: flex-end; } .modal__btn { padding: 0.625rem 1.25rem; border: none; border-radius: 6px; font-weight: 500; cursor: pointer; transition: all 0.2s; font-size: 0.95rem; } .modal__btn--cancel { background: #2a2a2a; color: #fff; } .modal__btn--cancel:hover { background: #3a3a3a; } .modal__btn--confirm { background: #60a5fa; color: #0f0f0f; } .modal__btn--confirm:hover { background: #93c5fd; } .overlay__superchat, .overlay__membership { padding: 0.6rem 1rem; border-radius: 8px; font-weight: 600; font-size: 0.9rem; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); align-self: flex-start; } .overlay__superchat-header { padding: 0.875rem 1rem; color: #fff; display: flex; align-items: center; gap: 0.625rem; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); } .overlay__superchat-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255, 255, 255, 0.3); flex-shrink: 0; } .overlay__superchat-name { font-size: 1.35rem; font-weight: 700; } .overlay__superchat-separator { font-size: 1.15rem; font-weight: 600; opacity: 0.85; margin: 0 0.125rem; } .overlay__superchat-amount { font-size: 1.35rem; font-weight: 700; } .overlay__superchat-text { padding: 0.75rem 1rem; font-size: 1.05rem; line-height: 1.4; color: #e5e7eb; font-weight: 400; text-align: left; word-break: break-word; background: rgba(0, 0, 0, 0.25); border-top: 1px solid rgba(0, 0, 0, 0.2); margin: 0; } .overlay__membership { background: linear-gradient(135deg, #10b981, #059669); } .overlay__membership-header { padding: 0.875rem 1rem; background: linear-gradient(135deg, #10b981, #059669); color: #fff; display: flex; align-items: center; gap: 0.625rem; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); } .overlay__membership-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255, 255, 255, 0.3); flex-shrink: 0; } .overlay__membership-info { display: flex; align-items: center; gap: 0.375rem; flex-wrap: wrap; flex: 1; min-width: 0; } .overlay__membership-name { font-size: 1.35rem; font-weight: 700; } .overlay__membership-separator { font-size: 1.15rem; font-weight: 600; opacity: 0.85; margin: 0 0.125rem; } .overlay__membership-level { font-size: 1.35rem; font-weight: 700; } .overlay__membership-text { padding: 0.75rem 1rem; font-size: 1.05rem; line-height: 1.4; color: #e5e7eb; font-weight: 400; text-align: left; word-break: break-word; background: rgba(0, 0, 0, 0.25); border-top: 1px solid rgba(0, 0, 0, 0.2); margin: 0; } .overlay__text { font-size: 1.05rem; line-height: 1.4; color: #d1d5db; font-weight: 400; text-align: left; word-break: break-word; padding: 0.75rem 1rem; margin: 0; } .overlay__timestamp { font-size: 0.7rem; color: rgba(255, 255, 255, 0.5); font-weight: 400; margin-left: auto; white-space: nowrap; } .overlay__placeholder { padding: 1rem 1.4rem; border-radius: 12px; background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.75); display: flex; align-items: center; justify-content: center; text-align: center; } .status { padding: 0.4rem 0.8rem; border-radius: 999px; font-size: 0.85rem; font-weight: 600; } .status--connecting { background: rgba(125, 211, 252, 0.2); color: #7dd3fc; } .status--live { background: rgba(74, 222, 128, 0.2); color: #4ade80; } .status--error { background: rgba(248, 113, 113, 0.2); color: #f87171; }