- Radio Garden API Client (30K+ Orte, Sender-Suche, Stream-URL Auflösung) - Discord Voice Streaming via ffmpeg (PCM Pipeline) - Interactive 3D Globe (globe.gl) mit allen Radiosender-Standorten - Sender-Panel mit Play/Stop/Favoriten - Live-Suche nach Sendern und Städten - Now-Playing Bar mit Equalizer-Animation - Guild/Voice-Channel Auswahl - SSE Broadcasting für Live-Updates - Favoriten-System mit Persistenz - Responsive Design (Mobile/Tablet/Desktop) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
938 lines
16 KiB
CSS
938 lines
16 KiB
CSS
/* ── 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-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;
|
||
}
|
||
|
||
/* ── 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 {
|
||
position: relative;
|
||
width: 100%;
|
||
height: 100%;
|
||
overflow: hidden;
|
||
background: var(--bg-deep);
|
||
}
|
||
|
||
/* ── Globe ── */
|
||
.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); }
|
||
}
|
||
|
||
/* ── Bottom Bar ── */
|
||
.radio-bar {
|
||
position: absolute;
|
||
bottom: 0;
|
||
left: 0;
|
||
right: 0;
|
||
z-index: 20;
|
||
background: rgba(30, 31, 34, 0.95);
|
||
backdrop-filter: blur(16px);
|
||
border-top: 1px solid var(--border);
|
||
padding: 10px 16px;
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 16px;
|
||
box-shadow: 0 -4px 24px rgba(0,0,0,0.3);
|
||
}
|
||
|
||
.radio-bar-channel {
|
||
display: flex;
|
||
gap: 8px;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.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);
|
||
}
|
||
|
||
/* ── Now Playing ── */
|
||
.radio-np {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 12px;
|
||
flex: 1;
|
||
min-width: 0;
|
||
}
|
||
|
||
.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;
|
||
}
|
||
|
||
.radio-np-ch {
|
||
font-size: 12px;
|
||
color: var(--text-faint);
|
||
white-space: nowrap;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.radio-bar .radio-btn-stop {
|
||
width: auto;
|
||
border-radius: var(--radius);
|
||
padding: 6px 14px;
|
||
font-size: 13px;
|
||
gap: 4px;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
/* ── Station count ── */
|
||
.radio-counter {
|
||
position: absolute;
|
||
bottom: 70px;
|
||
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;
|
||
}
|
||
|
||
/* ── 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-bar {
|
||
flex-wrap: wrap;
|
||
padding: 8px 12px;
|
||
gap: 8px;
|
||
}
|
||
|
||
.radio-sel {
|
||
max-width: 140px;
|
||
font-size: 12px;
|
||
}
|
||
|
||
.radio-counter {
|
||
bottom: 62px;
|
||
left: 12px;
|
||
}
|
||
}
|
||
|
||
@media (max-width: 480px) {
|
||
.radio-np-ch {
|
||
display: none;
|
||
}
|
||
|
||
.radio-bar-channel {
|
||
flex-wrap: wrap;
|
||
}
|
||
|
||
.radio-sel {
|
||
max-width: 120px;
|
||
}
|
||
}
|