/* Shared profile library sections, reviews, and poster rows. */

.profile-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.profile-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 44px;
    padding-inline: 2px;
}

.profile-section h2 {
    margin: 0;
    color: #a99b8d;
    font-size: 12px;
    font-weight: 900;
    line-height: 15px;
    letter-spacing: 0;
    text-transform: uppercase;
}

.profile-section-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    color: inherit;
    text-decoration: none;
}

.profile-section-link:hover {
    color: #ff7a2a;
}

.profile-section-link:focus-visible {
    outline: 2px solid #f25a00;
    outline-offset: 3px;
    border-radius: 4px;
}

.profile-section-marker {
    width: 4px;
    height: 18px;
    flex: 0 0 4px;
    border-radius: 999px;
    background: #f25a00;
}

.profile-section-empty-text {
    margin: 0;
    color: #9eb0c7;
    font-size: 13px;
    font-weight: 700;
    line-height: 22px;
    text-align: right;
}

.profile-latest-review-card {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #1c1917;
    text-align: right;
}

.profile-latest-review-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: start;
}

.profile-latest-review-head h3 {
    min-width: 0;
    margin: 0;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    line-height: normal;
    overflow-wrap: anywhere;
}

.profile-latest-review-head h3 a,
.profile-latest-review-head h3 span {
    display: block;
    color: inherit;
    text-decoration: none;
}

.profile-latest-review-date {
    color: #9eb0c7;
    font-size: 12px;
    font-weight: 700;
    line-height: normal;
    white-space: nowrap;
}

.profile-latest-review-body {
    display: block;
    margin: 0;
    color: #9eb0c7;
    font-size: 13px;
    font-weight: 700;
    line-height: 22px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.profile-latest-review-head h3 a:active {
    opacity: 0.72;
}

.profile-latest-review-head h3 a:focus-visible,
a.profile-latest-review-body:focus-visible {
    outline: 2px solid #f25a00;
    outline-offset: 3px;
    border-radius: 4px;
}

.profile-poster-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.profile-poster-grid::-webkit-scrollbar {
    display: none;
}

.profile-poster-card,
.user-collection-poster-card {
    display: block;
    width: 112px;
    height: 168px;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
}

.profile-poster-card {
    flex: 0 0 auto;
    scroll-snap-align: start;
}

.profile-poster-card img,
.user-collection-poster-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

@media (max-width: 767.98px) {
    .profile-poster-card {
        /* Keep three posters visible; the remaining posters stay swipeable. */
        width: calc((100% - 24px) / 3);
        height: auto;
        aspect-ratio: 2 / 3;
        flex-basis: calc((100% - 24px) / 3);
    }
}
