/* 📋 SUMMARY TABLE STYLES */

/* User section (top level grouping) */
.user-section {
    margin-bottom: 50px;
    background: rgba(33, 150, 243, 0.05);
    border: 2px solid rgba(33, 150, 243, 0.3);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(33, 150, 243, 0.1);
    height: 100%;
    /* Ensure cards stretch to match height in grid */
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Горизонтальный скролл для профилей */
.users-horizontal-scroll {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-top: 20px;
    overflow-x: auto;
    overflow-y: visible;
    padding-bottom: 15px;
    -webkit-overflow-scrolling: touch; /* Плавный скролл на iOS */
}

/* Профили в горизонтальном режиме */
.users-horizontal-scroll .user-section {
    flex: 0 0 auto; /* Не растягиваются, не сжимаются */
    min-width: 420px; /* Минимальная ширина для читаемости */
    width: 420px; /* Базовая ширина */
    max-height: 80vh; /* Ограничение высоты для работы sticky */
    overflow-y: auto; /* Вертикальный скролл внутри профиля */
    overscroll-behavior: contain; /* Не передавать скролл на страницу */
}

/* Скроллбар */
.users-horizontal-scroll::-webkit-scrollbar {
    height: 10px;
}

.users-horizontal-scroll::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.users-horizontal-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 87, 34, 0.6);
    border-radius: 10px;
    border: 2px solid rgba(0, 0, 0, 0.2);
}

.users-horizontal-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 87, 34, 0.8);
}

/* Вертикальный скроллбар внутри профиля */
.users-horizontal-scroll .user-section::-webkit-scrollbar {
    width: 8px;
}

.users-horizontal-scroll .user-section::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.users-horizontal-scroll .user-section::-webkit-scrollbar-thumb {
    background: rgba(33, 150, 243, 0.5);
    border-radius: 8px;
}

.users-horizontal-scroll .user-section::-webkit-scrollbar-thumb:hover {
    background: rgba(33, 150, 243, 0.7);
}

/* Адаптивность для планшетов */
@media (max-width: 1024px) {
    .users-horizontal-scroll .user-section {
        min-width: 380px;
        width: 380px;
    }
}

/* В горизонтальном скролле sticky работает только внутри каждого профиля при вертикальном скролле */

/* Адаптивность для мобильных - возвращаемся к вертикальной раскладке */
@media (max-width: 768px) {
    .users-horizontal-scroll {
        flex-direction: column; /* Вертикально на мобильных */
        overflow-x: visible;
    }

    .users-horizontal-scroll .user-section {
        width: 100%; /* Полная ширина на мобильных */
        min-width: 0;
        max-height: none; /* Убираем ограничение высоты */
        overflow-y: visible; /* Скроллится вся страница */
    }
}

.user-section-header {
    position: sticky;
    top: 0;
    z-index: 10;
    /* Понижен для предотвращения перекрытия */
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    margin-bottom: 1.25rem;
    /* Адаптивный отступ вместо 20px */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.625rem 1rem;
    /* Компактный padding в rem */
    box-sizing: border-box;
    border: 2px solid rgba(255, 255, 255, 0.2);
    gap: 0.75rem;
    /* Адаптивный gap */
    flex-wrap: wrap;
    /* Перенос на новую строку если не влезает */
}

/* Адаптивность: увеличиваем padding на больших экранах */
@media (min-width: 768px) {
    .user-section-header {
        padding: 0.75rem 1.25rem;
        gap: 0.875rem;
    }
}

@media (min-width: 1024px) {
    .user-section-header {
        padding: 0.875rem 1.375rem;
        gap: 1rem;
    }
}

.user-section-name {
    color: #ffffff;
    font-weight: 800;
    font-size: clamp(14px, 1.6vw, 16px);
    /* Уменьшен шрифт чтобы влезало в одну строку */
    letter-spacing: 0.3px;
    /* Немного уменьшен для компактности */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    flex: 1 1 auto;
    /* Может растягиваться и сжиматься */
    min-width: 0;
    /* Позволяет сжатие ниже контента */
    word-break: break-word;
    /* Перенос длинных слов */
}

