/* Instagram-style 9:16 reel player (home page About section) */
.wptb-item--image.has-reels > img { display: none; }
.wptb-item--image.has-reels { overflow: visible !important; }

.dps-reel { display: flex; justify-content: center; padding: 10px 0; }
.dps-reel__frame {
    position: relative;
    height: min(640px, 82vh);
    aspect-ratio: 9 / 16;
    max-width: 100%;
    border-radius: 30px;
    overflow: hidden;
    background: #000;
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 0 0 8px rgba(255, 255, 255, .03), 0 40px 80px -30px rgba(215, 0, 6, .55), 0 30px 60px -20px rgba(0, 0, 0, .9);
    isolation: isolate;
}
.dps-reel__frame::before { /* soft red halo behind the phone */
    content: ""; position: absolute; inset: -40px; z-index: -1;
    background: radial-gradient(closest-side, rgba(215, 0, 6, .25), transparent);
}
.dps-reel__v {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    opacity: 0; transition: opacity .45s ease;
}
.dps-reel__v.is-active { opacity: 1; }
.dps-reel__shade {
    position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, transparent 18%, transparent 62%, rgba(0, 0, 0, .75) 100%);
}

/* progress bars */
.dps-reel__bars { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; gap: 4px; z-index: 3; }
.dps-reel__bars span { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.dps-reel__bars i { display: block; height: 100%; background: #fff; transform: scaleX(0); transform-origin: left; }
.dps-reel__bars span.is-done i { transform: scaleX(1); }

/* header */
.dps-reel__top { position: absolute; top: 26px; left: 14px; right: 14px; display: flex; align-items: center; gap: 9px; z-index: 3; color: #fff; font-size: 13px; font-weight: 600; }
.dps-reel__avatar { width: 32px; height: 32px; border-radius: 50%; padding: 2px; background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7); flex: none; }
.dps-reel__avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #000; border: 2px solid #000; }
.dps-reel__handle { text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
.dps-reel__tag { margin-left: auto; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; background: rgba(0, 0, 0, .45); border: 1px solid rgba(255, 255, 255, .25); }

/* tap zones */
.dps-reel__zone { position: absolute; top: 70px; bottom: 90px; border: 0; background: transparent; z-index: 2; cursor: pointer; padding: 0; }
.dps-reel__zone--prev { left: 0; width: 30%; }
.dps-reel__zone--next { right: 0; width: 30%; }
.dps-reel__zone--mid { left: 30%; width: 40%; }
.dps-reel__zone:focus-visible, .dps-reel__mute:focus-visible, .dps-reel__cta:focus-visible { outline: 2px solid #D70006; outline-offset: 2px; }

/* centre play icon when paused */
.dps-reel__play {
    position: absolute; top: 50%; left: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px; z-index: 2;
    display: grid; place-items: center; border-radius: 50%; color: #fff;
    background: rgba(0, 0, 0, .45); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .3);
    opacity: 0; transform: scale(.8); transition: opacity .25s, transform .25s; pointer-events: none;
}
.dps-reel__frame.is-paused .dps-reel__play { opacity: 1; transform: scale(1); }
.dps-reel__frame.is-loading .dps-reel__play { opacity: 0; }

/* mute */
.dps-reel__mute {
    position: absolute; right: 14px; bottom: 82px; z-index: 3; width: 38px; height: 38px; border-radius: 50%;
    display: grid; place-items: center; color: #fff; border: 1px solid rgba(255, 255, 255, .3);
    background: rgba(0, 0, 0, .45); backdrop-filter: blur(6px); cursor: pointer;
}

/* bottom: caption + CTA */
.dps-reel__bottom { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 3; display: flex; flex-direction: column; gap: 10px; }
.dps-reel__caption {
    margin: 0 52px 0 0; color: #fff; font-size: 13px; line-height: 1.45; text-shadow: 0 1px 4px rgba(0, 0, 0, .7);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.dps-reel__cta {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border-radius: 12px;
    color: #fff !important; text-decoration: none; font-size: 13px; font-weight: 600; letter-spacing: .04em;
    background: linear-gradient(90deg, #a80005, #D70006); box-shadow: 0 10px 24px -10px rgba(215, 0, 6, .8);
    transition: filter .2s, transform .2s;
}
.dps-reel__cta:hover { filter: brightness(1.12); transform: translateY(-1px); }

@media (max-width: 767px) {
    .dps-reel__frame { height: min(560px, 78vh); border-radius: 24px; }
}
