.jpv-list {
    display: flex;
    flex-direction: column;
    gap: .65rem;
}

.jpv-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--bs-border-color);
    border-radius: .85rem;
    background: var(--bs-body-bg);
    box-shadow: 0 .15rem .45rem rgba(0, 0, 0, .045);
}

.jpv-card-main {
    display: grid;
    grid-template-columns: 54px 64px minmax(0, 1fr) auto 42px;
    align-items: center;
    gap: .8rem;
    min-width: 0;
    padding: .7rem .8rem;
}

.jpv-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    min-height: 38px;
    padding: .25rem;
    border: 1px solid var(--bs-border-color);
    border-radius: .65rem;
    background: var(--bs-tertiary-bg);
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.jpv-cover {
    width: 64px;
    height: 64px;
    border-radius: .55rem;
    object-fit: contain;
    background: var(--bs-tertiary-bg);
}

.jpv-cover-empty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.jpv-content,
.jpv-title-row,
.jpv-title {
    min-width: 0;
}

.jpv-title-row {
    display: flex;
    align-items: center;
    gap: .45rem;
}

.jpv-title {
    overflow: hidden;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.jpv-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .35rem .8rem;
    margin-top: .25rem;
    color: var(--bs-secondary-color);
    font-size: .82rem;
}

.jpv-meta > span,
.jpv-bgg-link {
    white-space: nowrap;
}

.jpv-bgg-link {
    font-weight: 600;
    text-decoration: none;
}

.jpv-votes {
    display: flex;
    align-items: center;
    gap: .4rem;
}

.jpv-vote,
.jpv-icon-vote {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .3rem;
    border: 1px solid var(--bs-border-color);
    background: var(--bs-body-bg);
    font-weight: 700;
    line-height: 1;
}

.jpv-vote {
    min-width: 54px;
    min-height: 38px;
    padding: .4rem .55rem;
    border-radius: 999px;
}

button.jpv-vote,
button.jpv-icon-vote {
    cursor: pointer;
}

button.jpv-vote:hover,
button.jpv-icon-vote:hover {
    background: var(--bs-tertiary-bg);
}

.jpv-vote.positive.active,
.jpv-icon-vote.positive.active {
    color: var(--bs-success);
    border-color: var(--bs-success);
    background: rgba(var(--bs-success-rgb), .10);
}

.jpv-vote.negative.active,
.jpv-icon-vote.negative.active {
    color: var(--bs-danger);
    border-color: var(--bs-danger);
    background: rgba(var(--bs-danger-rgb), .10);
}

.jpv-vote.readonly {
    cursor: default;
}

.jpv-details {
    border-top: 0;
}

.jpv-details > summary {
    position: absolute;
    top: .7rem;
    right: .8rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    list-style: none;
}

.jpv-details > summary:hover {
    background: var(--bs-tertiary-bg);
}

.jpv-details > summary::-webkit-details-marker {
    display: none;
}

.jpv-chevron {
    display: inline-block;
    font-size: 1.15rem;
    transition: transform .18s ease;
}

.jpv-details[open] .jpv-chevron {
    transform: rotate(180deg);
}

.jpv-details-body {
    width: 100%;
    padding: .85rem;
    border-top: 1px solid var(--bs-border-color);
    background: var(--bs-tertiary-bg);
}

.jpv-description {
    margin-top: .6rem;
    white-space: pre-line;
}

.jpv-section {
    margin-top: .85rem;
}

.jpv-section-title {
    margin-bottom: .5rem;
    font-size: .84rem;
    font-weight: 700;
}

.jpv-voters {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.jpv-person {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    min-width: 0;
    max-width: 100%;
    padding: .2rem .5rem .2rem .25rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 999px;
    background: var(--bs-body-bg);
    font-size: .8rem;
}

.jpv-person.positive {
    border-color: rgba(var(--bs-success-rgb), .45);
}

.jpv-person.negative {
    border-color: rgba(var(--bs-danger-rgb), .45);
}

.jpv-avatar {
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    border-radius: 50%;
    object-fit: cover;
}

.jpv-avatar-initial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bs-secondary-bg);
    font-size: .72rem;
    font-weight: 700;
}

.jpv-represented-list {
    overflow: hidden;
    border: 1px solid var(--bs-border-color);
    border-radius: .65rem;
    background: var(--bs-body-bg);
}

.jpv-represented-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .5rem .65rem;
}

.jpv-represented-row + .jpv-represented-row {
    border-top: 1px solid var(--bs-border-color);
}

.jpv-represented-person,
.jpv-represented-actions {
    display: flex;
    align-items: center;
    gap: .45rem;
    min-width: 0;
}

.jpv-represented-actions {
    flex-shrink: 0;
}

.jpv-icon-vote {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
}

.jpv-remove-row {
    display: flex;
    justify-content: flex-end;
    margin-top: .85rem;
}

@media (max-width: 767.98px) {
    .jpv-card-main {
        grid-template-columns: 44px 54px minmax(0, 1fr) 38px;
        gap: .55rem;
        padding: .65rem;
    }

    .jpv-rank {
        width: 40px;
        min-height: 34px;
        font-size: .86rem;
    }

    .jpv-cover {
        width: 54px;
        height: 54px;
    }

    .jpv-title {
        white-space: normal;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .jpv-meta {
        gap: .25rem .55rem;
        font-size: .76rem;
    }

    .jpv-votes {
        grid-column: 2 / 4;
        justify-content: flex-end;
        padding-top: .1rem;
    }

    .jpv-details > summary {
        top: .65rem;
        right: .65rem;
    }

    .jpv-details-body {
        padding: .75rem;
    }
}

@media (max-width: 399.98px) {
    .jpv-card-main {
        grid-template-columns: 40px 48px minmax(0, 1fr) 36px;
        gap: .45rem;
    }

    .jpv-cover {
        width: 48px;
        height: 48px;
    }

    .jpv-vote {
        min-width: 50px;
        min-height: 36px;
        padding: .35rem .45rem;
    }
}
