/* ============================================
   TOPICS FEED — ПРЕМИАЛЬНАЯ ЛЕНТА В СТИЛЕ INSTAGRAM
   Платина • Бриллианты • Холодный люкс
   ============================================ */

/* ----- БАЗОВЫЕ ПЕРЕМЕННЫЕ И СБРОСЫ ----- */
.topics-feed-main {
    padding-top: 1.5rem;
    padding-bottom: 3rem;
}

.feed-page {
    position: relative;
    z-index: 5;
    width: min(1440px, calc(100% - 40px));
    margin: 0 auto;
}

/* ----- ФИКСИРОВАННЫЙ ФОН С ПАНТЕРОЙ ----- */
.panther-fixed-bg {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.topics-fixed-glow {
    position: absolute;
    top: 15%;
    width: 35vw;
    height: 35vw;
    border-radius: 50%;
    background: radial-gradient(circle, 
        rgba(210, 225, 245, 0.06) 0%, 
        rgba(160, 180, 210, 0.03) 35%, 
        transparent 70%
    );
    filter: blur(60px);
    pointer-events: none;
    animation: glowBreathing 12s ease-in-out infinite;
}

.topics-fixed-glow--left {
    left: -10vw;
    animation-delay: 0s;
}

.topics-fixed-glow--right {
    right: -10vw;
    animation-delay: 6s;
}

.panther-fixed-overlay {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 50% 50%, transparent 0%, rgba(0,0,0,0.15) 100%);
    pointer-events: none;
}

@keyframes glowBreathing {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.08); }
}

/* ----- HERO СЕКЦИЯ ----- */
.feed-hero {
    position: relative;
    margin-bottom: 2.5rem;
    padding: 1.5rem 0 0.5rem;
}

.feed-hero__glow {
    position: absolute;
    inset: 0 auto auto 50%;
    transform: translateX(-50%);
    width: min(1000px, 100%);
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(
        circle at 50% 50%, 
        rgba(255, 255, 255, 0.08) 0%, 
        rgba(200, 215, 235, 0.04) 30%, 
        rgba(255, 255, 255, 0.01) 60%, 
        transparent 80%
    );
    filter: blur(50px);
    animation: heroGlowFloat 10s ease-in-out infinite;
}

@keyframes heroGlowFloat {
    0%, 100% { transform: translateX(-50%) translateY(0) scale(1); }
    50% { transform: translateX(-50%) translateY(-10px) scale(1.05); }
}

.feed-hero__inner {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.feed-title {
    margin: 0;
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: clamp(4rem, 9vw, 7.5rem);
    line-height: 0.9;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #f7fbff;
    text-shadow: 
        0 0 20px rgba(255, 255, 255, 0.15),
        0 0 40px rgba(210, 225, 240, 0.1),
        0 4px 8px rgba(0, 0, 0, 0.3);
    background: linear-gradient(180deg, #ffffff 0%, #e8f0f8 50%, #d0dce8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feed-subtitle {
    max-width: 700px;
    margin: 1.2rem auto 0;
    color: rgba(235, 242, 250, 0.85);
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.8;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* ----- ОСНОВНАЯ ОБОЛОЧКА ЛЕНТЫ ----- */
.feed-shell {
    position: relative;
    border-radius: 36px;
    overflow: hidden;
    border: 1px solid rgba(236, 242, 248, 0.12);
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(190, 205, 220, 0.03) 15%,
        rgba(35, 40, 48, 0.15) 40%,
        rgba(8, 10, 14, 0.75) 70%,
        rgba(200, 215, 230, 0.04) 100%
    );
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 30px 70px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(220, 230, 240, 0.05);
    backdrop-filter: blur(20px) saturate(130%);
    -webkit-backdrop-filter: blur(20px) saturate(130%);
}

.feed-shell::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 35px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.06) 0%,
        transparent 25%,
        transparent 75%,
        rgba(255, 255, 255, 0.03) 100%
    );
    pointer-events: none;
}

