/* Hubstorie main styles */
  * { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
  
  :root {
    --bg: #1a1a1c;
    --bg-soft: #232327;
    --bg-card: #1e1e22;
    --text: #ede4d3;
    --text-dim: #b8b0a0;
    --text-faint: #6b6358;
    --accent: #d4a574;
    --accent-soft: rgba(212, 165, 116, 0.15);
    --border: rgba(237, 228, 211, 0.08);
    --border-strong: rgba(237, 228, 211, 0.15);
    --danger: #c9534e;
    --verified: #4d9fe8;
    --gold: #f0c068;
    --gold-soft: rgba(240, 192, 104, 0.15);
  }
  
  html, body, * {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
  }
  
  input, textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
  }

  /* iOS: не масштабировать страницу при фокусе на поле ввода — Safari зумит,
     если эффективный font-size поля < 16px. На телефонах фиксируем 16px. */
  @media (max-width: 768px) {
    input, textarea, select { font-size: 16px; }
  }
  /* iOS: не «раздувать» текст в ландшафте/при системном масштабе. */
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

  /* Автозаполнение: Chrome/Safari красят поле белым — держим тёмный фон темы. */
  input:-webkit-autofill,
  input:-webkit-autofill:hover,
  input:-webkit-autofill:focus,
  textarea:-webkit-autofill {
    -webkit-text-fill-color: var(--text, #ede4d3);
    -webkit-box-shadow: 0 0 0 1000px var(--bg-soft, #232327) inset;
    box-shadow: 0 0 0 1000px var(--bg-soft, #232327) inset;
    caret-color: var(--text, #ede4d3);
    transition: background-color 9999s ease 0s;
  }

  html, body {
    height: 100%;
    overflow: hidden;
    background: #1a1a1c;
    color: var(--text);
    font-family: 'Inter Tight', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    overscroll-behavior: none;
  }
  
  body { display: flex; flex-direction: column; }
  
  /* TOP BAR */
  .topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: calc(48px + env(safe-area-inset-top, 0px));
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: env(safe-area-inset-top, 0px) max(10px, env(safe-area-inset-right, 0px)) 0 max(10px, env(safe-area-inset-left, 0px));
    background: linear-gradient(to bottom, rgba(26,26,28,0.95), rgba(26,26,28,0.7) 70%, transparent);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    pointer-events: none;
  }
  
  .topbar > * { pointer-events: auto; }

  /* Группа слева: «назад» (контекстно) + логотип — чтобы back встал ПЕРЕД лого
     (как в кабинете), а не разъехался из-за justify-content:space-between. */
  .topbar-left { display: flex; align-items: center; gap: 8px; min-width: 0; }
  
  .logo {
    font-family: 'Source Serif 4', serif;
    font-weight: 600;
    font-size: 17px;
    letter-spacing: -0.02em;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 4px;
  }
  
  .logo-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    margin-top: 1px;
  }
  
  .topbar-actions {
    display: flex;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
  }
  
  /* Языковой селектор: компактная пилюля с текущим языком, по клику — выпадашка вниз */
  .lang-switcher {
    position: relative;
    flex-shrink: 0;
  }

  .lang-current {
    display: flex;
    align-items: center;
    gap: 3px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    color: var(--text-dim);
    font-family: 'Inter Tight', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 4px 7px 4px 9px;
    border-radius: 13px;
    cursor: pointer;
    transition: all 0.2s;
  }
  .lang-current:active { transform: scale(0.94); }
  .lang-caret { width: 11px; height: 11px; transition: transform 0.2s; }
  .lang-switcher.open .lang-caret { transform: rotate(180deg); }
  .lang-switcher.open .lang-current { border-color: var(--accent); color: var(--accent); }

  .lang-menu {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    display: none;
    flex-direction: column;
    gap: 2px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 4px;
    z-index: 60;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  }
  .lang-switcher.open .lang-menu { display: flex; }

  .lang-opt {
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-family: 'Inter Tight', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 6px 16px;
    border-radius: 9px;
    cursor: pointer;
    text-align: center;
    transition: all 0.15s;
  }
  .lang-opt:hover { background: var(--border); color: var(--text); }
  .lang-opt.active {
    background: var(--accent);
    color: #1a1a1c;
  }
  
  .icon-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-dim);
    transition: all 0.2s;
    margin-left: 3px;
  }
  
  .icon-btn:active { transform: scale(0.9); }
  
  .icon-btn.active {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
  }
  
  .icon-btn svg { width: 14px; height: 14px; }

  @media (max-width: 480px) {
    .topbar { padding: env(safe-area-inset-top, 0px) max(6px, env(safe-area-inset-right, 0px)) 0 max(6px, env(safe-area-inset-left, 0px)); height: calc(44px + env(safe-area-inset-top, 0px)); }
    .logo { font-size: 15px; gap: 3px; }
    .logo-dot { width: 4px; height: 4px; }
    .topbar-actions { gap: 2px; }
    .lang-current { font-size: 9px; padding: 3px 5px 3px 7px; border-radius: 10px; }
    .lang-caret { width: 10px; height: 10px; }
    .icon-btn { width: 26px; height: 26px; margin-left: 2px; }
    .icon-btn svg { width: 12px; height: 12px; }
  }

  @media (max-width: 360px) {
    .logo { font-size: 13px; }
    .lang-current { padding: 3px 4px 3px 6px; font-size: 8.5px; }
    .icon-btn { width: 24px; height: 24px; }
  }
  
  .stage {
    position: relative;
    flex: 1;
    overflow: hidden;
    height: 100vh;
    height: 100dvh;
  }
  
  .feed { height: 100%; width: 100%; position: relative; }
  
  .article-card {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--bg);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s;
    will-change: transform, opacity;
  }
  
  .article-card.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
  }
  
  .article-card.exiting-up { transform: translateY(-100%); opacity: 0; }
  .article-card.exiting-down { transform: translateY(100%); opacity: 0; }
  .article-card.entering-up { transform: translateY(100%); }
  .article-card.entering-down { transform: translateY(-100%); }

  /* "Прочитано" — аккуратный бейдж с галочкой в конце названия статьи. */
  .seen-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-left: 10px;
    vertical-align: middle;
    border-radius: 50%;
    background: color-mix(in srgb, var(--accent) 18%, transparent);
    color: var(--accent);
    position: relative;
    top: -2px;
    cursor: default;
    flex-shrink: 0;
    transition: background 0.2s ease;
  }
  .seen-badge svg {
    width: 13px;
    height: 13px;
    display: block;
  }
  .seen-badge-tooltip {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(26, 26, 28, 0.96);
    color: var(--text-dim);
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 5px;
    border: 1px solid var(--border);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s;
    font-family: 'Inter Tight', sans-serif;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-transform: lowercase;
  }
  .seen-badge:hover .seen-badge-tooltip,
  .seen-badge.show-tip .seen-badge-tooltip {
    opacity: 1;
  }
  
  .article-inner {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding: calc(56px + env(safe-area-inset-top, 0px)) 0 80px 0;
    scrollbar-width: none;
    scroll-behavior: smooth;
  }
  
  .article-inner::-webkit-scrollbar { display: none; }
  
  /* LAMP MODE */
  .article-title, .article-subtitle, .article-content p, 
  .article-content h2, .article-content li, .article-content strong,
  .article-content p::first-letter {
    transition: text-shadow 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), color 0.4s ease;
  }

  /* LAMP MODE — мягкое свечение ВОКРУГ БУКВ контента. НЕ трогаем заголовок/подзаголовок,
     НЕ заливаем фон, цвет текста не меняем — только тонкий glow (жалоба 2026-06-18:
     «не надо заголовки, не весь фон, слишком ярко»). */
  .article-inner.lamp-mode .article-content p,
  .article-inner.lamp-mode .article-content h2,
  .article-inner.lamp-mode .article-content h3,
  .article-inner.lamp-mode .article-content li,
  .article-inner.lamp-mode .article-content blockquote,
  .article-inner.lamp-mode .article-content strong {
    color: #f3ead9 !important;
    text-shadow: 0 0 7px rgba(212, 165, 116, 0.55), 0 0 14px rgba(212, 165, 116, 0.22);
  }
  
  .article-card:not(.collapsed) .article-inner.lamp-mode .article-content p::first-letter {
    text-shadow: 0 0 12px rgba(212, 165, 116, 0.6), 0 0 22px rgba(212, 165, 116, 0.3);
  }

  .article-body {
    width: 88%;
    max-width: 640px;
    margin: 0 auto;
    transition: opacity 0.25s;
  }
  
  .article-body.fading { opacity: 0.25; }
  
  .article-title {
    font-family: 'Source Serif 4', serif;
    font-weight: 600;
    font-size: clamp(24px, 5.2vw, 34px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 8px;
  }
  
  .article-subtitle {
    font-family: 'Source Serif 4', serif;
    font-style: italic;
    font-weight: 400;
    font-size: clamp(14px, 2.8vw, 17px);
    line-height: 1.4;
    color: var(--text-dim);
    margin-bottom: 12px;
  }
  
  .article-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 12px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--border);
    flex-wrap: nowrap;
  }
  
  .author-clickable {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    flex: 1 1 auto;
    min-width: 0;
    padding: 2px 0;
    border-radius: 6px;
    transition: opacity 0.15s;
  }
  
  .author-clickable:active { opacity: 0.6; }
  
  .author-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #8a6841);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #1a1a1c;
    font-size: 13px;
    flex-shrink: 0;
  }
  
  .author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
  }
  
  .author-name-row {
    display: flex;
    align-items: center;
    gap: 4px;
    line-height: 1;
  }
  
  .author-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1;
  }
  
  .verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 13px;
    height: 13px;
    color: var(--verified);
    flex-shrink: 0;
    line-height: 0;
  }

  .verified-badge svg {
    width: 13px;
    height: 13px;
    display: block;
  }

  .meta-sub-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    line-height: 1;
  }
  
  .article-date {
    font-size: 11px;
    color: var(--text-faint);
    line-height: 1;
  }
  
  .article-category-mini {
    display: inline-flex;
    align-items: center;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    padding: 2px 7px;
    border: 1px solid var(--accent);
    border-radius: 10px;
    background: var(--accent-soft);
    line-height: 1;
  }

  .article-reading-time {
    font-size: 10px;
    color: var(--text-faint);
    letter-spacing: 0.02em;
  }

  /* Теги статьи — раздельные чипсы, отдельная широкая строка под подзаголовком */
  .article-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 14px 0 18px;
    padding: 0;
  }
  .article-tag-chip {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 500;
    color: var(--accent);
    padding: 3px 10px;
    border: 1px solid rgba(212, 165, 116, 0.4);
    border-radius: 13px;
    background: rgba(212, 165, 116, 0.08);
    line-height: 1.3;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
    white-space: nowrap;
  }
  a.article-tag-chip:hover {
    background: rgba(212, 165, 116, 0.18);
    border-color: var(--accent);
  }
  .article-tag-chip::before {
    content: "#";
    opacity: 0.6;
    margin-right: 1px;
  }
  
  .meta-dot {
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: var(--text-faint);
    flex-shrink: 0;
  }
  
  /* МИНИ-КНОПКА ПОДПИСКИ НА ГЛАВНОЙ + СОЦ-ИКОНКИ */
  .meta-actions-inline {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
  }
  
  .subscribe-mini-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: 1px solid var(--border-strong);
    border-radius: 14px;
    padding: 4px 8px 4px 6px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--gold);
    flex-shrink: 0;
  }
  
  .subscribe-mini-btn:active { transform: scale(0.92); }
  
  .subscribe-mini-btn svg {
    width: 14px;
    height: 14px;
    fill: var(--gold);
    transition: transform 0.3s;
  }
  
  .subscribe-mini-btn .mini-count {
    font-size: 10px;
    font-weight: 700;
    color: var(--text);
    font-family: 'Inter Tight', sans-serif;
    letter-spacing: 0.02em;
    line-height: 1;
  }
  
  .subscribe-mini-btn.subscribed {
    background: var(--gold-soft);
    border-color: var(--gold);
  }
  
  .subscribe-mini-btn.subscribed svg {
    animation: bookPulseMini 0.5s ease-out;
  }
  
  @keyframes bookPulseMini {
    0% { transform: scale(1); }
    40% { transform: scale(1.3) rotate(-6deg); }
    100% { transform: scale(1) rotate(0); }
  }
  
  .author-socials-inline {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
  }
  
  .social-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--border-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    transition: all 0.2s;
    cursor: pointer;
    text-decoration: none;
  }
  
  .social-icon:active { transform: scale(0.88); }
  .social-icon svg { width: 10px; height: 10px; }
  
  /* TTS PLAYER */
  .tts-player {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 4px 6px 4px 4px;
    margin-bottom: 14px;
    transition: all 0.25s;
  }
  
  .tts-player.playing {
    border-color: var(--accent);
    background: var(--accent-soft);
  }
  
  .tts-play-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--accent);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg);
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s;
  }
  
  .tts-play-btn:active { transform: scale(0.9); }
  .tts-play-btn svg { width: 12px; height: 12px; margin-left: 1px; }
  .tts-play-btn.is-playing svg { margin-left: 0; }
  
  .tts-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;   /* лейбл+дорожка как блок по центру плеера */
    gap: 5px;
  }
  
  .tts-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-dim);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1;            /* слово прижато к дорожке, не «провисает» */
  }
  
  .tts-progress {
    width: 100%;
    height: 5px;
    /* Дорожка должна быть ВИДНА: var(--border) с альфой 0.08 на тёмной теме
       сливался с фоном — читатель видел только точку-бегунок без полоски. */
    background: rgba(237, 228, 211, 0.22);
    border-radius: 3px;
    overflow: hidden;
  }
  
  .tts-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.3s linear;
  }
  
  .tts-follow-btn {
    background: transparent;
    border: 1px solid var(--border-strong);
    color: var(--text-dim);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
  }
  
  .tts-follow-btn:active { transform: scale(0.9); }
  .tts-follow-btn svg { width: 13px; height: 13px; }
  
  .tts-follow-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg);
  }
  
  .tts-speed {
    background: transparent;
    border: 1px solid var(--border-strong);
    color: var(--text-dim);
    font-size: 10px;
    font-weight: 600;
    padding: 4px 7px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 36px;
  }
  
  .tts-speed:active { transform: scale(0.92); }
  
  .article-content {
    font-family: 'Source Serif 4', serif;
    font-size: 17.5px;
    line-height: 1.8;
    color: var(--text);
    font-weight: 400;
    letter-spacing: -0.01em;
  }
  
  .article-content p { 
    margin-bottom: 1.5em;
    word-spacing: normal;
    letter-spacing: normal;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    -webkit-hyphens: auto;
  }

  @media (max-width: 768px) {
    .article-content { font-size: 17px; line-height: 1.75; }
    .article-content p { text-align: left; hyphens: none; -webkit-hyphens: none; margin-bottom: 1.25em; }
  }
  
  .article-content p:first-of-type::first-letter {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 3.6em;
    font-weight: 700;
    line-height: 0.82;
    float: left;
    margin: 0.05em 0.08em -0.05em 0;
    color: var(--accent);
    /* Лёгкое тёплое свечение, чтобы буквица «дышала» на тёмном фоне */
    text-shadow: 0 1px 0 rgba(0,0,0,0.25), 0 0 14px rgba(212, 165, 116, 0.2);
    padding-right: 4px;
    /* Для arabic / latin-extended символов */
    font-feature-settings: "kern" 1, "liga" 1;
  }
  
  .article-content h2 {
    font-family: 'Source Serif 4', serif;
    font-weight: 600;
    font-size: 1.4em;
    line-height: 1.2;
    margin: 1.5em 0 0.6em;
    color: var(--text);
    letter-spacing: -0.01em;
  }
  
  .article-content strong { font-weight: 600; color: var(--text); }
  .article-content em { font-style: italic; color: var(--text-dim); }
  .article-content ul, .article-content ol { margin: 0.4em 0 1.1em 1.5em; }
  .article-content li { margin-bottom: 0.4em; }
  
  .tts-sentence {
    display: inline;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-radius: 4px;
  }

  /* Когда статья озвучивается — предложения кликабельны для перемотки */
  .article-inner.tts-seekable .tts-sentence {
    cursor: pointer;
  }
  .article-inner.tts-seekable .tts-sentence:hover {
    background-color: rgba(212, 165, 116, 0.12);
  }
  
  .tts-sentence.tts-active {
    background-color: var(--accent-soft);
    color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
  }
  
  .article-inner.lamp-mode .tts-sentence.tts-active {
    color: #ffcaa4 !important;
    background-color: rgba(212, 165, 116, 0.25);
  }
  
  .article-content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2em auto;
    width: 60px;
  }
  
  .article-end {
    margin-top: 2em;
    padding-top: 1.4em;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-faint);
    font-size: 12px;
    font-family: 'Inter Tight', sans-serif;
  }
  
  .article-end-arrow {
    margin-top: 12px;
    font-size: 20px;
    color: var(--accent);
    animation: bob 1.8s ease-in-out infinite;
  }
  
  @keyframes bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
  }
  
  .article-card.collapsed .article-inner { overflow-y: hidden; }
  /* В свёрнутом виде маркер конца статьи не показываем — он для развёрнутого
     прокручиваемого вида. Иначе "Конец статьи" наслаивается на текст. */
  .article-card.collapsed .article-end { display: none; }
  
  .article-card.collapsed .article-content {
    /* Высота свёрнутого контента — на CSS. Запас 360px под топбар/заголовок/
       автора/плеер. Хвост текста, заходящий под панель реакций, маскируется
       плотной подложкой бара (.collapsed .reactions-bar::before). */
    max-height: calc(100dvh - 360px);
    min-height: 80px;
    overflow: hidden;
    position: relative;
  }

  .article-card.collapsed .article-content::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 80px;
    background: linear-gradient(to bottom, transparent, var(--bg));
    pointer-events: none;
    z-index: 5;
  }

  .article-card.collapsed .article-content p:first-of-type::first-letter {
    text-shadow: none !important;
  }
  
  .tap-hint {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-soft);
    border: 1px solid var(--border-strong);
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 10.5px;
    font-weight: 500;
    color: var(--text-dim);
    letter-spacing: 0.02em;
    pointer-events: none;
    z-index: 20;   /* выше блока реакций (12), градиента (5) и текста — не перекрывается сверху */
    transition: opacity 0.25s;
  }
  
  .article-card:not(.collapsed) .tap-hint { opacity: 0; }
  
  .tap-hint::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    animation: ring 2s ease-in-out infinite;
  }
  
  @keyframes ring {
    0%, 100% { box-shadow: 0 0 0 0 var(--accent); }
    50% { box-shadow: 0 0 0 5px transparent; }
  }
  
  /* SIDE ACTIONS — только пин и шара (книгу убрали) */
  .side-actions {
    position: fixed;
    right: 8px;
    bottom: 70px;
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }
  
  .action-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(35, 35, 39, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text);
    transition: all 0.2s;
    position: relative;
  }
  
  .action-btn:active { transform: scale(0.88); }
  .action-btn svg { width: 16px; height: 16px; }
  
  .action-btn.saved {
    color: var(--accent);
    background: var(--accent-soft);
    border-color: var(--accent);
  }
  .action-btn.saved svg { fill: var(--accent); }

  .action-btn.subscribed {
    color: var(--accent);
    background: var(--accent-soft);
    border-color: var(--accent);
  }
  .action-btn.subscribed svg { color: var(--accent); }
  
  .float-lock {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(35, 35, 39, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-strong);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text);
    z-index: 60;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    transition: all 0.2s;
  }
  
  .float-lock.visible { display: flex; }
  
  .float-lock.locked {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent);
  }
  
  .float-lock:active { transform: scale(0.9); }
  .float-lock svg { width: 18px; height: 18px; z-index: 2; position: relative; }
  
  .lock-ring {
    position: absolute;
    inset: 0;
    transform: rotate(-90deg);
  }
  
  .lock-ring circle { fill: none; stroke-width: 2.5; }
  .lock-ring .bg-ring { stroke: var(--border); }
  .lock-ring .progress-ring {
    stroke: var(--accent);
    stroke-linecap: round;
    transition: stroke-dashoffset 0.1s linear;
  }
  
  /* SAVED GRID */
  .saved-grid {
    position: absolute;
    inset: 0;
    background: var(--bg);
    padding: 60px 16px 80px;
    overflow-y: auto;
    display: none;
    z-index: 3;
  }
  
  .saved-grid.visible { display: block; }

  /* Кнопка «назад» сетки теперь в ТОПБАРЕ перед лого (#gridTopBack, .hub-back) —
     как в кабинете. В контенте грида её больше нет. */
  .saved-grid-header.clickable { cursor: pointer; }
  .saved-grid-header.clickable:active { opacity: 0.7; }

  .saved-grid-header {
    font-family: 'Source Serif 4', serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
    letter-spacing: -0.02em;
  }
  
  .saved-grid-sub {
    font-size: 13px;
    color: var(--text-faint);
    margin-bottom: 20px;
  }
  
  .saved-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  @media (min-width: 700px) { .saved-cards { grid-template-columns: repeat(3, 1fr); } }
  @media (min-width: 1100px) { .saved-cards { grid-template-columns: repeat(4, 1fr); } }
  
  .saved-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.25s;
    padding: 12px;
  }
  
  .saved-card:active { transform: scale(0.97); }
  
  .saved-card-cat {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 6px;
  }
  
  .saved-card-title {
    font-family: 'Source Serif 4', serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
    color: var(--text);
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  .saved-card-meta {
    font-size: 10px;
    color: var(--text-faint);
  }
  
  .empty-saved {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-dim);
  }
  
  .empty-saved-icon {
    font-size: 30px;
    margin-bottom: 14px;
    opacity: 0.5;
  }
  
  .empty-saved-text {
    font-family: 'Source Serif 4', serif;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 6px;
  }
  
  .empty-saved-sub {
    font-size: 12px;
    color: var(--text-faint);
  }
  
  /* AUTHOR PANEL (BANNER) */
  .author-panel {
    position: fixed;
    top: 48px;
    left: 0; right: 0;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border-strong);
    z-index: 40;
    padding: 14px 12px 12px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.25s;
    box-shadow: 0 6px 24px rgba(0,0,0,0.3);
  }
  
  .author-panel.visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  
  .author-panel-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
  }
  
  .author-panel-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #8a6841);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #1a1a1c;
    font-size: 17px;
    flex-shrink: 0;
  }
  
  .author-panel-info { flex: 1; min-width: 0; }
  
  .author-panel-name-row {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 4px;
    line-height: 1;
  }
  
  .author-panel-name {
    font-family: 'Source Serif 4', serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.01em;
    line-height: 1;
  }
  
  .author-panel-name-row .verified-badge {
    width: 14px;
    height: 14px;
  }

  .author-panel-name-row .verified-badge svg {
    width: 14px;
    height: 14px;
  }

  .author-panel-bio {
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-dim);
  }
  
  .author-panel-close {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s;
  }
  
  .author-panel-close:active { transform: scale(0.88); }
  .author-panel-close svg { width: 12px; height: 12px; }
  
  /* SUBSCRIBE BOOK BUTTON (большая в баннере) */
  .author-panel-subscribe-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    padding: 8px 10px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border);
  }
  
  .subscribe-book-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid var(--border-strong);
    border-radius: 20px;
    padding: 6px 12px 6px 8px;
    cursor: pointer;
    transition: all 0.25s;
    color: var(--text);
  }
  
  .subscribe-book-btn:active { transform: scale(0.95); }
  
  .subscribe-book-btn .book-icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  
  .subscribe-book-btn .book-icon svg {
    width: 100%;
    height: 100%;
    fill: var(--gold);
  }
  
  .subscribe-book-btn .book-count {
    font-family: 'Source Serif 4', serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    line-height: 1;
    min-width: 24px;
    text-align: left;
  }
  
  .subscribe-book-btn .book-label {
    font-size: 10px;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 2px;
    line-height: 1;
  }
  
  .subscribe-book-btn .book-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  
  .subscribe-book-btn.subscribed {
    background: var(--gold-soft);
    border-color: var(--gold);
  }
  
  .subscribe-book-btn.subscribed .book-icon {
    animation: bookPulse 0.5s ease-out;
  }
  
  @keyframes bookPulse {
    0% { transform: scale(1); }
    40% { transform: scale(1.3) rotate(-8deg); }
    100% { transform: scale(1) rotate(0); }
  }
  
  .author-panel-socials {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
  }
  
  .author-panel-socials .social-icon {
    width: 28px;
    height: 28px;
  }
  
  .author-panel-socials .social-icon svg { width: 12px; height: 12px; }
  
  .stage.author-mode .article-card.active .article-inner {
    padding-top: calc(200px + env(safe-area-inset-top, 0px));
  }
  
  /* SIDEBARS */
  /* Каркас .app-menu* (позиция/высота/transform/transition/overflow/box-shadow,
     -header/-title/-list/-item/-divider) — МОДУЛЬНЫЙ hubfront.components.css
     (правило 10). Здесь только ФИД-дельты — они перекрывают базу, т.к.
     hubstorie.css грузится ПОСЛЕ components.css. open-class ленты — `.visible`
     (поддержан в модуле). */
  .app-menu { width: 320px; max-width: 88vw; background: var(--bg-soft);
    border-left-color: var(--border-strong); }
  .app-menu-header { border-bottom-color: var(--border); }

  /* каркас .follow-sidebar/.overlay/.follow-empty → hubfront.components.css (правило 10) */
  
  .follow-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s;
    margin-bottom: 4px;
  }
  
  .follow-item:active { background: var(--bg); }
  
  .follow-item.all-items {
    background: var(--accent-soft);
    border: 1px solid var(--accent);
  }
  
  .follow-item-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #8a6841);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #1a1a1c;
    font-size: 13px;
    flex-shrink: 0;
  }
  
  .follow-item.all-items .follow-item-avatar {
    background: var(--bg-card);
    color: var(--accent);
  }
  
  .follow-item-info { flex: 1; min-width: 0; }
  
  .follow-item-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 5px;
  }
  
  .follow-item-meta {
    font-size: 11px;
    color: var(--text-faint);
    margin-top: 2px;
  }
  
  /* каркас .follow-sidebar/.overlay/.follow-empty → hubfront.components.css (правило 10) */
  
  .app-menu-list { padding: 6px 10px calc(6px + env(safe-area-inset-bottom, 0px)); }
  
  /* .app-menu-item / -svg / -divider — каркас МОДУЛЬНЫЙ (components.css). Лента
     добавляет только touch-active и токен-дивайдер (своя тема). Значения
     цвета/размера совпадают с модулем (var(--text)/(--text-dim) == #ede4d3/#b8b0a0). */
  .app-menu-item:active { background: var(--bg); }
  .app-menu-divider { background: var(--border); }
  
  .menu-content {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 120;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    overflow-y: auto;
  }
  
  .menu-content.visible { transform: translateX(0); }
  
  .menu-content-header {
    position: sticky;
    top: 0;
    background: var(--bg);
    padding: 16px 14px 12px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 5;
  }
  
  .menu-back {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    cursor: pointer;
  }
  
  .menu-back svg { width: 14px; height: 14px; }
  
  .menu-content-title {
    font-family: 'Source Serif 4', serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
  }
  
  .menu-content-body {
    padding: 20px 16px;
    max-width: 600px;
    margin: 0 auto;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-dim);
  }
  
  .menu-content-body h3 {
    font-family: 'Source Serif 4', serif;
    color: var(--text);
    font-size: 16px;
    margin: 16px 0 8px;
  }
  
  .menu-content-body p { margin-bottom: 12px; }
  
  .menu-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  
  .menu-form-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }
  
  .menu-form-field label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-faint);
  }
  
  .menu-form-field input,
  .menu-form-field textarea {
    background: var(--bg-soft);
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    padding: 10px 13px;
    color: var(--text);
    font-family: 'Inter Tight', sans-serif;
    font-size: 13px;
    width: 100%;
    resize: vertical;
  }
  
  .menu-form-field input:focus,
  .menu-form-field textarea:focus {
    outline: none;
    border-color: var(--accent);
  }
  
  .menu-form-field textarea { min-height: 90px; }
  
  .menu-form-submit {
    background: var(--accent);
    border: none;
    color: #1a1a1c;
    font-family: 'Inter Tight', sans-serif;
    font-weight: 600;
    font-size: 13px;
    padding: 11px 20px;
    border-radius: 20px;
    cursor: pointer;
    margin-top: 6px;
    align-self: flex-start;
  }
  
  /* каркас .follow-sidebar/.overlay/.follow-empty → hubfront.components.css (правило 10) */
  
  .preloader {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 200;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
  }
  
  .preloader.visible { opacity: 1; }
  
  .preloader-spinner {
    width: 30px;
    height: 30px;
    border: 2.5px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
  }
  
  @keyframes spin { to { transform: rotate(360deg); } }
  /* .toast / .toast.visible удалены (F1): лента шлёт уведомления через единый HubFront.toast. */

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      transition-duration: 0.01ms !important;
    }
  }

