﻿:root {
    --bg-color: #000000;
    --text-main: #ffffff;
    --text-muted: #aaaaaa;
}
/* Полный запрет на выделение текста и элементов */
* {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-drag: none;
}
body {
    margin: 0;
    padding: 0;
    font-family: 'Unbounded', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
}
img {
    -webkit-user-drag: none; /* Запрещает перетягивание в Chrome, Safari, Edge */
    user-drag: none; /* Стандартное свойство (на будущее) */
    user-select: none; /* Запрещает выделение картинки как текста */
    -webkit-user-select: none;
    -moz-user-select: none;
}
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background-color: #000000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    box-sizing: border-box;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-left a, .header-center a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 12px;
    margin-right: 25px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

    .header-right a {
        color: var(--text-main);
        text-decoration: none;
        font-size: 12px;
        text-transform: uppercase;
    }

.btn-login {
    background-color: var(--text-main);
    color: #000000 !important;
    padding: 8px 24px;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
}

main {
    display: flex;
    margin-top: 70px;
    padding: 0;
    height: calc(100vh - 70px);
    position: relative;
}

.left-panel {
    width: 400px;
    display: flex;
    flex-direction: column;
    padding: 30px;
    z-index: 10;
    background: linear-gradient(90deg, #000000 70%, transparent 100%);
    /* Строки с mask-image отсюда нужно удалить */
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    position: relative;
}

.tab-pill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: white;
    border-radius: 20px;
    z-index: 0;
    transition: left 0.35s cubic-bezier(0.65, 0, 0.35, 1), width 0.35s cubic-bezier(0.65, 0, 0.35, 1);
}

.tab {
    display: inline-flex; /* Используем inline-flex для аккуратных кнопок */
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: transparent;
    border: none;
    outline: none;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    font-family: 'Unbounded', sans-serif;
    position: relative;
    z-index: 1;
    transition: color 0.35s ease;
}

    .tab .material-symbols-outlined {
        font-size: 18px;
        font-weight: 400 !important; /* ВАЖНО: Запрещаем иконке становиться жирной */
        font-style: normal;
        line-height: 1; /* Центрирует иконку относительно текста */
    }

    .tab.active {
        color: black;
        font-weight: 700;
    }

.items-grid.grid-switching {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* НОВОЕ: Запрещаем единственному ряду растягиваться на весь экран */
    align-content: start;
    gap: 10px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 25px 25px 120px 25px;
    scrollbar-gutter: stable;
    perspective: 1000px;
    flex-grow: 1;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) calc(100% - 120px), rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) calc(100% - 420px), rgba(0,0,0,0) 100%);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Обертка теперь прозрачная */
.item-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    z-index: 1;
    background: transparent;
}
.empty-message {
    grid-column: 1 / -1;
    color: var(--text-muted);
    font-size: 12px;
    text-align: center;
    padding: 40px 0;
    font-family: 'Unbounded', sans-serif;
}

/* 1. НИЖНИЙ СЛОЙ: Неподвижная база (теневой клон) */
/* 1. Твоя оригинальная база (z-index: 0 - самый нижний слой) */
/* 1. НИЖНИЙ СЛОЙ: База (теперь это цветной силуэт по маске) */
/* 1. НИЖНИЙ СЛОЙ: Неподвижная база (теневой клон) */
.item-base {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, filter 0.3s ease;
    z-index: 0;
}

/* Когда предмет выбран: база светится */
.item-wrapper.active .item-base {
    opacity: 0.85; /* Полная яркость */
    /* ВЕСЬ СЕКРЕТ ТУТ:
       Мы больше не делаем картинку белой (убрали invert). 
       Мы просто слегка размываем её (blur) и накидываем два слоя цветной тени.
       Она сохраняет свои родные цвета под полупрозрачными краями стикера! */
    filter: blur(6px) drop-shadow(0 0 10px var(--r-color)) drop-shadow(0 0 10px var(--r-color));
}


/* 3. Твоя летающая картинка (z-index: 2 - самый верхний слой) */
.item-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    border: none !important;
    outline: none !important;
    cursor: pointer;
    object-fit: contain;
    z-index: 2;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.4s ease;
}

/* Анимация 3D модели */
.center-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}
    /* Плавное затемнение сверху для скрытия обрезанных краев */


.anim-model {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s ease;
    /* Убрали mask-image, так как модель теперь прячется под левой панелью */
}

.anim-model-hidden {
    /* Сдвигаем влево на 200 пикселей (под инвентарь) вместо сдвига вниз */
    transform: translateX(-200px);
    opacity: 0;
}
/* Удалили model-viewer и добавили стили для холста Three.js */
#threeContainer canvas {
    width: 100% !important;
    height: 100% !important;
    outline: none;
}

