/* Shared video player styles */
.youtube-player,
.vimeo-player {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  cursor: pointer;
}

.youtube-player iframe,
.vimeo-player iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100;
  background: transparent;
}

/* YouTube specific styles */
.youtube-player img {
  object-fit: cover;
  display: block;
  left: 0;
  bottom: 0;
  margin: auto;
  max-width: 100%;
  width: 100%;
  position: absolute;
  right: 0;
  top: 0;
  border: none;
  height: auto;
  cursor: pointer;
  transition: 0.4s all;
}

.youtube-player img:hover {
  filter: brightness(75%);
}

.youtube-player .play {
  height: 48px;
  width: 68px;
  left: 50%;
  top: 50%;
  margin-left: -34px;
  margin-top: -24px;
  position: absolute;
  background: url('/modules/custom/unctad_block/Images/yt.png') no-repeat;
  cursor: pointer;
  z-index: 10;
}

/* Vimeo specific styles */
.vimeo-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
}

.media-oembed-content-wrapper iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.vimeo-blur {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: blur(15px);
  background-color: #ccc;
  background-blend-mode: multiply;
  z-index: 1;
}

/* Block styles */
.block-unctad-youtube-videos {
  clear: both;
}

.block-unctad-youtube-videos .col-xs-12 {
  padding-bottom: 20px;
}

.inline-textfields .form-item {
  display: inline-block; 
  margin-right: 10px; 
}

.inline-textfields .id {
  display: inline-block;
}