

/* Start:/local/templates/tggo/css/font-roboto.css?17792148476166*/
/* cyrillic-ext */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/local/templates/tggo/css/../fonts/Roboto/KFOmCnqEu92Fr1Mu72xKKTU1Kvnz.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/local/templates/tggo/css/../fonts/Roboto/KFOmCnqEu92Fr1Mu5mxKKTU1Kvnz.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/local/templates/tggo/css/../fonts/Roboto/KFOmCnqEu92Fr1Mu7mxKKTU1Kvnz.woff2') format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/local/templates/tggo/css/../fonts/Roboto/KFOmCnqEu92Fr1Mu4WxKKTU1Kvnz.woff2') format('woff2');
  unicode-range: U+0370-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/local/templates/tggo/css/../fonts/Roboto/KFOmCnqEu92Fr1Mu7WxKKTU1Kvnz.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/local/templates/tggo/css/../fonts/Roboto/KFOmCnqEu92Fr1Mu7GxKKTU1Kvnz.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/local/templates/tggo/css/../fonts/Roboto/KFOmCnqEu92Fr1Mu4mxKKTU1Kg.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/local/templates/tggo/css/../fonts/Roboto/KFOlCnqEu92Fr1MmEU9fCRc4AMP6lbBP.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/local/templates/tggo/css/../fonts/Roboto/KFOlCnqEu92Fr1MmEU9fABc4AMP6lbBP.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/local/templates/tggo/css/../fonts/Roboto/KFOlCnqEu92Fr1MmEU9fCBc4AMP6lbBP.woff2') format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/local/templates/tggo/css/../fonts/Roboto/KFOlCnqEu92Fr1MmEU9fBxc4AMP6lbBP.woff2') format('woff2');
  unicode-range: U+0370-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/local/templates/tggo/css/../fonts/Roboto/KFOlCnqEu92Fr1MmEU9fCxc4AMP6lbBP.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/local/templates/tggo/css/../fonts/Roboto/KFOlCnqEu92Fr1MmEU9fChc4AMP6lbBP.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/local/templates/tggo/css/../fonts/Roboto/KFOlCnqEu92Fr1MmEU9fBBc4AMP6lQ.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/local/templates/tggo/css/../fonts/Roboto/KFOlCnqEu92Fr1MmWUlfCRc4AMP6lbBP.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/local/templates/tggo/css/../fonts/Roboto/KFOlCnqEu92Fr1MmWUlfABc4AMP6lbBP.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/local/templates/tggo/css/../fonts/Roboto/KFOlCnqEu92Fr1MmWUlfCBc4AMP6lbBP.woff2') format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/local/templates/tggo/css/../fonts/Roboto/KFOlCnqEu92Fr1MmWUlfBxc4AMP6lbBP.woff2') format('woff2');
  unicode-range: U+0370-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/local/templates/tggo/css/../fonts/Roboto/KFOlCnqEu92Fr1MmWUlfCxc4AMP6lbBP.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/local/templates/tggo/css/../fonts/Roboto/KFOlCnqEu92Fr1MmWUlfChc4AMP6lbBP.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/local/templates/tggo/css/../fonts/Roboto/KFOlCnqEu92Fr1MmWUlfBBc4AMP6lQ.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* End */


/* Start:/local/templates/tggo/css/ttoast.css?17792148473292*/
:root {
    --toast-bg: #ffffffde;
    --toast-fg: #0f1115;
    --toast-border: rgba(0,0,0,.12);
    --toast-shadow: rgba(0,0,0,.18);
    --toast-close-hover: rgba(0,0,0,.06);
    --toast-success: #1e8e3e;
    --toast-warning: #b76e00;
    --toast-error:   #c62828;
    --toast-info:    #1967d2;
}

body.dark.tme_mode,
html.theme_dark body.tme_mode {
    --toast-bg: #1e1f24de;
    --toast-fg: #e9eef6;
    --toast-border: rgba(255,255,255,.14);
    --toast-shadow: rgba(0,0,0,.6);
    --toast-close-hover: rgba(255,255,255,.08);
    --toast-success: #34a853;
    --toast-warning: #fbbc04;
    --toast-error:   #ea4335;
    --toast-info:    #8ab4f8;
}


