body.author {
    background-color: #101114;
}

.sc-author-page {
    --sc-author-bg: #101114;
    --sc-author-section: #1c1e22;
    --sc-author-frame: #25272d;
    --sc-author-frame-2: #30343b;
    --sc-author-frame-3: #3c4049;
    --sc-author-text: #ffffff;
    --sc-author-muted: #8f96a3;
    --sc-author-soft: #c4c8cf;
    --sc-author-primary: #1081df;
    --sc-author-radius: 8px;
    --sc-author-font: 'Vazir', 'Vazir', 'Tahoma', sans-serif;
    background: var(--sc-author-bg);
    color: var(--sc-author-text);
    direction: rtl;
    font-family: var(--sc-author-font);
    min-height: 100vh;
    padding: 32px 0 96px;
}

.sc-author-page *,
.sc-author-page *::before,
.sc-author-page *::after {
    box-sizing: border-box;
}

.sc-author-page__inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: min(100% - 32px, 1640px);
    margin: 0 auto;
}

.sc-author-hero {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 40px;
    width: 100%;
    margin: 0 0 64px;
}

.sc-author-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: row-reverse;
    gap: 4px;
    margin: 0;
    color: var(--sc-author-soft);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
    white-space: nowrap;
    place-self: flex-start;
}

.sc-author-breadcrumb a,
.sc-author-breadcrumb span {
    color: inherit;
    text-decoration: none;
    font-weight: 400;
}

.sc-author-breadcrumb svg {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    color: var(--sc-author-soft);
}

.sc-author-breadcrumb a {
    transition: color .22s cubic-bezier(.4,0,.2,1);
}

.sc-author-breadcrumb a:hover {
    color: var(--sc-author-primary);
}

.sc-author-hero__info {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    width: 100%;
    direction: ltr;
}

.sc-author-hero__top,
.sc-author-hero__bottom {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-direction: row;
    gap: 24px;
    width: 100%;
}

.sc-author-hero__favorites {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: row;
    gap: 24px;
    min-width: 0;
}

.sc-author-fav-card {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    flex: 0 0 344px;
    width: 344px;
    height: 80px;
    overflow: hidden;
    border: 1px solid var(--sc-author-frame-2);
    border-radius: var(--sc-author-radius);
    background: var(--sc-author-frame);
    color: var(--sc-author-text);
    text-align: center;
}

.sc-author-fav-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: var(--sc-author-fav-image);
    background-size: cover;
    background-position: center;
    opacity: 1;
    transition: transform .28s cubic-bezier(.4,0,.2,1);
}

.sc-author-fav-card::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(25,26,30,.7);
}

.sc-author-fav-card:hover::before {
    transform: scale(1.05);
}

.sc-author-fav-card__label,
.sc-author-fav-card__title {
    display: block;
    color: var(--sc-author-text);
    font-size: 20px;
    font-weight: 500;
    line-height: 1.5;
}

.sc-author-profile {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: row;
    gap: 16px;
    flex: 0 0 auto;
    min-width: 0;
}

.sc-author-profile__content {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.sc-author-profile__title {
    margin: 0;
    color: var(--sc-author-text);
    font-size: 20px;
    font-weight: 500;
    line-height: 1.5;
    white-space: nowrap;
}

.sc-author-profile__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    padding: 4px 8px;
    border-radius: 4px;
    background: var(--sc-author-primary);
    color: var(--sc-author-text);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
    white-space: nowrap;
}

.sc-author-profile__avatar {
    display: block;
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
    border: 1px solid var(--sc-author-frame-2);
    border-radius: var(--sc-author-radius);
    object-fit: cover;
}

.sc-author-socials {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: row;
    gap: 16px;
    min-height: 32px;
}

.sc-author-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 4px;
    border: 1px solid var(--sc-author-frame-2);
    border-radius: 4px;
    background: var(--sc-author-frame);
    transition: border-color .22s cubic-bezier(.4,0,.2,1), background .22s cubic-bezier(.4,0,.2,1), transform .22s cubic-bezier(.4,0,.2,1);
}

.sc-author-social:hover {
    border-color: var(--sc-author-primary);
    background: rgba(16,129,223,.14);
    transform: translateY(-1px);
}

