.pps-v2 {
    --pps-primary: #f1683a;
    --pps-secondary: #4c4c56;
    --pps-image-height: clamp(420px, 68vh, 720px);
    position: relative;
    width: 100vw;
    max-width: 100%;
    height: auto;
    min-height: 0;
    overflow: hidden;
    background: #080808;
    color: #fff;
    font-family: Poppins, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    isolation: isolate;
}

.pps-v2--contained {
    width: 100%;
}

.pps-v2__viewport {
    position: relative;
}

.pps-v2__slide {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: none;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.pps-v2__slide.is-active,
.pps-v2__slide.is-leaving {
    display: block;
    visibility: visible;
}

.pps-v2__slide.is-active {
    position: relative;
    z-index: 2;
    opacity: 1;
    pointer-events: auto;
}

.pps-v2__slide.is-leaving {
    position: absolute;
    z-index: 1;
    opacity: 1;
    animation: pps-v2-leave 0.9s ease both;
}

.pps-v2__visual {
    position: relative;
    height: var(--pps-image-height);
    overflow: hidden;
}

.pps-v2__image {
    position: absolute;
    inset: 0;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    display: block;
    object-fit: cover;
}

.pps-v2__slide.is-active .pps-v2__image {
    animation: pps-v2-image-in 0.9s cubic-bezier(.2, .75, .25, 1) both;
}

.pps-v2__shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(0deg, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .22) 52%, rgba(0, 0, 0, .04) 78%),
        linear-gradient(90deg, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, .08) 62%, transparent 100%);
}

.pps-v2__content {
    position: absolute;
    top: auto;
    left: max(6vw, 28px);
    bottom: clamp(26px, 5vh, 54px);
    width: min(680px, 72vw);
    transform: none;
    z-index: 2;
}

.pps-v2__content > * {
    opacity: 0;
    transform: translateY(28px);
}

.pps-v2__slide.is-active .pps-v2__content > * {
    animation: pps-v2-content-in .65s cubic-bezier(.2, .75, .25, 1) both;
}

.pps-v2__slide.is-active .pps-v2__content > :nth-child(1) { animation-delay: .15s; }
.pps-v2__slide.is-active .pps-v2__content > :nth-child(2) { animation-delay: .25s; }
.pps-v2__slide.is-active .pps-v2__content > :nth-child(3) { animation-delay: .35s; }
.pps-v2__slide.is-active .pps-v2__content > :nth-child(4) { animation-delay: .45s; }
.pps-v2__slide.is-active .pps-v2__content > :nth-child(5) { animation-delay: .55s; }

.pps-v2__topic {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 7px 11px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--pps-primary) 82%, transparent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.pps-v2__author {
    margin: 0 0 10px;
    color: rgba(255, 255, 255, .72);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.pps-v2__title {
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(22px, 3vw, 44px);
    line-height: 1.08;
    text-wrap: balance;
    text-shadow: 0 5px 24px rgba(0, 0, 0, .4);
}

.pps-v2__description {
    max-width: 62ch;
    font-size: clamp(15px, 1.25vw, 19px);
    line-height: 1.65;
}

.pps-v2__details {
    display: block;
    min-height: 150px;
    padding: 24px max(6vw, 28px) 30px;
    background: #080808;
}

.pps-v2__description > :first-child { margin-top: 0; }
.pps-v2__description > :last-child { margin-bottom: 0; }

.pps-v2__button {
    display: inline-flex;
    margin-top: 22px;
    padding: 12px 19px;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 999px;
    background: var(--pps-primary);
    color: #fff;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: transform .2s ease, background-color .2s ease;
}

.pps-v2__button:hover,
.pps-v2__button:focus-visible {
    background: var(--pps-secondary);
    color: #fff;
    transform: translateY(-2px);
}

.pps-v2__controls {
    position: absolute;
    right: max(4vw, 20px);
    top: calc(var(--pps-image-height) - 68px);
    bottom: auto;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 12px;
}

.pps-v2__controls button {
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 50%;
    background: rgba(0, 0, 0, .35);
    color: #fff;
    cursor: pointer;
    font-size: 19px;
}

.pps-v2__controls button:hover,
.pps-v2__controls button:focus-visible {
    background: #fff;
    color: #111;
}

.pps-v2__status {
    min-width: 48px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.pps-v2__progress {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 6;
    width: 100%;
    height: 3px;
    background: var(--pps-primary);
    transform-origin: left;
}

@keyframes pps-v2-image-in {
    from { opacity: .35; transform: scale(1.06); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes pps-v2-content-in {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pps-v2-leave {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes pps-v2-progress {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@media (max-width: 678px) {
    .pps-v2 {
        --pps-image-height: clamp(280px, 78vw, 420px);
        width: 100%;
        height: auto;
        min-height: 0;
        overflow: visible;
    }

    .pps-v2__slide,
    .pps-v2__slide.is-leaving {
        display: none;
        visibility: hidden;
        opacity: 0;
    }

    .pps-v2__slide.is-active {
        position: relative;
        display: block;
        visibility: visible;
        opacity: 1;
    }

    .pps-v2__visual {
        height: var(--pps-image-height);
        overflow: hidden;
    }

    .pps-v2__shade {
        background: linear-gradient(0deg, rgba(0, 0, 0, .8) 0%, rgba(0, 0, 0, .08) 68%);
    }

    .pps-v2__content {
        top: auto;
        right: 96px;
        bottom: 22px;
        left: 20px;
        width: auto;
        transform: none;
    }

    .pps-v2__title {
        margin-bottom: 0;
        font-size: clamp(22px, 7vw, 34px);
        line-height: 1.08;
    }

    .pps-v2__details {
        min-height: 0;
        padding: 22px 20px 30px;
    }

    .pps-v2__controls {
        right: 20px;
        top: calc(var(--pps-image-height) - 66px);
        bottom: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pps-v2 *,
    .pps-v2 *::before,
    .pps-v2 *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-delay: 0ms !important;
        transition-duration: .01ms !important;
    }
}