.feed-shell__inner {
    position: relative;
    z-index: 2;
    padding: 1.8rem;
}

/* ----- ТУЛБАР С ФИЛЬТРАМИ ----- */
.feed-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 2rem;
}

.feed-toolbar__left,
.feed-toolbar__right {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.filter-chip,
.sort-btn {
    min-height: 48px;
    padding: 0 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(228, 235, 242, 0.15);
    background: linear-gradient(
        180deg,
        rgba(45, 52, 60, 0.5) 0%,
        rgba(15, 18, 22, 0.7) 100%
    );
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 10px 25px rgba(0, 0, 0, 0.25);
    color: #f5f9fc;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.23, 1, 0.32, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.filter-chip:hover,
.sort-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(245, 248, 252, 0.3);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 15px 30px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(227, 236, 248, 0.08);
}

.filter-chip.active,
.sort-btn.active {
    border-color: rgba(245, 248, 252, 0.35);
    background: linear-gradient(
        180deg,
        rgba(70, 82, 98, 0.55) 0%,
        rgba(25, 30, 38, 0.65) 100%
    );
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 15px 30px rgba(0, 0, 0, 0.3),
        0 0 25px rgba(220, 230, 245, 0.12);
}

.topics-search {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: min(400px, 100%);
    padding: 0 1.2rem;
    height: 52px;
    border-radius: 18px;
    border: 1px solid rgba(232, 238, 246, 0.14);
    background: linear-gradient(
        180deg,
        rgba(30, 35, 42, 0.5) 0%,
        rgba(10, 12, 16, 0.7) 100%
    );
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 10px 25px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.topics-search svg {
    width: 20px;
    height: 20px;
    fill: rgba(225, 233, 241, 0.7);
    flex-shrink: 0;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.1));
}

.topics-search input {
    width: 100%;
    background: transparent;
    border: 0;
    outline: 0;
    color: #f6fbff;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
}

.topics-search input::placeholder {
    color: rgba(218, 227, 235, 0.5);
    font-weight: 400;
}

/* ----- ЛЕЙАУТ: САЙДБАР + КОНТЕНТ ----- */
.feed-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

/* ----- САЙДБАР ----- */
.glass-card {
    border: 1px solid rgba(236, 242, 248, 0.1);
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(190, 205, 220, 0.02) 20%,
        rgba(25, 30, 38, 0.4) 60%,
        rgba(10, 12, 16, 0.8) 100%
    );
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 20px 40px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.feed-sidebar {
    position: sticky;
    top: 1.5rem;
    border-radius: 30px;
    padding: 1.5rem;
}

.sidebar-block + .sidebar-block {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(236, 242, 248, 0.08);
}

.sidebar-kicker {
    margin-bottom: 0.9rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(221, 230, 239, 0.7);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.viewer-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(232, 238, 246, 0.15);
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.02) 100%
    );
    color: #f4f8fc;
    font: 700 0.8rem/1 'Montserrat', sans-serif;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.sidebar-value {
    margin-top: 0.9rem;
    color: #f6fbff;
    font: 700 1.2rem/1.5 'Montserrat', sans-serif;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.sidebar-note {
    margin: 0.9rem 0 0;
    color: rgba(220, 228, 236, 0.75);
    line-height: 1.8;
    font-size: 0.92rem;
    font-weight: 500;
}

.sidebar-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.sidebar-stat {
    padding: 1rem 0.5rem;
    border-radius: 18px;
    border: 1px solid rgba(235, 241, 247, 0.1);
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.04) 0%,
        rgba(255, 255, 255, 0.01) 100%
    );
    text-align: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    transition: transform 0.2s ease;
}

.sidebar-stat:hover {
    transform: translateY(-2px);
    border-color: rgba(235, 241, 247, 0.18);
}

.sidebar-stat span {
    display: block;
    color: #f8fbff;
    font: 700 1.4rem/1 'Bebas Neue', sans-serif;
    letter-spacing: 0.08em;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
}

