.pdr-stories {
    width: 100%;
}

.pdr-stories__track {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding: 4px 4px 4px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.pdr-stories__item {
    flex: 0 0 auto;
    width: 110px;
    padding: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
    text-align: center;
    font: inherit;
    color: inherit;
}

.pdr-stories__circle {
    position: relative;
    display: block;
    width: 110px;
    height: 110px;
    margin: 0 auto 8px;
    padding: 3px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f5c066 0%, #d82121 48%, #6c2bd9 100%);
}

.pdr-stories__circle::after {
    content: '';
    position: absolute;
    inset: 7px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.8);
    pointer-events: none;
}

.pdr-stories__circle img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #eee;
}

.pdr-stories__caption {
    display: block;
    font-size: 13px;
    line-height: 1.25;
    color: #222;
    word-break: break-word;
    min-height: 35px;
}

.pdr-stories__video-mark {
    position: absolute;
    right: 2px;
    bottom: 2px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .72);
    z-index: 2;
}

.pdr-stories__video-mark::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 7px;
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 8px solid #fff;
}

.pdr-stories__count {
    position: absolute;
    left: 2px;
    bottom: 2px;
    z-index: 3;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(255,255,255,.94);
    color: #111;
    border: 2px solid #fff;
    font-size: 12px;
font-family: 'InterTight-SemiBold';
    line-height: 20px;
    text-align: center;
}

.pdr-story-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(0, 0, 0, .86);
}

.pdr-story-modal.is-active {
    display: flex;
}

.pdr-story-modal__box {
    position: relative;
    width: min(430px, 100%);
    height: min(760px, calc(100vh - 36px));
    overflow: hidden;
    background: #111;
    box-shadow: 0 22px 80px rgba(0, 0, 0, .45);
}

.pdr-story-modal__progress {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    z-index: 6;
    display: flex;
    gap: 5px;
}

.pdr-story-modal__bar {
    flex: 1 1 0;
    height: 3px;
    overflow: hidden;
    border-radius: 99px;
    background: rgba(255,255,255,.35);
}

.pdr-story-modal__bar span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #fff;
}

.pdr-story-modal__bar.is-done span {
    width: 100%;
}

.pdr-story-modal__bar.is-active span {
    animation: pdrStoryProgress var(--pdr-story-duration, 5000ms) linear forwards;
}

@keyframes pdrStoryProgress {
    from { width: 0; }
    to { width: 100%; }
}

.pdr-story-modal__close,
.pdr-story-modal__sound {
    position: absolute;
    z-index: 8;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0,0,0,.42);
    color: #fff;
    cursor: pointer;
}

.pdr-story-modal__close {
    top: 24px;
    right: 16px;
    font-size: 20px;
    line-height: 100%;
}

.pdr-story-modal__close span{
display: block;
position: relative;
bottom: 1px;
}

.pdr-story-modal__sound {
    top: 24px;
    right: 58px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    line-height: 1;
}

.pdr-story-modal__sound .pdr-story-modal__sound-off {
    display: none;
}

.pdr-story-modal__sound.is-muted .pdr-story-modal__sound-on {
    display: none;
}

.pdr-story-modal__sound.is-muted .pdr-story-modal__sound-off {
    display: inline;
}

.pdr-story-modal__title {
    position: absolute;
    top: 28px;
    left: 18px;
    right: 102px;
    z-index: 7;
    color: #fff;
    font-size: 16px;
    line-height: 1.25;
    text-shadow: 0 2px 10px rgba(0,0,0,.55);
}

.pdr-story-modal__media {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.pdr-story-modal__media img,
.pdr-story-modal__media video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pdr-story-modal__footer {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 18px;
    z-index: 7;
    display: flex;
    justify-content: center;
}

.pdr-story-modal__footer .menu-btn {
    width: 100%;
    max-width: 320px;
    min-height: 48px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: #111;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,.3);
}

.pdr-story-modal__nav {
    position: absolute;
    top: 80px;
    bottom: 82px;
    z-index: 5;
    width: 42%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.pdr-story-modal__nav--prev {
    left: 0;
}

.pdr-story-modal__nav--next {
    right: 0;
}

body.pdr-story-lock {
    overflow: hidden;
}

@media (max-width: 575px) {
    .pdr-stories__track {
        gap: 14px;
    }

    .pdr-stories__item {
        width: 78px;
    }

    .pdr-stories__circle {
        width: 70px;
        height: 70px;
    }

    .pdr-stories__caption {
        font-size: 12px;
    }

    .pdr-story-modal {
        padding: 0;
    }

    .pdr-story-modal__box {
        width: 100%;
        height: 100vh;
        border-radius: 0;
    }
}
