/* Roaming-Oz Embed YouTube Video */

.roamoz-embed-youtube-video {
  width: 100%;
  margin-top: var(--roamoz-ely-top, 0);
  margin-bottom: var(--roamoz-ely-bottom, 24px);
}

.roamoz-embed-youtube-video__inner {
  width: 100%;
  max-width: var(--roamoz-ely-max, 1200px);
  margin-left: auto;
  margin-right: auto;
}

.roamoz-embed-youtube-video__module-heading {
  margin: 0 0 18px;
  color: #111820;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: 0.015em;
  text-transform: uppercase;
}

.roamoz-embed-youtube-video__content {
  margin: 0 0 16px;
}

.roamoz-embed-youtube-video__title {
  margin: 0 0 10px;
  color: #111820;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.015em;
}

.roamoz-embed-youtube-video__description {
  max-width: 920px;
  margin: 0 0 12px;
  color: #53606c;
  font-size: 16px;
  line-height: 1.55;
}

.roamoz-embed-youtube-video__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  margin: 0;
  color: #697782;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 700;
}

.roamoz-embed-youtube-video__stat {
  display: inline-flex;
  align-items: center;
}

.roamoz-embed-youtube-video__stat + .roamoz-embed-youtube-video__stat::before {
  content: "•";
  margin-right: 14px;
  color: #c26f16;
}

.roamoz-embed-youtube-video__frame-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--roamoz-ely-radius, 12px);
  background: #111820;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.16);
}

.roamoz-embed-youtube-video__frame {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.roamoz-embed-youtube-video__message {
  padding: 18px 20px;
  border-radius: var(--roamoz-ely-radius, 12px);
  background: #fff7ed;
  color: #7a3f00;
  border: 1px solid rgba(194, 111, 22, 0.25);
  font-weight: 700;
}

@media (max-width: 640px) {
  .roamoz-embed-youtube-video__description {
    font-size: 15px;
  }

  .roamoz-embed-youtube-video__stats {
    font-size: 13px;
  }
}


/* Stats icons v0.1.2 */
.roamoz-embed-youtube-video__stat {
  gap: 5px;
  color: #62707c;
}

.roamoz-embed-youtube-video__stat svg {
  display: block;
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  color: #c26f16;
}

.roamoz-embed-youtube-video__stat span {
  display: inline-block;
}

.roamoz-embed-youtube-video__stat + .roamoz-embed-youtube-video__stat::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 9px;
  border-radius: 999px;
  background: #c26f16;
  opacity: 0.85;
}


/* High quality custom YouTube thumbnail preview v0.1.4 */
.roamoz-embed-youtube-video__poster {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: #111820;
  cursor: pointer;
  overflow: hidden;
}

.roamoz-embed-youtube-video__poster-img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform 0.22s ease, filter 0.22s ease;
}

.roamoz-embed-youtube-video__poster-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.22)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.20));
  pointer-events: none;
}

.roamoz-embed-youtube-video__poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(62px, 8vw, 92px);
  height: clamp(62px, 8vw, 92px);
  transform: translate(-50%, -50%);
  color: #f47a10;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.32));
  transition: transform 0.18s ease, color 0.18s ease;
}

.roamoz-embed-youtube-video__poster-play svg {
  display: block;
  width: 100%;
  height: 100%;
}

.roamoz-embed-youtube-video__poster:hover .roamoz-embed-youtube-video__poster-img,
.roamoz-embed-youtube-video__poster:focus-visible .roamoz-embed-youtube-video__poster-img {
  transform: scale(1.035);
  filter: brightness(1.04);
}

.roamoz-embed-youtube-video__poster:hover .roamoz-embed-youtube-video__poster-play,
.roamoz-embed-youtube-video__poster:focus-visible .roamoz-embed-youtube-video__poster-play {
  transform: translate(-50%, -50%) scale(1.06);
  color: #e88922;
}

.roamoz-embed-youtube-video__poster:focus-visible {
  outline: 3px solid rgba(244, 122, 16, 0.75);
  outline-offset: -6px;
}

.roamoz-embed-youtube-video__poster.is-loading {
  cursor: wait;
}

@media (prefers-reduced-motion: reduce) {
  .roamoz-embed-youtube-video__poster-img,
  .roamoz-embed-youtube-video__poster-play {
    transition: none;
  }
}
