/* Tune Video Lightbox Fix v1.5.7 */

#tvl-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

#tvl-overlay.tvl-open {
    display: flex;
}

/* Normales Video: 16:9 */
#tvl-inner {
    position: relative;
    width: 90vw;
    max-width: 960px;
    cursor: default;
    animation: tvl-in 0.2s ease;
}

#tvl-iframe-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    background: #000;
    border-radius: 4px;
    overflow: hidden;
}

#tvl-iframe-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Shorts: feste Pixelmasse 315x560 (9:16) – YouTube-Empfehlung */
#tvl-inner.tvl-short {
    width: auto;
    max-width: none;
}

#tvl-inner.tvl-short #tvl-iframe-wrap {
    padding-top: 0;
    width: 315px;
    height: 560px;
    max-width: 90vw;
    max-height: 85vh;
}

@keyframes tvl-in {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}

#tvl-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.2s;
}

#tvl-close:hover { opacity: 1; }

#tvl-close svg {
    width: 24px;
    height: 24px;
    stroke: #fff;
    stroke-width: 2;
    fill: none;
}