.sidebar-stat small {
    display: block;
    margin-top: 0.4rem;
    color: rgba(220, 228, 236, 0.7);
    font: 600 0.7rem/1.3 'Montserrat', sans-serif;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.sort-switcher {
    display: grid;
    gap: 0.65rem;
}

/* ----- СЕТКА КАРТОЧЕК (INSTAGRAM STYLE) ----- */
.topics-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.topic-post {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    padding: 0;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.topic-post:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(220, 230, 245, 0.08);
    border-color: rgba(245, 248, 252, 0.2);
}

/* Обложка поста */
.topic-post__cover {
    position: relative;
    min-height: 260px;
    padding: 1.2rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    background: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.12) 0%, transparent 30%),
        radial-gradient(circle at 85% 15%, rgba(210, 222, 239, 0.12) 0%, transparent 25%),
        linear-gradient(
            145deg,
            rgba(215, 226, 240, 0.15) 0%,
            rgba(45, 52, 60, 0.2) 40%,
            rgba(8, 10, 14, 0.85) 100%
        );
    border-bottom: 1px solid rgba(236, 242, 248, 0.08);
}

.topic-post__cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(8, 10, 14, 0.15) 50%,
        rgba(8, 10, 14, 0.7) 100%
    );
    pointer-events: none;
}

.topic-post__shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        115deg,
        transparent 10%,
        rgba(255, 255, 255, 0.06) 35%,
        transparent 55%
    );
    transform: translateX(-100%);
    animation: postShine 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes postShine {
    0%, 100% { transform: translateX(-120%); }
    40%, 60% { transform: translateX(130%); }
}

.topic-post__city,
.topic-post__badges {
    position: relative;
    z-index: 2;
}

.topic-post__city {
    align-self: flex-end;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    letter-spacing: 0.12em;
    color: rgba(247, 251, 255, 0.9);
    text-shadow: 
        0 0 20px rgba(255, 255, 255, 0.15),
        0 4px 8px rgba(0, 0, 0, 0.4);
    line-height: 1;
}

.topic-post__badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
    max-width: 65%;
}

/* Бейджи */
.topic-post__badges .badge,
.topic-post__chips .badge,
.detail-tags .badge {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(233, 239, 245, 0.15);
    background: rgba(7, 9, 12, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #f5f9fc;
    font: 700 0.74rem/1 'Montserrat', sans-serif;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Заголовок и контент */
.topic-post__header,
.topic-post__content,
.topic-post__stats,
.topic-post__actions {
    padding-left: 1.3rem;
    padding-right: 1.3rem;
}

.topic-post__header {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding-top: 1.2rem;
}

.topic-post__avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 1.5px solid rgba(236, 242, 248, 0.18);
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.18) 0%,
        rgba(90, 103, 122, 0.15) 45%,
        rgba(13, 16, 20, 0.8) 100%
    );
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 10px 25px rgba(0, 0, 0, 0.3);
    display: grid;
    place-items: center;
    color: #f8fbff;
    font: 700 1rem/1 'Montserrat', sans-serif;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.topic-post__author {
    color: #f7fbff;
    font: 700 0.98rem/1.3 'Montserrat', sans-serif;
    letter-spacing: 0.02em;
}

.topic-post__meta {
    margin-top: 0.25rem;
    color: rgba(221, 230, 239, 0.65);
    font: 500 0.75rem/1.5 'Montserrat', sans-serif;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.topic-post__content {
    padding-top: 1rem;
}

.topic-post__title {
    margin: 0;
    color: #f6fbff;
    font: 700 1.2rem/1.5 'Montserrat', sans-serif;
    letter-spacing: -0.01em;
}

.topic-post__excerpt {
    margin: 0.8rem 0 0;
    color: rgba(225, 233, 241, 0.8);
    font: 500 0.96rem/1.85 'Montserrat', sans-serif;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.topic-post__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
}

/* Статистика */
/* ----- СТАТИСТИКА В САЙДБАРЕ (ОДИН ЭЛЕМЕНТ) ----- */
.sidebar-stats {
    display: flex;
    justify-content: center;
}

/* Когда один элемент — делаем его на всю ширину */
.sidebar-stat {
    flex: 1;
    padding: 1.2rem 0.5rem;
    border-radius: 18px;
    border: 1px solid rgba(235, 241, 247, 0.1);
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.01) 100%
    );
    text-align: center;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 10px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease;
}