/* Правая панель */
.right-panel {
    width: 400px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* ИЗМЕНЕНО: прижимаем контент к верху (было center) */
    padding: 50px 30px 90px 30px; /* ИЗМЕНЕНО: добавили 50px отступа сверху */
    margin-left: auto;
    z-index: 10;
    background: linear-gradient(270deg, #000000 70%, transparent 100%);
    position: relative; /* Кнопка привязывается к этому блоку */
}

.anim-right-content {
    display: flex;
    flex-direction: column;
    transition: transform 0.4s ease, opacity 0.3s ease;
}

.anim-right-content-hidden {
    transform: translateX(50px);
    opacity: 0;
}

.collection-img {
    width: 100%;
    height: auto;
    max-height: 200px; /* Увеличили лимит высоты, чтобы логотип мог стать крупнее */
    object-fit: contain;
    margin-bottom: 20px;
    /* filter: grayscale(100%); <-- Полностью удалили эту строку, чтобы вернуть цвета */
}

/* --- ОБЕРТКА РЕДКОСТИ И ИСКРЫ --- */
.rarity-wrapper {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    margin: 10px 0 5px 0;
}

.rarity-container {
    position: relative;
    display: inline-block;
}

.rarity {
    font-size: 28px;
    font-weight: 900;
    text-transform: uppercase;
    text-align: right;
    letter-spacing: 1px;
    position: relative;
    z-index: 2; /* Чтобы текст был поверх блёсток */
    /* Вращающаяся анимация */
    animation: rotatingLight 3s linear infinite;
}

/* 
  Круговая анимация тени. Внутренние тени (10px, 20px) стоят на месте, 
  а самая дальняя и размытая тень (80px) вращается по кругу радиусом 35px 
*/
@keyframes rotatingLight {
    0% {
        text-shadow: 0 0 10px var(--r-color), 0 0 20px var(--r-color), 35px 0px 80px var(--r-color);
    }

    12.5% {
        text-shadow: 0 0 10px var(--r-color), 0 0 20px var(--r-color), 25px 25px 80px var(--r-color);
    }

    25% {
        text-shadow: 0 0 10px var(--r-color), 0 0 20px var(--r-color), 0px 35px 80px var(--r-color);
    }

    37.5% {
        text-shadow: 0 0 10px var(--r-color), 0 0 20px var(--r-color), -25px 25px 80px var(--r-color);
    }

    50% {
        text-shadow: 0 0 10px var(--r-color), 0 0 20px var(--r-color), -35px 0px 80px var(--r-color);
    }

    62.5% {
        text-shadow: 0 0 10px var(--r-color), 0 0 20px var(--r-color), -25px -25px 80px var(--r-color);
    }

    75% {
        text-shadow: 0 0 10px var(--r-color), 0 0 20px var(--r-color), 0px -35px 80px var(--r-color);
    }

    87.5% {
        text-shadow: 0 0 10px var(--r-color), 0 0 20px var(--r-color), 25px -25px 80px var(--r-color);
    }

    100% {
        text-shadow: 0 0 10px var(--r-color), 0 0 20px var(--r-color), 35px 0px 80px var(--r-color);
    }
}

/* Назначаем переменные цвета на контейнер, чтобы и текст и блёстки могли их использовать */
.rarity-common {
    --r-color: rgba(255, 255, 255, 0.6);
    color: #ffffff;
}
.rarity-uncommon {
    --r-color: rgba(63, 224, 109, 0.8);
    color: #3fe06d;
}

.rarity-rare {
    --r-color: rgba(59, 130, 246, 0.8);
    color: #3b82f6;
}

.rarity-epic {
    --r-color: rgba(192, 38, 211, 0.8);
    color: #c026d3;
}

.rarity-mythic {
    --r-color: rgba(225, 29, 72, 0.8);
    color: #e11d48;
}

.rarity-legendary {
    --r-color: rgba(251, 191, 36, 0.8);
    color: #fbbf24;
}

.rarity-limited {
    --r-color: rgba(255, 255, 255, 0.5); /* Цвет блёсток для радужной */
    background: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3, #ff0000);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: rainbowText 3s linear infinite, glowLimited 2s infinite alternate;
}

@keyframes rainbowText {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

@keyframes glowLimited {
    from {
        filter: drop-shadow(0 0 10px rgba(255,255,255,0.4));
    }

    to {
        filter: drop-shadow(0 0 30px rgba(255,255,255,0.8));
    }
}

/* Стили для анимированных блёсток */
.sparkle {
    position: absolute;
    color: #ffffff;
    text-shadow: 0 0 8px var(--r-color), 0 0 15px var(--r-color);
    pointer-events: none;
    z-index: 1; /* Блёстки под текстом, создают фон */
    animation: sparkleAnim forwards ease-in-out;
}

@keyframes sparkleAnim {
    0% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }

    30% {
        opacity: 1;
        transform: scale(1) rotate(45deg);
    }

    70% {
        opacity: 1;
        transform: scale(1) rotate(135deg);
    }

    100% {
        opacity: 0;
        transform: scale(0) rotate(180deg);
    }
}

.quote {
    text-align: right;
    color: var(--text-muted);
    font-style: italic;
    font-size: 12px;
    margin-bottom: 30px;
}

.description {
    font-size: 12px;
    line-height: 1.6;
    color: var(--text-muted);
    text-align: right;
    margin-bottom: 40px;
    max-height: 200px;
    overflow-y: auto;
}

.author-box {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    font-weight: 700;
    font-size: 14px;
}

.author-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

    .author-icon img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        /* Пока путь к аватарке не задан в data.json, пустой src не рисует "битую" иконку */
        display: block;
    }

    .author-icon img:not([src]),
    .author-icon img[src=""] {
        visibility: hidden;
    }

