.ce-youtube-link__player {
    position: relative;
    overflow: hidden;
    width: 100%;
    background: #000;
}

.ce-youtube-link__preview,
.ce-youtube-link__embed {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.ce-youtube-link__preview[hidden],
.ce-youtube-link__embed[hidden],
.ce-youtube-link__actions[hidden] {
    display: none !important;
}

.ce-youtube-link__embed {
    z-index: 5;
}

.ce-youtube-link__image,
.ce-youtube-link__overlay,
.ce-youtube-link__iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.ce-youtube-link__image {
    display: block;
    object-fit: cover;
    object-position: center center;
}

.ce-youtube-link__overlay {
    z-index: 2;
    object-fit: cover;
    pointer-events: none;
}

.ce-youtube-link__iframe {
    border: 0;
    background: #000;
    z-index: 6;
}

.ce-youtube-link__consent-box {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.ce-youtube-link__consent-inner {
    max-width: 42rem;
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    padding: 1rem 1.25rem;
    border-radius: 0.5rem;
    text-align: center;
}

.ce-youtube-link__consent-text {
    margin: 0 0 0.75rem 0;
}

.ce-youtube-link__consent-privacy {
    margin: 0 0 1rem 0;
}

.ce-youtube-link__consent-privacy a {
    color: #fff;
    text-decoration: underline;
}

/* Der Container selbst fängt keine Mausereignisse ab */
.ce-youtube-link__actions {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    z-index: 7;
    pointer-events: none;
}

/* Nur der Button selbst ist klickbar */
.ce-youtube-link__revoke-button {
    pointer-events: auto;
    backdrop-filter: blur(4px);
}

.ce-youtube-link__text {
    margin-top: 1rem;
}