.user-section-count {
    color: #ffffff;
    font-size: clamp(12px, 1.4vw, 14px);
    font-weight: 600;
    background: rgba(0, 0, 0, 0.3);
    padding: 6px 12px;
    border-radius: 12px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
    /* Не сжимается */
    white-space: nowrap;
    /* Не переносит текст внутри */
}

/* Date grouping */
.date-group {
    margin-bottom: 30px;
    background: transparent;
    border-radius: 15px;
    /* Remove internal horizontal padding so the header matches column width */
    padding: 0 0 20px 0;
    border: none;
    /* Fix: Ensure container respects boundaries */
    max-width: 100%;
    box-sizing: border-box;
    overflow: visible;
}

/* Отступ для первой даты от header пользователя */
.date-group:first-child {
    margin-top: 0;
    /* Убран лишний отступ, т.к. у user-section-header теперь есть margin-bottom */
}

.date-header {
    position: -webkit-sticky;
    position: sticky;
    /* Крепится к нижней границе синего блока */
    top: 3.5rem;
    /* Базовая высота синего блока */
    z-index: 9;
    background: linear-gradient(135deg, #1e1e1e 0%, #0f0f0f 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border-radius: 15px 15px 0 0;
    margin: 0 0 1.25rem 0;

    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    border-bottom: 2px solid rgba(255, 87, 34, 0.3);
    box-sizing: border-box;
}

/* Адаптация top в зависимости от размера экрана и синего блока */
@media (min-width: 768px) {
    .date-header {
        top: 3.75rem;
        /* Увеличенный синий блок */
    }
}

@media (min-width: 1024px) {
    .date-header {
        top: 4rem;
        /* Еще больше для десктопа */
    }
}

.date-title {
    color: #ff5722;
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
    /* Natural width based on content */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    flex: 0 0 auto;
}

.date-title .day-week {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    font-weight: 700;
    color: #ff8a50;
    text-transform: capitalize;
    line-height: 1.4;
    white-space: nowrap;
}

.date-title .full-date {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    font-weight: 500;
    color: #ffab91;
    opacity: 0.9;
    line-height: 1.4;
    white-space: nowrap;
}

.date-count {
    background: rgba(255, 87, 34, 0.2);
    color: #ff8a65;
    padding: clamp(6px, 1vw, 8px) clamp(10px, 1.8vw, 16px);
    border-radius: 20px;
    font-size: clamp(0.7rem, 1.3vw, 0.9rem);
    font-weight: 600;
    /* Natural width based on content, but allows shrinking */
    white-space: nowrap;
    flex: 0 1 auto;
    min-width: 0;
    letter-spacing: 0.02em;
}

.date-posts {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    /* Адаптивный gap */
    padding: 1rem;
    /* Адаптивный padding */
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0 0 15px 15px;
    border-top: none;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow: visible;
}

/* User grouping within date */
.user-group {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 87, 34, 0.2);
    border-radius: 12px;
    padding: 12px;
    transition: all 0.3s ease;
}

.user-group:hover {
    border-color: rgba(255, 87, 34, 0.4);
    box-shadow: 0 2px 10px rgba(255, 87, 34, 0.1);
}

.user-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.625rem 1rem;
    /* Адаптивный padding */
    /* Полностью непрозрачный градиент для читаемости */
    background: linear-gradient(135deg, #ff5722 0%, #f4511e 100%);
    border-radius: 8px;
    margin-bottom: 0.9375rem;
    /* Адаптивный отступ */
    border-left: 3px solid #ff8a65;
    gap: 0.75rem;
    /* Адаптивный gap */
    flex-wrap: wrap;
    /* Sticky positioning - крепится к нижней границе даты */
    position: sticky;
    top: 8rem;
    /* Синий блок + дата */
    z-index: 8;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
}