/* Контейнеры под разные позиции */
.ttoast {
    position: fixed;
    z-index: 3000;
    display: grid;
    gap: 10px;
    pointer-events: none; /* не блокируем UI */
    padding: 0 12px;
}
.ttoast--bottom-center { left: 50%; transform: translateX(-50%); bottom: 20px; }
.ttoast--bottom-right  { right: 20px; bottom: 20px; }
.ttoast--bottom-left   { left: 20px; bottom: 20px; }
.ttoast--top-right     { right: 20px; top: 20px; }
.ttoast--top-left      { left: 20px; top: 20px; }
.ttoast--top-center    { left: 50%; transform: translateX(-50%); top: 20px; }

/* Элемент тоста */
.ttoast__item {
    pointer-events: auto; /* кликабельна кнопка закрытия */
    display: grid;
    grid-template-columns: auto;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 240px;
    max-width: min(520px, 90vw);
    padding: 12px 14px;
    border-radius: 12px;
    /*border: 1px solid var(--toast-border);*/
    background: var(--toast-bg);
    color: var(--toast-fg);
    box-shadow: 0 10px 24px var(--toast-shadow);
    font: 14px/1.35 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    animation: ttoast-in 180ms ease-out both;
}

/* Типы */
/*
.ttoast__item[data-type="success"] { border-color: var(--toast-success); }
.ttoast__item[data-type="warning"] { border-color: var(--toast-warning); }
.ttoast__item[data-type="error"]   { border-color: var(--toast-error); }
.ttoast__item[data-type="info"]    { border-color: var(--toast-info); }
*/
/* Иконка + текст + close */
.ttoast__icon { font-size: 16px; line-height: 1; opacity: .9; }
.ttoast__text { word-break: break-word; }
.ttoast__close {
    border: 0; background: transparent; cursor: pointer;
    font-size: 16px; line-height: 1; padding: 4px; border-radius: 8px;
    color: inherit;
}
.ttoast__close:hover { background: var(--toast-close-hover); }

/* Состояния появления/исчезновения */
@keyframes ttoast-in {
    from { transform: translateY(8px); opacity: 0; }
    to   { transform: translateY(0);   opacity: 1; }
}
.ttoast__item.is-leaving {
    animation: ttoast-out 150ms ease-in both;
}
@keyframes ttoast-out {
    from { transform: translateY(0);   opacity: 1; }
    to   { transform: translateY(6px); opacity: 0; }
}

/* Уважение «меньше анимаций» */
@media (prefers-reduced-motion: reduce) {
    .ttoast__item { animation: none; }
    .ttoast__item.is-leaving { animation: none; opacity: 0; }
}

/* End */


/* Start:/local/templates/tggo/template_styles.css?177921484717686*/
/* ТЕКСТУРА ШУМА */
.bg-noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}
.dark .bg-noise { opacity: 0.04; }

