/* ==========================================================================
   Video Carousel Shorts — front-end styles
   ========================================================================== */

.vcs-wrapper {
    position: relative !important;
    display: block !important;
    float: none !important;
    clear: both !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    isolation: isolate;
    contain: layout;
    margin: 24px 0;
    direction: rtl;
    font-family: -apple-system, "Segoe UI", Tahoma, Arial, sans-serif;
}

.vcs-viewport {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    position: relative !important;
    box-sizing: border-box !important;
    display: block !important;
}

.vcs-track {
    display: flex;
    gap: 10px;
    padding: 6px 4px 14px;
    box-sizing: border-box;
}

.vcs-card {
    flex: 0 0 auto;
    width: clamp(110px, 30vw, 175px);
    aspect-ratio: 175 / 260;
    max-height: 260px;
    cursor: pointer;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 6px 18px rgba(0,0,0,.28);
    border: 1px solid rgba(255,255,255,.08);
    transition: transform .25s ease, box-shadow .25s ease;
}
.vcs-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 26px rgba(0,0,0,.38);
}

.vcs-card-inner {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.vcs-card-inner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.15) 40%, rgba(0,0,0,0) 62%);
}

.vcs-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #d0021b;
    color: #fff;
    font-weight: 800;
    font-size: 13px;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(208,2,27,.55);
    border: 2px solid rgba(255,255,255,.85);
}

.vcs-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: rgba(208, 2, 27, .9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 0 0 6px rgba(255,255,255,.12), 0 4px 12px rgba(0,0,0,.5);
    transition: transform .2s ease, background .2s ease;
}
.vcs-card:hover .vcs-play-btn {
    transform: translate(-50%, -50%) scale(1.08);
    background: #d0021b;
}

.vcs-caption {
    position: relative;
    z-index: 2;
    background: #d0021b;
    color: #fff;
    font-weight: 700;
    font-size: 12.5px;
    line-height: 1.45;
    text-align: center;
    padding: 8px 8px;
    margin: 0 9px 10px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(208,2,27,.35);
}

.vcs-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.92);
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #333;
    font-size: 14px;
    box-shadow: 0 2px 6px rgba(0,0,0,.2);
    z-index: 4;
}
.vcs-nav-prev { right: 4px; }
.vcs-nav-next { left: 4px; }

/* ---------------- Modal ---------------- */
.vcs-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(20,20,20,.85);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    --vcs-card-bg: #ffffff;
    --vcs-text-main: #111111;
    --vcs-text-sub: #444444;
    --vcs-line: #d0021b;
}
.vcs-modal-overlay.vcs-open { display: flex; }
.vcs-modal-overlay.vcs-theme-dark {
    --vcs-card-bg: #15151a;
    --vcs-text-main: #ffffff;
    --vcs-text-sub: #c7c7cf;
}

.vcs-modal {
    background: var(--vcs-card-bg);
    border-radius: 16px;
    display: flex;
    max-width: 820px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    direction: rtl;
}

.vcs-modal-close {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #d0021b;
    color: #fff;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    z-index: 6;
}

.vcs-modal-video-col {
    flex: 2 1 0;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-width: 0;
}
.vcs-video-frame {
    width: 100%;
    aspect-ratio: 9 / 16;
    max-height: 80vh;
    position: relative;
    background: #000;
}
.vcs-video-holder {
    width: 100%;
    height: 100%;
}
.vcs-video-holder video,
.vcs-video-holder iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
    display: block;
}

/* Decorative overlays on the video, matching the reference screenshot */

.vcs-video-brand-badge {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    background: transparent;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}
.vcs-brand-logo-mini {
    height: 34px;
    width: auto;
    display: block;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.6));
}

.vcs-video-shorts-tag {
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 5;
    background: rgba(0,0,0,.5);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
    pointer-events: none;
}

.vcs-modal-arrows {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 5;
}
.vcs-arrow-up, .vcs-arrow-down {
    background: rgba(255,255,255,.15);
    color: #fff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
}
.vcs-arrow-up:hover, .vcs-arrow-down:hover { background: rgba(255,255,255,.3); }

.vcs-modal-info-col {
    flex: 1 1 0;
    padding: 24px 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.vcs-modal-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 14px;
}
.vcs-brand-logo { height: 34px; width: auto; margin-bottom: 8px; }
.vcs-brand-logo-light { display: block; }
.vcs-brand-logo-dark { display: none; }
.vcs-theme-dark .vcs-brand-logo-light { display: none; }
.vcs-theme-dark .vcs-brand-logo-dark { display: block; }

.vcs-modal-brand-line {
    display: block;
    width: 60px;
    height: 3px;
    background: var(--vcs-line);
}

.vcs-modal-title {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 12px;
    color: var(--vcs-text-main);
}

.vcs-modal-description {
    font-size: 14.5px;
    line-height: 1.8;
    color: var(--vcs-text-sub);
    margin: 0 0 18px;
}

.vcs-share-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    background: #d0021b;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    width: fit-content;
    margin-bottom: 16px;
    transition: background .2s ease;
}
.vcs-share-cta:hover { background: #a80016; color: #fff; }

.vcs-share-row {
    display: flex;
    align-items: center;
    gap: 14px;
}
.vcs-share-btn {
    color: var(--vcs-text-sub);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color .2s ease;
}
.vcs-share-btn:hover { color: #d0021b; }

/* ---------------- Responsive ---------------- */
@media (max-width: 640px) {
    .vcs-modal { flex-direction: column; max-height: 92vh; overflow-y: auto; }
    .vcs-modal-video-col { flex: none; width: 100%; }
    .vcs-video-frame { max-height: 55vh; }
    .vcs-modal-info-col { padding: 18px; }
    .vcs-card { width: clamp(95px, 34vw, 150px); }
}