/* Адаптация top в зависимости от размера экрана */
@media (min-width: 768px) {
    .user-group-header {
        top: 8.5rem;
        /* Увеличенные блоки выше */
    }
}

@media (min-width: 1024px) {
    .user-group-header {
        top: 9rem;
        /* Еще больше для десктопа */
    }
}

.user-group-name {
    color: #ffffff;
    /* Белый текст для контраста на оранжевом фоне */
    font-weight: 700;
    font-size: clamp(14px, 1.5vw, 16px);
    letter-spacing: 0.3px;
    line-height: 1.5;
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    word-break: break-word;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    /* Тень для читаемости */
}

.user-group-count {
    color: #ffffff;
    /* Белый текст для контраста */
    font-size: clamp(11px, 1.2vw, 13px);
    font-weight: 600;
    background: rgba(0, 0, 0, 0.3);
    /* Темный полупрозрачный фон */
    padding: 4px 10px;
    border-radius: 12px;
    line-height: 1.5;
    display: flex;
    align-items: center;
    white-space: nowrap;
    flex: 0 0 auto;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.user-posts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    /* 4 колонки для постов */
    gap: 0.75rem;
    /* Адаптивный gap */
    padding: 0;
    /* Убран лишний padding */
    box-sizing: border-box;
}

/* Mode switcher */
.mode-switcher {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 10px;
}

.mode-options {
    display: flex;
    gap: 10px;
}

.mode-option {
    position: relative;
}

.mode-option input[type="radio"] {
    display: none;
}

.mode-option label {
    display: block;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.mode-option input[type="radio"]:checked+label {
    background: #ff5722;
    border-color: #ff5722;
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.4);
}

/* Summary table specific controls */
.summary-table-controls {
    display: none;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
}

.user-management {
    margin-bottom: 20px;
}

.input-label {
    display: block;
    color: #fff;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
}

.add-user-form {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.add-btn {
    background: #ff5722;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 12px 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 120px;
}

.add-btn:hover {
    background: #e64a19;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 87, 34, 0.4);
}

/* Tracked users display */
.tracked-users {
    min-height: 50px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 15px;
    margin-top: 10px;
}

.tracked-user {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 87, 34, 0.2);
    border: 1px solid #ff5722;
    border-radius: 20px;
    padding: 8px 15px;
    margin: 5px;
    color: #fff;
    font-size: 14px;
}

.username {
    margin-right: 8px;
}

.remove-user-btn {
    background: none;
    border: none;
    color: #ff5722;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    padding: 0;
    margin-left: 8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.remove-user-btn:hover {
    background: #ff5722;
    color: white;
    transform: scale(1.2);
}

.no-users {
    color: #888;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

.clear-all-btn {
    margin-top: 10px;
    width: 100%;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 10px 16px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.clear-all-btn:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.4);
}

.clear-all-btn:active {
    transform: translateY(0);
}

/* Date range controls */
.date-range-controls {
    margin-top: 20px;
}

.date-range-inputs {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.date-input {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 12px 15px;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.date-input:focus {
    border-color: #ff5722;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.1);
}

.date-separator {
    color: #fff;
    font-weight: 500;
}

/* Summary table results */
.summary-table-container {
    /* Use a CSS var for padding so sticky headers can offset it precisely */
    --container-padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: var(--container-padding);
    margin-top: 20px;
    /* Let the whole page handle vertical scroll to hide the menu */
    max-height: none;
    overflow-y: visible;
    overflow-x: visible; /* Разрешаем горизонтальный скролл внутри */
}

.summary-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(255, 87, 34, 0.3);
    padding-bottom: 15px;
}

.summary-table-header h2 {
    color: #fff;
    margin: 0;
    font-size: 24px;
}

.export-controls {
    display: flex;
    gap: 10px;
}

.export-btn {
    background: #ff5722;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.export-btn:hover {
    background: #e64a19;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 87, 34, 0.4);
}

/* Summary stats */
.summary-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    justify-content: center;
}

.stat-card {
    background: rgba(255, 87, 34, 0.1);
    border: 2px solid rgba(255, 87, 34, 0.3);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    min-width: 120px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 87, 34, 0.2);
}