/* СТЕКЛО */
.glass {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}
.dark .glass {
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.glass-menu {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}
.dark .glass-menu {
    background: rgba(30, 30, 30, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.squircle { border-radius: 24%; }
.no-scrollbar::-webkit-scrollbar { display: none; }

/* Стили для 6 инпутов OTP */
.otp-digit {
    transition: all 0.2s;
    font-variant-numeric: tabular-nums;
}
.otp-digit:focus {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(36, 129, 204, 0.2);
}

/* Обрезка многострочного текста для постов */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Стилизация реакций Telegram */
.reaction {
    display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 12px;
    font-size: 11px; font-weight: 600; cursor: pointer; transition: all 0.2s;
    background: rgba(0,0,0,0.04); color: #4b5563;
}
.reaction i.emoji {
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}
.reaction i.emoji[style*="/upload/tg/emoji/"] b {
    color: transparent;
    user-select: all;
}
.dark .reaction { background: rgba(255,255,255,0.08); color: #d1d5db; }
.reaction:hover { background: rgba(36, 129, 204, 0.1); color: #2481cc; }
.dark .reaction:hover { background: rgba(36, 129, 204, 0.2); color: #60a5fa; }

.registry-status {
    padding: 0px 4px;
    background-color: #52eadb !important;
    color: #000 !important;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: bold;
    font-family: 'Arial Black';
    text-decoration: none !important;
    margin-right: 3px;
}

/* Фикс высоты плеера для соответствия контейнеру */
#tggo-video-modal .plyr {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: transparent !important;
}

#tggo-video-modal .plyr__video-wrapper {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ограничение видео внутри плеера */
#tggo-video-modal video {
    /*max-height: 75vh !important;*/
}

/* Скрываем стандартные кнопки, если они дублируются */
#tggo-video-modal video::-webkit-media-controls {
    display: none !important;
}

/* ==========================================
   1. ТЕКСТОВЫЕ СПОЙЛЕРЫ (<tg-spoiler>)
   ========================================== */
tg-spoiler {
    background-color: rgba(150, 150, 150, 0.2);
    /* Генерируем "шум" прямо в CSS с помощью SVG */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.25'/%3E%3C/svg%3E");
    border-radius: 6px;
    cursor: pointer;
    color: transparent !important;
    user-select: none;
    transition: background-color 0.3s ease;
    animation: spoiler-sparkle 1.5s steps(10) infinite;
    padding: 0 2px;
}

.dark tg-spoiler {
    background-color: rgba(255, 255, 255, 0.15);
}

/* Анимация движения шума, создающая эффект "искрения" */
@keyframes spoiler-sparkle {
    0% { background-position: 0 0; }
    100% { background-position: 100px 100px; }
}

/* Состояние ПОСЛЕ клика */
tg-spoiler.is-revealed {
    background: transparent !important;
    animation: none;
    color: inherit !important;
    cursor: text;
    user-select: auto;
}

/* ==========================================
   2. МЕДИА СПОЙЛЕРЫ (Фото / Видео)
   ========================================== */
.js-media-box[data-is-spoiler="true"]:not(.spoiler-revealed) > img,
.js-media-box[data-is-spoiler="true"]:not(.spoiler-revealed) > video {
    filter: blur(25px) !important;
    transform: scale(1.1); /* Убираем белые края от блюра */
}

/* ==========================================
   СТИЛИЗАЦИЯ PLYR ДЛЯ АУДИО
   ========================================== */
/* Делаем фон прозрачным, чтобы он слился с синим блоком */
.plyr--audio .plyr__controls {
    background: transparent !important;
    padding: 0 !important; /* Убираем лишние отступы */
    color: inherit;
}

/* Цвет ползунка громкости и таймлайна (берем синий бренд-цвет) */
.plyr--audio {
    --plyr-color-main: #3b82f6;
    --plyr-audio-controls-background: transparent;
    --plyr-audio-control-color: #6b7280; /* Серый для кнопок в светлой теме */
}

.dark .plyr--audio {
    --plyr-audio-control-color: #9ca3af; /* Светло-серый для кнопок в темной теме */
}

/* Скрываем кнопку громкости на мобильных устройствах, чтобы сэкономить место */
@media (max-width: 768px) {
    .plyr--audio .plyr__volume {
        display: none !important;
    }
}

/* ==========================================
   СТИЛИ ДЛЯ ЦИТАТ (TELEGRAM STYLE)
   ========================================== */

/* Сбрасываем дефолты Tailwind Typography (prose) и задаем свой стиль */
.js-message_text blockquote {
    margin: 0.75rem 0;
    padding: 0.5rem 0.75rem 0.5rem 0.875rem;
    border-left: 3px solid #3b82f6; /* Цвет brand-blue */
    background: rgba(59, 130, 246, 0.05); /* Очень легкий синий фон */
    border-radius: 0 8px 8px 0;
    font-style: normal; /* Убираем курсив */
    font-weight: 400;
    color: inherit;
    quotes: none; /* Убираем авто-кавычки */
    position: relative;
    overflow: hidden;
}

/* Темная тема (чуть усиливаем фон для контраста) */
.dark .js-message_text blockquote {
    background: rgba(59, 130, 246, 0.1);
}

/* Жестко удаляем псевдоэлементы-кавычки от плагина @tailwindcss/typography */
.js-message_text blockquote p:first-of-type::before,
.js-message_text blockquote p:last-of-type::after,
.js-message_text blockquote::before,
.js-message_text blockquote::after {
    content: none !important;
    display: none !important;
}

/* Убираем лишние отступы у параграфов внутри цитаты (если API отдает текст в <p>) */
.js-message_text blockquote p {
    margin-top: 0;
    margin-bottom: 0;
}

/* Стилизация ссылок внутри цитаты (чтобы они не сливались) */
.js-message_text blockquote a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.js-message_text blockquote a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Жирный текст внутри цитаты */
.js-message_text blockquote b,
.js-message_text blockquote strong {
    font-weight: 600;
    color: inherit; /* Чтобы не становился черным в темной теме */
}

/* ==========================================
   СТИЛИ ДЛЯ ССЫЛОК В ТЕКСТЕ ПОСТА
   ========================================== */
.js-message_text a {
    color: #3b82f6; /* Фирменный синий (brand-blue) */
    text-decoration: none; /* Убираем стандартное подчеркивание Tailwind prose */
    font-weight: 500; /* Делаем чуть плотнее, чтобы текст выделялся */
    word-break: break-word; /* Защита от длинных ссылок, разрывающих экран */
    overflow-wrap: anywhere;
    transition: all 0.2s ease-in-out;
}

/* Состояние при наведении */
.js-message_text a:hover {
    color: #2563eb; /* Чуть более глубокий синий (blue-600) */
    text-decoration: underline;
    text-underline-offset: 3px; /* Отдвигаем линию чуть ниже текста (выглядит чище) */
    text-decoration-thickness: 1.5px;
}

/* Корректировка для темной темы */
.dark .js-message_text a:hover {
    color: #60a5fa; /* Более светлый синий (blue-400), чтобы светился на темном */
}

/* ==========================================
   СТИЛИ ДЛЯ БЛОКОВ КОДА (HIGHLIGHT.JS)
   ========================================== */

/* Стилизация внешнего блока <pre> */
.js-message_text pre {
    position: relative; /* Обязательно для абсолютного позиционирования шапки */
    margin: 0.75rem 0;
    padding: 1.25rem 0rem 0rem 0rem; /* Добавлен padding-top 2.25rem для подписи языка */
    border-radius: 12px;
    background: #1e1e2e !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    line-height: 1.35; /* Жестко фиксируем аккуратный межстрочный интервал */
    overflow: hidden; /* Скрываем вылеты за края, чтобы скроллился только код, а не кнопки */
}

/* Настройки скроллбара перенесены внутрь кода */
.js-message_text pre code {
    display: block;
    overflow-x: auto; /* Теперь при скролле вправо, кнопки останутся на месте */
    padding-bottom: 0.5rem; /* Место под ползунок скроллбара */
    background: transparent !important;
}

/* Кастомизация скроллбара */
.js-message_text pre code::-webkit-scrollbar {
    height: 6px;
}
.js-message_text pre code::-webkit-scrollbar-track {
    background: transparent;
}
.js-message_text pre code::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}
.js-message_text pre code::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ==========================================
   СТИЛИ ДЛЯ ИНЛАЙН-КОДА
   ========================================== */

/* Выбираем все теги <code>, которые НЕ находятся внутри <pre> */
.js-message_text code:not(pre code) {
    background-color: rgba(150, 150, 150, 0.15);
    color: #ef4444; /* Классический красный оттенок (как в Telegram/GitHub) */
    padding: 0.15em 0.4em;
    border-radius: 6px;
    font-size: 0.85em;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    word-break: break-word; /* Защита от вылезания длинного кода (например, путей к файлам) за экран */
    box-decoration-break: clone; /* Если код переносится на новую строку, фон будет аккуратным у обеих строк */
}

/* Темная тема */
.dark .js-message_text code:not(pre code) {
    color: #fca5a5; /* Более мягкий розово-красный для темного фона */
    background-color: rgba(255, 255, 255, 0.12);
}

/* Жестко удаляем дефолтные обратные кавычки (``) от плагина Tailwind Typography */
.js-message_text code::before,
.js-message_text code::after {
    content: none !important;
    display: none !important;
}

/* Состояние при клике (успешное копирование) */
.js-message_text code.code-copied {
    background-color: #22c55e !important; /* Зеленый цвет (success) */
    color: white !important;
    transition: all 0.1s ease;
}

/* Изменяем курсор, чтобы подсказать возможность клика */
.js-message_text code:not(pre code) {
    cursor: pointer;
}

/* Небольшая всплывающая подсказка при наведении (нативно через title) */
.js-message_text code:not(pre code):hover {
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.3); /* Тонкая синяя обводка */
}

/* Подсветка активной карточки поиска */
.result-card.active {
    border-color: #2AABEE !important; /* Ваш цвет brand-blue */
}

/* Если у вас темная тема работает через класс .dark на теге <html> или <body> */
.dark .result-card.active {
    border-color: rgba(42, 171, 238, 0.5) !important; /* Ваш цвет с прозрачностью */
}

/* Базовые стили для контейнера во время загрузки */
.js-load_mediacontent {
    position: relative;
    overflow: hidden;
    background-color: #f5f5f5; /* Цвет фона плейсхолдера */
    opacity: 0.8;
    transition: opacity 0.3s ease;
    min-height: 240px; /* Минимальная высота для предотвращения схлопывания */
}

/* Анимация загрузки (скелетон) */
.js-load_mediacontent::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.6) 50%,
            transparent
    );
    animation: loadingShimmer 1.5s infinite;
}