.action-btn {
    /* НОВОЕ: Жесткое позиционирование снизу */
    position: absolute;
    bottom: 30px;
    left: 30px;
    width: calc(100% - 60px);
    box-sizing: border-box;
    /* Твои старые стили без изменений: */
    background: #ffffff;
    color: #000000;
    border: none;
    padding: 15px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Unbounded', sans-serif;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: background 0.2s;
    text-transform: uppercase;
}

    .action-btn:hover {
        background: #cccccc;
    }

.btn-icon {
    background: #000000;
    color: #ffffff;
    border-radius: 6px;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 10px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #fff;
    }

/* ==========================================
   ПРОФИЛЬ: АКТИВНОСТЬ / ГАЛЕРЕЯ (визуальный блок)
   ========================================== */
.profile-section {
    position: relative;
    z-index: 5;
    /* Раньше была узкая колонка 1100px посреди экрана — теперь занимает всю ширину,
       как и верхняя часть страницы (карты/модель/описание). */
    width: 100%;
    padding: 50px 60px 100px 60px;
    box-sizing: border-box;
}

/* --- ВЕРХНЯЯ ЛЕНТА: последние действия (что получил/купил пользователь) --- */
.recent-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 26px;
}

.recent-card {
    display: flex;
    align-items: stretch;
    gap: 14px;
    padding: 12px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.25s ease, transform 0.25s ease;
}

    .recent-card:hover {
        border-color: rgba(255, 255, 255, 0.4);
        transform: translateY(-3px);
    }

/* Крупная портретная миниатюра слева, во всю высоту карточки — как в референсе */
.recent-card-thumb {
    width: 92px;
    aspect-ratio: 3 / 4;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .recent-card-thumb img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.recent-card-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    min-width: 0;
}

.recent-card-logo {
    max-width: 100%;
    height: 28px;
    object-fit: contain;
    object-position: left center;
}