.stat-value {
    font-size: 32px;
    font-weight: bold;
    color: #ff5722;
    display: block;
    margin-bottom: 8px;
}

.stat-label {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Posts grid */
.posts-grid {
    display: grid;
    /* Adaptive column width that grows/shrinks with viewport, but stays within sensible bounds */
    --col-min: 260px;
    /* allow shrink on narrower widths to avoid clipping */
    --col-ideal: 28vw;
    /* scales both when window grows and when it shrinks */
    --col-max: 420px;
    --col-width: clamp(var(--col-min), var(--col-ideal), var(--col-max));
    gap: 16px;
    margin-top: 20px;
    grid-template-columns: repeat(auto-fit, minmax(var(--col-width), var(--col-width)));
    justify-content: center;
}

.post-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    /* Fix: Comprehensive overflow prevention */
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    /* Fix: Prevent card from growing beyond container */
    min-width: 0;
}

.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--status-color, #ff5722);
    /* Fix: Round the top corners of the status bar */
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 87, 34, 0.5);
}

/* Status colors */
.status-active {
    --status-color: #4caf50; /* Зеленый для постов в сабреддиты */
}

/* Желтый для постов в профиль (u/) */
.status-active.profile-post {
    --status-color: #ffc107;
}

.status-active.profile-post .post-score {
    color: #ffc107; /* Желтый score для постов в профиль */
}

.status-removed {
    --status-color: #f44336;
}

.status-deleted {
    --status-color: #ff9800;
}

.status-unknown {
    --status-color: #9e9e9e;
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 12px;
}

.post-user {
    color: #ff5722;
    font-weight: 600;
}

.post-date {
    color: #aaa;
}

.post-title {
    color: #fff;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    /* Fix: Better text handling for long titles */
    word-break: break-word;
    hyphens: auto;
    overflow-wrap: break-word;
    /* Fix: Better readability */
    font-size: 16px;
    min-height: auto;
}

.post-subreddit {
    color: #ff5722;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
    /* Fix: Prevent subreddit names from overflowing */
    word-break: break-word;
    overflow-wrap: break-word;
    /* Fix: Better display */
    display: block;
    overflow: visible;
}

.post-moderators {
    color: #aaa;
    font-size: 12px;
    margin-bottom: 10px;
    word-break: break-word;
    overflow-wrap: break-word;
}

.moderators-label {
    color: #888;
    font-weight: 500;
}

.post-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 8px;
    font-size: 14px;
    /* Fix: Prevent stats from overflowing */
    flex-wrap: wrap;
    min-width: 0;
}

.post-score {
    color: #4caf50; /* Зеленый для score по умолчанию */
    font-weight: 500;
}

.post-comments {
    color: #2196f3;
    font-weight: 500;
}

.post-status {
    font-size: 12px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.2);
    display: inline-block;
    color: var(--status-color, #ff5722);
    cursor: pointer;
    transition: all 0.2s ease;
}

.post-status:hover {
    background: rgba(255, 87, 34, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 87, 34, 0.4);
}

/* Loading styles */
.loading-overlay {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    margin-top: 20px;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 87, 34, 0.2);
    border-top: 4px solid #ff5722;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-text {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin: 15px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff5722, #ff8a50);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.progress-text {
    color: #ff5722;
    font-weight: 600;
    margin-top: 10px;
}

