.prs-shell {
    margin: 8px 0 12px;
    padding: 13px 12px 10px;
    overflow: hidden;
    border: 1px solid #ececec;
    background: #fff;
}

.prs-row {
    display: flex;
    gap: 11px;
    overflow-x: auto;
    padding: 2px 2px 8px;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
}

.prs-row::-webkit-scrollbar {
    display: none;
}

.prs-item {
    display: flex;
    width: 76px;
    flex: 0 0 76px;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #333;
    cursor: pointer;
    scroll-snap-align: start;
}

.prs-ring {
    display: grid;
    width: 68px;
    height: 68px;
    padding: 3px;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(45deg, #68d391, #38bdf8, #e6683c, #dc2743);
}

.prs-thumb {
    display: grid;
    width: 100%;
    height: 100%;
    overflow: hidden;
    place-items: center;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #eef3fb;
    font-size: 18px;
    font-weight: 700;
}

.prs-thumb img,
.prs-header-avatar img,
.prs-side-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.prs-item-badge {
    max-width: 72px;
    margin-top: -4px;
    padding: 2px 6px;
    overflow: hidden;
    border-radius: 12px;
    background: #ef633d;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.prs-item-name {
    overflow: hidden;
    width: 76px;
    color: #888;
    font-size: 10px;
    line-height: 1.25;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.prs-modal {
    position: fixed;
    z-index: 2147483647;
    inset: 0;
    display: flex;
    padding: 18px;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .91);
}

.prs-modal[hidden] {
    display: none;
}

.prs-stage {
    position: relative;
    display: flex;
    width: min(100%, 980px);
    height: 100%;
    align-items: center;
    justify-content: center;
}

.prs-dialog {
    position: relative;
    z-index: 3;
    display: flex;
    width: min(342px, 90vw);
    max-height: 94vh;
    overflow: hidden;
    flex-direction: column;
    border-radius: 14px;
    background: #101010;
    box-shadow: 0 18px 60px rgba(0, 0, 0, .6);
}

.prs-progress {
    display: flex;
    gap: 3px;
    padding: 8px 10px 2px;
}

.prs-progress span {
    height: 3px;
    flex: 1;
    overflow: hidden;
    border-radius: 3px;
    background: rgba(255, 255, 255, .28);
}

.prs-progress i {
    display: block;
    width: 0;
    height: 100%;
    background: #fff;
}

.prs-progress .is-done i {
    width: 100%;
}

.prs-progress .is-active i {
    animation: prs-fill 12s linear forwards;
}

.prs-header {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 12px 9px;
    color: #fff;
}

.prs-header-avatar {
    display: grid;
    width: 38px;
    height: 38px;
    overflow: hidden;
    flex: 0 0 38px;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 50%;
    font-weight: 700;
}

.prs-header-copy {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
}

.prs-header-copy strong,
.prs-header-copy span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.prs-header-copy span {
    color: rgba(255, 255, 255, .65);
    font-size: 11px;
}

.prs-close {
    padding: 3px 6px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
}

.prs-media {
    position: relative;
    display: grid;
    min-height: 430px;
    flex: 1;
    place-items: center;
    overflow: hidden;
    background: #000;
}

.prs-media img {
    display: block;
    width: 100%;
    height: min(570px, calc(94vh - 180px));
    object-fit: contain;
}

.prs-zone {
    position: absolute;
    z-index: 2;
    top: 0;
    bottom: 0;
    width: 42%;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.prs-zone-prev {
    left: 0;
}

.prs-zone-next {
    right: 0;
}

.prs-arrow {
    position: absolute;
    z-index: 5;
    top: 50%;
    display: grid;
    width: 40px;
    height: 40px;
    padding: 0;
    transform: translateY(-50%);
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .78);
    color: #666;
    font-size: 22px;
    cursor: pointer;
}

.prs-arrow-prev {
    left: calc(50% - 211px);
}

.prs-arrow-next {
    right: calc(50% - 211px);
}

.prs-side {
    position: absolute;
    top: 50%;
    display: block;
    width: 172px;
    height: 286px;
    padding: 0;
    overflow: hidden;
    transform: translateY(-50%);
    border: 0;
    border-radius: 13px;
    background: #111;
    box-shadow: 0 10px 35px rgba(0, 0, 0, .45);
    cursor: pointer;
    opacity: .62;
}

.prs-side[hidden] {
    display: none;
}

.prs-side-prev {
    left: 0;
}

.prs-side-next {
    right: 0;
}

.prs-side > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.prs-side-info {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    min-height: 75px;
    grid-template-columns: 30px 1fr;
    grid-template-rows: auto auto;
    column-gap: 7px;
    align-items: center;
    padding: 22px 10px 9px;
    background: linear-gradient(transparent, rgba(0, 0, 0, .9));
    color: #fff;
    text-align: left;
}

.prs-side-avatar {
    display: grid;
    width: 30px;
    height: 30px;
    overflow: hidden;
    grid-row: 1 / 3;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 50%;
    font-size: 10px;
}

.prs-side-info strong,
.prs-side-info small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.prs-side-info strong {
    font-size: 11px;
}

.prs-side-info small {
    color: rgba(255, 255, 255, .7);
    font-size: 9px;
}

.prs-caption {
    padding: 10px 14px;
    background: #101010;
    color: #fff;
    font-size: 13px;
}

.prs-footer {
    padding: 10px 12px 12px;
    background: #101010;
}

.prs-footer a {
    display: block;
    padding: 11px;
    border-radius: 8px;
    background: #fff;
    color: #111;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

body.prs-open {
    overflow: hidden;
}

@keyframes prs-fill {
    from { width: 0; }
    to { width: 100%; }
}

@media (max-width: 480px) {
    .prs-shell {
        margin-right: 0;
        margin-left: 0;
        padding-right: 4px;
        padding-left: 4px;
    }

    .prs-modal {
        padding: 0;
    }

    .prs-dialog {
        width: 100vw;
        max-height: 100vh;
        border-radius: 0;
    }

    .prs-media img {
        height: calc(100vh - 180px);
    }

    .prs-side,
    .prs-arrow {
        display: none;
    }
}

@media (min-width: 481px) and (max-width: 900px) {
    .prs-side {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .prs-progress .is-active i {
        width: 100%;
        animation: none;
    }
}
