/* Player-only styles. Layout/typography come from Dynamic Grid classes:
   .dynamic-tb-blocks > .content-container > .container-inner-wrapper > .content-wrapper */

.tb-video {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  background: #0a0a0a;
}

.tb-video .player {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.tb-video .player iframe,
.tb-video video.player {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
  background: #000;
}

.tb-video .play-video {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: transparent;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.tb-video .play-video.is-hidden,
.tb-video.is-playing .play-video {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.tb-video .play-video__thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Same red circle play control as home section 7 */
.tb-video .s7-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 80px;
  height: 80px;
  margin: 0;
  background: #e4002b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: transform 0.3s ease;
}

.tb-video .play-video:hover .s7-play-btn,
.tb-video .play-video:focus-visible .s7-play-btn {
  transform: translate(-50%, -50%) scale(1.1);
}

.tb-video .s7-play-btn svg {
  width: 50px;
  height: 50px;
  fill: #fff;
  display: block;
}

.tb-video .play-video:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -4px;
}

/* Covers YouTube "More videos" tile on pause/end (can't be disabled via embed params). */
.tb-video__cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: none;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.55);
}

.tb-video__cover.is-visible {
  display: block;
}

.tb-video__cover .s7-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80px;
  height: 80px;
  background: #e4002b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: transform 0.3s ease;
}

.tb-video__cover:hover .s7-play-btn,
.tb-video__cover:focus-visible .s7-play-btn {
  transform: translate(-50%, -50%) scale(1.1);
}

.tb-video__cover .s7-play-btn svg {
  width: 50px;
  height: 50px;
  fill: #fff;
  display: block;
}

.tb-video__cover:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -4px;
}