/* Responsive design */
@media (max-width: 1024px) {
    .date-header {
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .mode-options {
        flex-direction: column;
        gap: 5px;
    }

    .mode-option label {
        text-align: center;
        padding: 10px 15px;
    }

    .summary-table-header {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .export-controls {
        justify-content: center;
    }

    .summary-stats {
        flex-direction: column;
        align-items: center;
    }

    .stat-card {
        min-width: 200px;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .add-user-form {
        flex-direction: column;
    }

    .date-range-inputs {
        flex-direction: column;
        gap: 10px;
    }

    .date-separator {
        display: none;
    }

    /* Fix: Stack vertically on mobile */
    .date-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 15px;
    }

    .date-count {
        width: 100%;
        text-align: center;
    }
}

/* Hide date-count when it starts to crowd the layout */
@media (max-width: 900px) {
    .date-count {
        display: none;
    }
}

/* Alternative: fade out gradually */
@media (max-width: 1200px) and (min-width: 901px) {
    .date-count {
        opacity: 0.7;
    }
}

/* Subreddit input section */
.subreddit-input-section {
    margin: 20px 0;
}

.subreddit-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 12px 15px;
    color: #fff;
    font-size: 14px;
    resize: vertical;
    min-height: 80px;
    transition: all 0.3s ease;
}

.subreddit-input:focus {
    border-color: #ff5722;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.1);
}

.subreddit-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Subreddit analysis mode */
.subreddit-analysis {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
}

.subreddit-analysis h2 {
    color: #fff;
    margin-bottom: 25px;
    text-align: center;
    font-size: 24px;
}

.analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.subreddit-card {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 87, 34, 0.3);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    text-align: center;
}

.subreddit-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 87, 34, 0.2);
    border-color: #ff5722;
}

.subreddit-card h3 {
    color: #ff5722;
    margin-bottom: 20px;
    font-size: 20px;
}

.subreddit-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.subreddit-stats .stat {
    text-align: center;
}

.subreddit-stats .stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #ff5722;
    display: block;
}

.subreddit-stats .stat-label {
    color: #fff;
    font-size: 12px;
    margin-top: 5px;
}

.best-time {
    color: #fff;
    font-size: 14px;
    padding: 10px;
    background: rgba(255, 87, 34, 0.2);
    border-radius: 8px;
}

/* Loading styles */
.loading {
    text-align: center;
    padding: 60px 20px;
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    margin-top: 20px;
}

.loading::before {
    content: '⏳';
    font-size: 48px;
    display: block;
    margin-bottom: 15px;
    animation: spin 2s linear infinite;
}

.error {
    text-align: center;
    padding: 40px 20px;
    color: #f44336;
    background: rgba(244, 67, 54, 0.1);
    border: 2px solid rgba(244, 67, 54, 0.3);
    border-radius: 15px;
    margin-top: 20px;
    font-size: 16px;
}

/* Alert styles */
.alert {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive for analysis mode */
@media (max-width: 768px) {
    .analysis-grid {
        grid-template-columns: 1fr;
    }

    .subreddit-stats {
        flex-direction: column;
        gap: 15px;
    }
}

/* 🔒 SECURITY_SENTINEL: High Priority Removed Content Styling */
.post-card.high-priority {
    border: 2px solid #f44336 !important;
    box-shadow: 0 0 20px rgba(244, 67, 54, 0.3);
    background: rgba(244, 67, 54, 0.1) !important;
    animation: pulse-red 2s ease-in-out infinite;
}

.post-card.high-priority:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(244, 67, 54, 0.5);
}

@keyframes pulse-red {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(244, 67, 54, 0.3);
    }

    50% {
        box-shadow: 0 0 30px rgba(244, 67, 54, 0.6);
    }
}

/* Out of range content styling */
.post-card.out-of-range {
    opacity: 0.8;
    border-style: dashed;
    position: relative;
}

.post-card.out-of-range::after {
    content: '📅';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 16px;
    opacity: 0.7;
}

.out-of-range-badge {
    background: #ff9800;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 8px;
    display: inline-block;
}