/* PWA install banner animation */
@keyframes pwaSlideUp {
  from { transform: translateY(120%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

/* ============ MO-8: полоса прогресса чтения ============ */
.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent, #d4a574), #e8c79a);
  z-index: 101;
  transition: width 0.1s linear;
  pointer-events: none;
  box-shadow: 0 0 8px rgba(212, 165, 116, 0.5);
  /* учитываем вырез/safe-area сверху */
  margin-top: env(safe-area-inset-top, 0px);
}

/* ============ MO-9: кнопка "к началу" ============ */
.back-to-top {
  position: fixed;
  right: 16px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(30, 30, 34, 0.92);
  border: 1px solid rgba(237, 228, 211, 0.18);
  color: var(--accent, #d4a574);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 60;
  opacity: 0;
  transform: translateY(12px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.back-to-top svg { width: 22px; height: 22px; }
.back-to-top:active { transform: scale(0.92); }


/* ============ Реакции: коммент-иконка (слева) + эмодзи (справа) ============ */
/* Размеры совпадают с плавающими кнопками (.action-btn = 38px). */
.reactions-bar {
  margin: 22px 0 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border, rgba(237,228,211,0.12));
  display: flex;
  justify-content: space-between;  /* коммент слева, эмодзи справа */
  align-items: center;
  position: relative;
  z-index: 45;                     /* выше контента; рядом с плавающими (50) */
  min-height: 44px;
  /* справа оставляем зазор под колонку плавающих кнопок (right:8px + 38px) */
  padding-right: 54px;
}

/* Хост панели комментов в openSheet (bottom): фон как был (.bg-card) + тело без
   паддинга (своя sticky-шапка/футер + скролл-список). Фид-дельта (правило 10). */
.comments-sheet-host { background: var(--bg-card, #1c1e22); }
.comments-sheet-host .hub-sheet__body { padding: 0; display: block; }

/* ЛЕВАЯ ГРУППА: комментарии + просмотры, прижаты влево, плоские */
.bar-left {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding-left: 8px;            /* лёгкий отступ от края — иконка не липнет к краю */
}

/* Иконка комментариев — плоская, без фона и обводки */
.comment-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: 38px;
  padding: 0;
  border-radius: 0;
  border: none;
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: var(--text-dim, #b8b0a0);
  cursor: pointer;
  transition: opacity 0.2s, color 0.15s, transform 0.12s;
  flex-shrink: 0;
}
.comment-icon-btn svg { width: 22px; height: 22px; }
.comment-icon-btn:active { transform: scale(0.9); }
.comment-icon-btn:hover { color: var(--text, #ede4d3); }

/* Бейдж просмотров — плоский, рядом с комментариями (иконка глаза + число) */
.views-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0;
  border-radius: 0;
  border: none;
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: var(--text-dim, #b8b0a0);
  font-size: 15px;
  font-weight: 500;
  flex-shrink: 0;
  pointer-events: none;       /* информационный, не кликабельный */
}
.views-badge svg { width: 22px; height: 22px; opacity: 0.9; }
.views-badge-count { line-height: 1; font-variant-numeric: tabular-nums; }
/* При раскрытии ряда реакций бейдж просмотров уходит, чтобы не мешать */
.reactions-bar.expanded .views-badge { opacity: 0; pointer-events: none; }

/* Эмодзи-триггер — плоский, без фона и обводки (как остальные иконки) */
.reaction-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0;
  border-radius: 0;
  border: none;
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.18s, transform 0.15s;
  flex-shrink: 0;
}
.reaction-trigger .reaction-emoji { font-size: 22px; line-height: 1; }
.reaction-trigger-count {
  font-size: 15px; font-weight: 500;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}
.reaction-trigger.has-mine .reaction-emoji {
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent) 50%, transparent));
}
.reaction-trigger:active { transform: scale(0.9); }

/* Поповер с 7 эмодзи — растёт справа-налево от триггера, поверх всего */
.reactions-popover {
  position: absolute;
  right: 54px;                 /* совпадает с padding-right бара */
  top: 50%;
  transform: translateY(-50%) scaleX(0);
  transform-origin: right center;
  background: rgba(28,28,32,0.98);
  border: 1px solid var(--border, rgba(237,228,211,0.18));
  border-radius: 24px;
  padding: 3px 5px;
  box-shadow: 0 10px 36px rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.26s cubic-bezier(0.22,1,0.36,1), opacity 0.2s;
  z-index: 60;                 /* выше плавающих кнопок */
  backdrop-filter: blur(10px);
  max-width: calc(100vw - 70px);  /* зазор слева, чтобы не упиралось в край при раскрытии */
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.reactions-row { display: flex; gap: 2px; align-items: center; }

/* При раскрытии прячем соседей на линии, чтобы поповер не накладывался */
.reactions-bar.expanded .reaction-trigger,
.reactions-bar.expanded .bar-left {
  opacity: 0;
  pointer-events: none;
}
.reactions-bar.expanded .reactions-popover {
  transform: translateY(-50%) scaleX(1);
  opacity: 1;
  pointer-events: auto;
}

.reaction-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 3px 4px;
  min-width: 30px;
  min-height: 38px;
  border-radius: 14px;
  border: none;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, transform 0.1s;
}
.reaction-btn:active { transform: scale(0.88); }
.reaction-btn.active { background: color-mix(in srgb, var(--accent) 22%, transparent); }
.reaction-emoji { font-size: 17px; line-height: 1; }
.reaction-count {
  font-size: 10px; font-weight: 600;
  color: var(--text-faint, #8c857a);
  font-variant-numeric: tabular-nums;
}
.reaction-btn.active .reaction-count { color: var(--accent); }

/* В СВЁРНУТОЙ карточке: блок реакций наложен в конец видимой области,
   поверх текста и градиента-затухания, на уровне плавающих кнопок. */
.article-card.collapsed .reactions-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 64px;            /* чуть выше нижнего края, на уровне плавающих кнопок */
  margin: 0;
  padding-top: 0;
  border-top: none;
  z-index: 12;             /* выше текста (5) и градиента */
  padding-left: 4px;
  padding-right: 54px;     /* не лезть под колонку плавающих кнопок */
}
/* в свёрнутом виде под баром — плотная подложка, чтобы хвост текста не
   просвечивал из-под иконок (раньше градиент был полупрозрачным сверху) */
.article-card.collapsed .reactions-bar::before {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -64px; top: -48px;
  background: linear-gradient(to bottom, transparent 0%, var(--bg) 38%, var(--bg) 100%);
  z-index: -1;
  pointer-events: none;
}

/* ============ Поиск по статьям (IMPR-6) ============ */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;                /* выше всех панелей/оверлеев (макс. был 300) */
  background: var(--bg, #1a1a1c);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.2s, transform 0.2s;
  padding-top: env(safe-area-inset-top, 0px);
}
.search-overlay.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border, rgba(237,228,211,0.08));
  background: var(--bg-soft, #232327);
  flex-shrink: 0;
}
.search-bar-icon {
  width: 20px; height: 20px;
  color: var(--text-dim, #b8b0a0);
  flex-shrink: 0;
}
.search-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text, #ede4d3);
  font-family: inherit;
  font-size: 16px;            /* >=16px чтобы iOS не зумил при фокусе */
  font-weight: 500;
  padding: 6px 0;
}
.search-input::placeholder { color: var(--text-faint, #6b6358); }
/* убираем нативный крестик у type=search */
.search-input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }

.search-clear, .search-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-dim, #b8b0a0);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s, transform 0.12s;
}
.search-clear svg, .search-close svg { width: 18px; height: 18px; }
.search-clear:active, .search-close:active { transform: scale(0.9); }
.search-close { background: var(--bg-card, #1e1e22); }

.search-results {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 12px calc(24px + env(safe-area-inset-bottom, 0px));
}

.search-state {
  text-align: center;
  color: var(--text-faint, #6b6358);
  font-size: 14px;
  padding: 48px 20px;
  line-height: 1.5;
}
.search-state .search-state-title {
  display: block;
  color: var(--text-dim, #b8b0a0);
  font-weight: 600;
  margin-bottom: 6px;
}

.search-results-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint, #6b6358);
  font-weight: 600;
  padding: 6px 4px 10px;
}

.search-result {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--bg-card, #1e1e22);
  border: 1px solid var(--border, rgba(237,228,211,0.08));
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: background 0.15s, transform 0.12s, border-color 0.15s;
}
.search-result:active { transform: scale(0.99); background: var(--bg-soft, #232327); }
.search-result-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-faint, #6b6358);
  margin-bottom: 6px;
}
.search-result-cat {
  color: var(--accent, #d4a574);
  font-weight: 600;
}
.search-result-title {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text, #ede4d3);
  line-height: 1.3;
  margin-bottom: 4px;
}
.search-result-sub {
  font-size: 13px;
  color: var(--text-dim, #b8b0a0);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.search-result mark {
  background: var(--accent-soft, rgba(212,165,116,0.15));
  color: var(--accent, #d4a574);
  border-radius: 3px;
  padding: 0 1px;
}

.search-spinner {
  width: 22px; height: 22px;
  margin: 40px auto;
  border: 2px solid var(--border-strong, rgba(237,228,211,0.15));
  border-top-color: var(--accent, #d4a574);
  border-radius: 50%;
  animation: search-spin 0.7s linear infinite;
}
@keyframes search-spin { to { transform: rotate(360deg); } }

/* ============ Поиск по авторам — строки результатов ============ */
.search-author {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card, #1e1e22);
  border: 1px solid var(--border, rgba(237,228,211,0.08));
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: background 0.15s, transform 0.12s;
}
.search-author:active { transform: scale(0.99); background: var(--bg-soft, #232327); }

.search-author-avatar {
  width: 44px; height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent-soft, rgba(212,165,116,0.15));
  color: var(--accent, #d4a574);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
}

.search-author-info { flex: 1; min-width: 0; }
.search-author-verified { display: inline-flex; flex-shrink: 0; }
.search-author-verified svg { width: 14px; height: 14px; color: var(--verified, #4d9fe8); }
.search-author-name {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text, #ede4d3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-author-name mark {
  background: var(--accent-soft, rgba(212,165,116,0.15));
  color: var(--accent, #d4a574);
  border-radius: 3px;
  padding: 0 1px;
}
.search-author-readers {
  font-size: 12px;
  color: var(--text-faint, #6b6358);
  margin-top: 2px;
}

.search-author-follow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  height: 34px;
  padding: 0 14px;
  border-radius: 18px;
  border: 1px solid var(--accent, #d4a574);
  background: transparent;
  color: var(--accent, #d4a574);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.12s, color 0.15s;
}
.search-author-follow .follow-book { width: 15px; height: 15px; }
.search-author-follow:active { transform: scale(0.94); }
.search-author-follow.subscribed {
  background: var(--accent, #d4a574);
  color: var(--bg, #1a1a1c);
}

/* ============ Мобильный UX (V14) ============ */

/* --- Skeleton-загрузка --- */
.skeleton-card {
  padding: 28px 22px;
  max-width: 680px;
  margin: 0 auto;
}
.sk {
  background: linear-gradient(90deg,
    rgba(237,228,211,0.05) 25%,
    rgba(237,228,211,0.10) 37%,
    rgba(237,228,211,0.05) 63%);
  background-size: 400% 100%;
  border-radius: 6px;
  animation: sk-shimmer 1.4s ease infinite;
}
@keyframes sk-shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.sk-cat { width: 90px; height: 14px; margin-bottom: 20px; border-radius: 10px; }
.sk-title { width: 100%; height: 26px; margin-bottom: 10px; }
.sk-title-2 { width: 70%; margin-bottom: 18px; }
.sk-sub { width: 85%; height: 16px; margin-bottom: 28px; }
.sk-lines { display: flex; flex-direction: column; gap: 12px; }
.sk-line { width: 100%; height: 13px; }
.sk-line-short { width: 45%; }

/* --- Pull-to-refresh --- */
.ptr-indicator {
  height: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: height 0.2s ease;
}
.ptr-spinner {
  width: 24px; height: 24px;
  border: 2px solid var(--border-strong, rgba(237,228,211,0.15));
  border-top-color: var(--accent, #d4a574);
  border-radius: 50%;
  opacity: 0.6;
  transition: opacity 0.2s, transform 0.2s;
}
.ptr-indicator.ready .ptr-spinner { opacity: 1; transform: scale(1.1) rotate(180deg); }
.ptr-indicator.refreshing .ptr-spinner { animation: ptr-spin 0.7s linear infinite; opacity: 1; }
@keyframes ptr-spin { to { transform: rotate(360deg); } }

/* --- Double-tap like (сердечко-вспышка) --- */
.like-burst {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0);
  color: var(--accent, #d4a574);
  z-index: 80;
  pointer-events: none;
  animation: like-pop 0.8s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
}
.like-burst svg { width: 96px; height: 96px; filter: drop-shadow(0 4px 18px rgba(0,0,0,0.4)); }
@keyframes like-pop {
  0%   { transform: translate(-50%,-50%) scale(0);   opacity: 0; }
  15%  { transform: translate(-50%,-50%) scale(1.15); opacity: 1; }
  30%  { transform: translate(-50%,-50%) scale(0.95); opacity: 1; }
  45%  { transform: translate(-50%,-50%) scale(1);    opacity: 1; }
  100% { transform: translate(-50%,-60%) scale(1);    opacity: 0; }
}

/* --- Жалоба на пост (Cortex C4) --- */
.reactions-popover { display: flex; align-items: center; }
.report-link {
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: none;
  border: none;
  border-left: 1px solid var(--border, rgba(237,228,211,0.18));
  color: var(--text-faint, #8c857a);
  padding: 4px 8px 4px 10px;
  margin-left: 2px;
  cursor: pointer;
}
.report-link svg { width: 17px; height: 17px; display: block; }
.report-link:active { opacity: .55; }

/* Оболочка жалобы/меню (overlay+box) — единый примитив HubFront.openSheet.
   Здесь остаются только КОНТЕНТНЫЕ стили (.report-link, .ctx-*, .why-*). */

/* --- Long-press контекстное меню ленты (Cortex C4+) --- */
/* гасим нативное выделение/callout на карточке, чтобы long-press вызывал наше меню */
.article-card .article-inner {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
/* Оболочка ctx-меню (overlay/sheet/grab) — единый примитив HubFront.openSheet
   (className 'ctx-sheet-host'). Ниже — только контент ленты-меню. */
.ctx-row {
  display: flex; gap: 6px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.ctx-row::-webkit-scrollbar { display: none; }
.ctx-item {
  flex: 1 0 auto; min-width: 72px;
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  background: none; border: none; cursor: pointer;
  color: var(--text); font-family: inherit;
  padding: 4px 2px;
}
.ctx-ic {
  width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--card2, #2a282c);
  transition: transform .12s ease, background .15s ease;
}
.ctx-item:active .ctx-ic { transform: scale(0.92); background: rgba(212,165,116,0.18); }
.ctx-ic svg { width: 25px; height: 25px; }
.ctx-lb { font-size: 12px; line-height: 1.25; text-align: center; color: var(--text-dim, #b8b0a2); max-width: 80px; }

/* «Почему вы это видите» */
.why-row {
  display: flex; align-items: flex-start; gap: 10px;
  color: var(--text); font-size: 14px; line-height: 1.45;
  padding: 6px 0;
}
.why-dot {
  flex-shrink: 0; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); margin-top: 7px;
}
/* «Лента и данные →» — отдельная ссылка с разделителем и отступами (не «прилипает»
   к краю шита; жалоба 2026-06-18). + нижний отступ тела why-шита. */
.why-more {
  display: block; text-align: center; margin-top: 16px; padding: 13px 0 2px;
  border-top: 1px solid var(--border, rgba(237,228,211,0.1));
  color: var(--accent); font-size: 13px; text-decoration: none;
}
.why-more:active { opacity: .6; }
.why-sheet-host .hub-sheet__body { padding-bottom: 18px; }
.why-tune {
  width: 100%; margin-top: 14px;
  background: var(--card2, #242327);
  border: 1px solid var(--border, rgba(237,228,211,0.18));
  color: var(--text);
  border-radius: 10px; padding: 12px 14px;
  font-size: 14px; font-family: inherit; cursor: pointer;
  text-align: left;
}
.why-tune:active { background: var(--accent-soft); }

/* Настройка ленты (PZ-1): форма feed_settings рендерится в хост-сайдбаре (#appMenu)
   через модуль modules/feed_settings.js. КОНТЕНТНЫЕ стили формы
   (.fp-hint/.fp-loading/.fp-row*/.tm-*/.seg*/.fp-clear/.fp-note/.kw-*) →
   модульный assets/feed_settings.css (грузится в ленте И кабинете; правило 10).
   Bespoke slide-панель (.feed-panel/.fp-head/.fp-back/.fp-title/.fp-body) удалена. */

/* === Бейдж типа озвучки (AI / TTS) в углу + подсказка === */
.tts-player{ position:relative; overflow:visible; }
.voice-badge{
  position:absolute; top:-7px; right:6px; z-index:7;
  display:inline-flex; align-items:center; height:13px; padding:0 4px;
  font-size:7px; font-weight:800; letter-spacing:.04em; line-height:1;
  border-radius:5px; cursor:pointer; -webkit-tap-highlight-color:transparent;
  border:1px solid transparent;
  -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px);
  transition:transform .12s ease, box-shadow .12s ease;
}
.voice-badge--ai{
  background:linear-gradient(135deg, var(--accent,#d4a574), #c9975f);
  color:#171511; box-shadow:0 3px 12px rgba(0,0,0,.28);
}
.voice-badge--tts{
  background:rgba(20,19,22,.55); color:var(--accent,#d4a574);
  border-color:var(--accent,#d4a574);
}
.voice-badge-dot{
  position:absolute; top:-2px; right:-2px; width:5px; height:5px; border-radius:50%;
  background:var(--accent-2,#6fb89a); border:1.5px solid var(--bg,#121417);
}
.voice-badge:active{ transform:scale(.93); }

.voice-pop{
  position:fixed; z-index:10000; max-width:260px;
  background:var(--card,#1e1d20); color:var(--text);
  border:1px solid var(--border,rgba(237,228,211,0.14)); border-radius:12px;
  padding:12px 14px; box-shadow:0 10px 34px rgba(0,0,0,.45);
}
.voice-pop-title{ font-weight:700; font-size:13px; margin-bottom:5px; }
.voice-pop-desc{ font-size:12px; line-height:1.45; color:var(--text-dim); margin-bottom:9px; }
.voice-pop-link{ font-size:12px; font-weight:600; color:var(--accent); text-decoration:none; }

/* R4 — блок «Похожие статьи» в конце материала */
.article-similar { margin: 20px 0 6px; padding-top: 16px; border-top: 1px solid var(--border, rgba(237,228,211,0.12)); }
.article-similar .sim-h { font-family: 'Source Serif 4', Georgia, serif; font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.article-similar .sim-item { display: block; padding: 11px 13px; margin-bottom: 8px; background: var(--card2, #242327); border: 1px solid var(--border, rgba(237,228,211,0.12)); border-radius: 12px; text-decoration: none; color: var(--text); transition: opacity .15s ease; }
.article-similar .sim-item:active { opacity: .65; }
.article-similar .sim-title { font-family: 'Source Serif 4', Georgia, serif; font-size: 15px; font-weight: 600; line-height: 1.3; }
.article-similar .sim-sub { font-size: 13px; color: var(--text-dim, #b3aa98); margin-top: 3px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-similar .sim-au { font-size: 12px; color: var(--text-faint, #8c857a); margin-top: 5px; }

/* === GR: интерактивный онбординг === */
/* Шаг 0: карточка сама приподнимается — намёк на свайп без слов. */
@keyframes onb-nudge {
  0%   { transform: translateY(0); }
  28%  { transform: translateY(-48px); }
  52%  { transform: translateY(0); }
  72%  { transform: translateY(-18px); }
  100% { transform: translateY(0); }
}
.article-card.onb-nudge { animation: onb-nudge 1.5s cubic-bezier(.33,.9,.3,1) 1; }

/* Пошаговые подсветки: spotlight-«дырка» + бейдж с ОК. */
.coach-overlay {
  position: fixed; inset: 0; z-index: 1200;
  opacity: 0; transition: opacity .22s ease;
}
.coach-overlay.show { opacity: 1; }
.coach-overlay { background: rgba(12,12,14,0.55); }
.coach-spot {
  position: fixed; border-radius: 14px; pointer-events: none;
  box-shadow: 0 0 0 100vmax rgba(12,12,14,0.72);
  border: 1.5px solid var(--accent);
  transition: left .25s ease, top .25s ease, width .25s ease, height .25s ease;
}
.coach-spot[hidden] { display: none; }
/* Когда есть spotlight — общий фон отдаёт затемнение его тени. */
.coach-overlay:has(.coach-spot:not([hidden])) { background: transparent; }
.coach-badge {
  position: fixed; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px;
  width: min(88vw, 330px);
  background: var(--card, #1e1d20); border: 1px solid var(--border, rgba(237,228,211,0.18));
  border-radius: 12px; padding: 10px 10px 10px 14px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  transition: top .25s ease;
}
.coach-text {
  flex: 1 1 auto; min-width: 0;
  color: var(--text); font-size: 13px; line-height: 1.4;
}
.coach-ok {
  flex-shrink: 0; background: var(--accent); color: var(--bg);
  border: none; border-radius: 9px; padding: 7px 14px;
  font-family: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.coach-ok:active { opacity: .85; }

/* === GR: «Продолжаем с того места» — самоисчезающая ленточка === */
/* Без кнопок и кликов: pointer-events:none, исчезает сама (анимация 4с). */
.resume-ribbon {
  position: fixed; left: 50%; top: calc(64px + env(safe-area-inset-top, 0px));
  transform: translateX(-50%); z-index: 800; pointer-events: none;
  background: rgba(30,29,32,0.92); border: 1px solid rgba(212,165,116,0.55);
  color: var(--accent, #d4a574); font-size: 12.5px; white-space: nowrap;
  padding: 6px 14px; border-radius: 999px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.4);
  opacity: 0; animation: ribbon-life 4s ease forwards;
}
@keyframes ribbon-life {
  0%   { opacity: 0; transform: translate(-50%, -6px); }
  8%   { opacity: 1; transform: translate(-50%, 0); }
  82%  { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -4px); }
}

/* === GR: скелетон первой загрузки === */
.skel-card { padding: calc(70px + env(safe-area-inset-top, 0px)) 24px 0; max-width: 680px; margin: 0 auto; }
.skel-line {
  height: 14px; border-radius: 7px; margin-bottom: 12px;
  background: linear-gradient(90deg, rgba(237,228,211,0.07) 25%, rgba(237,228,211,0.13) 50%, rgba(237,228,211,0.07) 75%);
  background-size: 200% 100%; animation: skel-shimmer 1.3s ease-in-out infinite;
}
.skel-title { height: 26px; width: 85%; margin-bottom: 14px; }
.skel-line.w70 { width: 70%; }
.skel-line.w40 { width: 40%; }
.skel-meta { height: 11px; margin-bottom: 26px; }
@keyframes skel-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* «Похожая статья» существует только в раскрытой статье —
   в свёрнутом превью блок скрыт жёстко (ломал обрезку превью). */
.article-card.collapsed .article-similar { display: none !important; }

/* === Панель автора: явный возврат в ленту + статистика === */
.author-back {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 1px solid var(--border, rgba(237,228,211,0.18));
  color: var(--text-dim, #b8b0a2); border-radius: 999px;
  padding: 6px 14px; margin-bottom: 12px;
  font-family: inherit; font-size: 13px; cursor: pointer;
}
.author-back:active { background: rgba(237,228,211,0.08); }
.author-panel-stats { font-size: 12.5px; color: var(--text-faint, #8c857a); margin-top: 4px; }

/* T3: подсветка комментария, открытого по ссылке из уведомления */
.cm-flash { animation: cm-flash 2.4s ease; border-radius: 10px; }
@keyframes cm-flash {
  0%, 55% { background: rgba(212,165,116,0.16); }
  100%    { background: transparent; }
}

/* «Нажмите чтобы развернуть/свернуть» — защищённая кнопка в обоих состояниях.
   В раскрытой статье — ТОТ ЖЕ вид и ТО ЖЕ место, что у «развернуть»:
   низ по центру (24px), полная непрозрачность; меняется только текст.
   (Раньше в раскрытом виде скрывалась opacity:0.) */
.tap-hint { pointer-events: auto; cursor: pointer; z-index: 45; }
.article-card:not(.collapsed) .tap-hint {
  opacity: 1;
  position: fixed;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
}

/* Нудж «Похожая статья» — после 3 свайпов без раскрытия. Компактная плашка
   внизу, НЕ перекрывает «развернуть» (та на 24px, эта выше). Исчезает при
   свайпе/раскрытии (JS), не повторяет уже предложенное (localStorage). */
.sim-nudge {
  position: fixed;
  left: 50%;
  bottom: calc(78px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%) translateY(8px);
  z-index: 44;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: min(78vw, 360px);
  padding: 10px 16px;
  background: var(--bg-soft, #232529);
  border: 1px solid var(--accent, #d4a574);
  border-radius: 14px;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
}
.sim-nudge.visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Бейдж «Пока вас не было: N новых по вашим темам» — та же плашка, но СВЕРХУ
   (под шапкой), кнопкой: тап прыгает к началу ленты. Сам исчезает через 12с. */
.fresh-nudge {
  top: calc(58px + env(safe-area-inset-top, 0px));
  bottom: auto;
  transform: translateX(-50%) translateY(-8px);
  align-items: center;
  text-align: center;
  cursor: pointer;
  font: inherit;
}
.fresh-nudge.visible { transform: translateX(-50%) translateY(0); }
.sim-nudge-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent, #d4a574);
}
.sim-nudge-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text, #ede4d3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Аудио-дорожка — ползунок: тап и скольжение по ней перематывают.
   Увеличенный хитбокс (padding), touch-action:none — чтобы скольжение
   не скроллило ленту, бегунок на конце заливки. */
.tts-progress {
  cursor: pointer;
  /* content-box + явная высота: иначе border-box+padding схлопывал контент
     в 0 и дорожка (background-clip:content-box) была невидима. */
  box-sizing: content-box;
  height: 6px;
  background: rgba(237, 228, 211, 0.28);
  padding: 9px 0; margin: -9px 0;
  background-clip: content-box;
  touch-action: none;
  overflow: visible;
  position: relative;
}
.tts-progress .tts-progress-fill { position: relative; }
.tts-progress .tts-progress-fill::after {
  content: '';
  position: absolute;
  right: -4px; top: 50%;
  width: 9px; height: 9px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 1px 3px rgba(0,0,0,0.35);
}

/* ===== HubPods — «Мои подкасты» (T16, фаза A) ===== */
.hp-add{background:transparent;border:none;color:var(--text-dim);cursor:pointer;display:flex;align-items:center;justify-content:center;padding:4px;border-radius:8px;flex-shrink:0;transition:color .15s,transform .1s}
.hp-add svg{width:18px;height:18px}
.hp-add.saved{color:var(--accent)}
.hp-add:active{transform:scale(0.9)}

  /* .pods-* вынесены в assets/hubpods.css (единый источник, правило 10) */
