/* Film-Metadaten */
#film-infos.film-metadata {
    font-weight: bold;
    font-size: var(--wp--preset--font-size--small) !important;
    min-width: 33% !important;
    max-width: 600px !important;
}




/*

.yt-links-shortcode {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.yt-video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
}
.yt-video-wrapper iframe {
    position: absolute;
    width: 100%;
    height: 100%;
    left:0;
    top:0;
    border:0;
}.

*/


#trailer {
    position: relative; /* sehr wichtig für ::before und ::after */
    overflow: hidden;
    z-index: 0;
    margin-block-start: 0!important;
    aspect-ratio: 16/9!important;

}
#trailer iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    pointer-events: none;
    max-width: 100%!important;
}



#trailer iframe, 
#trailer video {
  opacity: 0;
  animation: fadeInVideo 1s ease 1s forwards;
  /* 1s = Dauer des Fades, 5s = Verzögerung */
}

@keyframes fadeInVideo {
  from { opacity: 0; }
  to { opacity: 1; }
}







/*OVERLAYS*/

#trailer {
  position: relative;
  overflow: hidden;
}

#trailer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("overlay.png") center/cover no-repeat;
  opacity: 1;          /* Stärke anpassen (0.5–0.9 wirkt oft schön filmisch) */
  pointer-events: none;  /* Klicks gehen durch */
  z-index: -1;            /* über dem Video, unter Text oder Icons */
}





















#film-info-group {
margin-block-start: -52%;
}
#film-info-row-2, #film-meta-zeile {
    margin-block-start: 0!important;
}

/* --- Buttons für Film-Videos --- */
.yt-popup-button {
    font-size: var(--wp--preset--font-size--small);
    color: #fff;
    border: 1px solid #fff;
    border-radius: 16px;
    cursor: pointer;
    line-height: 1.5;
    padding: 0.2rem 0.6rem;
    transition: all 0.3s;
    background: none;
}


/* --- Overlay für Popup --- */
.yt-popup-overlay {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0,0,0,0.85);
    z-index: 9999;
}

/* --- Inhalt des Popups --- */
.yt-popup-content {
    position: relative;
    width: 80%;
    max-width: 900px;
    aspect-ratio: 16 / 9;
    box-shadow: 0 0 20px rgba(0,0,0,0.8);
    border-radius: 8px;
    overflow: hidden;
}

/* --- Close Button --- */
#yt-popup-close {
position: absolute;
top: 0px;
left: 10px;
font-size: 50px;
color: white;
cursor: pointer;
background: none;
border: none;


/* --- iframe im Popup --- */
.yt-popup-content iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}
