/* ==========================================================================
   Shorts player — muted list previews + vertical short-form feed
   ========================================================================== */

.pk-shorts__media[data-pk-short-card] {
    isolation: isolate;
}

.pk-shorts__preview.video-js,
.pk-shorts__preview.video-js .vjs-tech {
    width: 100%;
    height: 100%;
}

.pk-shorts__preview.video-js {
    position: absolute;
    inset: 0;
    z-index: 0;
    padding: 0;
    pointer-events: none;
}

.pk-shorts__preview.video-js .vjs-tech {
    object-fit: cover;
}

.pk-shorts__preview.video-js .vjs-poster {
    background-size: cover;
}

.pk-shorts__open {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, transparent 58%, rgba(0, 0, 0, .2));
    color: #fff;
    cursor: pointer;
}

.pk-shorts__open:focus-visible {
    outline: 3px solid #fff;
    outline-offset: -5px;
    box-shadow: inset 0 0 0 5px #111;
}

.pk-shorts__sound {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 7px;
    border: 1px solid rgba(255, 255, 255, .38);
    border-radius: 999px;
    background: rgba(0, 0, 0, .38);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .08em;
    pointer-events: none;
    backdrop-filter: blur(5px);
}

.pk-shorts__item.is-preview-playing .pk-shorts__play {
    opacity: 0;
    transform: scale(.86);
}

.pk-shorts__item.is-preview-blocked .pk-shorts__play {
    opacity: 1;
}

.pk-shorts__play {
    transition: opacity .2s ease, transform .2s ease;
}

body.pk-shortfeed-lock {
    overflow: hidden;
    touch-action: none;
}

.pk-shortfeed {
    position: fixed;
    inset: 0;
    z-index: 1810;
    color: #fff;
}

.pk-shortfeed[hidden] {
    display: none !important;
}

.pk-shortfeed__dim {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .86);
    backdrop-filter: blur(10px);
}

.pk-shortfeed__panel {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    width: min(760px, calc(100vw - 48px));
    height: min(88vh, 760px);
    min-height: 520px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 18px;
    background: #101010;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .52);
    transform: translate(-50%, -50%);
}

.pk-shortfeed__stage {
    position: relative;
    flex: 0 0 auto;
    height: 100%;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    background: #000;
    touch-action: none;
}

.pk-shortfeed__player.video-js,
.pk-shortfeed__player.video-js .vjs-tech {
    width: 100%;
    height: 100%;
}

.pk-shortfeed__player.video-js {
    position: absolute;
    inset: 0;
    padding: 0;
    background: #000;
}

.pk-shortfeed__player.video-js .vjs-tech {
    object-fit: contain;
}

.pk-shortfeed__player .vjs-control-bar,
.pk-shortfeed__player .vjs-big-play-button {
    display: none !important;
}

.pk-shortfeed__tap {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.pk-shortfeed__tap-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .48);
    opacity: 0;
    transform: translate(-50%, -50%) scale(.86);
    transition: opacity .18s ease, transform .18s ease;
    backdrop-filter: blur(6px);
}

.pk-shortfeed.is-paused .pk-shortfeed__tap-icon,
.pk-shortfeed.is-play-blocked .pk-shortfeed__tap-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.pk-shortfeed__close,
.pk-shortfeed__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 50%;
    background: rgba(0, 0, 0, .46);
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(8px);
}

.pk-shortfeed__close:hover,
.pk-shortfeed__action:hover,
.pk-shortfeed__close:focus-visible,
.pk-shortfeed__action:focus-visible,
.pk-shortfeed__tap:focus-visible,
.pk-shortfeed__product-link:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.pk-shortfeed__close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 8;
}

.pk-shortfeed__actions {
    position: absolute;
    right: 14px;
    bottom: 24px;
    z-index: 6;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pk-shortfeed__action[disabled] {
    opacity: .35;
    cursor: default;
}

.pk-shortfeed__action-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.pk-shortfeed__counter {
    position: absolute;
    top: 20px;
    left: 18px;
    z-index: 6;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .42);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    backdrop-filter: blur(6px);
}

.pk-shortfeed__hint {
    position: absolute;
    top: 60px;
    left: 50%;
    z-index: 5;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .42);
    font-size: 11px;
    white-space: nowrap;
    opacity: .78;
    transform: translateX(-50%);
    pointer-events: none;
}

.pk-shortfeed__progress {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 7;
    height: 3px;
    background: rgba(255, 255, 255, .2);
}

.pk-shortfeed__progress > i {
    display: block;
    width: 0;
    height: 100%;
    background: #fff;
    transition: width .12s linear;
}

