/* SA Video Player — Sabbir Ahmed */
.sa-vp {
    position: relative;
    width: 100%;
    display: block;
}

/* ── Stage (the clickable area) ── */
.sa-vp__stage {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 18px;
    background: #0a0a14;
    cursor: pointer;
    display: block;
}

@supports not (aspect-ratio: 1) {
    .sa-vp__stage { padding-bottom: 56.25%; height: 0; }
}

/* ── Thumbnail ── */
.sa-vp__thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.sa-vp__stage--has-play:hover .sa-vp__thumb {
    transform: scale(1.03);
}

.sa-vp__no-thumb {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1a1f3a 0%, #0d1128 100%);
}

/* ── Overlay ── */
.sa-vp__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.20);
    transition: background 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

/* ── iframe (injected on play) ── */
.sa-vp__stage iframe,
.sa-vp__stage video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    z-index: 10;
    background: #000;
}

/* Hide thumbnail + overlay + play when playing */
.sa-vp__stage.is-playing .sa-vp__thumb,
.sa-vp__stage.is-playing .sa-vp__no-thumb,
.sa-vp__stage.is-playing .sa-vp__overlay,
.sa-vp__stage.is-playing .sa-vp__play,
.sa-vp__stage.is-playing .sa-vp__title { display: none; }

/* ── Play Button ── */
.sa-vp__play {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 0;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease, opacity 0.3s ease;
    z-index: 5;
    padding: 0;
}

.sa-vp__play svg {
    width: 38%;
    height: 38%;
    margin-left: 6%;
    fill: currentColor;
    display: block;
}

/* Positions */
.sa-vp__play--pos-center {
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}
.sa-vp__play--pos-center:hover {
    transform: translate(-50%, -50%) scale(1.1);
}
.sa-vp__play--pos-bottom_right {
    bottom: 20px; right: 20px;
    top: auto; left: auto;
}
.sa-vp__play--pos-bottom_right:hover { transform: scale(1.08); }
.sa-vp__play--pos-bottom_left {
    bottom: 20px; left: 20px;
    top: auto; right: auto;
}
.sa-vp__play--pos-bottom_left:hover { transform: scale(1.08); }

/* Styles */
.sa-vp__play--circle_white {
    background: rgba(255,255,255,0.95);
    color: #000000;
}
.sa-vp__play--circle_white:hover { background: #ffffff; }

.sa-vp__play--circle_glass {
    background: rgba(255,255,255,0.20);
    color: #ffffff;
    border: 1.5px solid rgba(255,255,255,0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.sa-vp__play--circle_glass:hover { background: rgba(255,255,255,0.32); }

.sa-vp__play--circle_solid {
    background: rgba(255,255,255,0.95);
    color: #000000;
}

.sa-vp__play--outline {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255,255,255,0.8);
}
.sa-vp__play--outline:hover { background: rgba(255,255,255,0.12); }

/* Pulse ring */
.sa-vp__play--pulse::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    opacity: 0;
    animation: sa-vp-pulse 2.2s ease-out infinite;
    z-index: -1;
}

@keyframes sa-vp-pulse {
    0%   { opacity: 0.5; transform: scale(1); }
    100% { opacity: 0;   transform: scale(1.65); }
}

.sa-vp__play:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 4px;
}

/* ── Title ── */
.sa-vp__title {
    position: absolute;
    z-index: 4;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    pointer-events: none;
}

.sa-vp__title--bottom {
    bottom: 0; left: 0; right: 0;
    padding: 40px 24px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.70) 0%, transparent 100%);
}

.sa-vp__title--top {
    top: 0; left: 0; right: 0;
    padding: 18px 24px 40px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.60) 0%, transparent 100%);
}

.sa-vp__title--below {
    position: relative;
    color: inherit;
    padding: 12px 0 0;
    background: none;
    font-size: 18px;
    font-weight: 700;
}

/* Mobile */
@media (max-width: 767px) {
    .sa-vp__play { width: 56px; height: 56px; }
    .sa-vp__title--bottom { padding: 30px 16px 14px; font-size: 16px; }
    .sa-vp__play--pos-bottom_right { bottom: 12px; right: 12px; }
    .sa-vp__play--pos-bottom_left  { bottom: 12px; left: 12px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .sa-vp__thumb,
    .sa-vp__play,
    .sa-vp__play--pulse::before { transition: none; animation: none; }
    .sa-vp__stage--has-play:hover .sa-vp__thumb { transform: none; }
    .sa-vp__play--pos-center:hover { transform: translate(-50%, -50%); }
}
