
.view-highlights {
    width: 100%;
}

.view-highlights__list {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 34px;
    justify-content: center;
}

.view-highlight {
    position: relative;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.view-highlight__img {
    width: 72px;
    max-width: 72px !important;
    height: 72px;
    border-radius: 100% !important;
    object-fit: cover;
    border-radius: 999px;
    display: block;
    position: relative;
}


.view-highlight__ring {
    position: relative;
    display: flex;
    width: 0;
    height: 0;
    border: 4px solid #EFF3FE;
    border-radius: 50%;
    width: 77px;
    height: 77px;
    max-width: 77px;
    align-items: center;
    justify-content: center;
    padding: 38px;
}

.view-highlight:not(.is-viewed) .view-highlight__ring {
    border: 4px solid var(--view-secondary);
}

.view-highlight__title {
    display: block;
    color: #1E2244;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.25;
    white-space: nowrap;
}



.view-highlight-modal {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity .2s ease, visibility .2s ease;
    z-index: 9999;
}

.view-highlight-modal[aria-hidden="false"] {
    visibility: visible;
    opacity: 1;
}

.view-highlight-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 14, 28, .50);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}


.view-highlight-modal__dialog {
    position: relative;
    background: transparent; 
    width: auto;
    height: auto;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
}


.view-hl__frame {
    position: relative;
    border-radius: 32px;
    width: 400px;
    height: 700px; 
    max-width: 96vw;
    max-height: 96vh; 
    background: #000; 
    box-shadow: 0 30px 90px rgba(0, 0, 0, .40);
}


.view-hl__hud {
    position: absolute;
    inset-inline: 0;
    top: 0;
    z-index: 3;
    padding: 12px;
    pointer-events: none;
}

.view-hl__progress {
    display: grid;
    grid-auto-flow: column;
    gap: 6px;
}

.hl-progress__seg {
    height: 3px;
    background: rgba(255, 255, 255, .35);
    border-radius: 999px;
    overflow: hidden;
}

.hl-progress__seg > span {
    display: block;
    width: 100%;
    height: 100%;
    transform: scaleX(0);
    transform-origin: left center;
    background: #FFF;
    transition: transform .08s linear;
}

.view-hl__controls {
    position: absolute;
    top: 8px;
    inset-inline: 8px 44px;
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-start;
    pointer-events: auto;
}

.hl-btn {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 0;
    cursor: pointer;
    background: rgba(0, 0, 0, .55);
    color: #FFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hl-btn:hover {
    background: rgba(0, 0, 0, .75);
}

.view-highlight-modal__close {
    position: absolute;
    top: 8px;
    inset-inline-end: 8px;
    z-index: 4;
    border: 0;
    background: #000;
    color: #FFF;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    cursor: pointer;
}


.hl-prev::before {
    content: "\2039";
    font-size: 18px;
}

.hl-next::before {
    content: "\203A";
    font-size: 18px;
}

.hl-play[data-state="pause"]::before {
    content: "\23F8";
    font-size: 14px;
}

/* pause */
.hl-play[data-state="play"]::before {
    content: "\25B6";
    font-size: 14px;
}


.view-highlight-modal .swiper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.view-highlight-modal .swiper-wrapper,
.view-highlight-modal .swiper-slide {
    width: 100%;
    height: 100%;
}


.view-hl-slide__img,
.view-hl-slide__video {
    width: 100%;
    height: 100% !important;
    display: block;
    object-fit: cover;
    border-radius: 32px !important;
}

.view-hl-slide__video {
    background: #000;
    object-fit: fill;
}

.view-hl-slide__caption {
    position: absolute;
    bottom: 100px;
    inset-inline: 24px;
    background: rgba(18, 13, 9, 0.6);
    color: #FFF;
    border-radius: 12px;
    padding: 14px 16px;
}

.view-hl-slide__title {
    margin: 0 !important;
}

.view-hl-slide__title a {
    margin: 0 0 6px;
    font-size: 28px;
    font-weight: 700;
    line-height: 35px;
    color: #fff;
}

.view-hl-slide__excerpt {
    font-size: 15px;
    line-height: 25px;
    text-align: justify;
}

.view-hl-slide__link {
    color: #FFF;
    text-decoration: none;
    font-weight: 600;
}

.view-highlight-modal .swiper-button-prev,
.view-highlight-modal .swiper-button-next {
    color: #FFF;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .6);
    width: 38px;
    height: 38px;
    border-radius: 999px;
    backdrop-filter: blur(2px);
    background: rgba(122, 99, 255, .95);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .22);
}