.pk-shortfeed__product {
    position: relative;
    z-index: 4;
    display: flex;
    flex: 1 1 300px;
    min-width: 0;
    flex-direction: column;
    justify-content: flex-end;
    padding: 72px 28px 30px;
    color: #fff;
    background:
        radial-gradient(circle at 80% 12%, rgba(255, 255, 255, .08), transparent 34%),
        linear-gradient(160deg, #191919, #0d0d0d 72%);
}

.pk-shortfeed__eyebrow {
    margin: 0 0 12px;
    color: rgba(255, 255, 255, .62);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.pk-shortfeed__brand {
    margin: 0 0 7px;
    color: rgba(255, 255, 255, .72);
    font-size: 13px;
    font-weight: 700;
}

.pk-shortfeed__title {
    margin: 0;
    color: #fff;
    font-size: clamp(20px, 2.2vw, 28px);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -.035em;
    word-break: keep-all;
}

.pk-shortfeed__item-code {
    margin-top: 12px;
    color: rgba(255, 255, 255, .48);
    font-size: 11px;
}

.pk-shortfeed__price {
    margin-top: 18px;
    font-size: 18px;
    font-weight: 700;
}

.pk-shortfeed__product-link {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: 100%;
    min-height: 50px;
    margin-top: 22px;
    padding: 0 18px;
    border-radius: 7px;
    background: #fff;
    color: #111;
    font-size: 13px;
    font-weight: 700;
}

.pk-shortfeed__product-link[hidden] {
    display: none !important;
}

.pk-shortfeed__status {
    min-height: 18px;
    margin-top: 12px;
    color: rgba(255, 255, 255, .6);
    font-size: 11px;
    line-height: 1.5;
}

.pk-shortfeed.is-switch-next .pk-shortfeed__player,
.pk-shortfeed.is-switch-next .pk-shortfeed__product > * {
    animation: pk-shortfeed-next .24s ease-out;
}

.pk-shortfeed.is-switch-prev .pk-shortfeed__player,
.pk-shortfeed.is-switch-prev .pk-shortfeed__product > * {
    animation: pk-shortfeed-prev .24s ease-out;
}

@keyframes pk-shortfeed-next {
    from { opacity: .38; transform: translateY(5%); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pk-shortfeed-prev {
    from { opacity: .38; transform: translateY(-5%); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 767px) {
    .pk-shortfeed__dim {
        background: #000;
        backdrop-filter: none;
    }

    .pk-shortfeed__panel {
        inset: 0;
        top: 0;
        left: 0;
        display: block;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        min-height: 0;
        border: 0;
        border-radius: 0;
        transform: none;
    }

    .pk-shortfeed__stage {
        width: 100%;
        height: 100%;
        aspect-ratio: auto;
    }

    .pk-shortfeed__player.video-js .vjs-tech {
        object-fit: cover;
    }

    .pk-shortfeed__stage::after {
        position: absolute;
        inset: 45% 0 0;
        z-index: 1;
        background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .72));
        content: "";
        pointer-events: none;
    }

    .pk-shortfeed__product {
        position: absolute;
        right: 70px;
        bottom: calc(25px + env(safe-area-inset-bottom));
        left: 18px;
        z-index: 5;
        display: block;
        padding: 0;
        text-align: right;
        background: transparent;
        pointer-events: none;
    }

    .pk-shortfeed__title {
        margin-left: auto;
        max-width: 320px;
        font-size: 18px;
        line-height: 1.35;
    }

    .pk-shortfeed__eyebrow,
    .pk-shortfeed__brand,
    .pk-shortfeed__item-code,
    .pk-shortfeed__price,
    .pk-shortfeed__status {
        margin-top: 5px;
        margin-bottom: 0;
    }

    .pk-shortfeed__product-link {
        width: auto;
        min-height: 42px;
        margin: 12px 0 0 auto;
        padding: 0 14px;
        pointer-events: auto;
    }

    .pk-shortfeed__actions {
        right: 12px;
        bottom: calc(24px + env(safe-area-inset-bottom));
    }

    .pk-shortfeed__close {
        top: calc(12px + env(safe-area-inset-top));
        right: 12px;
    }

    .pk-shortfeed__counter {
        top: calc(16px + env(safe-area-inset-top));
        left: 14px;
    }

    .pk-shortfeed__hint {
        top: calc(58px + env(safe-area-inset-top));
    }
}

@media (max-width: 379px) {
    .pk-shortfeed__product {
        left: 12px;
    }

    .pk-shortfeed__title {
        font-size: 16px;
    }

    .pk-shortfeed__item-code,
    .pk-shortfeed__status {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pk-shorts__play,
    .pk-shortfeed__tap-icon,
    .pk-shortfeed__progress > i {
        transition: none;
    }

    .pk-shortfeed.is-switch-next .pk-shortfeed__player,
    .pk-shortfeed.is-switch-next .pk-shortfeed__product > *,
    .pk-shortfeed.is-switch-prev .pk-shortfeed__player,
    .pk-shortfeed.is-switch-prev .pk-shortfeed__product > * {
        animation: none;
    }
}