.botbouncer-badge {
    background: #2196f3;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 8px;
    display: inline-block;
}

/* BotBouncer post highlighting */
.post-card.has-botbouncer {
    border-color: rgba(33, 150, 243, 0.5);
    background: rgba(33, 150, 243, 0.08);
}

.post-card.has-botbouncer:hover {
    border-color: rgba(33, 150, 243, 0.8);
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.3);
}

/* Forbidden subreddit badge */
.forbidden-badge {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    margin-left: 8px;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.5);
    animation: pulse-red 2s ease-in-out infinite;
}

@keyframes pulse-red {

    0%,
    100% {
        box-shadow: 0 2px 8px rgba(239, 68, 68, 0.5);
    }

    50% {
        box-shadow: 0 2px 16px rgba(239, 68, 68, 0.8);
    }
}

/* Forbidden subreddit post highlighting */
.post-card.forbidden-subreddit {
    border: 2px solid #ef4444 !important;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(220, 38, 38, 0.1) 100%) !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3) !important;
}

.post-card.forbidden-subreddit:hover {
    border-color: #dc2626 !important;
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.5) !important;
    transform: translateY(-2px);
}

/* Forbidden subreddit name styling */
.forbidden-subreddit-name {
    color: #ef4444 !important;
    font-weight: 700 !important;
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
    animation: text-glow 2s ease-in-out infinite;
}

@keyframes text-glow {

    0%,
    100% {
        text-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
    }

    50% {
        text-shadow: 0 0 20px rgba(239, 68, 68, 0.8), 0 0 30px rgba(239, 68, 68, 0.6);
    }
}

/* Enhanced removed status styling */
.post-status.removed-status {
    background: rgba(244, 67, 54, 0.8) !important;
    color: white !important;
    font-weight: bold;
    animation: blink 1s ease-in-out infinite alternate;
}

/* 👤 МОД - Модераторы (красный с миганием) */
.post-status.removed-status.moderator-action {
    background: rgba(244, 67, 54, 0.9) !important;
    animation: blink 1s ease-in-out infinite alternate;
}

.post-status.removed-status.moderator-action::before {
    content: '👤 ';
    margin-right: 2px;
}

/* 🤖 СПАМ - Автофильтры (оранжевый без мигания) */
.post-status.removed-status.auto-filter {
    background: rgba(255, 152, 0, 0.9) !important;
    animation: none;
}

.post-status.removed-status.auto-filter::before {
    content: '🤖 ';
    margin-right: 2px;
}

/* 🗑️ АВТОР - Сам удалил (серый без мигания) */
.post-status.removed-status.author-deleted {
    background: rgba(96, 125, 139, 0.9) !important;
    animation: none;
}

.post-status.removed-status.author-deleted::before {
    content: '🗑️ ';
    margin-right: 2px;
}

/* Редкие категории (DMCA и т.д.) */
.post-status.removed-status.other {
    background: rgba(33, 33, 33, 0.9) !important;
    animation: none;
}

@keyframes blink {
    from {
        opacity: 1;
    }

    to {
        opacity: 0.7;
    }
}

