#rf-footer {
    position: fixed;
    left: 90px;
    right: 90px;
    bottom: 0;
    z-index: 9999;
    background: #0d6efd; /* gleiche Farbe wie der Button */
    color: #fff;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    backdrop-filter: blur(10px);
    box-shadow: 0 -4px 12px rgba(0,0,0,0.4);
    border-radius: 20px 20px 0 0;
    overflow: visible;
}

#rf-footer .rf-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    gap: 16px;
}

.rf-left,
.rf-center,
.rf-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Play-Button */
.rf-play-btn {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: none;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.1s ease;
}
.rf-play-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.05);
}

/* Cover + Logo */
.rf-cover-wrap {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}
#rf-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.rf-logo {
    position: absolute;
    right: 2px;
    bottom: 2px;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    object-fit: contain;
    background: rgba(0,0,0,0.6);
}

/* Text */
.rf-station-label {
    font-weight: 600;
}
.rf-station-sub {
    font-size: 12px;
    opacity: 0.8;
}
.rf-track-title {
    font-weight: 600;
}
.rf-track-artist {
    font-size: 13px;
    opacity: 0.9;
}

/* Equalizer */
.rf-eq {
    display: inline-flex;
    gap: 3px;
    margin-top: 4px;
}
.rf-eq span {
    width: 3px;
    height: 8px;
    background: rgba(255,255,255,0.7);
    border-radius: 999px;
    display: block;
    animation: rf-eq 1s infinite ease-in-out;
}
.rf-eq span:nth-child(2) { animation-delay: 0.1s; }
.rf-eq span:nth-child(3) { animation-delay: 0.2s; }
.rf-eq span:nth-child(4) { animation-delay: 0.3s; }

@keyframes rf-eq {
    0%, 100% { transform: scaleY(0.4); opacity: 0.6; }
    50%      { transform: scaleY(1.4); opacity: 1;   }
}

/* Station-Strip: mehrere Reihen, kein Scroll */
.rf-station-strip {
    display: flex;
    flex-wrap: wrap;              /* <— erlaubt Umbruch in mehrere Reihen */
    gap: 8px;
    max-width: 360px;
    padding: 6px 10px;
    background: rgba(0,0,0,0.25);
    border-radius: 999px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

/* Scrollbar komplett weg (falls Browser trotzdem was zeigt) */
.rf-station-strip::-webkit-scrollbar {
    display: none;
}

/* Sender-Logos */
.rf-station-item {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    flex-shrink: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        border-color 0.15s ease,
        background 0.15s ease,
        filter 0.15s ease;
}

.rf-station-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.rf-station-item:hover {
    transform: scale(1.12);
    box-shadow: 0 0 10px rgba(0, 200, 255, 0.7);
    border-color: rgba(0, 200, 255, 0.9);
    background: rgba(0, 200, 255, 0.15);
    filter: saturate(1.3);
}

.rf-station-item.active {
    border-color: #fff;
    box-shadow: 0 0 10px rgba(255,255,255,0.7);
    transform: scale(1.15);
}

/* Overlay Hintergrund */
#rf-station-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

/* Overlay Box */
.rf-overlay-inner {
    background: #3d0000;
    padding: 20px;
    border-radius: 16px;
    width: 90%;
    height: 90vh;
    max-height: 90vh;
    border-radius: 0;
    overflow-y: auto;
    box-shadow: 0 0 20px rgba(0,0,0,0.6);
    position: relative;
}

/* Close Button */
#rf-overlay-close {
    position: absolute;
    right: 12px;
    top: 12px;
    background: none;
    border: none;
    color: #fff;
    font-size: 26px;
    cursor: pointer;
}

/* Senderliste im Overlay */
#rf-overlay-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, 70px);
    gap: 16px;
    justify-content: center;
    margin-top: 20px;
}

#rf-overlay-list .rf-overlay-item {
    width: 70px;
    height: 70px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255,255,255,0.1);
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

#rf-overlay-list .rf-overlay-item:hover {
    transform: scale(1.12);
    border-color: #00c8ff;
}

#rf-overlay-list img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


/* Buttons rechts */
.rf-buttons {
    display: flex;
    gap: 8px;
}

/* History Button – schwarz + weiß */
#rf-history {
    border-radius: 10px 10px 0 0;
    border: none;
    background: rgb(95 92 92 / 10%);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.1s ease;
}

#rf-history:hover {
       background: rgba(255,255,255,0.2);
    transform: scale(1.05);

}

#rf-more-stations {
    border-radius: 10px 10px 0 0;
    border: none;
    background: rgb(95 92 92 / 10%);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.1s ease;
}

/* Wunschbox Button ausblenden */
#rf-wunschbox {
    display: none !important;
}

/* Toggle-Button über der Leiste */
#rf-toggle {
    position: absolute;
    top: -30px;                 /* sitzt über der Leiste */
    right: 16px;                /* rechtsbündig wie deine Buttons */
    padding: 6px 14px;
    font-size: 13px;
    background: #6b0c01;        /* gleiche Farbe wie Footer */
    color: #fff;
    border: none;
    border-radius: 6px 6px 0 0; /* oben abgerundet */
    cursor: pointer;
    z-index: 100000;            /* immer sichtbar */
    box-shadow: 0 -2px 6px rgba(0,0,0,0.4);
}

/* Hover-Effekt */
#rf-toggle:hover {
    background: #333;
}
/* Bar ausblenden */
#rf-footer .rf-inner.rf-hidden {
    display: none;
}

/* Footer darf den Button nicht abschneiden */
#rf-footer {
    overflow: visible !important;
    position: fixed;            /* bleibt fixiert */
}

/* Responsive */
@media (max-width: 768px) {
    #rf-footer .rf-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .rf-right {
        width: 100%;
        justify-content: space-between;
    }
}

