.pjw-shorts-section {
    --pjw-shorts-brand: #172f5e;
    --pjw-shorts-black: #050505;
    --pjw-shorts-white: #ffffff;
    --pjw-shorts-muted: rgba(255, 255, 255, .84);
    --pjw-shorts-radius: 6px;
    --pjw-shorts-card-width: 265px;
    --pjw-shorts-card-height: 471px;

    width: 100%;
    margin: 0;
    padding: 38px 0 46px;
    background: #ffffff;
    color: #111111;
}

.pjw-shorts-section * {
    box-sizing: border-box;
}

.pjw-shorts-section button {
    font-family: inherit;
}

.pjw-shorts-container {
    position: relative;
}

.pjw-shorts-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 16px;
}

.pjw-shorts-title {
    margin: 0;
    color: #000000;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -.015em;
}

.pjw-shorts-shell {
    position: relative;
}

.pjw-shorts-track {
    display: flex;
    align-items: stretch;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 0 2px 2px;
}

.pjw-shorts-track::-webkit-scrollbar {
    display: none;
}

.pjw-shorts-card {
    position: relative;
    flex: 0 0 clamp(188px, 18vw, var(--pjw-shorts-card-width));
    width: clamp(188px, 18vw, var(--pjw-shorts-card-width));
    aspect-ratio: 265 / 471;
    min-height: 334px;
    max-height: var(--pjw-shorts-card-height);
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: var(--pjw-shorts-radius);
    overflow: hidden;
    background: #111111;
    color: var(--pjw-shorts-white);
    cursor: pointer;
    text-align: start;
    scroll-snap-align: start;
    box-shadow: none;
    isolation: isolate;
}

.pjw-shorts-card:focus-visible {
    outline: 3px solid rgba(23, 47, 94, .34);
    outline-offset: 3px;
}

.pjw-shorts-media,
.pjw-shorts-media img,
.pjw-shorts-preview,
.pjw-shorts-preview iframe,
.pjw-shorts-gradient {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.pjw-shorts-media {
    z-index: 1;
    background: #151515;
}

.pjw-shorts-media img {
    object-fit: cover;
    border-radius: var(--pjw-shorts-radius);
    transition: opacity .22s ease, filter .22s ease;
}

.pjw-shorts-card:hover .pjw-shorts-media img,
.pjw-shorts-card:focus-visible .pjw-shorts-media img {
    opacity: .72;
    filter: saturate(.95);
}

.pjw-shorts-preview {
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transition: opacity .18s ease;
    background: #000000;
}

.pjw-shorts-preview.is-active {
    opacity: 1;
}

.pjw-shorts-preview iframe {
    border: 0;
    object-fit: cover;
    pointer-events: none;
}

.pjw-shorts-gradient {
    z-index: 3;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 38%, rgba(0, 0, 0, .52) 72%, rgba(0, 0, 0, .92) 100%);
}

.pjw-shorts-content {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    color: var(--pjw-shorts-white);
}

.pjw-shorts-card-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    color: var(--pjw-shorts-white);
    font-size: 14px;
    line-height: 1.16;
    font-weight: 800;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .38);
}

.pjw-shorts-duration {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--pjw-shorts-muted);
    font-size: 11px;
    line-height: 1;
    font-weight: 800;
}

.pjw-shorts-duration-icon {
    width: 13px;
    height: 13px;
    border: 1.6px solid currentColor;
    border-radius: 50%;
    position: relative;
    display: inline-block;
    flex: 0 0 auto;
}

.pjw-shorts-duration-icon::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 2.3px;
    width: 0;
    height: 0;
    border-top: 3px solid transparent;
    border-bottom: 3px solid transparent;
    border-left: 4px solid currentColor;
}

.pjw-shorts-nav {
    position: absolute;
    top: 50%;
    z-index: 8;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #000000;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transform: translateY(-50%);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .22);
    transition: opacity .18s ease, transform .18s ease, background-color .18s ease;
}

.pjw-shorts-nav:hover,
.pjw-shorts-nav:focus-visible {
    background: var(--pjw-shorts-brand);
    transform: translateY(-50%) scale(1.04);
    outline: none;
}

.pjw-shorts-nav svg {
    width: 24px;
    height: 24px;
    display: block;
}

.pjw-shorts-nav--prev {
    left: -17px;
}

.pjw-shorts-nav--next {
    right: -17px;
}

.pjw-shorts-section.is-rtl .pjw-shorts-content {
    align-items: flex-start;
    text-align: right;
}

.pjw-shorts-section.is-rtl .pjw-shorts-card-title,
.pjw-shorts-section.is-rtl .pjw-shorts-duration {
    direction: rtl;
}

.pjw-shorts-modal[hidden] {
    display: none !important;
}

.pjw-shorts-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
}