/* Сокрытие внутреннего контента до загрузки */
.js-load_mediacontent > * {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Состояние после загрузки */
.js-load_mediacontent:not(.js-load_mediacontent) {
    background-color: transparent;
    opacity: 1;
}

.js-load_mediacontent:not(.js-load_mediacontent)::after {
    display: none;
}

.js-load_mediacontent:not(.js-load_mediacontent) > * {
    opacity: 1;
}

/* Ключевые кадры для анимации */
@keyframes loadingShimmer {
    100% {
        left: 100%;
    }
}

/* Оптимизация анимации */
@media (prefers-reduced-motion: reduce) {
    .js-load_mediacontent::after {
        animation: none;
    }
}

/* Для группированных медиа */
.js-message_grouped_layer .js-load_mediacontent {
    min-height: 100px; /* Уменьшаем высоту для сетки */
}

/* Для вертикальных/горизонтальных изображений */
.js-load_mediacontent[data-ratio^="1"] { /* Квадратные */
    aspect-ratio: 1/1;
}
.js-load_mediacontent[data-ratio^="1."] { /* Горизонтальные */
    aspect-ratio: 16/9;
}
.js-load_mediacontent[data-ratio^="0."] { /* Вертикальные */
    aspect-ratio: 9/16;
}


.tgme_widget_message_photo_wrap .tgme_widget_message_photo:not(.grouped_media) {
    padding-top: 100%;
}
.tgme_widget_message_media_not_supported {
    position: relative;
    display: block;
    background-color: #efefef;
    text-decoration: none!important;
    height: 100%;
}
.tgme_widget_message_media_not_supported:hover {
    text-decoration: none!important;
}
.tgme_widget_message_author + .tgme_widget_message_media_not_supported {
    overflow: hidden;
    margin: 8px -9px 10px;
    min-width: calc(100% + 18px) !important;
    max-width: calc(100% + 18px) !important;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
}
.tgme_widget_message_grouped_layer > .tgme_widget_message_media_not_supported {
    position: absolute;
}

.nowrap { white-space: nowrap; }
/* End */
/* /local/templates/tggo/css/font-roboto.css?17792148476166 */
/* /local/templates/tggo/css/ttoast.css?17792148473292 */
/* /local/templates/tggo/template_styles.css?177921484717686 */
