/* =============================================================================
   radio_mini.css – Sidebar Mini-Player für Internet Radio
   =============================================================================
   Wird auf ALLEN Seiten geladen, die den Mini-Player in der Sidebar zeigen.
   Seiten-spezifische Styles des Radio-Players stehen in radio.css.
   ============================================================================= */

/* --- Container -------------------------------------------------------------- */
.radio-mini-player {
    display: none;          /* Standard: unsichtbar, per JS .visible gesetzt */
    position: relative;
    overflow: hidden;
    margin: 14px 0 8px;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
    cursor: default;
}

.radio-mini-player.visible {
    display: block;
}

/* --- Hintergrundbild (Senderlogo, voll ausgefüllt) -------------------------- */
.radio-mini-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-color: var(--color-background-2);
    transition: background-image 0.4s ease;
}

/* --- Gradient-Overlay: oben transparent → unten 75 % dunkel ----------------- */
.radio-mini-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 20%,
        rgba(0, 0, 0, 0.75) 100%
    );
}

/* --- Inhaltsbereich am unteren Rand ----------------------------------------- */
.radio-mini-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 6px 8px 7px;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

/* Zeile 1: Aktuelle Sendung / Sendername (fett) */
.radio-mini-show-current {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

/* Zeile 2: Nächste Sendung (kleiner, normal) – Platzhalter für ICY-Metadaten */
.radio-mini-show-next {
    margin: 0;
    font-size: 0.7rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.75);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    min-height: 0.9rem;
}

/* Zeile 3: Steuerelemente */
.radio-mini-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
}

/* --- Basis-Button ----------------------------------------------------------- */
.radio-mini-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    color: #fff;
    font-size: 0.75rem;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.1s ease;
    flex-shrink: 0;
}

.radio-mini-btn:hover {
    background: rgba(255, 255, 255, 0.30);
}

.radio-mini-btn:active {
    transform: scale(0.9);
}

/* Play/Pause: etwas größer, primärfarben */
.radio-mini-btn--play {
    width: 34px;
    height: 34px;
    font-size: 1rem;
    background: var(--color-primary);
    border-color: transparent;
}

.radio-mini-btn--play:hover {
    background: var(--color-primary-hover, var(--color-primary));
    filter: brightness(1.15);
}

/* Schließen-Button: leicht rötlich */
.radio-mini-btn--close {
    background: rgba(220, 53, 69, 0.25);
    border-color: rgba(220, 53, 69, 0.4);
}

.radio-mini-btn--close:hover {
    background: rgba(220, 53, 69, 0.55);
}

/* --- Kollabierte Sidebar: Player ausblenden ---------------------------------- */
.sidebar.collapsed .radio-mini-player {
    display: none !important;
}