.recent-card-rarity {
    font-size: 14px;
    font-weight: 700;
    text-transform: capitalize;
    color: var(--r-color, #ffffff);
    text-shadow: 0 0 8px var(--r-color, transparent);
}

.recent-card-quote {
    font-size: 12px;
    font-style: italic;
    color: var(--text-muted);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recent-card-footer {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

    .recent-card-footer .recent-author {
        color: var(--text-main);
        font-weight: 700;
    }

.recent-card-date {
    font-size: 10px;
    color: #777;
    letter-spacing: 0.3px;
}

.profile-toggle-row {
    display: flex;
    justify-content: center;
    margin-bottom: 26px;
}

.profile-toggle {
    position: relative;
    display: inline-flex;
    gap: 4px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 24px;
    padding: 4px;
}

.ptab-pill {
    position: absolute;
    top: 4px;
    left: 4px;
    height: calc(100% - 8px);
    background: white;
    border-radius: 20px;
    z-index: 0;
    transition: left 0.35s cubic-bezier(0.65, 0, 0.35, 1), width 0.35s cubic-bezier(0.65, 0, 0.35, 1);
}

.ptab {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: transparent;
    border: none;
    outline: none;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 11px;
    font-family: 'Unbounded', sans-serif;
    transition: color 0.35s ease;
    white-space: nowrap;
}

    .ptab i {
        font-size: 12px;
        transition: transform 0.3s ease;
    }

    .ptab.active {
        color: black;
        font-weight: 700;
    }

    .ptab.active i {
        transform: scale(1.1);
    }

.profile-content {
    position: relative;
}

.profile-view {
    display: none;
    animation: profileViewIn 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.profile-view.active {
    display: block;
}

@keyframes profileViewIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Лента активности: две независимые колонки (масонри), как в референсе --- */
.activity-feed {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: start;
    gap: 16px;
}

.feed-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

/* Круглый аватар, переиспользуется во всех типах карточек ленты */
.feed-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

    .feed-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* --- Компактная карточка (например, анонс трансляции) --- */
.feed-stream {
    display: flex;
    gap: 10px;
    padding: 8px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

    .feed-stream:hover {
        border-color: rgba(255, 255, 255, 0.4);
    }

.feed-stream-thumb {
    width: 58px;
    height: 58px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.feed-stream-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
}

.feed-stream-top {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
}

.feed-stream-time {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 12px;
}

.feed-stream-text {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* --- Реплика/комментарий + свёрнутый тред с ответами --- */
.feed-reply {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 2px 4px;
}

/* Ник и текст комментария теперь идут отдельными строками, а не в одной */
.feed-reply-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-grow: 1;
    min-width: 0;
}

.feed-reply-author {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
}

.feed-reply-text {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-muted);
}

.feed-thread-toggle {
    flex-shrink: 0;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 10px;
    padding: 4px;
    transition: transform 0.25s ease, color 0.2s ease;
}

    .feed-thread-toggle:hover {
        color: var(--text-main);
    }

    .feed-thread-toggle.collapsed {
        transform: rotate(-90deg);
    }

/* Вложенные ответы соединены вертикальной линией, как в референс-скриншоте */
.feed-thread-nested {
    margin: 8px 0 0 16px;
    padding-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.25s ease;
}

    .feed-thread-nested.collapsed {
        max-height: 0 !important;
        opacity: 0;
        margin-top: 0;
        gap: 0;
    }

/* --- Репост: шапка + картинка + оригинальный пост со статистикой --- */
.feed-repost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    overflow: hidden;
}

.feed-repost-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: var(--text-muted);
}

    .feed-repost-header b {
        color: var(--text-main);
    }

    .feed-repost-header .fa-retweet {
        color: #3fe06d;
    }

.feed-repost-menu {
    margin-left: auto;
    cursor: pointer;
    color: var(--text-muted);
}

.feed-repost-image {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.feed-repost-original {
    padding: 12px 14px 14px;
}

.feed-post-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.feed-post-top-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.feed-post-author {
    font-size: 14px;
    font-weight: 700;
}

.feed-post-time {
    font-size: 12px;
    color: var(--text-muted);
}

.feed-post-text {
    font-size: 13px;
    line-height: 1.55;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.feed-post-stats {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: var(--text-muted);
}

    .feed-post-stats span {
        display: inline-flex;
        align-items: center;
        gap: 5px;
    }

.feed-post-views {
    margin-left: auto;
    font-weight: 700;
    color: var(--text-main);
}

/* --- Кнопка подгрузки ленты --- */
.feed-more {
    display: flex;
    justify-content: center;
    margin-top: 22px;
}

.feed-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-main);
    padding: 10px 22px;
    border-radius: 20px;
    font-size: 11px;
    font-family: 'Unbounded', sans-serif;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

    .feed-more-btn:hover {
        border-color: rgba(255, 255, 255, 0.4);
    }

@media (max-width: 900px) {
    .activity-feed {
        grid-template-columns: 1fr;
    }
}

/* --- Галерея: masonry в 3 колонки — картинки подстраиваются под свои пропорции,
   а не обрезаются в одинаковый квадрат (как в референсе) --- */
.gallery-grid {
    columns: 3;
    column-gap: 14px;
}

.gallery-item {
    position: relative;
    display: block;
    break-inside: avoid;
    margin-bottom: 14px;
    border-radius: 14px;
    overflow: hidden;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.16);
    cursor: pointer;
}

    .gallery-item img {
        display: block;
        width: 100%;
        height: auto;
        transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    }

    .gallery-item:hover img {
        transform: scale(1.08);
    }

    .gallery-item::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(0deg, rgba(0,0,0,0.55) 0%, transparent 45%);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .gallery-item:hover::after {
        opacity: 1;
    }

.gallery-item-caption {
    position: absolute;
    left: 10px;
    bottom: 8px;
    font-size: 10px;
    color: white;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-item:hover .gallery-item-caption {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 900px) {
    .gallery-grid {
        columns: 2;
    }

    .recent-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .activity-feed {
        grid-template-columns: 1fr;
    }
}
