/* ── CSS Variables ── */ :root { --bg-deep: #1a1b1e; --bg-primary: #1e1f22; --bg-secondary: #2b2d31; --bg-tertiary: #313338; --text-normal: #dbdee1; --text-muted: #949ba4; --text-faint: #6d6f78; --accent: #e67e22; --accent-rgb: 230, 126, 34; --accent-hover: #d35400; --success: #57d28f; --danger: #ed4245; --warning: #fee75c; --border: rgba(255, 255, 255, 0.06); --radius: 8px; --radius-lg: 12px; --transition: 150ms ease; --font: 'Segoe UI', system-ui, -apple-system, sans-serif; --header-height: 56px; } /* ── Reset & Base ── */ *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; } html, body { height: 100%; font-family: var(--font); font-size: 15px; color: var(--text-normal); background: var(--bg-deep); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow: hidden; } #root { height: 100%; } /* ── App Shell ── */ .hub-app { display: flex; flex-direction: column; height: 100vh; overflow: hidden; } /* ── Header ── */ .hub-header { position: sticky; top: 0; z-index: 100; display: flex; align-items: center; height: var(--header-height); min-height: var(--header-height); padding: 0 16px; background: var(--bg-primary); border-bottom: 1px solid var(--border); gap: 16px; } .hub-header-left { display: flex; align-items: center; gap: 10px; flex-shrink: 0; } .hub-logo { font-size: 24px; line-height: 1; } .hub-title { font-size: 18px; font-weight: 700; color: var(--text-normal); letter-spacing: -0.02em; white-space: nowrap; } /* ── Connection Status Dot ── */ .hub-conn-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--danger); flex-shrink: 0; transition: background var(--transition); box-shadow: 0 0 0 2px rgba(237, 66, 69, 0.25); } .hub-conn-dot.online { background: var(--success); box-shadow: 0 0 0 2px rgba(87, 210, 143, 0.25); animation: pulse-dot 2s ease-in-out infinite; } @keyframes pulse-dot { 0%, 100% { box-shadow: 0 0 0 2px rgba(87, 210, 143, 0.25); } 50% { box-shadow: 0 0 0 6px rgba(87, 210, 143, 0.1); } } /* ── Tab Navigation ── */ .hub-tabs { display: flex; align-items: center; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; padding: 0 4px; } .hub-tabs::-webkit-scrollbar { display: none; } .hub-tab { display: flex; align-items: center; gap: 6px; padding: 8px 14px; border: none; background: transparent; color: var(--text-muted); font-family: var(--font); font-size: 14px; font-weight: 500; cursor: pointer; border-radius: var(--radius); white-space: nowrap; transition: all var(--transition); position: relative; user-select: none; } .hub-tab:hover { color: var(--text-normal); background: var(--bg-secondary); } .hub-tab.active { color: var(--accent); background: rgba(var(--accent-rgb), 0.1); } .hub-tab.active::after { content: ''; position: absolute; bottom: -1px; left: 50%; transform: translateX(-50%); width: calc(100% - 16px); height: 2px; background: var(--accent); border-radius: 1px; } .hub-tab-icon { font-size: 16px; line-height: 1; } .hub-tab-label { text-transform: capitalize; } /* ── Header Right ── */ .hub-header-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; } .hub-download-btn { display: flex; align-items: center; gap: 6px; padding: 4px 10px; font-size: 12px; font-weight: 500; font-family: var(--font); text-decoration: none; color: var(--text-muted); background: var(--bg-secondary); border-radius: var(--radius); cursor: pointer; transition: all var(--transition); white-space: nowrap; } .hub-download-btn:hover { color: var(--accent); background: rgba(var(--accent-rgb), 0.1); } .hub-download-icon { font-size: 14px; line-height: 1; } .hub-download-label { line-height: 1; } .hub-version { font-size: 12px; color: var(--text-faint); font-weight: 500; font-variant-numeric: tabular-nums; background: var(--bg-secondary); padding: 4px 8px; border-radius: 4px; } /* ── Check for Updates Button ── */ .hub-check-update-btn { background: none; border: 1px solid var(--border); border-radius: var(--radius); color: var(--text-secondary); font-size: 14px; padding: 2px 8px; cursor: pointer; transition: all var(--transition); line-height: 1; } .hub-check-update-btn:hover:not(:disabled) { color: var(--accent); border-color: var(--accent); } .hub-check-update-btn:disabled { opacity: 0.4; cursor: default; } /* ── Update Modal ── */ .hub-update-overlay { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(4px); } .hub-update-modal { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 32px 40px; text-align: center; min-width: 320px; max-width: 400px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5); } .hub-update-icon { font-size: 40px; margin-bottom: 12px; } .hub-update-modal h2 { margin: 0 0 8px; font-size: 18px; color: var(--text-primary); } .hub-update-modal p { margin: 0 0 20px; font-size: 14px; color: var(--text-secondary); } .hub-update-progress { height: 4px; border-radius: 2px; background: var(--bg-deep); overflow: hidden; } .hub-update-progress-bar { height: 100%; width: 40%; border-radius: 2px; background: var(--accent); animation: hub-update-slide 1.5s ease-in-out infinite; } @keyframes hub-update-slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(350%); } } .hub-update-btn { padding: 8px 32px; font-size: 14px; font-weight: 600; border: none; border-radius: var(--radius); background: var(--accent); color: #fff; cursor: pointer; transition: opacity var(--transition); } .hub-update-btn:hover { opacity: 0.85; } .hub-update-btn-secondary { background: var(--bg-tertiary); color: var(--text-secondary); margin-top: 4px; } .hub-update-versions { display: flex; flex-direction: column; gap: 2px; margin: 8px 0; font-size: 12px; color: var(--text-muted); } .hub-update-error-detail { font-size: 11px; color: #ef4444; background: rgba(239, 68, 68, 0.1); border-radius: var(--radius); padding: 6px 10px; word-break: break-word; max-width: 300px; } /* ── Refresh Button ── */ .hub-refresh-btn { background: none; border: none; color: var(--text-muted); font-size: 1rem; cursor: pointer; padding: 4px 6px; border-radius: var(--radius); transition: all var(--transition); line-height: 1; } .hub-refresh-btn:hover { color: var(--accent); background: rgba(230, 126, 34, 0.1); } /* ── Admin Button (header) ── */ .hub-admin-btn { background: none; border: 1px solid var(--border); border-radius: var(--radius); color: var(--text-muted); font-size: 16px; padding: 4px 8px; cursor: pointer; transition: all var(--transition); line-height: 1; } .hub-admin-btn:hover { color: var(--accent); border-color: var(--accent); } .hub-admin-btn.active { color: #4ade80; border-color: #4ade80; } /* ── Admin Login Modal ── */ .hub-admin-overlay { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(4px); } .hub-admin-modal { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; width: 340px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5); } .hub-admin-modal-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border); font-weight: 600; } .hub-admin-modal-close { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 16px; } .hub-admin-modal-close:hover { color: var(--text); } .hub-admin-modal-body { padding: 20px; display: flex; flex-direction: column; gap: 12px; } .hub-admin-input { width: 100%; padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-secondary); color: var(--text); font-size: 14px; font-family: var(--font); box-sizing: border-box; } .hub-admin-input:focus { outline: none; border-color: var(--accent); } .hub-admin-error { color: #ef4444; font-size: 13px; margin: 0; } .hub-admin-submit { padding: 8px 16px; background: var(--accent); color: #fff; border: none; border-radius: var(--radius); font-size: 14px; font-weight: 500; cursor: pointer; transition: opacity var(--transition); } .hub-admin-submit:hover { opacity: 0.9; } /* ── Version Info Modal ── */ .hub-version-clickable { cursor: pointer; transition: all var(--transition); padding: 2px 8px; border-radius: var(--radius); } .hub-version-clickable:hover { color: var(--accent); background: rgba(230, 126, 34, 0.1); } .hub-version-overlay { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(4px); } .hub-version-modal { background: var(--bg-primary); border: 1px solid var(--border); border-radius: 16px; width: 340px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4); overflow: hidden; animation: hub-modal-in 200ms ease; } @keyframes hub-modal-in { from { opacity: 0; transform: scale(0.95) translateY(8px); } to { opacity: 1; transform: scale(1) translateY(0); } } .hub-version-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border); font-weight: 700; font-size: 14px; } .hub-version-modal-close { background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 4px 8px; border-radius: 6px; font-size: 14px; transition: all var(--transition); } .hub-version-modal-close:hover { background: rgba(255, 255, 255, 0.08); color: var(--text-normal); } .hub-version-modal-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; } .hub-version-modal-row { display: flex; justify-content: space-between; align-items: center; } .hub-version-modal-label { color: var(--text-muted); font-size: 13px; } .hub-version-modal-value { font-weight: 600; font-size: 13px; display: flex; align-items: center; gap: 6px; } .hub-version-modal-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--danger); flex-shrink: 0; } .hub-version-modal-dot.online { background: var(--success); } .hub-version-modal-link { color: var(--accent); text-decoration: none; font-weight: 500; font-size: 13px; } .hub-version-modal-link:hover { text-decoration: underline; } .hub-version-modal-hint { font-size: 11px; color: var(--accent); padding: 6px 10px; background: rgba(230, 126, 34, 0.1); border-radius: var(--radius); text-align: center; } /* ── Update Section in Version Modal ── */ .hub-version-modal-update { margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--border); } .hub-version-modal-update-btn { width: 100%; padding: 10px 16px; border: none; border-radius: var(--radius); background: var(--bg-tertiary); color: var(--text-normal); font-size: 13px; font-weight: 600; cursor: pointer; transition: all var(--transition); display: flex; align-items: center; justify-content: center; gap: 8px; } .hub-version-modal-update-btn:hover { background: var(--bg-hover); color: var(--accent); } .hub-version-modal-update-btn.ready { background: rgba(46, 204, 113, 0.15); color: #2ecc71; } .hub-version-modal-update-btn.ready:hover { background: rgba(46, 204, 113, 0.25); } .hub-version-modal-update-status { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; color: var(--text-muted); padding: 8px 0; flex-wrap: wrap; } .hub-version-modal-update-status.success { color: #2ecc71; } .hub-version-modal-update-status.error { color: #e74c3c; } .hub-version-modal-update-retry { background: none; border: none; color: var(--text-muted); font-size: 11px; cursor: pointer; text-decoration: underline; padding: 2px 4px; width: 100%; margin-top: 4px; } .hub-version-modal-update-retry:hover { color: var(--text-normal); } @keyframes hub-spin { to { transform: rotate(360deg); } } .hub-update-spinner { width: 14px; height: 14px; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: hub-spin 0.8s linear infinite; flex-shrink: 0; } /* ── Main Content Area ── */ .hub-content { flex: 1; overflow-y: auto; overflow-x: hidden; background: var(--bg-deep); scrollbar-width: thin; scrollbar-color: var(--bg-tertiary) transparent; } .hub-content::-webkit-scrollbar { width: 6px; } .hub-content::-webkit-scrollbar-track { background: transparent; } .hub-content::-webkit-scrollbar-thumb { background: var(--bg-tertiary); border-radius: 3px; } .hub-content::-webkit-scrollbar-thumb:hover { background: var(--text-faint); } /* ── Empty State ── */ .hub-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; min-height: 300px; text-align: center; padding: 32px; animation: fade-in 300ms ease; } .hub-empty-icon { font-size: 64px; line-height: 1; margin-bottom: 20px; opacity: 0.6; filter: grayscale(30%); } .hub-empty h2 { font-size: 22px; font-weight: 700; color: var(--text-normal); margin-bottom: 8px; } .hub-empty p { font-size: 15px; color: var(--text-muted); max-width: 360px; line-height: 1.5; } /* ── Animations ── */ @keyframes fade-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } } /* ── Selection ── */ ::selection { background: rgba(var(--accent-rgb), 0.3); color: var(--text-normal); } /* ── Focus Styles ── */ :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; } /* ── Responsive ── */ @media (max-width: 768px) { :root { --header-height: 48px; } .hub-header { padding: 0 10px; gap: 8px; } .hub-title { font-size: 15px; } .hub-logo { font-size: 20px; } .hub-tab { padding: 6px 10px; font-size: 13px; gap: 4px; } .hub-tab-label { display: none; } .hub-tab-icon { font-size: 18px; } .hub-version { font-size: 11px; } .hub-empty-icon { font-size: 48px; } .hub-empty h2 { font-size: 18px; } .hub-empty p { font-size: 14px; } } @media (max-width: 480px) { .hub-header-right { display: none; } .hub-header { padding: 0 8px; gap: 6px; } .hub-title { font-size: 14px; } } /* ══════════════════════════════════════════════ RADIO PLUGIN – World Radio Globe ══════════════════════════════════════════════ */ .radio-container { display: flex; flex-direction: column; width: 100%; height: 100%; overflow: hidden; background: var(--bg-deep); /* Default-Theme Vars (scoped, damit data-theme sie überschreiben kann) */ --bg-deep: #1a1b1e; --bg-primary: #1e1f22; --bg-secondary: #2b2d31; --bg-tertiary: #313338; --text-normal: #dbdee1; --text-muted: #949ba4; --text-faint: #6d6f78; --accent: #e67e22; --accent-rgb: 230, 126, 34; --accent-hover: #d35400; --border: rgba(255, 255, 255, 0.06); } /* ── Radio Themes ── */ .radio-container[data-theme="purple"] { --bg-deep: #13111c; --bg-primary: #1a1726; --bg-secondary: #241f35; --bg-tertiary: #2e2845; --accent: #9b59b6; --accent-rgb: 155, 89, 182; --accent-hover: #8e44ad; } .radio-container[data-theme="forest"] { --bg-deep: #0f1a14; --bg-primary: #142119; --bg-secondary: #1c2e22; --bg-tertiary: #253a2c; --accent: #2ecc71; --accent-rgb: 46, 204, 113; --accent-hover: #27ae60; } .radio-container[data-theme="ocean"] { --bg-deep: #0a1628; --bg-primary: #0f1e33; --bg-secondary: #162a42; --bg-tertiary: #1e3652; --accent: #3498db; --accent-rgb: 52, 152, 219; --accent-hover: #2980b9; } .radio-container[data-theme="cherry"] { --bg-deep: #1a0f14; --bg-primary: #22141a; --bg-secondary: #301c25; --bg-tertiary: #3e2530; --accent: #e74c6f; --accent-rgb: 231, 76, 111; --accent-hover: #c0392b; } /* ── Globe ── */ /* ── Radio Topbar ── */ .radio-topbar { display: flex; align-items: center; padding: 0 16px; height: 52px; background: var(--bg-secondary, #2b2d31); border-bottom: 1px solid rgba(0, 0, 0, .24); z-index: 10; flex-shrink: 0; gap: 16px; } .radio-topbar-left { display: flex; align-items: center; gap: 10px; flex-shrink: 0; } .radio-topbar-logo { font-size: 20px; } .radio-topbar-title { font-size: 16px; font-weight: 700; color: var(--text-normal); letter-spacing: -.02em; } .radio-topbar-np { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; justify-content: center; } .radio-topbar-right { display: flex; align-items: center; gap: 6px; flex-shrink: 0; margin-left: auto; } .radio-topbar-stop { display: flex; align-items: center; gap: 4px; background: var(--danger); color: #fff; border: none; border-radius: var(--radius); padding: 6px 14px; font-size: 13px; font-family: var(--font); font-weight: 600; cursor: pointer; transition: all var(--transition); flex-shrink: 0; } .radio-topbar-stop:hover { background: #c63639; } .radio-theme-inline { display: flex; align-items: center; gap: 4px; margin-left: 4px; } /* ── Globe Wrapper ── */ .radio-globe-wrap { position: relative; flex: 1; overflow: hidden; } .radio-globe { width: 100%; height: 100%; } .radio-globe canvas { outline: none !important; } /* ── Search Overlay ── */ .radio-search { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); z-index: 20; width: min(440px, calc(100% - 32px)); } .radio-search-wrap { display: flex; align-items: center; background: rgba(30, 31, 34, 0.92); backdrop-filter: blur(12px); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 0 14px; gap: 8px; box-shadow: 0 8px 32px rgba(0,0,0,0.4); } .radio-search-icon { font-size: 16px; opacity: 0.6; flex-shrink: 0; } .radio-search-input { flex: 1; background: transparent; border: none; color: var(--text-normal); font-family: var(--font); font-size: 14px; padding: 12px 0; outline: none; } .radio-search-input::placeholder { color: var(--text-faint); } .radio-search-clear { background: none; border: none; color: var(--text-muted); font-size: 14px; cursor: pointer; padding: 4px; border-radius: 4px; transition: color var(--transition); } .radio-search-clear:hover { color: var(--text-normal); } /* ── Search Results ── */ .radio-search-results { margin-top: 6px; background: rgba(30, 31, 34, 0.95); backdrop-filter: blur(12px); border: 1px solid var(--border); border-radius: var(--radius-lg); max-height: 360px; overflow-y: auto; box-shadow: 0 12px 40px rgba(0,0,0,0.5); scrollbar-width: thin; scrollbar-color: var(--bg-tertiary) transparent; } .radio-search-result { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 14px; background: none; border: none; border-bottom: 1px solid var(--border); color: var(--text-normal); font-family: var(--font); font-size: 14px; cursor: pointer; text-align: left; transition: background var(--transition); } .radio-search-result:last-child { border-bottom: none; } .radio-search-result:hover { background: rgba(var(--accent-rgb), 0.08); } .radio-search-result-icon { font-size: 18px; flex-shrink: 0; } .radio-search-result-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .radio-search-result-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .radio-search-result-sub { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* ── Favorites FAB ── */ .radio-fab { position: absolute; top: 16px; right: 16px; z-index: 20; display: flex; align-items: center; gap: 4px; padding: 10px 14px; background: rgba(30, 31, 34, 0.92); backdrop-filter: blur(12px); border: 1px solid var(--border); border-radius: var(--radius-lg); color: var(--text-normal); font-size: 16px; cursor: pointer; box-shadow: 0 8px 32px rgba(0,0,0,0.4); transition: all var(--transition); } .radio-fab:hover, .radio-fab.active { background: rgba(var(--accent-rgb), 0.15); border-color: rgba(var(--accent-rgb), 0.3); } .radio-fab-badge { font-size: 11px; font-weight: 700; background: var(--accent); color: #fff; padding: 1px 6px; border-radius: 10px; min-width: 18px; text-align: center; } /* ── Side Panel ── */ .radio-panel { position: absolute; top: 0; right: 0; width: 340px; height: 100%; z-index: 15; background: rgba(30, 31, 34, 0.95); backdrop-filter: blur(16px); border-left: 1px solid var(--border); display: flex; flex-direction: column; animation: slide-in-right 200ms ease; box-shadow: -8px 0 32px rgba(0,0,0,0.3); } @keyframes slide-in-right { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } } .radio-panel-header { display: flex; align-items: center; justify-content: space-between; padding: 16px; border-bottom: 1px solid var(--border); flex-shrink: 0; } .radio-panel-header h3 { font-size: 16px; font-weight: 700; color: var(--text-normal); } .radio-panel-sub { font-size: 12px; color: var(--text-muted); display: block; margin-top: 2px; } .radio-panel-close { background: none; border: none; color: var(--text-muted); font-size: 18px; cursor: pointer; padding: 4px 8px; border-radius: 4px; transition: all var(--transition); } .radio-panel-close:hover { color: var(--text-normal); background: var(--bg-secondary); } .radio-panel-body { flex: 1; overflow-y: auto; padding: 8px; scrollbar-width: thin; scrollbar-color: var(--bg-tertiary) transparent; } .radio-panel-empty { text-align: center; color: var(--text-muted); padding: 40px 16px; font-size: 14px; } .radio-panel-loading { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 40px 16px; color: var(--text-muted); font-size: 14px; } /* ── Station Card ── */ .radio-station { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: var(--radius); transition: background var(--transition); gap: 10px; } .radio-station:hover { background: var(--bg-secondary); } .radio-station.playing { background: rgba(var(--accent-rgb), 0.1); border: 1px solid rgba(var(--accent-rgb), 0.2); } .radio-station-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; } .radio-station-name { font-size: 14px; font-weight: 600; color: var(--text-normal); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .radio-station-loc { font-size: 11px; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .radio-station-live { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--accent); font-weight: 600; } .radio-station-btns { display: flex; gap: 4px; flex-shrink: 0; } /* ── Buttons ── */ .radio-btn-play, .radio-btn-stop { width: 34px; height: 34px; border: none; border-radius: 50%; font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all var(--transition); } .radio-btn-play { background: var(--accent); color: #fff; } .radio-btn-play:hover:not(:disabled) { background: var(--accent-hover); transform: scale(1.05); } .radio-btn-play:disabled { opacity: 0.4; cursor: not-allowed; } .radio-btn-stop { background: var(--danger); color: #fff; } .radio-btn-stop:hover { background: #c63639; } .radio-btn-fav { width: 34px; height: 34px; border: none; border-radius: 50%; font-size: 16px; cursor: pointer; background: transparent; color: var(--text-faint); display: flex; align-items: center; justify-content: center; transition: all var(--transition); } .radio-btn-fav:hover { color: var(--warning); background: rgba(254, 231, 92, 0.1); } .radio-btn-fav.active { color: var(--warning); } /* ── Equalizer Animation ── */ .radio-eq { display: flex; align-items: flex-end; gap: 2px; height: 14px; } .radio-eq span { width: 3px; background: var(--accent); border-radius: 1px; animation: eq-bounce 0.8s ease-in-out infinite; } .radio-eq span:nth-child(1) { height: 8px; animation-delay: 0s; } .radio-eq span:nth-child(2) { height: 14px; animation-delay: 0.15s; } .radio-eq span:nth-child(3) { height: 10px; animation-delay: 0.3s; } @keyframes eq-bounce { 0%, 100% { transform: scaleY(0.4); } 50% { transform: scaleY(1); } } .radio-sel { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text-normal); font-family: var(--font); font-size: 13px; padding: 6px 10px; cursor: pointer; outline: none; max-width: 180px; } .radio-sel:focus { border-color: var(--accent); } .radio-eq-np { flex-shrink: 0; } .radio-np-info { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; } .radio-np-name { font-size: 14px; font-weight: 600; color: var(--text-normal); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .radio-np-loc { font-size: 11px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* ── Volume Slider ── */ .radio-volume { display: flex; align-items: center; gap: 6px; flex-shrink: 0; } .radio-volume-icon { font-size: 16px; width: 20px; text-align: center; cursor: pointer; } .radio-volume-slider { -webkit-appearance: none; appearance: none; width: 100px; height: 4px; border-radius: 2px; background: var(--bg-tertiary, #383a40); outline: none; cursor: pointer; } .radio-volume-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--accent, #e67e22); cursor: pointer; border: none; box-shadow: 0 0 4px rgba(0,0,0,0.3); } .radio-volume-slider::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--accent, #e67e22); cursor: pointer; border: none; box-shadow: 0 0 4px rgba(0,0,0,0.3); } .radio-volume-val { font-size: 11px; color: var(--text-muted); min-width: 32px; text-align: right; } .radio-theme-dot { width: 16px; height: 16px; border-radius: 50%; cursor: pointer; transition: transform 150ms ease, border-color 150ms ease; border: 2px solid transparent; } .radio-theme-dot:hover { transform: scale(1.25); } .radio-theme-dot.active { border-color: #fff; box-shadow: 0 0 6px rgba(255, 255, 255, 0.3); } /* ── Station count ── */ .radio-counter { position: absolute; bottom: 16px; left: 16px; z-index: 10; font-size: 12px; color: var(--text-faint); background: rgba(30, 31, 34, 0.8); padding: 4px 10px; border-radius: 20px; pointer-events: none; } .radio-attribution { position: absolute; right: 16px; bottom: 16px; z-index: 10; font-size: 12px; color: var(--text-faint); background: rgba(30, 31, 34, 0.8); padding: 4px 10px; border-radius: 20px; text-decoration: none; transition: color var(--transition), background var(--transition); } .radio-attribution:hover { color: var(--text-normal); background: rgba(30, 31, 34, 0.92); } /* ── Spinner ── */ .radio-spinner { width: 24px; height: 24px; border: 3px solid var(--bg-tertiary); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.7s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } /* ── Radio Responsive ── */ @media (max-width: 768px) { .radio-panel { width: 100%; } .radio-fab { top: 12px; right: 12px; padding: 8px 10px; font-size: 14px; } .radio-search { top: 12px; width: calc(100% - 80px); left: calc(50% - 24px); } .radio-topbar { padding: 0 12px; gap: 8px; } .radio-topbar-title { display: none; } .radio-sel { max-width: 140px; font-size: 12px; } } @media (max-width: 480px) { .radio-topbar-np { display: none; } .radio-volume { display: none; } .radio-sel { max-width: 120px; } } /* ── Radio Connection Indicator ── */ .radio-conn { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--success); cursor: pointer; padding: 4px 10px; border-radius: 20px; background: rgba(87, 210, 143, 0.08); transition: all var(--transition); flex-shrink: 0; user-select: none; } .radio-conn:hover { background: rgba(87, 210, 143, 0.15); } .radio-conn-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); animation: pulse-dot 2s ease-in-out infinite; } .radio-conn-ping { font-size: 11px; color: var(--text-muted); font-weight: 600; font-variant-numeric: tabular-nums; } /* ── Radio Connection Modal ── */ .radio-modal-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 9000; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px); animation: fade-in .15s ease; } .radio-modal { background: var(--bg-primary); border: 1px solid var(--border); border-radius: 16px; width: 340px; box-shadow: 0 20px 60px rgba(0, 0, 0, .4); overflow: hidden; animation: radio-modal-in .2s ease; } @keyframes radio-modal-in { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } } .radio-modal-header { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--border); font-weight: 700; font-size: 14px; } .radio-modal-close { margin-left: auto; background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 4px 8px; border-radius: 6px; font-size: 14px; transition: all var(--transition); } .radio-modal-close:hover { background: rgba(255, 255, 255, .08); color: var(--text-normal); } .radio-modal-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; } .radio-modal-stat { display: flex; justify-content: space-between; align-items: center; } .radio-modal-label { color: var(--text-muted); font-size: 13px; } .radio-modal-value { font-weight: 600; font-size: 13px; display: flex; align-items: center; gap: 6px; } .radio-modal-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; } /* ══════════════════════════════════════════════ UNIFIED ADMIN PANEL (ap-*) ══════════════════════════════════════════════ */ .ap-overlay { position: fixed; inset: 0; z-index: 9998; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(6px); animation: fade-in 150ms ease; } .ap-modal { display: flex; width: min(940px, calc(100vw - 40px)); height: min(620px, calc(100vh - 60px)); background: var(--bg-primary); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5); animation: hub-modal-in 200ms ease; position: relative; } /* ── Sidebar ── */ .ap-sidebar { width: 210px; min-width: 210px; background: var(--bg-deep); border-right: 1px solid var(--border); display: flex; flex-direction: column; padding: 0; } .ap-sidebar-title { padding: 18px 20px 14px; font-size: 15px; font-weight: 700; color: var(--text-normal); letter-spacing: -0.01em; border-bottom: 1px solid var(--border); } .ap-nav { display: flex; flex-direction: column; padding: 8px; gap: 2px; } .ap-nav-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: none; border-left: 3px solid transparent; background: transparent; color: var(--text-muted); font-family: var(--font); font-size: 14px; font-weight: 500; cursor: pointer; border-radius: 0 var(--radius) var(--radius) 0; transition: all var(--transition); text-align: left; } .ap-nav-item:hover { color: var(--text-normal); background: var(--bg-secondary); } .ap-nav-item.active { color: var(--accent); background: rgba(var(--accent-rgb), 0.1); border-left-color: var(--accent); font-weight: 600; } .ap-nav-icon { font-size: 16px; line-height: 1; } .ap-nav-label { line-height: 1; } .ap-logout-btn { margin-top: auto; padding: 10px 16px; background: transparent; border: none; border-top: 1px solid var(--border); color: #e74c3c; font-size: 0.85rem; cursor: pointer; text-align: left; transition: background 0.15s; } .ap-logout-btn:hover { background: rgba(231, 76, 60, 0.1); } /* ── Content Area ── */ .ap-content { flex: 1; display: flex; flex-direction: column; overflow: hidden; } .ap-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); flex-shrink: 0; } .ap-title { font-size: 16px; font-weight: 700; color: var(--text-normal); margin: 0; } .ap-close { background: none; border: none; color: var(--text-muted); font-size: 16px; cursor: pointer; padding: 4px 8px; border-radius: 6px; transition: all var(--transition); } .ap-close:hover { color: var(--text-normal); background: rgba(255, 255, 255, 0.08); } .ap-body { flex: 1; overflow-y: auto; padding: 16px 20px; scrollbar-width: thin; scrollbar-color: var(--bg-tertiary) transparent; } .ap-body::-webkit-scrollbar { width: 6px; } .ap-body::-webkit-scrollbar-thumb { background: var(--bg-tertiary); border-radius: 3px; } .ap-tab-content { display: flex; flex-direction: column; gap: 12px; animation: fade-in 150ms ease; } /* ── Toolbar ── */ .ap-toolbar { display: flex; align-items: center; gap: 10px; } .ap-search { flex: 1; padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-secondary); color: var(--text-normal); font-size: 13px; font-family: var(--font); } .ap-search:focus { outline: none; border-color: var(--accent); } .ap-search::placeholder { color: var(--text-faint); } /* ── Buttons ── */ .ap-btn { display: inline-flex; align-items: center; gap: 4px; padding: 8px 14px; border: none; border-radius: var(--radius); font-family: var(--font); font-size: 13px; font-weight: 500; cursor: pointer; transition: all var(--transition); white-space: nowrap; } .ap-btn:disabled { opacity: 0.5; cursor: default; } .ap-btn-primary { background: var(--accent); color: #fff; } .ap-btn-primary:hover:not(:disabled) { background: var(--accent-hover); } .ap-btn-danger { background: rgba(237, 66, 69, 0.15); color: var(--danger); border: 1px solid rgba(237, 66, 69, 0.3); } .ap-btn-danger:hover:not(:disabled) { background: rgba(237, 66, 69, 0.25); } .ap-btn-outline { background: var(--bg-secondary); color: var(--text-muted); border: 1px solid var(--border); } .ap-btn-outline:hover:not(:disabled) { color: var(--text-normal); border-color: var(--text-faint); } .ap-btn-sm { padding: 5px 10px; font-size: 12px; } /* ── Upload Zone ── */ .ap-upload-zone { display: flex; align-items: center; justify-content: center; padding: 14px; border: 2px dashed var(--border); border-radius: var(--radius); background: var(--bg-secondary); cursor: pointer; transition: all var(--transition); color: var(--text-muted); font-size: 13px; } .ap-upload-zone:hover { border-color: var(--accent); color: var(--accent); background: rgba(var(--accent-rgb), 0.05); } .ap-upload-progress { color: var(--accent); font-weight: 600; } /* ── Bulk Row ── */ .ap-bulk-row { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; } .ap-select-all { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-muted); cursor: pointer; } .ap-select-all input[type="checkbox"] { accent-color: var(--accent); } /* ── Sound List ── */ .ap-list-wrap { flex: 1; min-height: 0; } .ap-list { display: flex; flex-direction: column; gap: 2px; } .ap-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius); background: var(--bg-secondary); transition: background var(--transition); } .ap-item:hover { background: var(--bg-tertiary); } .ap-item-check { flex-shrink: 0; cursor: pointer; } .ap-item-check input[type="checkbox"] { accent-color: var(--accent); } .ap-item-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; } .ap-item-name { font-size: 13px; font-weight: 600; color: var(--text-normal); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ap-item-meta { font-size: 11px; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ap-item-actions { display: flex; gap: 4px; flex-shrink: 0; } .ap-rename-row { display: flex; align-items: center; gap: 6px; margin-top: 4px; } .ap-rename-input { flex: 1; padding: 5px 8px; border: 1px solid var(--accent); border-radius: var(--radius); background: var(--bg-deep); color: var(--text-normal); font-size: 12px; font-family: var(--font); } .ap-rename-input:focus { outline: none; } /* ── Empty ── */ .ap-empty { text-align: center; color: var(--text-muted); padding: 40px 16px; font-size: 13px; } /* ── Hint ── */ .ap-hint { font-size: 13px; color: var(--text-muted); margin: 0; } /* ── Status Badge ── */ .ap-status-badge { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-muted); } .ap-status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--danger); flex-shrink: 0; } .ap-status-dot.online { background: var(--success); animation: pulse-dot 2s ease-in-out infinite; } /* ── Channel List (Streaming) ── */ .ap-channel-list { display: flex; flex-direction: column; gap: 2px; } .ap-channel-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: var(--radius); background: var(--bg-secondary); transition: background var(--transition); } .ap-channel-row:hover { background: var(--bg-tertiary); } .ap-channel-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .ap-channel-name { font-size: 13px; font-weight: 600; color: var(--text-normal); } .ap-channel-guild { font-size: 11px; color: var(--text-faint); } .ap-channel-toggles { display: flex; gap: 8px; flex-shrink: 0; } .ap-toggle { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-muted); cursor: pointer; padding: 4px 8px; border-radius: var(--radius); transition: all var(--transition); } .ap-toggle input[type="checkbox"] { accent-color: var(--accent); } .ap-toggle.active { color: var(--accent); background: rgba(var(--accent-rgb), 0.08); } /* ── Save Row ── */ .ap-save-row { display: flex; justify-content: flex-end; padding-top: 8px; } /* ── Profile List (Game Library) ── */ .ap-profile-list { display: flex; flex-direction: column; gap: 2px; } .ap-profile-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius); background: var(--bg-secondary); transition: background var(--transition); } .ap-profile-row:hover { background: var(--bg-tertiary); } .ap-profile-avatar { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; } .ap-profile-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; } .ap-profile-name { font-size: 14px; font-weight: 600; color: var(--text-normal); } .ap-profile-details { display: flex; align-items: center; gap: 6px; font-size: 11px; } .ap-platform-badge { padding: 1px 6px; border-radius: 3px; font-weight: 600; font-size: 10px; } .ap-platform-badge.steam { background: rgba(66, 133, 244, 0.15); color: #64b5f6; } .ap-platform-badge.gog { background: rgba(171, 71, 188, 0.15); color: #ce93d8; } .ap-profile-total { color: var(--text-faint); } /* ── Toast ── */ .ap-toast { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); padding: 8px 16px; border-radius: var(--radius); font-size: 13px; font-weight: 500; background: var(--bg-tertiary); color: var(--text-normal); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4); animation: fade-in 150ms ease; z-index: 10; } .ap-toast.error { background: rgba(237, 66, 69, 0.2); color: #f87171; } /* ── Admin Panel Responsive ── */ @media (max-width: 768px) { .ap-modal { flex-direction: column; width: calc(100vw - 16px); height: calc(100vh - 32px); } .ap-sidebar { width: 100%; min-width: 100%; flex-direction: row; border-right: none; border-bottom: 1px solid var(--border); overflow-x: auto; } .ap-sidebar-title { display: none; } .ap-nav { flex-direction: row; padding: 4px 8px; gap: 4px; } .ap-nav-item { border-left: none; border-bottom: 3px solid transparent; border-radius: var(--radius) var(--radius) 0 0; padding: 8px 12px; white-space: nowrap; } .ap-nav-item.active { border-left-color: transparent; border-bottom-color: var(--accent); } .ap-channel-toggles { flex-direction: column; gap: 4px; } } /* ════════════════════════════════════════════════════════════════════════════ Unified Login Button (Header) ════════════════════════════════════════════════════════════════════════════ */ .hub-user-btn { display: flex; align-items: center; gap: 6px; padding: 4px 12px; border: 1px solid var(--border); border-radius: var(--radius); background: transparent; color: var(--text-muted); font-family: var(--font); font-size: 13px; font-weight: 500; cursor: pointer; transition: all var(--transition); line-height: 1; white-space: nowrap; } .hub-user-btn:hover { color: var(--accent); border-color: var(--accent); background: rgba(var(--accent-rgb), 0.06); } .hub-user-btn.logged-in { border-color: rgba(var(--accent-rgb), 0.3); color: var(--text-normal); } .hub-user-btn.admin { border-color: #4ade80; color: #4ade80; } .hub-user-avatar { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; } .hub-user-icon { font-size: 16px; line-height: 1; } .hub-user-label { line-height: 1; } /* ════════════════════════════════════════════════════════════════════════════ Login Modal ════════════════════════════════════════════════════════════════════════════ */ .hub-login-overlay { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(4px); } .hub-login-modal { background: var(--bg-primary); border: 1px solid var(--border); border-radius: 16px; width: 380px; max-width: 92vw; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4); overflow: hidden; animation: hub-modal-in 200ms ease; } .hub-login-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); font-weight: 700; font-size: 15px; } .hub-login-modal-close { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 16px; padding: 4px; border-radius: 4px; transition: all var(--transition); } .hub-login-modal-close:hover { color: var(--text-normal); background: var(--bg-tertiary); } .hub-login-modal-body { padding: 20px; } .hub-login-subtitle { color: var(--text-muted); font-size: 13px; margin: 0 0 16px; line-height: 1.4; } /* Provider Buttons */ .hub-login-providers { display: flex; flex-direction: column; gap: 10px; } .hub-login-provider-btn { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-secondary); color: var(--text-normal); font-family: var(--font); font-size: 14px; font-weight: 500; cursor: pointer; transition: all var(--transition); text-decoration: none; position: relative; } .hub-login-provider-btn:hover:not(:disabled) { border-color: var(--accent); background: rgba(var(--accent-rgb), 0.06); transform: translateY(-1px); } .hub-login-provider-btn:active:not(:disabled) { transform: translateY(0); } .hub-login-provider-btn:disabled { opacity: 0.5; cursor: not-allowed; } .hub-login-provider-btn.discord:hover:not(:disabled) { border-color: #5865F2; background: rgba(88, 101, 242, 0.08); } .hub-login-provider-btn.steam:hover { border-color: #66c0f4; background: rgba(102, 192, 244, 0.08); } .hub-login-provider-btn.admin:hover { border-color: var(--accent); } .hub-login-provider-icon { flex-shrink: 0; width: 22px; height: 22px; } .hub-login-provider-icon-emoji { font-size: 20px; line-height: 1; flex-shrink: 0; } .hub-login-soon { position: absolute; right: 12px; font-size: 10px; font-weight: 600; text-transform: uppercase; color: var(--text-faint); background: var(--bg-tertiary); padding: 2px 6px; border-radius: 4px; letter-spacing: 0.5px; } .hub-login-hint { margin: 16px 0 0; font-size: 12px; color: var(--text-faint); line-height: 1.4; } .hub-login-back { background: none; border: none; color: var(--text-muted); font-family: var(--font); font-size: 13px; cursor: pointer; padding: 0; margin-bottom: 16px; transition: color var(--transition); } .hub-login-back:hover { color: var(--accent); } /* Admin form inside login modal */ .hub-login-admin-form { display: flex; flex-direction: column; gap: 12px; } .hub-login-admin-label { font-size: 14px; font-weight: 600; color: var(--text-normal); } .hub-login-admin-input { width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-secondary); color: var(--text-normal); font-size: 14px; font-family: var(--font); box-sizing: border-box; transition: border-color var(--transition); } .hub-login-admin-input:focus { outline: none; border-color: var(--accent); } .hub-login-admin-error { color: var(--danger); font-size: 13px; margin: 0; } .hub-login-admin-submit { padding: 10px 16px; background: var(--accent); color: #fff; border: none; border-radius: var(--radius); font-size: 14px; font-weight: 600; font-family: var(--font); cursor: pointer; transition: opacity var(--transition); } .hub-login-admin-submit:hover:not(:disabled) { opacity: 0.9; } .hub-login-admin-submit:disabled { opacity: 0.5; cursor: not-allowed; } /* ════════════════════════════════════════════════════════════════════════════ User Settings Panel ════════════════════════════════════════════════════════════════════════════ */ .hub-usettings-overlay { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(4px); } .hub-usettings-panel { background: var(--bg-primary); border: 1px solid var(--border); border-radius: 16px; width: 520px; max-width: 95vw; max-height: 85vh; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4); overflow: hidden; display: flex; flex-direction: column; animation: hub-modal-in 200ms ease; } /* Header */ .hub-usettings-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); flex-shrink: 0; } .hub-usettings-user { display: flex; align-items: center; gap: 12px; } .hub-usettings-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(var(--accent-rgb), 0.3); } .hub-usettings-avatar-placeholder { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; } .hub-usettings-user-info { display: flex; flex-direction: column; gap: 2px; } .hub-usettings-username { font-weight: 600; font-size: 15px; color: var(--text-normal); } .hub-usettings-discriminator { font-size: 12px; color: var(--text-muted); } .hub-usettings-header-actions { display: flex; align-items: center; gap: 8px; } .hub-usettings-logout { background: none; border: 1px solid var(--border); border-radius: var(--radius); color: var(--text-muted); font-size: 16px; padding: 6px 8px; cursor: pointer; transition: all var(--transition); line-height: 1; } .hub-usettings-logout:hover { color: var(--danger); border-color: var(--danger); } .hub-usettings-close { background: none; border: none; color: var(--text-muted); font-size: 16px; cursor: pointer; padding: 6px; border-radius: 4px; transition: all var(--transition); } .hub-usettings-close:hover { color: var(--text-normal); background: var(--bg-tertiary); } /* Toast */ .hub-usettings-toast { padding: 8px 16px; font-size: 13px; text-align: center; animation: hub-toast-in 300ms ease; } .hub-usettings-toast.success { background: rgba(87, 210, 143, 0.1); color: var(--success); } .hub-usettings-toast.error { background: rgba(237, 66, 69, 0.1); color: var(--danger); } @keyframes hub-toast-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } } /* Loading */ .hub-usettings-loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 40px; color: var(--text-muted); font-size: 14px; } /* Content */ .hub-usettings-content { display: flex; flex-direction: column; overflow: hidden; flex: 1; } /* Section tabs */ .hub-usettings-tabs { display: flex; gap: 4px; padding: 12px 20px 0; flex-shrink: 0; } .hub-usettings-tab { flex: 1; padding: 10px 12px; border: none; background: var(--bg-secondary); color: var(--text-muted); font-family: var(--font); font-size: 13px; font-weight: 500; cursor: pointer; border-radius: var(--radius) var(--radius) 0 0; transition: all var(--transition); } .hub-usettings-tab:hover { color: var(--text-normal); background: var(--bg-tertiary); } .hub-usettings-tab.active { color: var(--accent); background: rgba(var(--accent-rgb), 0.1); border-bottom: 2px solid var(--accent); } /* Current sound */ .hub-usettings-current { padding: 12px 20px; display: flex; align-items: center; gap: 8px; flex-shrink: 0; background: var(--bg-secondary); margin: 0 20px; border-radius: 0 0 var(--radius) var(--radius); margin-bottom: 12px; } .hub-usettings-current-label { font-size: 13px; color: var(--text-muted); flex-shrink: 0; } .hub-usettings-current-value { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--accent); } .hub-usettings-current-none { font-size: 13px; color: var(--text-faint); font-style: italic; } .hub-usettings-remove-btn { background: none; border: none; color: var(--text-faint); cursor: pointer; font-size: 11px; padding: 2px 4px; border-radius: 4px; transition: all var(--transition); } .hub-usettings-remove-btn:hover:not(:disabled) { color: var(--danger); background: rgba(237, 66, 69, 0.1); } /* Search */ .hub-usettings-search-wrap { position: relative; padding: 0 20px; margin-bottom: 12px; flex-shrink: 0; } .hub-usettings-search { width: 100%; padding: 8px 32px 8px 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-secondary); color: var(--text-normal); font-size: 13px; font-family: var(--font); box-sizing: border-box; transition: border-color var(--transition); } .hub-usettings-search:focus { outline: none; border-color: var(--accent); } .hub-usettings-search-clear { position: absolute; right: 28px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--text-faint); cursor: pointer; font-size: 12px; padding: 4px; } .hub-usettings-search-clear:hover { color: var(--text-normal); } /* Sound list */ .hub-usettings-sounds { flex: 1; overflow-y: auto; padding: 0 20px 16px; scrollbar-width: thin; scrollbar-color: var(--bg-tertiary) transparent; } .hub-usettings-empty { text-align: center; padding: 32px; color: var(--text-faint); font-size: 14px; } /* Folder */ .hub-usettings-folder { margin-bottom: 12px; } .hub-usettings-folder-name { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; padding: 4px 0; margin-bottom: 6px; border-bottom: 1px solid var(--border); } .hub-usettings-folder-sounds { display: flex; flex-wrap: wrap; gap: 6px; } /* Sound button */ .hub-usettings-sound-btn { display: flex; align-items: center; gap: 4px; padding: 5px 10px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg-secondary); color: var(--text-normal); font-family: var(--font); font-size: 12px; cursor: pointer; transition: all var(--transition); white-space: nowrap; } .hub-usettings-sound-btn:hover:not(:disabled) { border-color: var(--accent); background: rgba(var(--accent-rgb), 0.06); } .hub-usettings-sound-btn.selected { border-color: var(--accent); background: rgba(var(--accent-rgb), 0.12); color: var(--accent); } .hub-usettings-sound-btn:disabled { opacity: 0.5; cursor: wait; } .hub-usettings-sound-icon { font-size: 12px; line-height: 1; } .hub-usettings-sound-name { max-width: 180px; overflow: hidden; text-overflow: ellipsis; } /* ── Mobile responsive for user settings ── */ @media (max-width: 600px) { .hub-usettings-panel { width: 100%; max-width: 100vw; max-height: 100vh; border-radius: 0; } .hub-user-label { display: none; } }