.sc-author-social img {
    display: block;
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.sc-author-stats {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: row-reverse;
    gap: 16px;
    min-width: 0;
    direction: rtl;
}

.sc-author-stat {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 8px;
    height: 32px;
    padding: 8px 12px;
    border-radius: 4px;
    background: var(--sc-author-frame);
    color: var(--sc-author-soft);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    white-space: nowrap;
}

.sc-author-stat img {
    display: block;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.sc-author-profile__bio {
    width: 100%;
    margin: 0;
    color: var(--sc-author-soft);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    text-align: right;
    direction: rtl;
}

.sc-author-posts {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    width: 100%;
}

.sc-author-posts__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    gap: 24px;
    width: 100%;
    overflow: hidden;
}

.sc-author-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.sc-author-section-head__eyebrow {
    display: block;
    margin-bottom: 12px;
    color: var(--sc-author-primary);
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
}

.sc-author-section-head__title {
    margin: 0;
    color: var(--sc-author-text);
    font-size: 28px;
    font-weight: 500;
    line-height: 1.5;
}

.sc-author-section-head__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 48px;
    padding: 0 16px;
    border-radius: var(--sc-author-radius);
    background: var(--sc-author-frame);
    color: var(--sc-author-text);
    font-size: 16px;
    white-space: nowrap;
}

.sc-author-cats-viewport {
    position: relative;
    flex: 1 1 auto;
    max-width: 760px;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    touch-action: pan-x;
    cursor: grab;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 32px, #000 calc(100% - 32px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 32px, #000 calc(100% - 32px), transparent 100%);
}

.sc-author-cats-viewport::-webkit-scrollbar {
    display: none;
}

.sc-author-cats-viewport:active {
    cursor: grabbing;
}

.sc-author-cats-track {
    display: flex;
    align-items: flex-start;
    flex-direction: row;
    gap: 8px;
    width: max-content;
    min-width: 100%;
}

.sc-author-cats {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-wrap: nowrap;
    flex-direction: row;
    gap: 8px;
    min-height: 36px;
}

.sc-author-cat {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 8px;
    height: 36px;
    border: 0;
    border-radius: 4px;
    background: var(--sc-author-frame);
    color: var(--sc-author-soft);
    padding: 8px 12px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
    white-space: nowrap;
    transition: color .22s cubic-bezier(.4,0,.2,1), background .22s cubic-bezier(.4,0,.2,1), transform .22s cubic-bezier(.4,0,.2,1);
}

.sc-author-cat span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 31px;
    height: 20px;
    padding: 4px;
    border-radius: 2px;
    background: var(--sc-author-frame-2);
    color: var(--sc-author-soft);
    font-size: 12px;
    font-weight: 400;
    line-height: 0;
}

.sc-author-cat:hover,
.sc-author-cat--active,
.sc-author-cat[aria-current="true"],
.sc-author-cat[aria-pressed="true"] {
    color: var(--sc-author-text);
    background: var(--sc-author-primary);
    transform: none;
}

.sc-author-cat--active span,
.sc-author-cat[aria-current="true"] span,
.sc-author-cat[aria-pressed="true"] span {
    background: var(--sc-author-text);
    color: var(--sc-author-primary);
}

.sc-author-tabs {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: row;
    gap: 16px;
    flex: 0 0 auto;
    margin: 0;
    order: -1;
}

.sc-author-tabs .sc-author-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 8px 12px;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--sc-author-muted);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
    text-decoration: none;
}

.sc-author-tabs .sc-author-tab--active,
.sc-author-tabs .cat-game-tab--active {
    border-bottom-color: var(--sc-author-primary);
    color: var(--sc-author-text);
    background: transparent;
}

.sc-author-tabs .sc-author-tab:hover {
    color: var(--cm-text-primary);
}

.sc-author-grid.cat-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-flow: row;
    grid-auto-rows: auto;
    align-items: start;
    justify-content: center;
    gap: 24px;
    width: 100%;
    margin-top: -8px;
}

.sc-author-grid .cat-game-card {
    width: 100%;
    min-width: 0;
}

.sc-author-grid .cat-game-card__body {
    background-color: var(--sc-author-section);
    flex: 1;
}

.sc-author-grid .cat-game-card__badge {
    border-radius: 4px;
}

.sc-author-grid .cat-game-card__title {
    color: var(--sc-author-text);
}

.sc-author-grid .cat-game-card__title-link {
    color: var(--sc-author-text);
}

.sc-author-grid .cat-game-card__title-link:hover {
    color: var(--sc-author-primary);
}

.sc-author-grid .cat-game-card__meta-value {
    color: var(--sc-author-muted);
}

.sc-author-grid .cat-game-card__meta-value.sc-author-card__author:hover {
    color: var(--sc-author-primary);
}