.sidebar-stat:hover {
    transform: translateY(-2px);
    border-color: rgba(235, 241, 247, 0.2);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 15px 30px rgba(0, 0, 0, 0.2),
        0 0 20px rgba(220, 230, 245, 0.06);
}

.sidebar-stat span {
    display: block;
    color: #f8fbff;
    font: 700 2rem/1 'Bebas Neue', sans-serif;
    letter-spacing: 0.08em;
    text-shadow: 
        0 0 20px rgba(255, 255, 255, 0.2),
        0 2px 4px rgba(0, 0, 0, 0.2);
    margin-bottom: 0.3rem;
}

.sidebar-stat small {
    display: block;
    color: rgba(220, 228, 236, 0.75);
    font: 600 0.75rem/1.3 'Montserrat', sans-serif;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

/* Убираем старые grid-стили для множественных элементов */
.sidebar-stats {
    display: flex;
    gap: 0.75rem;
}

/* Если нужно несколько элементов — возвращаем grid */
.sidebar-stats:has(.sidebar-stat:nth-child(2)) {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.sidebar-stats:has(.sidebar-stat:nth-child(3)) {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

/* Кнопки действий */
.topic-post__actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    gap: 0.75rem;
    padding-top: 1.3rem;
    padding-bottom: 1.3rem;
}

.post-action {
    min-height: 50px;
    border-radius: 16px;
    border: 1px solid rgba(233, 239, 245, 0.14);
    background: linear-gradient(
        180deg,
        rgba(45, 52, 60, 0.5) 0%,
        rgba(12, 15, 18, 0.75) 100%
    );
    color: #f5f9fc;
    font: 700 0.8rem/1 'Montserrat', sans-serif;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.23, 1, 0.32, 1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.post-action:hover {
    transform: translateY(-2px);
    border-color: rgba(245, 248, 252, 0.25);
    box-shadow: 
        0 12px 25px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(225, 234, 245, 0.08);
}

.post-action.is-active {
    border-color: rgba(255, 220, 120, 0.4);
    color: #fff6db;
    box-shadow: 
        0 0 20px rgba(255, 217, 102, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    background: linear-gradient(
        180deg,
        rgba(80, 75, 60, 0.5) 0%,
        rgba(25, 22, 18, 0.75) 100%
    );
}

/* Пустое состояние */
.topics-empty {
    padding: 3rem;
    border-radius: 28px;
    border: 1px dashed rgba(233, 239, 245, 0.18);
    text-align: center;
    color: rgba(225, 233, 241, 0.8);
    font: 600 1rem/1.8 'Montserrat', sans-serif;
    background: rgba(255, 255, 255, 0.02);
}

.hidden {
    display: none !important;
}

/* ----- МОДАЛЬНОЕ ОКНО ДЕТАЛЬНОГО ПРОСМОТРА ----- */
.topic-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.topic-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.topic-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 4, 7, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.topic-modal__dialog {
    position: relative;
    z-index: 2;
    width: min(1280px, 100%);
    max-height: calc(100vh - 48px);
    overflow: auto;
    border-radius: 38px;
    border: 1px solid rgba(236, 242, 248, 0.14);
    background: linear-gradient(
        160deg,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(45, 52, 60, 0.2) 40%,
        rgba(8, 10, 14, 0.95) 100%
    );
    box-shadow: 
        0 40px 100px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.topic-modal__close {
    position: sticky;
    top: 20px;
    margin-left: auto;
    margin-right: 20px;
    display: block;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid rgba(236, 242, 248, 0.16);
    background: rgba(8, 10, 14, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
    z-index: 5;
    transition: all 0.25s ease;
}

.topic-modal__close:hover {
    transform: rotate(90deg);
    border-color: rgba(245, 248, 252, 0.3);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.topic-modal__close span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 22px;
    height: 2px;
    background: #f6fbff;
    border-radius: 2px;
}

.topic-modal__close span:first-child {
    transform: translate(-50%, -50%) rotate(45deg);
}

.topic-modal__close span:last-child {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.topic-modal__body {
    padding: 0.5rem 1.5rem 1.8rem;
}

/* Детальный просмотр темы */
.topic-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(340px, 1fr);
    gap: 1.5rem;
}

.topic-detail__main,
.topic-detail__side {
    border-radius: 30px;
    padding: 1.5rem;
}

.topic-detail__main {
    background: rgba(255, 255, 255, 0.02);
}

.topic-detail__side {
    background: rgba(255, 255, 255, 0.015);
}

/* Обложка в деталях */
.detail-cover {
    position: relative;
    min-height: 300px;
    border-radius: 28px;
    padding: 1.5rem;
    overflow: hidden;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.14) 0%, transparent 30%),
        radial-gradient(circle at 80% 15%, rgba(211, 223, 240, 0.14) 0%, transparent 25%),
        linear-gradient(
            145deg,
            rgba(224, 232, 243, 0.15) 0%,
            rgba(55, 64, 75, 0.2) 40%,
            rgba(8, 10, 14, 0.9) 100%
        );
}

.detail-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(8, 10, 14, 0.05) 0%,
        rgba(8, 10, 14, 0.2) 40%,
        rgba(8, 10, 14, 0.85) 100%
    );
}

.detail-cover__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.detail-title {
    margin: 0;
    color: #f7fbff;
    font: 700 clamp(1.8rem, 4vw, 2.5rem)/1.2 'Montserrat', sans-serif;
    letter-spacing: -0.01em;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.detail-subtitle {
    margin: 0.8rem 0 0;
    max-width: 800px;
    color: rgba(231, 239, 247, 0.8);
    font: 500 1rem/1.9 'Montserrat', sans-serif;
}

/* Автор в деталях */
.detail-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem;
    border-radius: 24px;
    border: 1px solid rgba(233, 239, 245, 0.1);
    background: rgba(255, 255, 255, 0.03);
    margin-top: 1.5rem;
}

.detail-author__avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1.5px solid rgba(236, 242, 248, 0.18);
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.18) 0%,
        rgba(90, 103, 122, 0.15) 45%,
        rgba(13, 16, 20, 0.8) 100%
    );
    display: grid;
    place-items: center;
    color: #f8fbff;
    font: 700 1.1rem/1 'Montserrat', sans-serif;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.detail-author__meta h3 {
    margin: 0;
    color: #f7fbff;
    font: 700 1.05rem/1.4 'Montserrat', sans-serif;
}

