/**
 * Lazy YouTube player.
 */

.video-player-layout {
  background: #111214;
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(240px, 1fr);
  min-height: 310px;
}

.video-stage {
  min-height: 310px;
}

.video-poster {
  align-items: flex-end;
  background-color: #202228;
  background-position: center;
  background-size: cover;
  display: flex;
  height: 100%;
  min-height: 310px;
  overflow: hidden;
  position: relative;
}

.video-poster-image {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.video-poster-shade {
  background: linear-gradient(90deg, rgba(0,0,0,.6), transparent 78%), linear-gradient(0deg, rgba(0,0,0,.68), transparent 60%);
  inset: 0;
  position: absolute;
}

.video-play-button {
  align-items: center;
  background: var(--ice-red);
  border: 0;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  font-size: 21px;
  height: 66px;
  justify-content: center;
  left: 50%;
  padding-left: 5px;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 66px;
  z-index: 1;
}

.video-play-button:hover,
.video-play-button:focus {
  background: #fff;
  color: var(--ice-red);
  transform: translate(-50%, -50%) scale(1.05);
}

.video-stage-copy {
  color: #fff;
  padding: 22px;
  position: relative;
  z-index: 1;
}

.video-live-label {
  color: #ff7a8a;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.video-stage-copy h3 {
  font-family: var(--ice-display);
  font-size: 21px;
  margin: 6px 0 0;
}

.video-frame {
  border: 0;
  height: 100%;
  min-height: 310px;
  width: 100%;
}

.video-playlist {
  background: #1c1d20;
  color: #fff;
  min-width: 0;
}

.playlist-header {
  border-bottom: 1px solid rgba(255,255,255,.14);
  display: flex;
  flex-direction: column;
  padding: 16px 17px 13px;
}

.playlist-header > span {
  color: var(--ice-red);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.playlist-header strong {
  font-family: var(--ice-display);
  font-size: 13px;
  line-height: 1.25;
  margin-top: 5px;
}

.playlist-items {
  max-height: 277px;
  overflow: auto;
}

.playlist-item {
  align-items: center;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.8);
  cursor: pointer;
  display: flex;
  gap: 9px;
  padding: 9px 13px;
  text-align: left;
  width: 100%;
}

.playlist-item:hover,
.playlist-item:focus,
.playlist-item.is-active {
  background: rgba(239,48,73,.12);
  color: #fff;
}

.playlist-thumb {
  flex: 0 0 63px;
  height: 39px;
  overflow: hidden;
  position: relative;
}

.playlist-thumb img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.playlist-play {
  align-items: center;
  background: rgba(0,0,0,.58);
  display: none;
  font-size: 10px;
  inset: 0;
  justify-content: center;
  position: absolute;
}

.playlist-item.is-active .playlist-play {
  display: flex;
}

.playlist-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.playlist-copy strong {
  font-family: var(--ice-display);
  font-size: 11px;
  line-height: 1.23;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.playlist-copy small {
  color: rgba(255,255,255,.45);
  font-size: 9px;
  margin-top: 3px;
}

.playlist-indicator {
  background: var(--ice-red);
  border-radius: 50%;
  display: block;
  height: 5px;
  opacity: 0;
  width: 5px;
}

.playlist-item.is-active .playlist-indicator {
  opacity: 1;
}

/* Responsive safety: the embedded player must never enlarge its grid/container. */
.video-player-layout,
.video-stage,
.video-poster,
.video-frame,
.video-playlist {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.video-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 0;
}

.video-poster,
.video-frame {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.video-frame {
  display: block;
}

@media (max-width: 800px) {
  .video-player-layout {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
  }

  .video-stage {
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .playlist-items {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
}