/* 🎨 UI SENTINEL: Responsive fixes for post card layout */
@media (max-width: 768px) {
    .date-posts {
        gap: 15px;
        padding: 12px;
    }

    .user-group {
        padding: 10px;
    }

    .user-group-header {
        padding: 8px 12px;
        gap: 8px;
    }

    .user-posts {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .post-card {
        /* Fix: Ensure mobile cards don't overflow */
        width: 100%;
        min-width: 0;
        padding: 12px;
    }

    .post-title {
        font-size: 15px;
        /* Fix: Remove line clamp completely */
        display: block;
        overflow: visible;
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
    .date-posts {
        padding: 8px;
        gap: 8px;
        /* Fix: Ensure very small screens work properly */
        grid-template-columns: minmax(0, 1fr);
    }

    .post-card {
        padding: 10px;
        margin: 0;
        /* Fix: Full width on very small screens */
        width: 100%;
        box-sizing: border-box;
    }

    .post-title {
        font-size: 14px;
        /* Fix: Remove line clamp completely */
        display: block;
        overflow: visible;
        line-height: 1.4;
    }
}

/* Fix: Additional overflow prevention for very long content */
@media (max-width: 320px) {
    .date-posts {
        padding: 6px;
        gap: 6px;
    }

    .post-card {
        padding: 8px;
        font-size: 12px;
    }

    .post-title {
        font-size: 12px;
    }

    .date-count {
        font-size: 10px;
        padding: 4px 8px;
    }
}

/* Fix: Additional safety net for any missed overflow issues */
.date-group *,
.date-posts *,
.post-card * {
    box-sizing: border-box;
    max-width: 100%;
}

/* Fix: Ensure container uses full width */
.summary-table-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
    max-height: none;
    overflow-y: visible;
    overflow-x: visible; /* Разрешаем горизонтальный скролл внутри */
    /* Fix: Use full width */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Fix: Better grid layout for main container */
.container {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

/* 💬 COMMENTS MODAL STYLES */

/* Make comment icon clickable */
.post-comments-btn {
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: inline-block;
}

.post-comments-btn:hover {
    background: rgba(255, 87, 34, 0.2);
    transform: scale(1.1);
}

/* Modal overlay */
.comments-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.comments-modal.active {
    opacity: 1;
    visibility: visible;
}

.comments-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Modal content */
.comments-modal-content {
    position: relative;
    background: linear-gradient(145deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 20px;
    max-width: 800px;
    width: 90%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 87, 34, 0.3);
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.comments-modal.active .comments-modal-content {
    transform: scale(1);
}

/* Modal header */
.comments-modal-header {
    padding: 20px 24px;
    background: rgba(255, 87, 34, 0.1);
    border-bottom: 2px solid rgba(255, 87, 34, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.comments-modal-title {
    flex: 1;
    min-width: 0;
}

.modal-post-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ff8a65;
    margin: 0 0 8px 0;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.modal-post-info {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    gap: 8px;
    align-items: center;
}

.comments-modal-close {
    background: rgba(255, 87, 34, 0.2);
    border: none;
    color: #ff8a65;
    font-size: 2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    line-height: 1;
    padding: 0;
}

.comments-modal-close:hover {
    background: rgba(255, 87, 34, 0.4);
    transform: rotate(90deg);
}

/* Modal body */
.comments-modal-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px 24px;
}

/* Scrollbar styling */
.comments-modal-body::-webkit-scrollbar {
    width: 8px;
}

.comments-modal-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.comments-modal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 87, 34, 0.4);
    border-radius: 10px;
}

.comments-modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 87, 34, 0.6);
}

/* Loading state */
.comments-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 16px;
}

.comments-loading .loading-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

/* Empty state */
.comments-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 16px;
}

.empty-icon {
    font-size: 4rem;
    opacity: 0.3;
}

.empty-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.1rem;
}

/* Comments list */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Comment item */
.comment-item {
    padding: 16px;
    border-radius: 12px;
    border-left: 3px solid transparent;
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.2s ease;
}

.comment-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Author vs Other comments */
.comment-author {
    background: rgba(255, 87, 34, 0.1);
    border-left-color: #ff5722;
}

.comment-other {
    background: rgba(66, 165, 245, 0.08);
    border-left-color: #42a5f5;
}

/* Removed comments */
.comment-removed {
    background: rgba(244, 67, 54, 0.1);
    border-left-color: #f44336;
    opacity: 0.7;
}

/* Comment depth indentation */
.comment-item.depth-1 {
    margin-left: 20px;
}

.comment-item.depth-2 {
    margin-left: 40px;
}

.comment-item.depth-3 {
    margin-left: 60px;
}

.comment-item.depth-4 {
    margin-left: 80px;
}