.sc-author-card__author,
.sc-author-inline-link {
    color: inherit;
    text-decoration: none;
    transition: color .22s cubic-bezier(.4,0,.2,1);
}

.sc-author-card__author:hover,
.sc-author-inline-link:hover {
    color: var(--sc-author-primary);
}

.sc-author-pagination {
    margin-top: -8px;
    opacity: 1;
    transition: opacity 0.28s cubic-bezier(.4,0,.2,1);
}

.sc-author-pagination .cat-game-pagination__inner {
    gap: 8px;
}

.sc-author-pagination .cat-game-pagination__btn,
.sc-author-pagination .cat-game-pagination__ellipsis {
    width: 32px;
    height: 32px;
    padding: 8px;
    border-radius: 8px;
    background: transparent;
    color: var(--sc-author-text);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    transition: background-color 0.2s cubic-bezier(.4,0,.2,1), color 0.2s cubic-bezier(.4,0,.2,1), box-shadow 0.2s cubic-bezier(.4,0,.2,1);
    cursor: pointer;
    user-select: none;
}

.sc-author-pagination .cat-game-pagination__btn:hover:not(.cat-game-pagination__btn--current):not(.cat-game-pagination__btn--disabled) {
    background-color: var(--sc-author-frame-2, rgba(255,255,255,0.08));
}

.sc-author-pagination .cat-game-pagination__btn:active:not(.cat-game-pagination__btn--disabled) {
    opacity: 0.85;
}

.sc-author-pagination .cat-game-pagination__btn--current {
    background: var(--sc-author-primary);
    box-shadow: 0 2px 8px color-mix(in srgb, var(--sc-author-primary) 35%, transparent);
}

.sc-author-pagination .cat-game-pagination__btn--nav {
    color: var(--sc-author-muted);
}

.sc-author-pagination .cat-game-pagination__btn--nav svg {
    display: block;
    transition: transform 0.2s cubic-bezier(.4,0,.2,1);
}

.sc-author-pagination .cat-game-pagination__btn--nav:hover svg {
    transform: scale(1.15);
}

.sc-author-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    border: 1px solid var(--sc-author-frame-2);
    border-radius: var(--sc-author-radius);
    background: var(--sc-author-section);
    color: var(--sc-author-muted);
    font-size: 18px;
    line-height: 1.5;
    text-align: center;
    padding: 32px;
}


@media (max-width: 1639px) {
    .sc-author-page__inner {
        width: min(100% - 32px, 1640px);
    }

    .sc-author-fav-card {
        flex-basis: 300px;
        width: 300px;
    }
}

@media (max-width: 1199px) {
    .sc-author-hero__top,
    .sc-author-hero__bottom {
        flex-direction: column-reverse;
        align-items: flex-end;
    }

    .sc-author-hero__favorites {
        width: 100%;
    }

    .sc-author-fav-card {
        flex: 1 1 0;
        width: auto;
    }

    .sc-author-grid.cat-game-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

/* Tablet portrait (768px–1023px) */
@media (max-width: 1023px) {
    .sc-author-grid.cat-game-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 767px) {
    .sc-author-page {
        padding: 24px 0 64px;
    }

    .sc-author-page__inner {
        width: min(100% - 32px, 100%);
    }

    .sc-author-hero {
        gap: 24px;
        margin-bottom: 48px;
    }

    .sc-author-breadcrumb {
        font-size: 14px;
    }

    .sc-author-hero__info,
    .sc-author-hero__top,
    .sc-author-hero__bottom {
        gap: 16px;
    }

    .sc-author-hero__favorites,
    .sc-author-stats {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .sc-author-fav-card {
        flex: 0 0 80px;
        width: 100%;
    }

    .sc-author-socials {
        justify-content: flex-end;
        width: 100%;
    }

    .sc-author-stat {
        width: 100%;
    }

    .sc-author-posts__toolbar {
        align-items: stretch;
        flex-direction: column;
        gap: 16px;
        overflow: visible;
    }

    .sc-author-cats-viewport,
    .sc-author-tabs {
        width: calc(100% + 32px);
        max-width: none;
        margin: 0 -16px;
        padding: 0 16px 4px;
    }

    .sc-author-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .sc-author-tabs::-webkit-scrollbar {
        display: none;
    }

    .sc-author-cat,
    .sc-author-tab {
        flex: 0 0 auto;
    }

    .sc-author-grid.cat-game-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