.detail-author__meta p {
    margin: 0.25rem 0 0;
    color: rgba(223, 232, 240, 0.7);
    font: 500 0.85rem/1.6 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.detail-copy {
    margin-top: 1.5rem;
    color: rgba(227, 235, 243, 0.85);
    font: 500 1rem/1.9 'Montserrat', sans-serif;
}

/* Информационная сетка */
.detail-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.info-card {
    border-radius: 22px;
    border: 1px solid rgba(233, 239, 245, 0.1);
    background: rgba(255, 255, 255, 0.03);
    padding: 1.2rem;
}

.info-card__label {
    color: rgba(221, 229, 238, 0.6);
    font: 700 0.75rem/1.2 'Montserrat', sans-serif;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.info-card__value {
    margin-top: 0.6rem;
    color: #f8fbff;
    font: 700 1.05rem/1.5 'Montserrat', sans-serif;
}

/* Заголовки секций */
.detail-section-title {
    margin: 0 0 1rem;
    color: #f7fbff;
    font: 700 1.05rem/1.4 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

/* Сетка моделей */
.detail-models-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.model-mini-card {
    border-radius: 22px;
    border: 1px solid rgba(233, 239, 245, 0.1);
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    transition: all 0.2s ease;
}

.model-mini-card:hover {
    transform: translateY(-2px);
    border-color: rgba(245, 248, 252, 0.2);
}

.model-mini-card__head {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.model-mini-card__avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.16) 0%,
        rgba(61, 70, 84, 0.14) 40%,
        rgba(13, 16, 20, 0.8) 100%
    );
    border: 1px solid rgba(233, 239, 245, 0.14);
    color: #f8fbff;
    font: 700 0.95rem/1 'Montserrat', sans-serif;
}

.model-mini-card__name {
    color: #f7fbff;
    font: 700 0.98rem/1.4 'Montserrat', sans-serif;
}

.model-mini-card__sub {
    margin-top: 0.2rem;
    color: rgba(223, 232, 240, 0.65);
    font: 500 0.78rem/1.5 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Кнопки действий в деталях */
.detail-action-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
    margin-top: 1.5rem;
}

.btn-detail {
    min-height: 54px;
    border-radius: 18px;
    border: 1px solid rgba(233, 239, 245, 0.15);
    background: linear-gradient(
        180deg,
        rgba(45, 52, 60, 0.5) 0%,
        rgba(12, 15, 18, 0.75) 100%
    );
    color: #f7fbff;
    font: 700 0.86rem/1 'Montserrat', sans-serif;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.25s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.btn-detail:hover {
    transform: translateY(-2px);
    border-color: rgba(245, 248, 252, 0.25);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

/* Комментарии */
.detail-comments {
    margin-top: 1.5rem;
}

.detail-comments-list {
    display: grid;
    gap: 0.9rem;
    margin-bottom: 1.2rem;
}

.comment-card {
    border-radius: 22px;
    border: 1px solid rgba(233, 239, 245, 0.1);
    background: rgba(255, 255, 255, 0.03);
    padding: 1.2rem;
}

.comment-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    margin-bottom: 0.7rem;
}

.comment-card__author {
    color: #f7fbff;
    font: 700 0.95rem/1.4 'Montserrat', sans-serif;
}

.comment-card__meta {
    color: rgba(223, 232, 240, 0.6);
    font: 500 0.72rem/1.5 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.comment-card__text {
    color: rgba(227, 235, 243, 0.85);
    font: 500 0.95rem/1.85 'Montserrat', sans-serif;
}

.comment-form {
    display: grid;
    gap: 0.9rem;
}

.comment-form textarea {
    min-height: 120px;
    resize: vertical;
    border-radius: 18px;
    border: 1px solid rgba(233, 239, 245, 0.14);
    background: rgba(7, 9, 12, 0.6);
    padding: 1.2rem;
    outline: none;
    color: #f7fbff;
    font: 500 0.95rem/1.8 'Montserrat', sans-serif;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.comment-form textarea::placeholder {
    color: rgba(220, 228, 236, 0.5);
}

.comment-form textarea:focus {
    border-color: rgba(245, 248, 252, 0.25);
}

/* Сайд-карточки в деталях */
.detail-side-card {
    margin-top: 1.5rem;
    padding: 1.2rem;
}

.detail-side-card p {
    margin: 0;
}

/* Скроллбар в модалке */
.topic-modal__dialog::-webkit-scrollbar {
    width: 8px;
}

.topic-modal__dialog::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 999px;
}

.topic-modal__dialog::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
}

.topic-modal__dialog::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.18);
}

/* ----- СЕКЦИЯ CAPTION (общая) ----- */
.section-caption {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.section-caption--center {
    justify-content: center;
    margin-bottom: 1rem;
}

.section-caption-diamond-img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.2));
}

.section-caption-text {
    color: rgba(235, 242, 250, 0.7);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

/* ----- АДАПТИВНОСТЬ ДЛЯ СРЕДНИХ ЭКРАНОВ ----- */
@media (max-width: 1100px) {
    .feed-layout {
        grid-template-columns: 280px minmax(0, 1fr);
    }
    
    .topics-grid {
        grid-template-columns: 1fr;
    }
}