﻿.manifestPlayer-encoder {
    position: fixed !important;
    z-index: 5000;
    width: 20%;
    max-width: 240px;
    min-width: 120px;
    height: auto !important;
    right: 40px;
    top: 144px;
    overflow: auto;
    border: 2px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: #000;
    cursor: move;
    resize: both;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-select: none;
    user-select: none;
}

@media (max-width: 768px) and (orientation: portrait) {
    .manifestPlayer-encoder {
        min-width: 105px !important;
    }
}

/* Header */
.manifestPlayer-encoder-header {
    background: linear-gradient( 90deg, var(--systemLogoColor), color-mix(in srgb, var(--systemLogoColor) 70%, deeppink) );
    color: #fff;
    font-weight: 600;
    padding: 8px 12px 8px 32px; /* mehr Platz links für Icon */
    font-size: 14px;
    position: relative;
}

    /* Close Button */
    .manifestPlayer-encoder-header button {
        position: absolute;
        right: 8px;
        top: 6px;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        border: none;
        background: rgba(255,255,255,0.15);
        color: #fff;
        font-size: 12px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.2s, transform 0.15s ease;
    }

        .manifestPlayer-encoder-header button:hover {
            background: #f107a3;
            transform: scale(1.15);
        }

.manifestPlayer-encoder-body {
    position: relative;
    min-height: 120px; /* Platz für zentrierten Button */
}

.manifestPlayer-encoder-request {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100px;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    z-index: 5555;
    color: #fff;
    background: linear-gradient( 90deg, var(--systemLogoColor), color-mix(in srgb, var(--systemLogoColor) 70%, deeppink) );
    border: none;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}


/* Einblende-Animation */
@keyframes popup-fade {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}