.view-highlight-modal .swiper-button-prev::after,
.view-highlight-modal .swiper-button-next::after {
    font-size: 16px;
    font-weight: 700;
}



.hl-progress__seg > span {
    display: block;
    width: 100%;
    height: 100%;
    transform: scaleX(0);
    transform-origin: right center; 
    background: #FFF;
    transition: transform .08s linear;
}


.view-highlight.is-viewed .view-highlight__img {
    filter: grayscale(100%) brightness(0.55);
}


.view-hl__hud {
    pointer-events: none;
    z-index: 3;
}

.view-hl__controls {
    position: absolute;
    top: 30px;
    left: 15px; 
    right: auto;
    display: flex;
    gap: 8px;
    align-items: center;
    pointer-events: auto;
}


.hl-btn {
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0;
    width: auto;
    height: auto;
    border-radius: 0;
    box-shadow: none;
    cursor: pointer;
}

.hl-btn img, .hl-btn svg {
    display: block;
    width: 20px;
    height: 20px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .35)); 
}


.view-highlight-modal__close {
    position: absolute;
    top: 8px;
    right: 8px;
}


.hl-mute {
    display: none;
}




.view-hl__progress {
    margin-top: 4px;
}


.view-hl__controls {
    position: absolute;
    top: 30px;
    left: 15px;
    display: flex;
    gap: 10px;
    pointer-events: auto;
}

.hl-btn {
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
}

.hl-btn svg {
    display: block;
    width: 20px;
    height: 20px;
}


.view-highlight-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: 0;
    cursor: pointer;
    font-size: 24px;
    color: #fff;
}



.view-highlight-modal {
    position: fixed;
    inset: 0;
    display: none; 
    place-items: center;
    z-index: 9999;
    
}


.view-highlight-modal.is-open {
    display: grid; 
}


.view-highlight-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 14, 28, .50);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}




.hl-side {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    z-index: 4;
}


.hl-side--right {
    right: -12px;
}

.hl-side__inner {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: #B7A5FF; 
    box-shadow: 0 8px 20px rgba(0, 0, 0, .20), inset 0 0 0 2px rgba(255, 255, 255, .35);
}

.hl-side__inner svg {
    display: block;
}

.hl-side:hover .hl-side__inner {
    filter: brightness(0.95);
}

/* ===== Side skip buttons (prev/next highlight) ===== */
.hl-side {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 9999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);

    color: #fff; 
    transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
}

.hl-side:focus {
    outline: none;
}

.hl-side:focus-visible {
    box-shadow: 0 0 0 3px rgba(122, 99, 255, .25), 0 10px 24px rgba(0, 0, 0, .22);
}


.hl-side--left {
    left: -70px;
}

.hl-side--right {
    right: -70px;
}


.hl-side::after {
    font-family: inherit;
    font-weight: 700;
    font-size: 18px;
    line-height: 1;
}


/* › */


.hl-side:hover {
    background: rgba(138, 115, 255, 0.98);
    transform: translateY(-50%) scale(1.04);
}

.hl-side:active {
    transform: translateY(-50%) scale(0.98);
}

button.hl-btn.hl-play {
    width: 16px;
    height: 16px;
}


.view-highlights {
    overflow: hidden;
}

.view-highlights__list {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
}

.view-highlight {
    scroll-snap-align: center;
    flex: 0 0 auto;
}

.view-highlights__list::-webkit-scrollbar {
    height: 0;
}

.view-highlights__list {
    scrollbar-width: none;
}


@media screen and (max-height: 768px){
    .view-hl__frame {
        width: 300px;
        height: 550px;
    }

    .view-highlight-modal.is-open {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .hl-side--right {
        right: -35px;
    }

    .hl-side--left{
        left: -35px;
    }


}
/* Vuesax Icon alignment + Reels popup consistency fix */
.view-reels-popup .close-btn,
.view-video-popup .close-btn{
    position:absolute;
    top:15px;
    right:15px;
    z-index:9999;
    width:42px;
    height:42px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
}

.view-reels-popup i,
.view-video-popup i{
    color:#fff !important;
    font-size:20px;
    line-height:1;
    display:flex;
    align-items:center;
    justify-content:center;
}

.view-reels-popup .nav-btn{
    display:flex;
    align-items:center;
    justify-content:center;
}
