/* ============================
   Karaoke Warteschlange Styles
   ============================ */

.karaoke-layout {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Songliste links */
.song-cards-container {
    flex: 2;
}

/* Warteschlange rechts */
.queue-card {
    flex: 1;
    position: sticky;
    top: 2rem;
    background: rgba(50, 0, 70, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    padding: 1.5rem;
    color: white;
    height: 80vh;
    overflow-y: auto;
    backdrop-filter: blur(10px);
}

.queue-title {
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: #ff66ff;
    text-shadow: 0 0 8px #a000ff;
}

.queue-empty {
    text-align: center;
    color: #bbb;
    margin-top: 2rem;
}

.queued-song {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    margin-bottom: 0.8rem;
    transition: background 0.2s;
}

.queued-song:hover {
    background: rgba(255, 255, 255, 0.2);
}

.queued-song .title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
}

.queued-song .artist {
    font-size: 0.95rem;
    color: #ccc;
}

.queued-song .disc {
    font-size: 0.95rem;
    color: #ff99ff;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.queued-song .user {
    font-size: 0.85rem;
    color: #ffccff;
    margin-top: 0.2rem;
    font-style: italic;
}

/* Interaktion */
.song-card {
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.3s, background 0.3s;
}

.song-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(170, 0, 255, 0.6);
    background: rgba(70, 0, 120, 0.9);
}

.song-card:active {
    transform: scale(0.97);
    box-shadow: 0 0 25px rgba(255, 0, 255, 0.8);
    background: rgba(80, 0, 120, 1);
}

.remove-btn {
    float: right;
    background: none;
    border: none;
    color: #ff66ff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.2s;
}

.remove-btn:hover {
    color: #fff;
}

.queued-song.added {
    animation: glowAdd 0.6s ease-out;
}

@keyframes glowAdd {
    0% {
        box-shadow: 0 0 10px #ff33ff;
        transform: scale(1.02);
    }
    100% {
        box-shadow: none;
        transform: scale(1);
    }
}

/* ============================
   ADMIN BUTTON
   ============================ */
.admin-btn {
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1000;
    padding: 0.35rem 0.8rem;
    background-color: #6a0dad;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    opacity: 0.85;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.2s;
}

.admin-btn:hover {
    opacity: 1;
    background-color: #8a2be2;
}

@media (max-width: 768px) {

    /* ---------- Layout ---------- */
    .karaoke-layout {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 1.8rem;
        padding: 0 0.5rem;   /* 🔹 links und rechts kleiner Rand */
        box-sizing: border-box;
    }

    /* ---------- Songliste + Queue ---------- */
    .song-cards-container,
    .queue-card {
        flex: unset;
        width: 100%;
        max-width: 600px;   /* 🔹 max Breite */
        box-sizing: border-box;
    }

    /* ---------- Queue ---------- */
    .queue-card {
        order: 1;
        height: 32vh;
        overflow-y: auto;
        margin-bottom: 1.5rem;
        position: relative;
        padding: 1rem;
        width: 100%;
    }

    /* ---------- Songliste ---------- */
    .song-cards-container {
        order: 2;
    }

    /* ---------- Suchleiste ---------- */
    .searchBox {
        width: 100%;
        max-width: 400px;
        margin: 0 auto 1rem auto;
        display: flex;
        justify-content: center;
    }

    /* ---------- Titel ---------- */
    .karaoke-title {
        text-align: center;
        font-size: 2.2rem;
        margin: 1rem auto;
        width: 100%;
    }

    /* ---------- Admin Button ---------- */
    .admin-btn {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
        top: 10px;
        left: 10px;
        opacity: 0.8;
    }

    /* ---------- Scrollbar ---------- */
    .queue-card::-webkit-scrollbar {
        width: 6px;
    }

    .queue-card::-webkit-scrollbar-thumb {
        background: rgba(255, 100, 255, 0.4);
        border-radius: 10px;
    }
}
