/* ===================================================================
 *  Стили для заглушки пустой страницы (для неавторизованных)
 * =================================================================== */

 .empty-page-placeholder {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 60vh;
    padding: 24px;
}

.empty-page-placeholder img {
    width: 144px;
    height: 144px;
    max-width: min(144px, 42vw);
    max-height: min(144px, 42vw);
    object-fit: contain;
    margin-bottom: 24px;
    opacity: 0.7;
}

.empty-page-placeholder h2 {
    font-size: 24px;
    font-weight: 500;
    color: #f1f1f1;
    margin: 0 0 12px 0;
}

.empty-page-placeholder p {
    color: #aaa;
    font-size: 14px;
    max-width: 450px;
    line-height: 1.5;
    margin: 0;
}

.empty-page-button {
    display: inline-block;
    margin-top: 24px;
    background-color: #f1f1f1; 
    color: #0f0f0f;  
    border: none;
    border-radius: 18px;
    padding: 10px 24px;
    font-weight: 500;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    transition: background-color 0.2s;
}

.empty-page-button:hover {
    background-color: #d9d9d9;
}

/* ===================================================================
 *  СТИЛИ ДЛЯ ВЫПАДАЮЩИХ ПОДСКАЗОК ПОИСКА И ИНДИКАТОРА ЗАГРУЗКИ
 * ===================================================================
 */

#search-suggestions-container {
    display: none;
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    background-color: #282828;
    border: 1px solid #3f3f3f;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    z-index: 1001;
    padding: 12px 0;
    max-height: 400px;
    overflow-y: auto;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 16px;
    color: #f1f1f1;
    text-decoration: none;
    cursor: pointer;
}

.suggestion-item:hover {
    background-color: #3f3f3f;
}

.suggestion-icon {
    width: 20px;
    height: 20px;
    filter: invert(1);
    opacity: 0.7;
    flex-shrink: 0;
}

.suggestion-text {
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

.suggestion-thumbnail {
    width: 80px;
    height: 45px;
    border-radius: 4px;
    object-fit: cover;
    margin-left: auto;
    flex-shrink: 0;
    background-color: #3f3f3f;
}

.suggestion-report-link {
    display: block;
    text-align: right;
    font-size: 12px;
    color: #aaa;
    padding: 8px 16px 0;
    text-decoration: none;
    border-top: 1px solid #3f3f3f;
    margin-top: 8px;
}
.suggestion-report-link:hover {
    color: #fff;
}

.search-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.search-loader-spinner {
    width: 32px;
    height: 32px;
    border: 4px solid #3f3f3f;
    border-top-color: #f1f1f1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ===================================================================
 *  Infinite scroll loader (YouTube-like)
 * =================================================================== */
.infinite-loader {
    display: none;
    margin: 18px 0 6px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-secondary, #aaa);
    font-size: 13px;
}

.infinite-loader.is-active {
    display: flex;
}

.infinite-spinner {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.22);
    border-top-color: rgba(255, 255, 255, 0.75);
    animation: infinite-spin 0.85s linear infinite;
}

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

.infinite-sentinel {
    height: 1px;
}

/* Пагинация (главная и др.) */
.content-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 28px 0 12px;
    padding: 8px 0 4px;
}

.content-page-link,
.content-page-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    box-sizing: border-box;
}

.content-page-link {
    color: var(--accent-color, #3ea6ff);
    background: rgba(62, 166, 255, 0.08);
    transition: background-color 0.2s ease;
}

.content-page-link:hover {
    background: rgba(62, 166, 255, 0.16);
}

.content-page-current {
    color: #fff;
    background: var(--accent-color, #3ea6ff);
}

.content-page-ellipsis {
    padding: 0 4px;
    color: rgba(255, 255, 255, 0.45);
    user-select: none;
}

.suggestion-thumbnail-channel {
    width: 45px; 
    height: 45px;
    border-radius: 50%;
    object-fit: cover; 
}

.voice-modal-content {
    background-color: #282828;
    border-radius: 16px;
    padding: 32px;
    width: 90%;
    max-width: 480px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#voice-mic-icon-container {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background-color: #d9534f;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

#voice-mic-icon-container.listening {
    animation: pulse 1.5s infinite;
}

#voice-modal-title {
    font-size: 24px;
    margin: 0 0 8px 0;
}

#voice-modal-status {
    font-size: 15px;
    color: #aaa;
    min-height: 22px;
}

#voice-interim-results {
    font-size: 18px;
    color: #f1f1f1;
    min-height: 27px;
    margin: 16px 0;
    font-weight: 500;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(217, 83, 79, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(217, 83, 79, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(217, 83, 79, 0);
    }
}