.comment-item.depth-5 {
    margin-left: 100px;
}

/* Comment header */
.comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.comment-author-name {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Автор поста - яркий оранжевый */
.comment-author .comment-author-name {
    color: #ff5722;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 87, 34, 0.5);
}

/* Обычные комментаторы - светло-голубой */
.comment-other .comment-author-name {
    color: #64b5f6;
}

.comment-badge {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.author-badge {
    background: rgba(255, 87, 34, 0.3);
    color: #ff8a65;
}

.mod-badge {
    background: rgba(76, 175, 80, 0.3);
    color: #81c784;
}

.removed-badge {
    background: rgba(244, 67, 54, 0.3);
    color: #ef5350;
}

.comment-time {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    margin-left: auto;
}

.comment-score {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Comment body */
.comment-body {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.comment-body strong {
    color: #ff8a65;
    font-weight: 700;
}

.comment-body em {
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

/* Responsive modal */
@media (max-width: 768px) {
    .comments-modal-content {
        width: 95%;
        max-height: 90vh;
        border-radius: 16px;
    }

    .comments-modal-header {
        padding: 16px;
    }

    .modal-post-title {
        font-size: 1rem;
    }

    .comments-modal-body {
        padding: 16px;
    }

    .comment-item.depth-1 {
        margin-left: 12px;
    }

    .comment-item.depth-2 {
        margin-left: 24px;
    }

    .comment-item.depth-3 {
        margin-left: 36px;
    }

    .comment-item.depth-4,
    .comment-item.depth-5 {
        margin-left: 48px;
    }
}

/* Media Button */
.post-media-btn {
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 6px;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    font-weight: 500;
    transition: all 0.2s ease;
    user-select: none;
}

.post-media-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
}

.post-media-btn:active {
    transform: translateY(0);
}

/* Media Modal */
.media-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.media-modal.active {
    opacity: 1;
    pointer-events: all;
}

.media-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.media-modal-content {
    position: relative;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.media-modal.active .media-modal-content {
    transform: scale(1);
}

.media-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
}

.media-modal-title {
    flex: 1;
    margin-right: 20px;
}

.media-modal-close {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    font-size: 32px;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.media-modal-close:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: rgba(239, 68, 68, 0.5);
    transform: rotate(90deg);
}

.media-modal-body {
    flex: 1;
    overflow: auto;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.media-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.media-container img {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.media-container video {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.gallery-notice {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    margin-bottom: 16px;
}

.gallery-container {
    display: flex;
    flex-direction: column;
}

.gallery-images {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 600px;
    overflow-y: auto;
    padding: 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    margin-bottom: 16px;
}

.gallery-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
}

.gallery-image:hover {
    transform: scale(1.02);
}

.no-preview {
    padding: 40px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin: 16px 0;
}

.view-full-gallery,
.external-link-btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-top: 16px;
}

.view-full-gallery:hover,
.external-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.external-link-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 32px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 16px;
}

.link-icon {
    font-size: 48px;
}

.link-text {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
}

.link-preview {
    margin-top: 16px;
    opacity: 0.8;
}

.media-modal-footer {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 20px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.view-on-reddit,
.view-original {
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.view-on-reddit {
    background: linear-gradient(135deg, #ff4500 0%, #ff5722 100%);
    color: white;
}

.view-on-reddit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 69, 0, 0.4);
}

.view-original {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.view-original:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Responsive Media Modal */
@media (max-width: 768px) {
    .media-modal-content {
        max-width: 95vw;
        max-height: 95vh;
    }

    .media-modal-header {
        padding: 16px;
    }

    .media-modal-body {
        padding: 16px;
        min-height: 300px;
    }

    .media-container img,
    .media-container video {
        max-height: 60vh;
    }

    .media-modal-footer {
        flex-direction: column;
        gap: 12px;
    }

    .view-on-reddit,
    .view-original {
        width: 100%;
        text-align: center;
    }
}

