/* ═══════════════════════════════════════════════
   TLU Reels Widget v5
   Desktop: grid of embedded reels
   Mobile:  full-width swipeable carousel, one reel
   ═══════════════════════════════════════════════ */

/* ── Shared section wrapper ── */
.tlu-reels-section {
  width: 100%;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.tlu-reels-header { margin-bottom: 20px; }

.tlu-reels-title {
  font-size: 36px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -1px;
  color: #111;
  margin: 0;
  line-height: 1;
}
.tlu-reels-title em { font-style: normal; color: #E1306C; }

/* ── Empty state ── */
.tlu-empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #888;
}
.tlu-empty-icon { display: block; font-size: 40px; margin-bottom: 12px; }
.tlu-empty-state p { font-size: 14px; line-height: 1.7; margin: 0; }

/* ═══════════════════════════════════════════════
   DESKTOP GRID  — shown above 768px
   ═══════════════════════════════════════════════ */
.tlu-desktop-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  width: 100%;
  align-items: start;
}

/* ── Reel card ── */
.tlu-reel-card {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  overflow: hidden;
  background: #111;
  border: 2px solid rgba(255,255,255,.05);
  transition: border-color .2s, box-shadow .2s;
  display: block;
}
.tlu-reel-card:hover {
  border-color: #E1306C;
  box-shadow: 0 8px 28px rgba(225,48,108,.2);
}

.tlu-reel-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  background: #000;
}

/* editor preview bg */
.tlu-reel-prev-bg {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* IG corner link */
.tlu-ig-corner {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 10;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  transition: background .2s;
}
.tlu-ig-corner:hover { background: rgba(225,48,108,.85); color: #fff; }

/* ═══════════════════════════════════════════════
   MOBILE CAROUSEL  — shown below 768px ONLY
   ═══════════════════════════════════════════════ */
.tlu-mobile-carousel {
  display: none; /* hidden on desktop */
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 14px;
  /* Prevent overflow from breaking other sections */
  overflow: hidden;
  box-sizing: border-box;
}

/* ── Top bar: counter + IG link ── */
.tlu-mob-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 4px;
  box-sizing: border-box;
}

.tlu-mob-counter {
  font-size: 13px;
  font-weight: 700;
  color: #E1306C;
  font-family: Inter, sans-serif;
}

.tlu-mob-ig-link {
  font-size: 12px;
  font-weight: 600;
  color: #555;
  text-decoration: none;
  font-family: Inter, sans-serif;
  transition: color .2s;
}
.tlu-mob-ig-link:hover { color: #E1306C; }

/* ── The reel iframe container ── */
.tlu-mob-frame-wrap {
  width: 100%;
  /* 9:16 aspect but capped so it doesn't fill entire screen height */
  max-width: 340px;
  aspect-ratio: 9 / 16;
  max-height: 72vh;
  border-radius: 18px;
  overflow: hidden;
  background: #111;
  position: relative;
  border: 2px solid rgba(255,255,255,.08);
  box-shadow: 0 12px 40px rgba(0,0,0,.18);
  flex-shrink: 0;
}

.tlu-mob-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  background: #000;
}

/* ── Prev / Next + dots row ── */
.tlu-mob-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 10px;
  padding: 0 4px;
  box-sizing: border-box;
}

.tlu-mob-prev-btn,
.tlu-mob-next-btn {
  flex-shrink: 0;
  padding: 10px 20px;
  border-radius: 100px;
  border: none;
  background: #E1306C;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  font-family: Inter, sans-serif;
  cursor: pointer;
  transition: opacity .2s, transform .15s;
  white-space: nowrap;
}
.tlu-mob-prev-btn:hover,
.tlu-mob-next-btn:hover { opacity: .85; transform: scale(1.04); }
.tlu-mob-prev-btn:disabled,
.tlu-mob-next-btn:disabled { opacity: .3; cursor: not-allowed; transform: none; }

/* dots */
.tlu-mob-dots {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  flex: 1;
}
.tlu-mob-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ccc;
  transition: background .2s, transform .2s;
  flex-shrink: 0;
}
.tlu-mob-dot.active {
  background: #E1306C;
  transform: scale(1.35);
}

/* ── Sound toggle button ── */
.tlu-sound-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: 100px;
  border: 2px solid #E1306C;
  background: transparent;
  color: #E1306C;
  font-size: 13px;
  font-weight: 700;
  font-family: Inter, sans-serif;
  cursor: pointer;
  transition: background .2s, color .2s, transform .15s;
  width: 100%;
  justify-content: center;
  box-sizing: border-box;
}
.tlu-sound-btn:hover { opacity: .85; transform: scale(1.02); }
.tlu-sound-btn.is-on {
  background: #E1306C;
  color: #fff;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ═══════════════════════════════════════════════ */

/* Tablet: 4 columns */
@media (max-width: 1100px) and (min-width: 769px) {
  .tlu-desktop-grid { grid-template-columns: repeat(4,1fr) !important; }
}

/* Mobile: HIDE grid, SHOW carousel */
@media (max-width: 768px) {
  .tlu-desktop-grid   { display: none !important; }
  .tlu-mobile-carousel { display: flex; }

  .tlu-reels-title { font-size: 26px; }
}