.pjw-shorts-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .86);
    backdrop-filter: blur(3px);
}

.pjw-shorts-modal-dialog {
    position: relative;
    z-index: 2;
    width: min(420px, calc((100vh - 76px) * .5626), calc(100vw - 92px));
    max-width: 420px;
    aspect-ratio: 265 / 471;
    background: #000000;
    border-radius: 10px;
    box-shadow: 0 26px 90px rgba(0, 0, 0, .58);
}

.pjw-shorts-modal-player,
.pjw-shorts-modal-player iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 10px;
    overflow: hidden;
    background: #000000;
}

.pjw-shorts-modal-close,
.pjw-shorts-modal-nav {
    position: absolute;
    z-index: 4;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, .78);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color .18s ease, transform .18s ease, opacity .18s ease;
}

.pjw-shorts-modal-close:hover,
.pjw-shorts-modal-close:focus-visible,
.pjw-shorts-modal-nav:hover,
.pjw-shorts-modal-nav:focus-visible {
    background: var(--pjw-shorts-brand);
    outline: none;
}

.pjw-shorts-modal-close {
    top: -16px;
    right: -16px;
    width: 38px;
    height: 38px;
}

.pjw-shorts-modal-close svg {
    width: 22px;
    height: 22px;
}

.pjw-shorts-modal-nav {
    top: 50%;
    width: 44px;
    height: 44px;
    transform: translateY(-50%);
}

.pjw-shorts-modal-nav:hover,
.pjw-shorts-modal-nav:focus-visible {
    transform: translateY(-50%) scale(1.05);
}

.pjw-shorts-modal-nav svg {
    width: 30px;
    height: 30px;
}

.pjw-shorts-modal-nav--prev {
    left: -66px;
}

.pjw-shorts-modal-nav--next {
    right: -66px;
}

body.pjw-shorts-modal-open {
    overflow: hidden;
}

@media (max-width: 1199.98px) {
    .pjw-shorts-section {
        padding: 36px 0 42px;
    }

    .pjw-shorts-title {
        font-size: 23px;
    }

    .pjw-shorts-card {
        flex-basis: clamp(180px, 21vw, 240px);
        width: clamp(180px, 21vw, 240px);
    }
}

@media (max-width: 991.98px) {
    .pjw-shorts-section {
        padding: 34px 0 40px;
    }

    .pjw-shorts-card {
        flex-basis: clamp(176px, 29vw, 226px);
        width: clamp(176px, 29vw, 226px);
    }

    .pjw-shorts-nav--prev {
        left: 6px;
    }

    .pjw-shorts-nav--next {
        right: 6px;
    }

    .pjw-shorts-modal-nav--prev {
        left: -54px;
    }

    .pjw-shorts-modal-nav--next {
        right: -54px;
    }
}

@media (max-width: 767.98px) {
    .pjw-shorts-section {
        padding: 30px 0 36px;
    }

    .pjw-shorts-header {
        margin-bottom: 14px;
    }

    .pjw-shorts-title {
        font-size: 22px;
    }

    .pjw-shorts-track {
        gap: 9px;
        padding-inline: 0;
    }

    .pjw-shorts-card {
        flex-basis: 186px;
        width: 186px;
        min-height: 330px;
    }

    .pjw-shorts-card-title {
        font-size: 13px;
    }

    .pjw-shorts-nav {
        width: 32px;
        height: 32px;
    }

    .pjw-shorts-modal {
        padding: 18px;
    }

    .pjw-shorts-modal-dialog {
        width: min(390px, calc(100vw - 62px), calc((100vh - 64px) * .5626));
    }

    .pjw-shorts-modal-nav {
        width: 38px;
        height: 38px;
    }

    .pjw-shorts-modal-nav--prev {
        left: -46px;
    }

    .pjw-shorts-modal-nav--next {
        right: -46px;
    }
}

@media (max-width: 575.98px) {
    .pjw-shorts-section {
        padding: 28px 0 34px;
    }

    .pjw-shorts-card {
        flex-basis: 172px;
        width: 172px;
        min-height: 306px;
    }

    .pjw-shorts-nav {
        display: none;
    }

    .pjw-shorts-modal-dialog {
        width: min(350px, calc(100vw - 38px), calc((100vh - 82px) * .5626));
    }

    .pjw-shorts-modal-close {
        top: -12px;
        right: -10px;
        width: 36px;
        height: 36px;
    }

    .pjw-shorts-modal-nav {
        top: auto;
        bottom: -54px;
        transform: none;
    }

    .pjw-shorts-modal-nav:hover,
    .pjw-shorts-modal-nav:focus-visible {
        transform: scale(1.05);
    }

    .pjw-shorts-modal-nav--prev {
        left: calc(50% - 52px);
    }

    .pjw-shorts-modal-nav--next {
        right: calc(50% - 52px);
    }
}
