/* ============================================================ GAMING HUB -- Global Styles Design System v2.0 -- Codename "Neon Forge" ============================================================ */ /* -- Google Fonts ------------------------------------------- */ @import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&family=Space+Grotesk:wght@600;700&display=swap'); /* ============================================================ A) CSS CUSTOM PROPERTIES ============================================================ */ :root { /* -- Surface Palette -------------------------------------- */ --bg-deepest: #0d0e12; --bg-deep: #12131a; --bg-primary: #181a23; --bg-secondary: #1e2030; --bg-tertiary: #252839; --bg-elevated: #2a2d42; --bg-hover: #303450; --bg-active: #383c58; /* -- Text Colors ------------------------------------------ */ --text-primary: #eef0f6; --text-secondary: #a0a5b8; --text-tertiary: #6b7089; --text-disabled: #484d64; /* -- Semantic Colors -------------------------------------- */ --success: #43b581; --warning: #faa61a; --danger: #ed4245; --info: #5865f2; /* -- Glass / Surface Tokens ------------------------------- */ --surface-glass: rgba(255, 255, 255, .035); --surface-glass-hover: rgba(255, 255, 255, .065); --surface-glass-active: rgba(255, 255, 255, .09); --surface-glass-border: rgba(255, 255, 255, .07); --surface-glass-border-hover: rgba(255, 255, 255, .12); /* -- Border Tokens ---------------------------------------- */ --border-subtle: rgba(255, 255, 255, .05); --border-default: rgba(255, 255, 255, .08); --border-strong: rgba(255, 255, 255, .14); /* -- Font Stacks ------------------------------------------ */ --font-display: 'Space Grotesk', 'DM Sans', system-ui, sans-serif; --font-body: 'DM Sans', system-ui, -apple-system, sans-serif; --font-mono: 'JetBrains Mono', 'Fira Code', monospace; /* -- Type Scale ------------------------------------------- */ --text-xs: 11px; --text-sm: 12px; --text-base: 14px; --text-md: 15px; --text-lg: 18px; --text-xl: 22px; --text-2xl: 28px; --text-3xl: 36px; /* -- Font Weights ----------------------------------------- */ --weight-regular: 400; --weight-medium: 500; --weight-semibold: 600; --weight-bold: 700; /* -- Spacing (4px base grid) ------------------------------ */ --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 20px; --space-6: 24px; --space-7: 32px; --space-8: 40px; --space-9: 48px; --space-10: 64px; /* -- Border Radii ----------------------------------------- */ --radius-xs: 4px; --radius-sm: 6px; --radius-md: 10px; --radius-lg: 14px; --radius-xl: 20px; --radius-full: 9999px; /* -- Shadows / Elevation ---------------------------------- */ --shadow-xs: 0 1px 2px rgba(0, 0, 0, .3); --shadow-sm: 0 2px 8px rgba(0, 0, 0, .35); --shadow-md: 0 4px 16px rgba(0, 0, 0, .4); --shadow-lg: 0 8px 32px rgba(0, 0, 0, .5); --shadow-xl: 0 16px 48px rgba(0, 0, 0, .6); /* -- Motion ----------------------------------------------- */ --duration-fast: 120ms; --duration-normal: 200ms; --duration-slow: 350ms; --ease-out: cubic-bezier(0.16, 1, 0.3, 1); --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1); --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1); /* -- Layout ----------------------------------------------- */ --sidebar-nav-w: 200px; --header-h: 52px; } /* ============================================================ B) ACCENT THEME SYSTEM ============================================================ */ /* Default: Ember (orange) */ :root, [data-accent="ember"] { --accent-h: 27; --accent-s: 80%; --accent-l: 52%; --accent: hsl(var(--accent-h), var(--accent-s), var(--accent-l)); --accent-hover: hsl(var(--accent-h), var(--accent-s), calc(var(--accent-l) - 8%)); --accent-soft: hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.15); --accent-glow: hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.45); --accent-text: hsl(var(--accent-h), var(--accent-s), calc(var(--accent-l) + 15%)); --accent-gradient: linear-gradient(135deg, hsl(var(--accent-h), var(--accent-s), var(--accent-l)), hsl(calc(var(--accent-h) + 30), var(--accent-s), var(--accent-l))); } [data-accent="amethyst"] { --accent-h: 270; --accent-s: 60%; --accent-l: 55%; --accent: hsl(var(--accent-h), var(--accent-s), var(--accent-l)); --accent-hover: hsl(var(--accent-h), var(--accent-s), calc(var(--accent-l) - 8%)); --accent-soft: hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.15); --accent-glow: hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.45); --accent-text: hsl(var(--accent-h), var(--accent-s), calc(var(--accent-l) + 15%)); --accent-gradient: linear-gradient(135deg, hsl(var(--accent-h), var(--accent-s), var(--accent-l)), hsl(calc(var(--accent-h) + 30), var(--accent-s), var(--accent-l))); } [data-accent="ocean"] { --accent-h: 210; --accent-s: 70%; --accent-l: 52%; --accent: hsl(var(--accent-h), var(--accent-s), var(--accent-l)); --accent-hover: hsl(var(--accent-h), var(--accent-s), calc(var(--accent-l) - 8%)); --accent-soft: hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.15); --accent-glow: hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.45); --accent-text: hsl(var(--accent-h), var(--accent-s), calc(var(--accent-l) + 15%)); --accent-gradient: linear-gradient(135deg, hsl(var(--accent-h), var(--accent-s), var(--accent-l)), hsl(calc(var(--accent-h) + 30), var(--accent-s), var(--accent-l))); } [data-accent="jade"] { --accent-h: 152; --accent-s: 60%; --accent-l: 48%; --accent: hsl(var(--accent-h), var(--accent-s), var(--accent-l)); --accent-hover: hsl(var(--accent-h), var(--accent-s), calc(var(--accent-l) - 8%)); --accent-soft: hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.15); --accent-glow: hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.45); --accent-text: hsl(var(--accent-h), var(--accent-s), calc(var(--accent-l) + 15%)); --accent-gradient: linear-gradient(135deg, hsl(var(--accent-h), var(--accent-s), var(--accent-l)), hsl(calc(var(--accent-h) + 30), var(--accent-s), var(--accent-l))); } [data-accent="rose"] { --accent-h: 340; --accent-s: 72%; --accent-l: 55%; --accent: hsl(var(--accent-h), var(--accent-s), var(--accent-l)); --accent-hover: hsl(var(--accent-h), var(--accent-s), calc(var(--accent-l) - 8%)); --accent-soft: hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.15); --accent-glow: hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.45); --accent-text: hsl(var(--accent-h), var(--accent-s), calc(var(--accent-l) + 15%)); --accent-gradient: linear-gradient(135deg, hsl(var(--accent-h), var(--accent-s), var(--accent-l)), hsl(calc(var(--accent-h) + 30), var(--accent-s), var(--accent-l))); } [data-accent="crimson"] { --accent-h: 0; --accent-s: 72%; --accent-l: 52%; --accent: hsl(var(--accent-h), var(--accent-s), var(--accent-l)); --accent-hover: hsl(var(--accent-h), var(--accent-s), calc(var(--accent-l) - 8%)); --accent-soft: hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.15); --accent-glow: hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.45); --accent-text: hsl(var(--accent-h), var(--accent-s), calc(var(--accent-l) + 15%)); --accent-gradient: linear-gradient(135deg, hsl(var(--accent-h), var(--accent-s), var(--accent-l)), hsl(calc(var(--accent-h) + 30), var(--accent-s), var(--accent-l))); } /* ============================================================ C) GLOBAL RESET & BASE ============================================================ */ *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; } html { scroll-behavior: smooth; } html, body { height: 100%; overflow: hidden; font-family: var(--font-body); font-size: var(--text-base); color: var(--text-primary); background: var(--bg-primary); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } #root { height: 100%; } /* -- Scrollbar ---------------------------------------------- */ ::-webkit-scrollbar { width: 6px; height: 6px; } ::-webkit-scrollbar-track { background: transparent; } ::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .12); border-radius: var(--radius-full); } ::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .2); } /* Firefox */ * { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .12) transparent; } /* -- Selection ---------------------------------------------- */ ::selection { background: var(--accent-soft); color: var(--accent-text); } /* -- Focus -------------------------------------------------- */ :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; } /* ============================================================ D) APP LAYOUT (Sidebar) ============================================================ */ .app-shell { display: flex; height: 100vh; width: 100vw; overflow: hidden; } /* -- Sidebar ------------------------------------------------ */ .app-sidebar { width: var(--sidebar-nav-w); min-width: var(--sidebar-nav-w); background: var(--bg-deep); display: flex; flex-direction: column; border-right: 1px solid var(--border-subtle); z-index: 15; } .sidebar-header { height: var(--header-h); display: flex; align-items: center; padding: 0 var(--space-3); border-bottom: 1px solid var(--border-subtle); gap: var(--space-2); flex-shrink: 0; } .sidebar-logo { width: 32px; height: 32px; min-width: 32px; border-radius: var(--radius-md); background: var(--accent-gradient); display: grid; place-items: center; font-family: var(--font-display); font-weight: var(--weight-bold); font-size: var(--text-base); color: #fff; box-shadow: 0 0 12px var(--accent-glow); flex-shrink: 0; } .sidebar-brand { font-family: var(--font-display); font-weight: var(--weight-bold); font-size: var(--text-md); letter-spacing: -0.02em; background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; white-space: nowrap; } .sidebar-nav { flex: 1; overflow-y: auto; padding: var(--space-2); } .sidebar-section-label { padding: var(--space-5) var(--space-4) var(--space-2); font-size: var(--text-xs); font-weight: var(--weight-semibold); text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-tertiary); } /* -- Main --------------------------------------------------- */ .app-main { flex: 1; display: flex; flex-direction: column; overflow: hidden; background: var(--bg-primary); position: relative; } /* -- Content Header ----------------------------------------- */ .content-header { height: var(--header-h); min-height: var(--header-h); display: flex; align-items: center; padding: 0 var(--space-6); border-bottom: 1px solid var(--border-subtle); gap: var(--space-4); position: relative; z-index: 5; flex-shrink: 0; } .content-header__title { font-family: var(--font-display); font-size: var(--text-lg); font-weight: var(--weight-semibold); letter-spacing: -0.02em; display: flex; align-items: center; gap: var(--space-2); flex-shrink: 0; } .content-header__title .sound-count { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--accent); background: var(--accent-soft); padding: 2px 8px; border-radius: var(--radius-full); font-weight: var(--weight-medium); } .content-header__search { flex: 1; max-width: 320px; height: 34px; display: flex; align-items: center; gap: var(--space-2); padding: 0 var(--space-3); border-radius: var(--radius-sm); background: var(--surface-glass); border: 1px solid var(--surface-glass-border); color: var(--text-secondary); font-size: var(--text-sm); transition: all var(--duration-fast); } .content-header__search:focus-within { border-color: var(--accent); background: var(--surface-glass-hover); box-shadow: 0 0 0 3px var(--accent-soft); } .content-header__search input { flex: 1; background: none; border: none; outline: none; color: var(--text-primary); font-family: var(--font-body); font-size: var(--text-sm); } .content-header__search input::placeholder { color: var(--text-tertiary); } .content-header__actions { display: flex; align-items: center; gap: var(--space-2); margin-left: auto; } /* -- Content Area ------------------------------------------- */ .content-area { flex: 1; overflow-y: auto; background: var(--bg-primary); position: relative; } /* ============================================================ E) SIDEBAR NAVIGATION ITEMS ============================================================ */ .nav-item { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); color: var(--text-secondary); cursor: pointer; transition: all var(--duration-fast) ease; position: relative; font-size: var(--text-sm); font-weight: var(--weight-medium); margin-bottom: 1px; text-decoration: none; border: none; background: none; width: 100%; text-align: left; } .nav-item:hover { background: var(--bg-hover); color: var(--text-primary); } .nav-item.active { background: var(--accent-soft); color: var(--accent-text); } .nav-item.active .nav-icon { color: var(--accent); } .nav-icon { width: 20px; height: 20px; display: grid; place-items: center; font-size: 16px; flex-shrink: 0; } .nav-label { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* -- Notification Badge on Nav Items ------------------------ */ .nav-badge { margin-left: auto; background: var(--danger); color: #fff; font-size: 10px; font-weight: var(--weight-bold); min-width: 18px; height: 18px; border-radius: var(--radius-full); display: grid; place-items: center; padding: 0 5px; } /* -- Now-Playing Indicator in Nav --------------------------- */ .nav-now-playing { margin-left: auto; width: 14px; display: flex; align-items: flex-end; gap: 2px; height: 14px; } .nav-now-playing span { display: block; width: 2px; border-radius: 1px; background: var(--accent); animation: eq-bar 1.2s ease-in-out infinite; } .nav-now-playing span:nth-child(1) { height: 40%; animation-delay: 0s; } .nav-now-playing span:nth-child(2) { height: 70%; animation-delay: 0.2s; } .nav-now-playing span:nth-child(3) { height: 50%; animation-delay: 0.4s; } @keyframes eq-bar { 0%, 100% { transform: scaleY(0.3); } 50% { transform: scaleY(1); } } /* ============================================================ F) CHANNEL DROPDOWN (in Sidebar) ============================================================ */ .channel-dropdown { position: relative; margin: 0 var(--space-2); padding: var(--space-2) 0; } .channel-dropdown__trigger { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); cursor: pointer; transition: all var(--duration-fast); background: var(--surface-glass); border: 1px solid var(--surface-glass-border); width: 100%; font-family: var(--font-body); color: var(--text-primary); } .channel-dropdown__trigger:hover { background: var(--surface-glass-hover); border-color: var(--surface-glass-border-hover); } .channel-dropdown__trigger .channel-icon { color: var(--text-tertiary); flex-shrink: 0; } .channel-dropdown__trigger .channel-name { font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--text-primary); flex: 1; text-align: left; } .channel-dropdown__trigger .channel-arrow { color: var(--text-tertiary); transition: transform var(--duration-fast); font-size: var(--text-sm); } .channel-dropdown.open .channel-arrow { transform: rotate(180deg); } .channel-dropdown__menu { position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-secondary); border: 1px solid var(--border-default); border-radius: var(--radius-md); padding: var(--space-1); z-index: 50; box-shadow: var(--shadow-lg); display: none; animation: dropdown-in var(--duration-normal) var(--ease-out); } .channel-dropdown.open .channel-dropdown__menu { display: block; } @keyframes dropdown-in { from { opacity: 0; transform: translateY(-4px); } } .channel-dropdown__item { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-2) var(--space-3); border-radius: var(--radius-xs); cursor: pointer; font-size: var(--text-sm); color: var(--text-secondary); transition: all var(--duration-fast); border: none; background: none; width: 100%; font-family: var(--font-body); text-align: left; } .channel-dropdown__item:hover { background: var(--surface-glass-hover); color: var(--text-primary); } .channel-dropdown__item.selected { background: var(--accent-soft); color: var(--accent-text); } /* ============================================================ G) SIDEBAR FOOTER (User) ============================================================ */ .sidebar-footer { padding: var(--space-2) var(--space-3); border-top: 1px solid var(--border-subtle); display: flex; align-items: center; gap: var(--space-3); flex-shrink: 0; } .sidebar-avatar { width: 32px; height: 32px; border-radius: var(--radius-full); background: var(--accent-gradient); display: grid; place-items: center; font-size: var(--text-base); font-weight: var(--weight-bold); color: #fff; position: relative; flex-shrink: 0; } .sidebar-avatar .status-dot { position: absolute; bottom: -1px; right: -1px; width: 12px; height: 12px; border-radius: var(--radius-full); background: var(--success); border: 2.5px solid var(--bg-deep); } .sidebar-avatar .status-dot.warning { background: var(--warning); } .sidebar-avatar .status-dot.offline { background: var(--danger); } @keyframes pulse-status { 0%, 100% { box-shadow: 0 0 0 0 rgba(67, 181, 129, .4); } 50% { box-shadow: 0 0 0 5px rgba(67, 181, 129, 0); } } .sidebar-avatar .status-dot.online { animation: pulse-status 2s ease-in-out infinite; } .sidebar-user-info { flex: 1; min-width: 0; } .sidebar-username { font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .sidebar-user-tag { font-size: var(--text-xs); color: var(--text-tertiary); } .sidebar-settings { width: 28px; height: 28px; display: grid; place-items: center; border-radius: var(--radius-sm); cursor: pointer; color: var(--text-tertiary); transition: all var(--duration-fast); background: none; border: none; } .sidebar-settings:hover { background: var(--surface-glass-hover); color: var(--text-primary); } .sidebar-settings.admin-active { color: var(--accent); } /* -- Sidebar Accent Picker ---------------------------------- */ .sidebar-accent-picker { display: flex; align-items: center; justify-content: center; gap: var(--space-2); padding: var(--space-2) var(--space-3); border-top: 1px solid var(--border-subtle); } .accent-swatch { width: 18px; height: 18px; border-radius: var(--radius-full); border: 2px solid transparent; cursor: pointer; transition: all var(--duration-fast) ease; flex-shrink: 0; padding: 0; } .accent-swatch:hover { transform: scale(1.2); border-color: rgba(255, 255, 255, .2); } .accent-swatch.active { border-color: #fff; transform: scale(1.15); box-shadow: 0 0 8px currentColor; } /* ============================================================ H) CONTENT HEADER EXTRAS ============================================================ */ /* -- Playback Controls -------------------------------------- */ .playback-controls { display: flex; align-items: center; gap: var(--space-1); padding: 0 var(--space-2); border-left: 1px solid var(--border-subtle); margin-left: var(--space-2); } .playback-btn { height: 32px; padding: 0 var(--space-3); border-radius: var(--radius-sm); display: flex; align-items: center; gap: var(--space-1); font-family: var(--font-body); font-size: var(--text-sm); font-weight: var(--weight-medium); cursor: pointer; border: 1px solid transparent; transition: all var(--duration-fast); background: var(--surface-glass); color: var(--text-secondary); } .playback-btn:hover { background: var(--surface-glass-hover); color: var(--text-primary); } .playback-btn--stop:hover { background: rgba(237, 66, 69, .12); color: var(--danger); border-color: rgba(237, 66, 69, .2); } .playback-btn--party { background: var(--accent-gradient); color: #fff; font-weight: var(--weight-semibold); } .playback-btn--party:hover { box-shadow: 0 0 16px var(--accent-glow); transform: translateY(-1px); } /* -- Theme Picker ------------------------------------------- */ .theme-picker { display: flex; gap: var(--space-1); align-items: center; padding: var(--space-1); border-radius: var(--radius-full); background: var(--surface-glass); border: 1px solid var(--surface-glass-border); } .theme-swatch { width: 18px; height: 18px; border-radius: 50%; cursor: pointer; border: 2px solid transparent; transition: all var(--duration-fast); } .theme-swatch:hover { transform: scale(1.2); } .theme-swatch.active { border-color: #fff; box-shadow: 0 0 8px var(--accent-glow); } .theme-swatch[data-t="ember"] { background: hsl(27, 80%, 52%); } .theme-swatch[data-t="amethyst"] { background: hsl(270, 60%, 55%); } .theme-swatch[data-t="ocean"] { background: hsl(210, 70%, 52%); } .theme-swatch[data-t="jade"] { background: hsl(152, 60%, 48%); } .theme-swatch[data-t="rose"] { background: hsl(340, 72%, 55%); } .theme-swatch[data-t="crimson"] { background: hsl(0, 72%, 52%); } /* -- Connection Badge --------------------------------------- */ .connection-badge { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-1) var(--space-3); border-radius: var(--radius-full); font-size: var(--text-xs); font-weight: var(--weight-medium); } .connection-badge.connected { color: var(--success); background: rgba(67, 181, 129, .1); } .connection-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); animation: pulse-dot 2s ease-in-out infinite; } @keyframes pulse-dot { 0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(67, 181, 129, .4); } 50% { opacity: .8; box-shadow: 0 0 0 6px rgba(67, 181, 129, 0); } } /* -- Volume Control ----------------------------------------- */ .volume-control { display: flex; align-items: center; gap: var(--space-2); color: var(--text-tertiary); font-size: 16px; } .volume-slider { -webkit-appearance: none; appearance: none; width: 80px; height: 4px; border-radius: 2px; background: var(--bg-elevated); outline: none; cursor: pointer; } .volume-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); cursor: pointer; border: none; box-shadow: 0 0 8px var(--accent-glow); } .volume-slider::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); cursor: pointer; border: none; box-shadow: 0 0 8px var(--accent-glow); } .volume-label { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--text-tertiary); min-width: 28px; } /* ============================================================ I) MODAL STYLES ============================================================ */ /* -- Modal Overlay (shared) --------------------------------- */ .hub-admin-overlay, .hub-version-overlay, .hub-update-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); z-index: 1000; display: flex; align-items: center; justify-content: center; animation: modal-fade-in var(--duration-normal) ease; } @keyframes modal-fade-in { from { opacity: 0; } to { opacity: 1; } } @keyframes modal-slide-in { from { opacity: 0; transform: scale(0.95) translateY(8px); } to { opacity: 1; transform: scale(1) translateY(0); } } /* -- Version Info Modal ------------------------------------- */ .hub-version-clickable { cursor: pointer; transition: all var(--duration-fast); padding: 2px 8px; border-radius: var(--radius-sm); } .hub-version-clickable:hover { color: var(--accent); background: var(--accent-soft); } .hub-version-modal { background: var(--bg-secondary); border: 1px solid var(--border-default); border-radius: var(--radius-lg); width: 340px; box-shadow: var(--shadow-xl); overflow: hidden; animation: modal-slide-in var(--duration-normal) ease; } .hub-version-modal-header { display: flex; align-items: center; justify-content: space-between; padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--border-subtle); font-weight: var(--weight-bold); font-size: var(--text-base); } .hub-version-modal-close { background: none; border: none; color: var(--text-tertiary); cursor: pointer; padding: var(--space-1) var(--space-2); border-radius: var(--radius-sm); font-size: var(--text-base); transition: all var(--duration-fast); } .hub-version-modal-close:hover { background: var(--surface-glass-hover); color: var(--text-primary); } .hub-version-modal-body { padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-3); } .hub-version-modal-row { display: flex; justify-content: space-between; align-items: center; } .hub-version-modal-label { color: var(--text-secondary); font-size: var(--text-sm); } .hub-version-modal-value { font-weight: var(--weight-semibold); font-size: var(--text-sm); display: flex; align-items: center; gap: var(--space-2); } .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: var(--weight-medium); font-size: var(--text-sm); } .hub-version-modal-link:hover { text-decoration: underline; } .hub-version-modal-hint { font-size: var(--text-xs); color: var(--accent); padding: var(--space-2) var(--space-3); background: var(--accent-soft); border-radius: var(--radius-sm); text-align: center; } /* -- Update Section in Version Modal ------------------------ */ .hub-version-modal-update { margin-top: var(--space-1); padding-top: var(--space-3); border-top: 1px solid var(--border-subtle); } .hub-version-modal-update-btn { width: 100%; padding: var(--space-3) var(--space-4); border: none; border-radius: var(--radius-sm); background: var(--bg-tertiary); color: var(--text-primary); font-size: var(--text-sm); font-weight: var(--weight-semibold); cursor: pointer; transition: all var(--duration-fast); display: flex; align-items: center; justify-content: center; gap: var(--space-2); font-family: var(--font-body); } .hub-version-modal-update-btn:hover { background: var(--bg-hover); color: var(--accent); } .hub-version-modal-update-btn.ready { background: rgba(67, 181, 129, .15); color: var(--success); } .hub-version-modal-update-btn.ready:hover { background: rgba(67, 181, 129, .25); } .hub-version-modal-update-status { display: flex; align-items: center; justify-content: center; gap: var(--space-2); font-size: var(--text-sm); color: var(--text-secondary); padding: var(--space-2) 0; flex-wrap: wrap; } .hub-version-modal-update-status.success { color: var(--success); } .hub-version-modal-update-status.error { color: var(--danger); } .hub-version-modal-update-retry { background: none; border: none; color: var(--text-secondary); font-size: var(--text-xs); cursor: pointer; text-decoration: underline; padding: 2px 4px; width: 100%; margin-top: var(--space-1); font-family: var(--font-body); } .hub-version-modal-update-retry:hover { color: var(--text-primary); } /* -- Update Modal (standalone) ------------------------------ */ .hub-update-modal { background: var(--bg-secondary); border: 1px solid var(--border-default); border-radius: var(--radius-lg); padding: var(--space-7) var(--space-8); text-align: center; min-width: 320px; max-width: 400px; box-shadow: var(--shadow-xl); } .hub-update-icon { font-size: 40px; margin-bottom: var(--space-3); } .hub-update-modal h2 { margin: 0 0 var(--space-2); font-size: var(--text-lg); color: var(--text-primary); } .hub-update-modal p { margin: 0 0 var(--space-5); font-size: var(--text-base); 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: update-slide 1.5s ease-in-out infinite; } @keyframes update-slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(350%); } } .hub-update-btn { padding: var(--space-2) var(--space-7); font-size: var(--text-base); font-weight: var(--weight-semibold); border: none; border-radius: var(--radius-sm); background: var(--accent); color: #fff; cursor: pointer; transition: opacity var(--duration-fast); font-family: var(--font-body); } .hub-update-btn:hover { opacity: 0.85; } .hub-update-btn-secondary { background: var(--bg-tertiary); color: var(--text-secondary); margin-top: var(--space-1); } .hub-update-versions { display: flex; flex-direction: column; gap: 2px; margin: var(--space-2) 0; font-size: var(--text-sm); color: var(--text-secondary); } .hub-update-error-detail { font-size: var(--text-xs); color: var(--danger); background: rgba(237, 66, 69, .1); border-radius: var(--radius-sm); padding: var(--space-2) var(--space-3); word-break: break-word; max-width: 300px; } /* -- Spinner ------------------------------------------------ */ @keyframes spin { to { transform: rotate(360deg); } } .hub-update-spinner { width: 14px; height: 14px; border: 2px solid var(--border-default); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; flex-shrink: 0; } /* -- Admin Modal -------------------------------------------- */ .hub-admin-modal { background: var(--bg-secondary); border: 1px solid var(--surface-glass-border); border-radius: var(--radius-lg); padding: var(--space-7); width: 360px; max-width: 90vw; box-shadow: var(--shadow-xl); animation: modal-slide-in 0.25s var(--ease-spring); } .hub-admin-modal-title { font-size: var(--text-xl); font-weight: var(--weight-bold); margin-bottom: var(--space-2); display: flex; align-items: center; gap: var(--space-2); } .hub-admin-modal-subtitle { font-size: var(--text-sm); color: var(--text-tertiary); margin-bottom: var(--space-6); } .hub-admin-modal-error { font-size: var(--text-sm); color: var(--danger); margin-bottom: var(--space-3); padding: var(--space-2) var(--space-3); background: rgba(237, 66, 69, .1); border-radius: var(--radius-sm); } .hub-admin-modal-input { width: 100%; background: var(--bg-deep); border: 1px solid var(--surface-glass-border); border-radius: var(--radius-sm); color: var(--text-primary); font-family: var(--font-body); font-size: var(--text-base); padding: var(--space-3) var(--space-3); outline: none; transition: border-color var(--duration-fast), box-shadow var(--duration-fast); margin-bottom: var(--space-4); } .hub-admin-modal-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); } .hub-admin-modal-login { width: 100%; background: var(--accent); border: none; border-radius: var(--radius-sm); color: #fff; font-family: var(--font-body); font-size: var(--text-base); font-weight: var(--weight-semibold); padding: var(--space-3); cursor: pointer; transition: all var(--duration-fast); box-shadow: 0 2px 10px var(--accent-glow); } .hub-admin-modal-login:hover { background: var(--accent-hover); box-shadow: 0 4px 16px var(--accent-glow); } .hub-admin-modal-info { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-5); } .hub-admin-modal-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--accent-gradient); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: var(--weight-bold); color: #fff; box-shadow: 0 0 12px var(--accent-glow); } .hub-admin-modal-text { display: flex; flex-direction: column; gap: 2px; } .hub-admin-modal-name { font-weight: var(--weight-semibold); font-size: var(--text-md); } .hub-admin-modal-role { font-size: var(--text-sm); color: var(--success); font-weight: var(--weight-medium); } .hub-admin-modal-logout { width: 100%; background: rgba(237, 66, 69, .12); border: 1px solid rgba(237, 66, 69, .25); border-radius: var(--radius-sm); color: var(--danger); font-family: var(--font-body); font-size: var(--text-base); font-weight: var(--weight-medium); padding: var(--space-3); cursor: pointer; transition: all var(--duration-fast); } .hub-admin-modal-logout:hover { background: rgba(237, 66, 69, .2); } /* -- Admin Button ------------------------------------------- */ .hub-admin-btn { background: var(--surface-glass); border: 1px solid var(--surface-glass-border); color: var(--text-secondary); font-size: 16px; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; transition: all var(--duration-fast); display: flex; align-items: center; justify-content: center; position: relative; } .hub-admin-btn:hover { background: var(--surface-glass-hover); border-color: var(--accent-glow); box-shadow: 0 0 12px var(--accent-soft); } .hub-admin-btn.logged-in { border-color: var(--success); } .hub-admin-green-dot { position: absolute; top: 1px; right: 1px; width: 8px; height: 8px; background: var(--success); border-radius: 50%; border: 2px solid var(--bg-deep); } /* -- Check for Updates Button ------------------------------- */ .hub-check-update-btn { background: none; border: 1px solid var(--border-default); border-radius: var(--radius-sm); color: var(--text-secondary); font-size: var(--text-base); padding: 2px var(--space-2); cursor: pointer; transition: all var(--duration-fast); line-height: 1; font-family: var(--font-body); } .hub-check-update-btn:hover:not(:disabled) { color: var(--accent); border-color: var(--accent); } .hub-check-update-btn:disabled { opacity: 0.4; cursor: default; } /* -- Version Badge ------------------------------------------ */ .hub-version { font-size: var(--text-sm); color: var(--text-tertiary); font-weight: var(--weight-medium); font-variant-numeric: tabular-nums; background: var(--bg-secondary); padding: var(--space-1) var(--space-2); border-radius: var(--radius-xs); } /* -- Refresh Button ----------------------------------------- */ .hub-refresh-btn { background: none; border: none; color: var(--text-secondary); font-size: 1rem; cursor: pointer; padding: var(--space-1) var(--space-2); border-radius: var(--radius-sm); transition: all var(--duration-fast); line-height: 1; } .hub-refresh-btn:hover { color: var(--accent); background: var(--accent-soft); } /* ============================================================ J) UTILITY CLASSES ============================================================ */ /* -- Badge -------------------------------------------------- */ .badge { display: inline-flex; align-items: center; justify-content: center; font-size: var(--text-xs); font-weight: var(--weight-semibold); padding: 2px var(--space-2); border-radius: var(--radius-xs); line-height: 1.5; white-space: nowrap; } .badge--accent { background: var(--accent-soft); color: var(--accent-text); } .badge--success { background: rgba(67, 181, 129, .15); color: var(--success); } .badge--danger { background: rgba(237, 66, 69, .15); color: var(--danger); } .badge--warning { background: rgba(250, 166, 26, .15); color: var(--warning); } .badge--info { background: rgba(88, 101, 242, .15); color: var(--info); } /* -- Button ------------------------------------------------- */ .btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); font-family: var(--font-body); font-weight: var(--weight-medium); border: none; cursor: pointer; transition: all var(--duration-fast); border-radius: var(--radius-sm); white-space: nowrap; } .btn--sm { height: 30px; padding: 0 var(--space-3); font-size: var(--text-sm); } .btn--md { height: 36px; padding: 0 var(--space-4); font-size: var(--text-base); } .btn--lg { height: 42px; padding: 0 var(--space-5); font-size: var(--text-md); } .btn--primary { background: var(--accent); color: #fff; } .btn--primary:hover { background: var(--accent-hover); } .btn--secondary { background: var(--surface-glass); color: var(--text-primary); border: 1px solid var(--surface-glass-border); } .btn--secondary:hover { background: var(--surface-glass-hover); } .btn--ghost { background: transparent; color: var(--text-secondary); } .btn--ghost:hover { background: var(--surface-glass); color: var(--text-primary); } .btn--danger { background: var(--danger); color: #fff; } .btn--danger:hover { background: #d63638; } /* -- Glass Surfaces ----------------------------------------- */ .glass--subtle { background: var(--surface-glass); border: 1px solid var(--surface-glass-border); } .glass--medium { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .10); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); } .glass--strong { background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); } /* -- Toast Notifications ------------------------------------ */ .toast-container { position: fixed; bottom: var(--space-4); right: var(--space-4); z-index: 2000; display: flex; flex-direction: column; gap: var(--space-2); pointer-events: none; } .toast { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: var(--bg-elevated); border: 1px solid var(--border-default); box-shadow: var(--shadow-lg); color: var(--text-primary); font-size: var(--text-sm); font-weight: var(--weight-medium); pointer-events: auto; animation: toast-in var(--duration-normal) var(--ease-out); max-width: 380px; } .toast.toast-exit { animation: toast-out var(--duration-fast) ease forwards; } .toast--success { border-left: 3px solid var(--success); } .toast--danger { border-left: 3px solid var(--danger); } .toast--warning { border-left: 3px solid var(--warning); } .toast--info { border-left: 3px solid var(--info); } .toast__icon { font-size: var(--text-lg); flex-shrink: 0; } .toast__message { flex: 1; } .toast__close { background: none; border: none; color: var(--text-tertiary); cursor: pointer; padding: var(--space-1); border-radius: var(--radius-xs); font-size: var(--text-sm); transition: color var(--duration-fast); } .toast__close:hover { color: var(--text-primary); } @keyframes toast-in { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } } @keyframes toast-out { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(20px); } } /* ============================================================ K) NOISE TEXTURE OVERLAY ============================================================ */ .content-area::before, .app-main::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.015'/%3E%3C/svg%3E"); pointer-events: none; z-index: 0; } /* ============================================================ PRESERVED: Empty State ============================================================ */ .hub-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; min-height: 300px; text-align: center; padding: var(--space-7); animation: fade-in 300ms ease; } .hub-empty-icon { font-size: 64px; line-height: 1; margin-bottom: var(--space-5); opacity: 0.6; filter: grayscale(30%); } .hub-empty h2 { font-size: var(--text-xl); font-weight: var(--weight-bold); color: var(--text-primary); margin-bottom: var(--space-2); } .hub-empty p { font-size: var(--text-md); color: var(--text-secondary); max-width: 360px; line-height: 1.5; } /* -- Avatar (general) --------------------------------------- */ .hub-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--accent-gradient); display: flex; align-items: center; justify-content: center; font-size: var(--text-base); font-weight: var(--weight-bold); color: #fff; box-shadow: 0 0 0 2px var(--bg-deep); } /* -- Download Button ---------------------------------------- */ .hub-download-btn { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-1) var(--space-3); font-size: var(--text-sm); font-weight: var(--weight-medium); font-family: var(--font-body); text-decoration: none; color: var(--text-secondary); background: var(--bg-secondary); border-radius: var(--radius-sm); cursor: pointer; transition: all var(--duration-fast); white-space: nowrap; border: none; } .hub-download-btn:hover { color: var(--accent); background: var(--accent-soft); } .hub-download-icon { font-size: var(--text-base); line-height: 1; } .hub-download-label { line-height: 1; } /* ============================================================ PRESERVED: Radio Plugin Styles ============================================================ */ .radio-container { display: flex; flex-direction: column; width: 100%; height: 100%; overflow: hidden; background: var(--bg-deep); } /* -- Radio Themes ------------------------------------------- */ .radio-container[data-theme="purple"] { --bg-deep: #13111c; --bg-primary: #1a1726; --bg-secondary: #241f35; --bg-tertiary: #2e2845; --accent: #9b59b6; --accent-hover: #8e44ad; } .radio-container[data-theme="forest"] { --bg-deep: #0f1a14; --bg-primary: #142119; --bg-secondary: #1c2e22; --bg-tertiary: #253a2c; --accent: #2ecc71; --accent-hover: #27ae60; } .radio-container[data-theme="ocean"] { --bg-deep: #0a1628; --bg-primary: #0f1e33; --bg-secondary: #162a42; --bg-tertiary: #1e3652; --accent: #3498db; --accent-hover: #2980b9; } .radio-container[data-theme="cherry"] { --bg-deep: #1a0f14; --bg-primary: #22141a; --bg-secondary: #301c25; --bg-tertiary: #3e2530; --accent: #e74c6f; --accent-hover: #c0392b; } /* -- Radio Topbar ------------------------------------------- */ .radio-topbar { display: flex; align-items: center; padding: 0 var(--space-4); height: var(--header-h); background: var(--bg-secondary); border-bottom: 1px solid rgba(0, 0, 0, .24); z-index: 10; flex-shrink: 0; gap: var(--space-4); } .radio-topbar-left { display: flex; align-items: center; gap: var(--space-3); flex-shrink: 0; } .radio-topbar-logo { font-size: 20px; } .radio-topbar-title { font-size: var(--text-lg); font-weight: var(--weight-bold); color: var(--text-primary); letter-spacing: -0.02em; } .radio-topbar-np { flex: 1; display: flex; align-items: center; gap: var(--space-3); min-width: 0; justify-content: center; } .radio-topbar-right { display: flex; align-items: center; gap: var(--space-2); flex-shrink: 0; margin-left: auto; } .radio-topbar-stop { display: flex; align-items: center; gap: var(--space-1); background: var(--danger); color: #fff; border: none; border-radius: var(--radius-sm); padding: var(--space-2) var(--space-3); font-size: var(--text-sm); font-family: var(--font-body); font-weight: var(--weight-semibold); cursor: pointer; transition: all var(--duration-fast); flex-shrink: 0; } .radio-topbar-stop:hover { background: #c63639; } .radio-theme-inline { display: flex; align-items: center; gap: var(--space-1); margin-left: var(--space-1); } /* -- Globe -------------------------------------------------- */ .radio-globe-wrap { position: relative; flex: 1; overflow: hidden; } .radio-globe { width: 100%; height: 100%; } .radio-globe canvas { outline: none !important; } /* -- Radio Search ------------------------------------------- */ .radio-search { position: absolute; top: var(--space-4); 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-default); border-radius: var(--radius-lg); padding: 0 var(--space-3); gap: var(--space-2); box-shadow: var(--shadow-lg); } .radio-search-icon { font-size: 16px; opacity: 0.6; flex-shrink: 0; } .radio-search-input { flex: 1; background: transparent; border: none; color: var(--text-primary); font-family: var(--font-body); font-size: var(--text-base); padding: var(--space-3) 0; outline: none; } .radio-search-input::placeholder { color: var(--text-tertiary); } .radio-search-clear { background: none; border: none; color: var(--text-secondary); font-size: var(--text-base); cursor: pointer; padding: var(--space-1); border-radius: var(--radius-xs); transition: color var(--duration-fast); } .radio-search-clear:hover { color: var(--text-primary); } /* -- Radio Search Results ----------------------------------- */ .radio-search-results { margin-top: var(--space-2); background: rgba(30, 31, 34, 0.95); backdrop-filter: blur(12px); border: 1px solid var(--border-default); border-radius: var(--radius-lg); max-height: 360px; overflow-y: auto; box-shadow: var(--shadow-xl); } .radio-search-result { display: flex; align-items: center; gap: var(--space-3); width: 100%; padding: var(--space-3) var(--space-3); background: none; border: none; border-bottom: 1px solid var(--border-subtle); color: var(--text-primary); font-family: var(--font-body); font-size: var(--text-base); cursor: pointer; text-align: left; transition: background var(--duration-fast); } .radio-search-result:last-child { border-bottom: none; } .radio-search-result:hover { background: var(--accent-soft); } .radio-search-result-icon { font-size: var(--text-lg); flex-shrink: 0; } .radio-search-result-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .radio-search-result-title { font-weight: var(--weight-semibold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .radio-search-result-sub { font-size: var(--text-sm); color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* -- Favorites FAB ------------------------------------------ */ .radio-fab { position: absolute; top: var(--space-4); right: var(--space-4); z-index: 20; display: flex; align-items: center; gap: var(--space-1); padding: var(--space-3) var(--space-3); background: rgba(30, 31, 34, 0.92); backdrop-filter: blur(12px); border: 1px solid var(--border-default); border-radius: var(--radius-lg); color: var(--text-primary); font-size: 16px; cursor: pointer; box-shadow: var(--shadow-lg); transition: all var(--duration-fast); } .radio-fab:hover, .radio-fab.active { background: var(--accent-soft); border-color: var(--accent); } .radio-fab-badge { font-size: var(--text-xs); font-weight: var(--weight-bold); background: var(--accent); color: #fff; padding: 1px 6px; border-radius: var(--radius-full); 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-default); display: flex; flex-direction: column; animation: slide-in-right var(--duration-normal) ease; box-shadow: -8px 0 32px rgba(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: var(--space-4); border-bottom: 1px solid var(--border-subtle); flex-shrink: 0; } .radio-panel-header h3 { font-size: var(--text-lg); font-weight: var(--weight-bold); color: var(--text-primary); } .radio-panel-sub { font-size: var(--text-sm); color: var(--text-secondary); display: block; margin-top: 2px; } .radio-panel-close { background: none; border: none; color: var(--text-secondary); font-size: var(--text-lg); cursor: pointer; padding: var(--space-1) var(--space-2); border-radius: var(--radius-xs); transition: all var(--duration-fast); } .radio-panel-close:hover { color: var(--text-primary); background: var(--surface-glass-hover); } .radio-panel-body { flex: 1; overflow-y: auto; padding: var(--space-2); } .radio-panel-empty { text-align: center; color: var(--text-secondary); padding: var(--space-8) var(--space-4); font-size: var(--text-base); } .radio-panel-loading { display: flex; flex-direction: column; align-items: center; gap: var(--space-3); padding: var(--space-8) var(--space-4); color: var(--text-secondary); font-size: var(--text-base); } /* -- Station Card ------------------------------------------- */ .radio-station { display: flex; align-items: center; justify-content: space-between; padding: var(--space-3) var(--space-3); border-radius: var(--radius-sm); transition: background var(--duration-fast); gap: var(--space-3); } .radio-station:hover { background: var(--surface-glass-hover); } .radio-station.playing { background: var(--accent-soft); border: 1px solid var(--accent); } .radio-station-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; } .radio-station-name { font-size: var(--text-base); font-weight: var(--weight-semibold); color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .radio-station-loc { font-size: var(--text-xs); color: var(--text-tertiary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .radio-station-live { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-xs); color: var(--accent); font-weight: var(--weight-semibold); } .radio-station-btns { display: flex; gap: var(--space-1); flex-shrink: 0; } /* -- Radio Buttons ------------------------------------------ */ .radio-btn-play, .radio-btn-stop { width: 34px; height: 34px; border: none; border-radius: 50%; font-size: var(--text-base); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all var(--duration-fast); } .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-tertiary); display: flex; align-items: center; justify-content: center; transition: all var(--duration-fast); } .radio-btn-fav:hover { color: var(--warning); background: rgba(250, 166, 26, .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-default); border-radius: var(--radius-sm); color: var(--text-primary); font-family: var(--font-body); font-size: var(--text-sm); padding: var(--space-2) var(--space-3); 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: var(--text-base); font-weight: var(--weight-semibold); color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .radio-np-loc { font-size: var(--text-xs); color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* -- Radio Volume ------------------------------------------- */ .radio-volume { display: flex; align-items: center; gap: var(--space-2); 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); 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); cursor: pointer; border: none; box-shadow: 0 0 4px rgba(0, 0, 0, .3); } .radio-volume-slider::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); cursor: pointer; border: none; box-shadow: 0 0 4px rgba(0, 0, 0, .3); } .radio-volume-val { font-size: var(--text-xs); color: var(--text-secondary); 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, .3); } /* -- Radio Overlays ----------------------------------------- */ .radio-counter { position: absolute; bottom: var(--space-4); left: var(--space-4); z-index: 10; font-size: var(--text-sm); color: var(--text-tertiary); background: rgba(30, 31, 34, 0.8); padding: var(--space-1) var(--space-3); border-radius: var(--radius-full); pointer-events: none; } .radio-attribution { position: absolute; right: var(--space-4); bottom: var(--space-4); z-index: 10; font-size: var(--text-sm); color: var(--text-tertiary); background: rgba(30, 31, 34, 0.8); padding: var(--space-1) var(--space-3); border-radius: var(--radius-full); text-decoration: none; transition: color var(--duration-fast), background var(--duration-fast); } .radio-attribution:hover { color: var(--text-primary); background: rgba(30, 31, 34, 0.92); } /* -- Radio 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; } /* -- Radio Connection --------------------------------------- */ .radio-conn { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); color: var(--success); cursor: pointer; padding: var(--space-1) var(--space-3); border-radius: var(--radius-full); background: rgba(67, 181, 129, .08); transition: all var(--duration-fast); flex-shrink: 0; user-select: none; } .radio-conn:hover { background: rgba(67, 181, 129, .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: var(--text-xs); color: var(--text-secondary); font-weight: var(--weight-semibold); 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-secondary); border: 1px solid var(--border-default); border-radius: var(--radius-lg); width: 340px; box-shadow: var(--shadow-xl); overflow: hidden; animation: radio-modal-in var(--duration-normal) 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: var(--space-2); padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--border-subtle); font-weight: var(--weight-bold); font-size: var(--text-base); } .radio-modal-close { margin-left: auto; background: none; border: none; color: var(--text-secondary); cursor: pointer; padding: var(--space-1) var(--space-2); border-radius: var(--radius-sm); font-size: var(--text-base); transition: all var(--duration-fast); } .radio-modal-close:hover { background: var(--surface-glass-hover); color: var(--text-primary); } .radio-modal-body { padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-3); } .radio-modal-stat { display: flex; justify-content: space-between; align-items: center; } .radio-modal-label { color: var(--text-secondary); font-size: var(--text-sm); } .radio-modal-value { font-weight: var(--weight-semibold); font-size: var(--text-sm); display: flex; align-items: center; gap: var(--space-2); } .radio-modal-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; } /* ============================================================ ANIMATIONS (Shared) ============================================================ */ @keyframes fade-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } } /* ============================================================ L) RESPONSIVE ============================================================ */ /* -- Tablet (< 768px): icon-only sidebar -------------------- */ @media (max-width: 768px) { :root { --sidebar-nav-w: 48px; } .sidebar-brand, .sidebar-section-label, .nav-label, .sidebar-user-info, .channel-dropdown { display: none; } .sidebar-header { justify-content: center; padding: 0; } .sidebar-footer { justify-content: center; padding: var(--space-2); } .sidebar-settings { display: none; } .nav-item { justify-content: center; padding: var(--space-2); } .nav-badge { position: absolute; top: 2px; right: 2px; min-width: 14px; height: 14px; font-size: 9px; padding: 0 3px; } .nav-now-playing { position: absolute; bottom: 2px; right: 4px; margin-left: 0; } .content-header { padding: 0 var(--space-3); gap: var(--space-2); } .content-header__search { max-width: 200px; } /* Radio responsive */ .radio-panel { width: 100%; } .radio-fab { top: var(--space-3); right: var(--space-3); padding: var(--space-2) var(--space-3); font-size: var(--text-base); } .radio-search { top: var(--space-3); width: calc(100% - 80px); left: calc(50% - 24px); } .radio-topbar { padding: 0 var(--space-3); gap: var(--space-2); } .radio-topbar-title { display: none; } .radio-sel { max-width: 140px; font-size: var(--text-sm); } .hub-empty-icon { font-size: 48px; } .hub-empty h2 { font-size: var(--text-lg); } .hub-empty p { font-size: var(--text-base); } } /* -- Mobile (< 480px): hide less important controls --------- */ @media (max-width: 480px) { .content-header__actions { display: none; } .content-header__search { max-width: none; flex: 1; } .playback-controls { display: none; } .theme-picker { display: none; } .volume-control { display: none; } .radio-topbar-np { display: none; } .radio-volume { display: none; } .radio-sel { max-width: 120px; } }