
/* ---- Video embed (views/partials/video-player.ejs, public/assets/js/video-player.js) ---- */
.video-embed {
  width: 100%;
  max-width: 100%;
  margin: 1.25rem 0;
  text-align: left;
  box-sizing: border-box;
}
.video-embed__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}
.video-embed__poster,
.video-embed__frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100% !important;
  max-width: 100%;
  max-height: none;
  object-fit: cover;
  margin: 0 !important; /* beat .blog-content img { height:auto; margin:auto } */
  display: block;
}
.video-embed__frame video {
  object-fit: contain;
  background: #000;
}
.video-embed__play {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.video-embed__play:focus-visible {
  outline: 3px solid #f3ba22;
  outline-offset: -3px;
}
.video-embed__duration {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 12px;
  line-height: 1.4;
}
.video-embed__disclosure {
  margin: 0.4rem 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: #6b6e70;
}
#video-ad-slot[data-enabled="false"] {
  display: none;
}
.video-more {
  margin-top: 1rem;
}
.video-more[hidden] {
  display: none;
}
.video-more__title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}
.video-more__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.video-more__card {
  display: block;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.3;
}
.video-more__card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
  background: rgba(128, 128, 128, 0.25);
  display: block;
}
.video-more__card span {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
}
@media (prefers-color-scheme: dark) {
  .video-embed__disclosure { color: #a0a4a8; }
}

/* Shorts-only videos: portrait frame, centred, never taller than the viewport */
.video-embed--vertical { max-width: 360px; margin-left: auto; margin-right: auto; }
.video-embed--vertical .video-embed__frame { aspect-ratio: 9 / 16; max-height: 80vh; }
