/* Video Gallery — Prolink Media Elementor Pack Pro */

/* ── Section wrapper ─────────────────────────────────────── */
.lceap-vg-section {
  background: #ffffff;
  padding: 60px 5%;
  overflow: hidden;
}

/* ── Featured player ─────────────────────────────────────── */
.lceap-vg-featured-wrap { margin-bottom: 48px; }
.lceap-vg-player-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  margin-bottom: 20px;
}
.lceap-vg-thumbnail-screen {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: transform 0.4s ease;
}
.lceap-vg-thumbnail-screen:hover { transform: scale(1.02); }
.lceap-vg-screen-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.22);
  transition: background 0.3s;
}
.lceap-vg-thumbnail-screen:hover .lceap-vg-screen-overlay { background: rgba(0,0,0,0.38); }

.lceap-vg-play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 80px; height: 80px;
  border-radius: 50%;
  border: none;
  background: var(--lceap-primary, #e94560);
  color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  z-index: 2;
}
.lceap-vg-play-btn:hover { transform: translate(-50%, -50%) scale(1.12); }

.lceap-vg-iframe-wrap { position: absolute; inset: 0; }
.lceap-vg-iframe-wrap iframe,
.lceap-vg-iframe-wrap video { width: 100%; height: 100%; border: none; }

/* Featured info */
.lceap-vg-now-playing-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.12em; color: rgba(0,0,0,0.45);
  margin-bottom: 10px;
}
.lceap-vg-pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--lceap-primary, #e94560);
  animation: lceap-vg-pulse 1.4s ease infinite;
  flex-shrink: 0;
}
@keyframes lceap-vg-pulse { 0%,100%{transform:scale(1);opacity:1} 50%{transform:scale(1.5);opacity:.5} }

.lceap-vg-featured-title {
  font-size: clamp(1.2rem,3vw,1.8rem);
  font-weight: 900;
  color: #1a1a2e;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}
.lceap-vg-featured-desc {
  font-size: 14px;
  color: rgba(0,0,0,0.55);
  line-height: 1.65;
  margin: 0 0 12px;
}
.lceap-vg-duration-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.1);
  color: rgba(0,0,0,0.55);
  font-size: 12px;
  font-weight: 700;
  border-radius: 20px;
}

/* ── Playlist section ────────────────────────────────────── */
.lceap-vg-playlist-label {
  font-size: 11px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.1em; color: rgba(0,0,0,0.4); margin: 0 0 20px;
}
.lceap-vg-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }

/* ── Responsive ──────────────────────────────────────────── */
@media(max-width:900px){
  .lceap-vg-grid { grid-template-columns: repeat(2,1fr); }
}
@media(max-width:560px){
  .lceap-vg-grid { grid-template-columns: 1fr; }
}

/* Playlist item card */
.lceap-vg-item {
  background: #f5f5f7;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px; overflow: hidden;
  cursor: pointer; text-align: left;
  transition: transform 0.25s, background 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.lceap-vg-item:hover {
  background: #ebebed;
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.1);
}
.lceap-vg-item-active {
  border-color: var(--lceap-primary, #e94560) !important;
  background: rgba(233,69,96,0.06) !important;
}
.lceap-vg-item-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background-size: cover; background-position: center;
  overflow: hidden;
}
.lceap-vg-badge {
  position: absolute; top: 8px; left: 8px;
  padding: 3px 8px; border-radius: 4px;
  font-size: 10px; font-weight: 800; color: #fff;
  background: var(--lceap-primary, #e94560);
  text-transform: uppercase; letter-spacing: 0.05em;
  z-index: 2;
}
.lceap-vg-item-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.92); color: #1a1a2e;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.2s;
}
.lceap-vg-item:hover .lceap-vg-item-play,
.lceap-vg-item-active .lceap-vg-item-play { opacity: 1; }

.lceap-vg-item-duration {
  position: absolute; bottom: 6px; right: 6px;
  background: rgba(0,0,0,0.68); color: #fff;
  font-size: 10px; font-weight: 700; padding: 2px 6px;
  border-radius: 4px;
}

/* Active animated bars */
.lceap-vg-active-indicator {
  position: absolute; bottom: 6px; left: 8px;
  display: flex; gap: 2px; align-items: flex-end; height: 16px;
}
.lceap-vg-active-indicator span {
  width: 3px; background: var(--lceap-primary, #e94560); border-radius: 2px;
  animation: lceap-vg-bar 0.8s ease infinite;
}
.lceap-vg-active-indicator span:nth-child(2) { animation-delay: 0.2s; }
.lceap-vg-active-indicator span:nth-child(3) { animation-delay: 0.4s; }
@keyframes lceap-vg-bar { 0%,100%{height:6px} 50%{height:14px} }

.lceap-vg-item-body { padding: 10px 12px; }
.lceap-vg-item-title { font-size: 13px; font-weight: 700; color: #1a1a2e; margin: 0 0 4px; line-height: 1.4; }
.lceap-vg-item-desc  { font-size: 11px; color: rgba(0,0,0,0.5); line-height: 1.5; margin: 0; }

/* ── Modal ───────────────────────────────────────────────── */
.lceap-vg-modal { position: fixed; inset: 0; z-index: 1000000; display: flex !important; align-items: center; justify-content: center; padding: 20px; }
.lceap-vg-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.88); backdrop-filter: blur(6px); }
.lceap-vg-modal-dialog { position: relative; width: 100%; max-width: 900px; z-index: 1; animation: lceap-vg-modal-in 0.3s cubic-bezier(.34,1.56,.64,1); }
@keyframes lceap-vg-modal-in { from{opacity:0;transform:scale(.88)} to{opacity:1;transform:scale(1)} }
.lceap-vg-modal-frame-wrap { position: relative; padding-top: 56.25%; background: #000; border-radius: 12px; overflow: hidden; }
.lceap-vg-modal-frame-wrap iframe,
.lceap-vg-modal-frame-wrap video { position: absolute; inset: 0; width:100%; height:100%; border:none; }
.lceap-vg-modal-close { position: absolute; top: -48px; right: 0; background: rgba(255,255,255,.15); border: none; color:#fff; width:40px; height:40px; border-radius:50%; font-size:18px; cursor:pointer; transition:background .2s; }
.lceap-vg-modal-close:hover { background: var(--lceap-primary, #e94560); }

/* ── Scroll-to-player animation ──────────────────────────── */
.lceap-vg-player-wrap.lceap-vg-loading { opacity: 0.6; }
.lceap-vg-scroll-flash { animation: lceap-vg-flash 0.5s ease; }
@keyframes lceap-vg-flash { 0%{box-shadow:0 0 0 0 rgba(233,69,96,.8)} 100%{box-shadow:0 0 0 24px rgba(233,69,96,0)} }
