#rollPage {
    max-width: 700px;
    margin: 0 auto;
    padding: 28px 16px 0;
}

@media (min-width: 880px) {
    #rollPage {
        max-width: 972px;
    }
}

.roll-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background-color: #2a2a2a;
}

.material-symbols-rounded.roll-title-icon {
    font-size: 22px;
    color: white;
    font-variation-settings: 'FILL' 1;
}

#rollFeed {
    display: flex;
    flex-direction: column;
    padding-bottom: 32px;
}

.roll-item {
    display: flex;
    flex-direction: column;
}

.roll-item-row {
    display: flex;
    align-items: flex-start;
    gap: 32px;
}

.roll-item .article-detail {
    flex: 1;
    min-width: 0;
    content-visibility: auto;
    contain-intrinsic-size: 0 900px;
    margin: 0;
}

.roll-separator {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 40px 0;
}

.roll-separator-line {
    flex: 1;
    height: 1px;
    background: #ddd;
}

.material-symbols-rounded.roll-separator-icon {
    font-size: 26px;
    color: #d9d9d9;
    flex-shrink: 0;
    font-variation-settings: 'FILL' 1;
}

/* Author sidebar — desktop only, top-aligned with its publication */
.roll-author-card {
    display: none;
    text-decoration: none;
    color: inherit;
}

@media (min-width: 880px) {
    .roll-author-card {
        display: flex;
        flex-direction: column;
        width: 240px;
        flex-shrink: 0;
        font-family: var(--mainFont);
        background: white;
        border-radius: 12px;
        overflow: hidden;
        transition: transform 0.25s ease;
    }

    .roll-author-card:hover {
        transform: translateY(-2px);
    }

    .rac-hero {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 18px 16px 12px;
    }

    /* Ignore the user's custom pan/zoom here: those values were tuned for the
       wide profile-page banner shape and produce inconsistent crops on this
       much narrower hero, so just center-cover instead. */
    .rac-hero-bg {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 50% 50%;
        z-index: 0;
    }

    .rac-avatar-wrap {
        position: relative;
        z-index: 1;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        overflow: hidden;
        margin-bottom: 8px;
        flex-shrink: 0;
        outline: 3px solid white;
        background: white;
        box-sizing: border-box;
    }

    .rac-avatar {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: var(--ux, 50%) var(--uy, 50%);
        transform-origin: var(--ux, 50%) var(--uy, 50%);
        transform: scale(var(--uz, 1));
        display: block;
    }

    .rac-username {
        position: relative;
        z-index: 1;
        font-size: 0.9rem;
        font-weight: 700;
        color: white;
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
        text-align: center;
    }

    .rac-stats {
        display: flex;
        width: 100%;
        justify-content: space-between;
        padding: 16px;
        border-top: 1px solid #ebebeb;
        box-sizing: border-box;
    }

    .rac-stat {
        display: flex;
        flex-direction: column;
        align-items: center;
        flex: 1;
        min-width: 0;
    }

    .rac-stat-num {
        font-size: 0.95rem;
        font-weight: 700;
    }

    .rac-stat-label {
        font-size: 0.62rem;
        color: #999;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        margin-top: 2px;
        white-space: nowrap;
    }
}

.no-results {
    text-align: center;
    font-family: var(--mainFont);
    color: #999;
    padding: 48px 20px;
    font-size: 1rem;
}

#rollSentinel {
    height: 1px;
}

#rollSentinel.roll-loading {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#rollSentinel.roll-loading::after {
    content: "";
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 3px solid #ddd;
    border-top-color: #999;
    animation: roll-spin 0.8s linear infinite;
}

@keyframes roll-spin {
    to { transform: rotate(360deg); }
}
