/* LivingSpark Video Manager — Frontend Styles (scoped to .lsvm-*) */


@media (max-width: 767px) {
	.custom_tab .e-con.e-flex{
		--flex-wrap: unset;
    }
}

/* ── SECTION WRAP ── */
.lsvm-section {
    font-family: -apple-system, 'Segoe UI', sans-serif;
    width: 100%;
}

/* ── SECTION HEADER ── */
.lsvm-sec-header { margin-bottom: 28px; }

.lsvm-sec-title {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -.5px;
    text-transform: uppercase;
    color: #111827;
    margin: 0 0 10px;
    line-height: 1.15;
}

.lsvm-sec-dot {
    width: 11px;
    height: 11px;
    background: #ff6b35;
    border-radius: 50%;
    flex-shrink: 0;
}

.lsvm-sec-desc {
    font-size: 15px;
    line-height: 1.65;
    color: #6b7280;
    margin: 0;
    max-width: 720px;
}

/* ── SLIDER WRAP ── */
.lsvm-swiper-wrap { position: relative; }
.lsvm-swiper { overflow: visible; width: 100%; }

/* ── NAV BUTTONS ── */
.lsvm-nav-prev,
.lsvm-nav-next {
    width: 42px !important;
    height: 42px !important;
    background: #fff !important;
    border-radius: 50% !important;
    border: 1.5px solid #e5e7eb !important;
    box-shadow: 0 4px 14px rgba(0,0,0,.14) !important;
    transition: all .22s !important;
}
.lsvm-nav-prev::after,
.lsvm-nav-next::after {
    font-size: 15px !important;
    font-weight: 800 !important;
    color: #111827 !important;
}
.lsvm-nav-prev:hover,
.lsvm-nav-next:hover {
    background: #111827 !important;
    border-color: #111827 !important;
    transform: scale(1.08);
}
.lsvm-nav-prev:hover::after,
.lsvm-nav-next:hover::after { color: #fff !important; }
.lsvm-nav-prev.swiper-button-disabled,
.lsvm-nav-next.swiper-button-disabled { opacity: .25 !important; }

/* ── GRID ── */
.lsvm-grid {
    display: grid;
    gap: 22px;
}
.lsvm-grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.lsvm-grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.lsvm-grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ── VIDEO CARD ── */
.lsvm-card-video {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    transition: transform .28s cubic-bezier(.16,1,.3,1), box-shadow .28s ease;
    display: flex;
    flex-direction: column;
}
.lsvm-card-video:hover {
    
    box-shadow: 0 14px 40px rgba(0,0,0,.13);
}

/* ── THUMBNAIL WRAP ── */
.lsvm-thumb-wrap {
    position: relative;
    overflow: hidden;
    background: #0a0a0a;
    flex-shrink: 0;
}

/* Horizontal 16:9 */
.lsvm-horiz .lsvm-thumb-wrap  { padding-top: 56.25%; }

/* Vertical 9:16 */
.lsvm-vert .lsvm-thumb-wrap { padding-top: 177.78%; }

.lsvm-thumb-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    transition: transform .38s cubic-bezier(.16,1,.3,1);
    display: block;
	transition: 0.5s;
}
.lsvm-card-video:hover .lsvm-thumb-img { 
	transition: 0.5s;
	transform: scale(1.045); 
}

/* ── PLAY OVERLAY ── */
.lsvm-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0);
    cursor: pointer;
    transition: background .25s;
}
.lsvm-play-overlay:hover,
.lsvm-play-overlay:focus { background: rgba(0,0,0,.22); outline: none; }

.lsvm-play-icon {
    transform: scale(.88);
    transition: transform .3s cubic-bezier(.34,1.56,.64,1);
    filter: drop-shadow(0 4px 14px rgba(0,0,0,.45));
}
.lsvm-play-overlay:hover .lsvm-play-icon,
.lsvm-play-overlay:focus .lsvm-play-icon { transform: scale(1.06); }

/* ── CARD BODY ── */
.lsvm-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }

.lsvm-vid-title {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    line-height: 1.4;
    margin: 0;
}

/* ── WATCH NOW BUTTON ── */
.lsvm-vid-btn-wrap { margin-top: auto; }

.lsvm-watch-btn {
    display: block;
    width: 100%;
    padding: 9px 16px;
    background: #111827;
    color: #fff;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .9px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: background .18s, transform .15s;
    line-height: 1;
}
.lsvm-watch-btn:hover {
    background: #7C6FFF;
    color: #fff;
    transform: translateY(-1px);
}
.lsvm-watch-btn:active { transform: translateY(0); }

/* ── YOUTUBE MODAL ── */
.lsvm-yt-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.54);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: lsvm-fade-m .22s ease;
	backdrop-filter: blur(10px);
}
@keyframes lsvm-fade-m { from { opacity:0; } to { opacity:1; } }

.lsvm-yt-inner {
    position: relative;
    width: 100%;
    animation: lsvm-scale-m .24s cubic-bezier(.16,1,.3,1);
}
@keyframes lsvm-scale-m {
    from { transform:scale(.9); opacity:0; }
    to   { transform:scale(1);  opacity:1; }
}

/* Horizontal modal */
.lsvm-yt-modal:not(.lsvm-yt-vert) .lsvm-yt-inner {
    max-width: 1100px;
    aspect-ratio: 16/9;
}

/* Vertical modal */
.lsvm-yt-modal.lsvm-yt-vert .lsvm-yt-inner {
    max-width: 460px;
    aspect-ratio: 9/16;
}

.lsvm-yt-inner iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
    display: block;
}

.lsvm-yt-close {
    position: absolute;
    top: -42px;
    right: 0;
    background: rgba(255,255,255,.13);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 20px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
}
.lsvm-yt-close:hover {
    background: rgba(255,255,255,.28);
    transform: rotate(90deg);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .lsvm-grid-cols-4 { grid-template-columns: repeat(3, 1fr); }
    .lsvm-sec-title   { font-size: 24px; }
}
@media (max-width: 768px) {
    .lsvm-grid-cols-3,
    .lsvm-grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
    .lsvm-sec-title   { font-size: 20px; }
    .lsvm-yt-modal.lsvm-yt-vert .lsvm-yt-inner { max-width: 88vw; }
}
@media (max-width: 480px) {
    .lsvm-grid-cols-2,
    .lsvm-grid-cols-3,
    .lsvm-grid-cols-4 { grid-template-columns: 1fr; }
    .lsvm-sec-title   { font-size: 17px; gap: 10px; }
    .lsvm-sec-dot     { width: 9px; height: 9px; }
    .lsvm-nav-prev,
    .lsvm-nav-next    { width: 34px !important; height: 34px !important; }
    .lsvm-nav-prev::after,
    .lsvm-nav-next::after { font-size: 12px !important; }
}
