:root { color-scheme: dark; } body { margin: 0; font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: #050608; 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: hidden; background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%); } .dashboard__header { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem clamp(1rem, 3vw, 2rem); background: rgba(15, 23, 42, 0.6); border-bottom: 1px solid rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); } .dashboard__title h1 { font-size: 2rem; margin: 0 0 0.5rem 0; background: linear-gradient(135deg, #60a5fa, #a78bfa); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } .dashboard__status { display: flex; align-items: center; gap: 1rem; } .dashboard__connect { flex: 1; display: flex; justify-content: center; padding: 0 1rem; } .message-count { padding: 0.5rem 1rem; background: rgba(255, 255, 255, 0.08); border-radius: 999px; font-size: 0.9rem; font-weight: 600; color: #94a3b8; } .dashboard__grid { flex: 1; display: grid; grid-template-columns: minmax(420px, 2.1fr) minmax(340px, 1.5fr); justify-content: center; align-items: stretch; column-gap: 0.6rem; row-gap: 3rem; align-content: start; padding: 1rem clamp(1rem, 3vw, 2rem); width: 100%; max-width: 1400px; margin: 0 auto; min-height: 0; overflow: visible; } .panel--chat { grid-column: 1; grid-row: 1 / span 2; } .panel--super { grid-column: 2; grid-row: 1; } .panel--members { grid-column: 2; grid-row: 2; margin-top: 0rem; } @media (max-width: 1180px) { .dashboard__grid { grid-template-columns: minmax(360px, 1.8fr) minmax(300px, 1fr); column-gap: 0.5rem; row-gap: 0.75rem; } } @media (max-width: 1024px) { .dashboard__grid { grid-template-columns: minmax(0, 1fr); max-width: 760px; } .panel--chat, .panel--super, .panel--members { grid-column: auto; grid-row: auto; margin-top: 0; } } .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 360px; min-width: 240px; } .connectionControl--inline .btn-connect { padding: 0.6rem 1.1rem; } .connectionControl--inline .connectionControl__connected { gap: 0.75rem; } .panel { background: rgba(30, 41, 59, 0.4); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 16px; padding: 1rem; backdrop-filter: blur(10px); display: flex; flex-direction: column; min-height: 0; min-width: 0; max-width: 100%; height: 100%; overflow: hidden; } .panel__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; padding-bottom: 0.75rem; border-bottom: 1px solid rgba(255, 255, 255, 0.1); flex-shrink: 0; } .panel__header h2 { margin: 0; font-size: 1.2rem; color: #e2e8f0; display: flex; align-items: center; gap: 0.5rem; } .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); } .chatList { display: flex; flex-direction: column; gap: 0.5rem; flex: 1; overflow-y: auto; overflow-x: hidden; padding-right: 0.25rem; min-height: 0; } .chatList::-webkit-scrollbar { width: 8px; } .chatList::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.05); border-radius: 10px; } .chatList::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2); border-radius: 10px; } .chatList::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.3); } .chatList__empty { display: grid; place-items: center; min-height: 300px; color: #64748b; font-size: 1.1rem; } .chatItem { display: flex; flex-direction: column; gap: 0.5rem; padding: 0.75rem 1rem; border-radius: 10px; background: rgba(15, 23, 42, 0.6); border: 1px solid rgba(255, 255, 255, 0.06); text-align: left; transition: all 150ms ease; cursor: pointer; flex-shrink: 0; } .chatItem:hover { background: rgba(30, 41, 59, 0.8); border-color: rgba(96, 165, 250, 0.3); transform: translateX(4px); } .chatItem--active { background: rgba(59, 130, 246, 0.15); border-color: rgba(59, 130, 246, 0.5); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.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; } .chatItem__authorLine { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; } .chatItem__author { font-weight: 700; font-size: 0.95rem; color: #60a5fa; } .chatItem__time { font-size: 0.75rem; color: #64748b; } .chatItem__text { margin: 0; line-height: 1.5; color: #e2e8f0; word-break: break-word; overflow-wrap: break-word; font-size: 0.95rem; } .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); } .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; display: inline-flex; align-items: center; gap: 0.25rem; } .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.5rem; padding: 0.75rem 1rem; border-radius: 10px; background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.1)); border: 1px solid rgba(16, 185, 129, 0.2); text-align: left; transition: all 150ms ease; cursor: pointer; flex-shrink: 0; } .memberItem:hover { background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.2)); border-color: rgba(16, 185, 129, 0.4); transform: translateX(4px); } .memberItem--active { background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(5, 150, 105, 0.25)); border-color: rgba(16, 185, 129, 0.6); box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.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: 700; font-size: 0.95rem; color: #10b981; } .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 { padding: 2rem 2.5rem; border-radius: 24px; background: linear-gradient(135deg, #0f172a, #1e293b); border: 2px solid rgba(96, 165, 250, 0.3); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.5rem; min-width: min(600px, 90vw); max-width: min(900px, 95vw); animation: fadeIn 0.4s ease-out; } .overlay__card--fadeOut { animation: fadeOut 0.3s ease-in forwards; } .overlay__header { display: flex; gap: 1rem; align-items: center; justify-content: center; width: 100%; padding-bottom: 1rem; border-bottom: 1px solid rgba(255, 255, 255, 0.1); } .overlay__header > div { display: flex; flex-direction: column; align-items: center; } .overlay__avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(96, 165, 250, 0.5); box-shadow: 0 4px 12px rgba(96, 165, 250, 0.3); } .overlay__authorLine { display: flex; align-items: center; justify-content: center; gap: 0.75rem; flex-wrap: wrap; } .overlay__author { font-size: 1.4rem; font-weight: 700; color: #60a5fa; text-shadow: 0 2px 8px rgba(96, 165, 250, 0.4); } .overlay__badge { font-size: 1.2rem; padding: 0.25rem 0.5rem; border-radius: 6px; display: inline-flex; align-items: center; } .overlay__badge--moderator { background: rgba(239, 68, 68, 0.3); border: 1px solid rgba(239, 68, 68, 0.5); } .overlay__badge--member { background: rgba(34, 197, 94, 0.3); border: 1px solid rgba(34, 197, 94, 0.5); } .overlay__badge--verified { background: rgba(59, 130, 246, 0.3); border: 1px solid rgba(59, 130, 246, 0.5); } .overlay__superchat { padding: 1rem 1.5rem; border-radius: 12px; font-weight: 700; font-size: 1.2rem; color: #fff; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3); text-align: center; } .overlay__membership { padding: 1rem 1.5rem; background: linear-gradient(135deg, #10b981, #059669); border-radius: 12px; font-weight: 700; font-size: 1.2rem; color: #fff; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4); box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4); text-align: center; } .overlay__text { font-size: clamp(1.5rem, 2.5vw, 2.2rem); line-height: 1.5; color: #f1f5f9; font-weight: 500; text-align: center; } .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; }