/* YR2 (Claude Live, 25.11.2026): карточка «2026 в цифрах» на странице «Моё». Свои классы только yr2-*.
   Карточка идёт по теме (тёмная TE, светлая TRS), кадры всегда тёмные: это медиа. Начертание 300 без синтеза. */
.yr2-wrap { display: block; }
.yr2-wrap:empty { display: none; }
.yr2 { margin: 14px 0 6px; border: 1px solid var(--tl-line); border-radius: var(--tl-r3); background-color: #070101; background-image: var(--tl-glow); padding: 16px; display: grid; gap: 12px; color: #f8fafc; font-family: var(--tl-font); font-weight: 300; font-synthesis: none; min-width: 0; overflow: hidden; }
.yr2 :is(h2, b, span, small, p, button) { font-family: var(--tl-font); font-weight: 300; font-synthesis: none; }
.yr2-head { display: grid; gap: 12px; align-content: start; min-width: 0; }
.yr2-top { display: flex; align-items: center; gap: 8px; }
.yr2-dot { width: 7px; height: 7px; border-radius: 50%; background: #ff4a4a; flex: none; display: inline-block; }
.yr2-kicker { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #b8bcc0; }
.yr2-te { margin-left: auto; width: 44px; height: auto; }
.yr2-te.is-light { display: none; }
.yr2 h2 { margin: 0; font-size: 22px; letter-spacing: .06em; text-transform: uppercase; color: #f8fafc; }
.yr2-big { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.yr2-big b { font-size: 46px; line-height: 1; font-variant-numeric: tabular-nums; color: #f8fafc; }
.yr2-big span { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #b8bcc0; }
.yr2-sub { font-size: 12px; color: #b8bcc0; letter-spacing: .02em; }
.yr2-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.yr2-actions .tl-btn { min-height: 40px; cursor: pointer; background: transparent; }
/* бордовая только «Поделиться в ленту» (решение 19.11); !important: общие правила кнопок сайта сильнее */
.yr2 .yr2-actions .tl-btn.yr2-feed { background: #9e1b22 !important; border-color: #9e1b22 !important; color: #ffffff !important; }
.yr2-actions .tl-btn.yr2-share { width: 44px; min-width: 44px; padding: 0; }
.yr2-i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.yr2-note { margin: 0; min-height: 16px; font-size: 11px; line-height: 16px; color: #b8bcc0; letter-spacing: .02em; }
.yr2-note.is-err { color: #f2a49c; }
.yr2-frames { display: grid; grid-auto-flow: column; grid-auto-columns: 128px; gap: 10px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; margin: 0 -16px; padding: 3px 16px; }
.yr2-frames::-webkit-scrollbar { display: none; }
.yr2-frame { appearance: none; text-align: left; cursor: pointer; aspect-ratio: 9 / 16; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .16); background: radial-gradient(120% 60% at 100% 0%, rgba(255, 42, 47, .42), transparent 60%), linear-gradient(180deg, #0a0203 0%, #050000 70%); padding: 9px 9px 10px; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 5px; position: relative; overflow: hidden; color: #f8fafc; min-width: 0; }
.yr2-frame > span { text-align: left; max-width: 100%; }
.yr2-frame > :is(.yr2-fl, .yr2-fspark) { align-self: stretch; }
.yr2-frame.is-on { outline: 1px solid rgba(255, 255, 255, .75); outline-offset: 2px; }
.yr2-frame:focus-visible { outline: 2px solid #ffffff; outline-offset: 2px; }
.yr2-fk { display: flex; align-items: center; gap: 5px; font-size: 6.5px; letter-spacing: .12em; text-transform: uppercase; color: #b8bcc0; padding-right: 28px; }
.yr2-fk .yr2-dot { width: 4px; height: 4px; }
.yr2-fte { position: absolute; right: 8px; top: 7px; width: 24px; height: auto; }
.yr2-fh { margin-top: auto; font-size: 8px; letter-spacing: .1em; text-transform: uppercase; color: #b8bcc0; }
.yr2-fb { font-size: 25px; line-height: 1; color: #f8fafc; font-variant-numeric: tabular-nums; white-space: nowrap; }
.yr2-fb.is-long { font-size: 19px; }
.yr2-fb small { font-size: 9px; color: #b8bcc0; margin-left: 3px; letter-spacing: .06em; }
.yr2-fs { font-size: 7.5px; line-height: 1.45; color: #d6d9dc; letter-spacing: .02em; overflow-wrap: anywhere; }
.yr2-fl { height: 1px; background: rgba(255, 255, 255, .16); margin: 3px 0; }
.yr2-fspark { width: 100%; height: 34px; flex: none; }
.yr2-fspark rect { fill: rgba(248, 250, 252, .45); }
.yr2-fspark rect.is-top { fill: #ff4a4a; }
.yr2-fsig { margin-top: auto; font-size: 8px; color: #f8fafc; letter-spacing: .04em; line-height: 1.5; }

@media (min-width: 900px) {
  .yr2 { margin: 18px 0 8px; grid-template-columns: 300px minmax(0, 1fr); gap: 18px 28px; padding: 22px 24px; }
  .yr2-frames { grid-auto-columns: 150px; margin: 0; padding: 3px; }
  .yr2-big b { font-size: 56px; }
  .yr2-fb.is-long { font-size: 23px; }
}

/* светлая TRS: карточка белая, акцент зелёный, кадры остаются тёмными */
html[data-theme=trs] .yr2 { background: #ffffff; background-image: none; color: #16231c; border-color: #e4e7e5; }
html[data-theme=trs] .yr2 h2, html[data-theme=trs] .yr2-big b { color: #16231c; }
html[data-theme=trs] :is(.yr2-kicker, .yr2-big span, .yr2-sub, .yr2-note) { color: #5b6b62; }
html[data-theme=trs] .yr2-note.is-err { color: #16231c; }
html[data-theme=trs] .yr2-top .yr2-dot { background: #315f50; }
html[data-theme=trs] .yr2-te.is-dark { display: none; }
html[data-theme=trs] .yr2-te.is-light { display: block; }
html[data-theme=trs] .yr2-actions .tl-btn:not(.yr2-feed) { color: #16231c; border-color: #c9d1cd; background: #ffffff; }
html[data-theme=trs] .yr2-frame.is-on { outline: 2px solid #315f50; }
html[data-theme=trs] .yr2-frame:focus-visible { outline: 2px solid #16231c; }
