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

.profile-section {
    margin-top: 26px;
}

.profile-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

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

.profile-view-all {
    flex: 0 0 auto;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.065);
    color: #e1d4c8;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
}

.profile-view-all:hover,
.profile-view-all:focus {
    color: #ffffff;
    background: rgba(198, 139, 93, 0.22);
}

.profile-empty-card {
    min-height: 104px;
    display: grid;
    place-items: center;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
}

.profile-empty-card-tall {
    min-height: 152px;
}

.profile-empty-card p {
    margin: 0;
    color: #bdb0a5;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.4;
    text-align: center;
}

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

.profile-latest-review-card {
    display: block;
    min-height: 92px;
    padding: 14px 15px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.06);
    text-align: right;
    text-decoration: none;
}

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

.profile-latest-review-head h3 {
    min-width: 0;
    margin: 0;
    color: #a99b8d;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-latest-review-head h3 a,
.profile-latest-review-head h3 span {
    color: inherit;
    text-decoration: none;
    text-underline-offset: 3px;
    transition: color 160ms ease, opacity 160ms ease;
}

.profile-latest-review-head h3 a:hover,
.profile-latest-review-head h3 a:focus {
    color: #cbbfb2;
    opacity: 0.94;
    text-decoration: underline;
    text-decoration-color: rgba(203, 191, 178, 0.78);
}

.profile-latest-review-date {
    color: #8e8178;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.4;
    white-space: nowrap;
}

.profile-latest-review-card p {
    margin: 0;
    color: #d0c6bd;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.65;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.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;
}

