/* -----------------------------------------------------------
   Unpretty Home: Latest Episode + Trending Video Reels
   ----------------------------------------------------------- */

.atbs-video-section { margin: 40px 0; }
.atbs-video-section .block-heading { margin-bottom: 20px; }

.atbs-latest-episode {
  display: flex;
  gap: 24px;
  align-items: stretch;
}
.atbs-latest-episode__player {
  flex: 1 1 65%;
  min-width: 0;
}
.atbs-latest-episode__sidebar {
  flex: 0 0 35%;
  min-width: 0;
}
.atbs-video-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}
.atbs-video-embed iframe,
.atbs-video-embed video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.atbs-latest-episode__meta { margin-top: 12px; }
.atbs-latest-episode__title { font-size: 26px; line-height: 1.2; margin: 0 0 8px; }
.atbs-latest-episode__excerpt { margin: 0; opacity: 0.8; }

.atbs-episode-list { display: grid; gap: 14px; }
.atbs-episode-item {
  display: flex;
  gap: 12px;
  align-items: center;
}
.atbs-episode-item__thumb {
  width: 120px;
  flex: 0 0 120px;
  border-radius: 10px;
  overflow: hidden;
}
.atbs-episode-item__thumb img { width: 100%; height: 80px; object-fit: cover; display:block; }
.atbs-episode-item__title { margin: 0; font-size: 14px; line-height: 1.3; }
.atbs-episode-item__title a { text-decoration: none; }
.atbs-episode-item__title a:hover { text-decoration: underline; }
.atbs-episode-item__kicker { font-size: 12px; opacity: 0.7; margin-top: 4px; }

.atbs-trending-reels .owl-stage-outer { padding: 6px 0; }
.atbs-reel-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
}
.atbs-reel-card::before{
  content: "";
  display: block;
  padding-top: 177.78%; /* 9:16 */
}
.atbs-reel-card video,
.atbs-reel-card iframe,
.atbs-reel-card .atbs-reel-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.atbs-reel-thumb img { width: 100%; height: 100%; object-fit: cover; display:block; }
.atbs-reel-overlay {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,.5);
}
.atbs-reel-overlay .atbs-reel-title{
  font-size: 12px;
  line-height: 1.3;
  margin: 0;
}

/* Modal */
.atbs-video-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  display: none;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.atbs-video-modal.is-open { display: flex; }
.atbs-video-modal__inner {
  width: min(980px, 100%);
  background: #111;
  border-radius: 14px;
  overflow: hidden;
}
.atbs-video-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
}
.atbs-video-modal__body { position: relative; }
.atbs-video-modal__body .atbs-video-embed { border-radius: 0; }
@media (max-width: 991px){
  .atbs-latest-episode { flex-direction: column; }
  .atbs-latest-episode__sidebar { flex: 1 1 auto; }
  .atbs-episode-item__thumb { width: 110px; flex-basis: 110px; }
}
