/* ============================================================
   CHANNEL OVERLAY
============================================================ */
#fp-channel-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.fp-overlay-inner {
    background: rgba(20,20,20,0.9);
    border-radius: 14px;
    padding: 25px;
    max-width: 1100px;
    width: 100%;
    color: #fff;
}

.fp-overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.fp-overlay-header h3 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 700;
}

#fp-overlay-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
}

/* GRID */
.fp-overlay-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
}

.fp-overlay-item {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.fp-overlay-item:hover {
    transform: translateY(-4px);
    background: rgba(255,255,255,0.12);
}

.fp-overlay-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
}

.fp-overlay-label {
    font-size: 0.95rem;
    font-weight: 600;
}


/* ============================================================
   FOOTER PLAYER
============================================================ */
#footer-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(255,255,255,0.85);
    border-top: 1px solid rgba(0,0,0,0.1);

    /* Schatten nur im Light Mode */
    box-shadow: 0 -5px 15px rgba(0,0,0,0.25);
}

html[data-theme="dark"] #footer-player {
    background: rgba(20,20,20,0.85);
    border-top: 1px solid rgba(255,255,255,0.08);
    box-shadow: none; /* kein Schatten im Dark Mode */
}

.footer-player-inner {
    width: 100%;
    max-width: 1400px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 25px;
}


/* LEFT */
.fp-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.fp-cover-wrap {
    position: relative;
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
}

.fp-cover-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fp-logo {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    border-radius: 4px;
}


/* CENTER */
.fp-center {
    text-align: center;
    flex: 1;
}

.fp-track-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.fp-track-artist {
    font-size: 0.9rem;
    opacity: 0.8;
}


/* RIGHT */
.fp-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fp-btn {
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    font-weight: 600;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.fp-btn:hover {
    opacity: 0.7;
    transform: translateY(-1px);
}

.fp-btn-grid {
    background: #007bff;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.fp-btn-grid:hover {
    background: #0069d9;
    transform: translateY(-2px);
}


/* ============================================================
   NEUES CHANNEL-ICON (5px Überstand)
============================================================ */
.fp-btn-circle {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgb(255 255 255 / 70%);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    margin-top: -40px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: transform .2s ease, box-shadow .2s ease;
}

.fp-btn-circle img {
    width: 60px;
    height: 60px;
}

.fp-btn-circle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}

html[data-theme="dark"] .fp-btn-circle {
    background: #222;
}

html[data-theme="dark"] .fp-btn-circle:hover {
    box-shadow: 0 6px 16px rgba(255,255,255,0.15);
}
/* ============================================================
   FOOTER PLAYER – Smartphone Optimierung (< 480px)
============================================================ */
@media (max-width: 480px) {

    #footer-player {
        padding: 0; /* kompakter */
    }

    .footer-player-inner {
        padding: 8px 12px; /* weniger Abstand */
    }

    /* Cover kleiner */
    .fp-cover-wrap {
        width: 50px;
        height: 50px;
    }

    .fp-cover-wrap img {
        object-fit: cover;
    }

    /* Logo kleiner */
    .fp-logo {
        width: 18px;
        height: 18px;
        bottom: 3px;
        right: 3px;
    }

    /* Titel + Artist kompakter */
    .fp-track-title {
        font-size: 0.95rem;
    }

    .fp-track-artist {
        font-size: 0.75rem;
    }

    /* Buttons kleiner */
    .fp-btn-grid {
        padding: 6px 10px;
        font-size: 0.85rem;
    }

    .fp-btn {
        font-size: 0.85rem;
    }

    /* Channel-Icon kleiner */
    .fp-btn-circle {
        width: 60px;
        height: 60px;
        margin-top: -30px;
    }

    .fp-btn-circle img {
        width: 45px;
        height: 45px;
    }
}
/* Player auf Handy verbergen */
@media (max-width: 480px) {
    #footer-player {
        display: none !important;
    }
}
