/* DIESER TEIL SORGT DAFÜR, DASS ER AUF DEM HINTERGRUND "KLEBT" */
#retro-radio-bg-layer {
    position: fixed;
    left: 40px;
    bottom: 30px;
    top: auto;
    transform: none;
    z-index: 999999;
    pointer-events: auto;
}

.retro-player-container {
    position: relative;
    background: #1a1a1a;
    border: 3px solid #7d425b;
    padding: 15px;
    width: 250px;
    font-family: 'Courier New', Courier, monospace;
    box-shadow: 5px 5px 0px #184246;
    color: #fff;
    border-radius: 2px;
    transition: width 0.25s ease, padding 0.25s ease, opacity 0.25s ease;
    overflow: hidden;
}

.retro-toggle-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border: 1px solid #174245;
    background: #222;
    color: #c05e8c;
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    z-index: 5;
    padding: 0;
}

.retro-toggle-btn:hover {
    background: #ff00ff;
    color: #fff;
}

.retro-radio-main {
    transition: opacity 0.2s ease, max-height 0.25s ease, margin 0.25s ease;
    max-height: 300px;
    opacity: 1;
}

/* EINGEKLAPPT */
#retro-radio-bg-layer.radio-collapsed .retro-player-container {
    width: 62px;
    padding: 12px 10px;
}

#retro-radio-bg-layer.radio-collapsed .retro-radio-main {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-top: 18px;
}

#retro-radio-bg-layer.radio-collapsed .retro-toggle-btn {
    position: static;
    display: block;
    margin: 0 auto;
}

#retro-radio-bg-layer.radio-collapsed .retro-player-container::after {
    content: "FM";
    display: block;
    text-align: center;
    margin-top: 8px;
    font-size: 11px;
    font-weight: bold;
    color: #6f495b;
    letter-spacing: 2px;
}

/* Restliches Design */
.retro-display {
    background: #002200;
    border: 2px solid #333;
    height: 60px;
    position: relative;
    overflow: hidden;
    margin-bottom: 12px;
    padding: 5px;
}

.scanlines {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(rgba(18,16,16,0) 50%, rgba(0,0,0,0.15) 50%);
    background-size: 100% 3px;
    z-index: 2;
    pointer-events: none;
}

.station-info {
    color: #33ff33;
    text-shadow: 0 0 8px #33ff33;
    font-size: 10px;
}

.marquee-container {
    white-space: nowrap;
    overflow: hidden;
    margin-top: 5px;
    border-top: 1px solid #114411;
}

#track-title {
    display: inline-block;
    padding-left: 100%;
    font-size: 12px;
    font-weight: bold;
    animation: marquee-scroll 10s linear infinite;
}

@keyframes marquee-scroll {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-180%, 0); }
}

.retro-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
}

.retro-btn {
    background: #222;
    border: 2px solid #174245;
    color: #c05e8c;
    padding: 5px 10px;
    cursor: pointer;
    font-weight: bold;
    font-size: 10px;
}

.retro-btn:hover {
    background: #ff00ff;
    color: #fff;
}

.volume-box {
    width: 100%;
    margin-top: 5px;
}

#volume-slider {
    width: 100%;
    height: 6px;
    accent-color: #53a5ad;
    cursor: pointer;
}

.retro-footer {
    margin-top: 15px;
    text-align: center;
    font-weight: 900;
    color: #6f495b;
    text-shadow: 1px 1px #000;
    font-size: 11px;
    border-top: 1px solid #333;
    padding-top: 10px;
}

/* Etwas früher ausblenden oder einklappen auf kleineren Screens */
@media (max-width: 1400px) {
    #retro-radio-bg-layer {
        left: 20px;
        bottom: 20px;
    }

    .retro-player-container {
        width: 220px;
    }
}

@media (max-width: 1200px) {
    #retro-radio-bg-layer {
        display: none;
    }
}