/* «Вместе»: комнаты, подборка «Зайдёт всем», чаты и личные сообщения. Образец — стили .rm-*, .rmc-*, .ch-*, .tvr-* приложения,
   цвета и кнопки — сайта. Своё сообщение янтарное, чужое тёмное, как в приложении */

/* ---------- список комнат во вкладке «Вместе» ---------- */
.tg-h { margin: 0 0 var(--s3); }
.tg-list { display: grid; gap: var(--s2); }
.rm-row { display: flex; align-items: center; gap: var(--s3); width: 100%; padding: 14px 16px; border-radius: var(--r3); background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); text-align: left; transition: background var(--d1), transform var(--d2) var(--ease); }
a.rm-row:hover, button.rm-row:hover { background: #1a150f; }
.rm-row .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rm-row .tx b { font: 500 18px/1.2 var(--f-display); letter-spacing: .01em; }
.rm-row .tx small { color: var(--muted); font-size: var(--t-s); line-height: 1.4; }
.rm-row .e { width: 28px; text-align: center; font-size: 21px; flex: none; }
.rm-row .go { color: var(--faint); transition: transform var(--d2) var(--ease), color var(--d2); }
.rm-row:hover .go { transform: translateX(3px); color: var(--ink-2); }
.rm-avas { display: flex; flex: none; } .rm-avas .ava { width: 32px; height: 32px; font-size: 14px; box-shadow: 0 0 0 2px var(--surface); }
.rm-avas .ava + .ava { margin-left: -9px; }
.rm-new { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: var(--s3); padding: 16px; border-radius: var(--r3);
  border: 1.5px dashed rgba(233, 180, 92, .4); color: var(--gold); font: 500 18px var(--f-display); letter-spacing: .02em; transition: background var(--d1), border-color var(--d1); }
.rm-new:hover { background: rgba(233, 180, 92, .06); border-color: var(--gold); }
.rm-tour.done { opacity: .6; } .tg-aside { margin-top: var(--s4); font-size: var(--t-s); line-height: 1.55; }
.tg-rooms { margin-top: var(--s5); }

/* ---------- приглашение по ссылке ---------- */
.tg-join { max-width: 620px; } .tg-join .in { padding: var(--s6); }
.tg-join-e { font-size: 40px; } .tg-join .h2 { margin-top: var(--s3); } .tg-join .sub { margin: var(--s3) 0 var(--s5); color: var(--label-muted); font-weight: 600; }

/* ---------- комната ---------- */
.tg-room .rm-head { margin-bottom: var(--s5); }
.rm-ht { display: flex; align-items: center; gap: var(--s4); margin-top: var(--s3); } .rm-ht .h1 { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.rm-strip { display: flex; align-items: center; gap: 6px; padding: 12px 10px 12px 14px; }
.rm-who { flex: 1; min-width: 0; display: flex; align-items: center; gap: 4px; text-align: left; }
.rm-who .txt { flex: 1; min-width: 0; margin-left: 8px; font-size: var(--t-s); line-height: 1.35; color: var(--muted); } .rm-who .txt b { color: var(--gold); }
.rm-more { font-size: 12.5px; font-weight: 800; color: var(--muted); margin-left: 2px; }
.rm-plus { flex: none; width: 40px; height: 40px; border-radius: 12px; color: var(--gold); display: flex; align-items: center; justify-content: center; transition: background var(--d1); }
.rm-plus:hover { background: var(--surface-2); }
.rm-ring { position: relative; width: var(--s); height: var(--s); flex: none; display: inline-block; }
.rm-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.rm-ring circle { fill: none; stroke-width: 3; } .rm-ring .bg { stroke: var(--surface-3); } .rm-ring .fg { stroke: var(--gold); stroke-linecap: round; transition: stroke-dasharray var(--d4) var(--ease); }
.rm-ring.ok .fg { stroke: #9fd48a; }
.rm-ring .ava { position: absolute; inset: 5px; width: auto; height: auto; font-size: calc(var(--s) * .34); box-shadow: none; }
.rm-ok { position: absolute; right: -2px; bottom: -2px; width: 22px; height: 22px; border-radius: 50%; background: #9fd48a; color: #14200f; font: 900 13px/1 var(--f-text); font-style: normal;
  display: flex; align-items: center; justify-content: center; border: 2px solid var(--surface); }
.rm-chat-row { margin-top: var(--s3); } .rm-chat-row small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rm-now { font-style: normal; font: 800 11.5px var(--f-text); color: var(--label-ink); background: var(--gold); border-radius: 6px; padding: 1px 6px; margin-left: 4px; vertical-align: 2px; letter-spacing: 0; }
.rm-card { margin-top: var(--s3); padding: var(--s4) var(--s5); }
.rm-card > b { display: block; font: 500 19px/1.25 var(--f-display); letter-spacing: .01em; } .rm-card .sub { margin-top: 6px; font-size: var(--t-s); line-height: 1.5; }
.rm-card .btn, .rm-card .row-x { margin-top: var(--s3); }
.rm-bar { height: 6px; margin-top: var(--s3); border-radius: 3px; background: var(--surface-3); overflow: hidden; } .rm-bar i { display: block; height: 100%; border-radius: 3px; background: var(--gold); }
.rm-pick { margin-top: var(--s5); }
.rm-go { margin-top: var(--s5); display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.btn.off { background: var(--surface-2); color: var(--muted); box-shadow: 0 3px 0 #040302, inset 0 0 0 1px var(--line); }
.btn.off[disabled] { opacity: 1; }
.tg-room aside .rm-row + .rm-row { margin-top: var(--s2); }
.rm-lp { width: 38px; height: 56px; border-radius: 6px; object-fit: cover; flex: none; background: var(--surface-3); display: block; }
.rm-foot { margin-top: var(--s4); font-size: var(--t-xs); color: var(--muted); line-height: 1.5; }
/* участники */
.rm-mem { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 14px 8px; margin: var(--s5) 0 var(--s3); }
.rm-mem .m { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; padding: 6px 2px; border-radius: 12px; transition: background var(--d1); }
.rm-mem .m:hover { background: var(--surface-2); }
.rm-mem .m b { font-weight: 800; font-size: var(--t-s); margin-top: 8px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rm-mem .m small { font-size: 12px; color: var(--muted); } .rm-mem .need { color: var(--gold); font-weight: 700; }
.rm-pairs .sub { margin-bottom: 4px; } .rm-few { display: block; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.rm-pair { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); } .rm-pairs .sub + .rm-pair { border-top: 0; }
.rm-pair > .ava { box-shadow: 0 0 0 2px var(--pc), 0 0 0 4px var(--surface); }
.rm-pair .mid { flex: 1; min-width: 0; } .rm-pair .nm { font-size: var(--t-s); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rm-pair .bar { height: 6px; margin-top: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; } .rm-pair .bar i { display: block; height: 100%; border-radius: 3px; background: var(--pc); }
.rm-pair > b { flex: none; font: 600 22px/1 var(--f-display); color: var(--pc); min-width: 56px; text-align: right; }
.rm-pair > em { flex: none; max-width: 96px; font-style: normal; font-size: 12px; line-height: 1.3; color: var(--muted); text-align: right; }
.modal .rm-card + .rm-row, .modal .rm-card + .rm-card, .modal .rm-row + .rm-row { margin-top: var(--s3); } .modal .rm-row { margin-top: var(--s3); }
.rm-sheet-acts { display: flex; justify-content: space-between; margin: var(--s4) 2px 0; } .tlink.danger { color: #e07b6c; }
.tg-sh { margin: var(--s5) 0 4px; font: 600 12px var(--f-display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ri-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); } .ri-row b { flex: 1; min-width: 0; font-weight: 800; }
.ri-row .btn { flex: none; } #ri-list { margin-top: var(--s2); } .ri-row .rmc-tk { margin-left: auto; }
/* «Обсудить»: отмечаешь галочками, можно в несколько мест */
.dc-row { margin-top: var(--s2) !important; } .dc-row .dc-ck { width: 24px; height: 24px; flex: none; border-radius: 50%; border: 2px solid var(--line-2); display: flex; align-items: center; justify-content: center; transition: all var(--d1); }
.dc-row.on { background: rgba(233, 180, 92, .08); box-shadow: inset 0 0 0 1px var(--gold); } .dc-row.on .dc-ck { background: var(--gold); border-color: var(--gold); }
.dc-row.on .dc-ck::after { content: "✓"; color: var(--label-ink); font-weight: 900; font-size: 14px; }

/* ---------- подборка «Зайдёт всем» ---------- */
.rm-films { display: grid; gap: var(--s3); margin-top: var(--s5); }
.rm-film { padding: var(--s4); }
.rm-film .top { display: flex; gap: var(--s4); }
.rm-film .b { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rm-fp { width: 84px; height: 126px; border-radius: 10px; object-fit: cover; flex: none; background: var(--surface-3); box-shadow: 0 8px 20px rgba(0, 0, 0, .35); display: block; transition: transform var(--d2) var(--ease); }
.rm-film .top:hover .rm-fp { transform: translateY(-2px) rotate(-1deg); }
.rm-film .t { font: 500 22px/1.15 var(--f-display); letter-spacing: .01em; } .rm-film .top:hover .t { color: var(--gold); }
.rm-film .y { margin-top: 4px; color: var(--muted); font-size: var(--t-s); }
.rm-note { margin-top: 8px; font-size: var(--t-s); color: #e0a15a; line-height: 1.45; }
.rm-why { margin-top: 8px; font-size: var(--t-s); color: var(--ink-2); line-height: 1.5; }
.rm-acts { display: flex; gap: var(--s2); margin-top: var(--s4); } .rm-acts .btn { flex: 1; }
.rm-votes { margin-top: var(--s3); font-size: var(--t-s); font-weight: 800; color: var(--gold); }
.rm-pbtn { margin-top: var(--s5); }
.rp-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.rp { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 800; color: var(--c);
  background: color-mix(in srgb, var(--c) 15%, transparent); white-space: nowrap; }
.rp > svg { width: 1em; height: 1em; flex: none; }
.rp-fav { display: inline-flex; align-items: center; gap: 2px; margin-left: 4px; font-size: .84em; font-weight: 700; color: var(--cf, #e0894a); }
.rp-fav > svg { width: .95em; height: .95em; }

/* ---------- список чатов ---------- */
.tg-chats .page-head { margin-bottom: var(--s5); }
.ch-list { padding: 4px 0; overflow: hidden; }
.ch-row { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; min-height: 78px; padding: 10px 18px; color: var(--ink); text-align: left;
  transition: background var(--d1); animation: rmcIn .3s cubic-bezier(.22,.8,.24,1) calc(var(--k) * 35ms) both; }
.ch-row:hover { background: rgba(255, 255, 255, .035); } .ch-row.on { background: rgba(233, 180, 92, .1); }
.ch-row + .ch-row::before { content: ""; position: absolute; top: 0; left: 86px; right: 0; height: 1px; background: var(--line); }
.ch-ava { position: relative; flex: none; width: 54px; height: 54px; border-radius: 50%; overflow: hidden; display: grid; gap: 1.5px; background: var(--bg); }
.ch-ava i { position: relative; display: flex; align-items: center; justify-content: center; font: 600 16px var(--f-display); font-style: normal; color: #140f06; overflow: hidden; }
.ch-ava img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ch-ava.n1 { grid-template-columns: 1fr; } .ch-ava.n1 i { font-size: 22px; }
.ch-ava.n2 { grid-template-columns: 1fr 1fr; }
.ch-ava.n3, .ch-ava.n4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; } .ch-ava.n3 i, .ch-ava.n4 i { font-size: 12px; }
.ch-ava.n3 i:first-child { grid-row: 1 / 3; font-size: 16px; }
.ch-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ch-t { display: flex; align-items: baseline; gap: 8px; } .ch-t b { flex: 1; min-width: 0; font-weight: 800; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-t small { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--muted); }
.ch-tk { font-style: normal; font-size: 11px; letter-spacing: -3px; padding-right: 3px; color: var(--muted); } .ch-tk.read { color: #9fd48a; }
.ch-l { display: flex; align-items: flex-start; gap: 8px; }
.ch-l > span { flex: 1; min-width: 0; font-size: 14.5px; line-height: 1.35; color: var(--muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ch-l i { font-style: normal; font-weight: 700; color: var(--gold); }
.ch-l em { flex: none; margin-top: 1px; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--gold); color: var(--label-ink);
  font: 800 12.5px var(--f-text); font-style: normal; display: flex; align-items: center; justify-content: center; animation: rmcPop .25s ease-out; }
.ch-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 80px 30px; text-align: center; color: var(--muted); }
.ch-empty b { color: var(--ink); font: 500 22px var(--f-display); } .ch-empty span { max-width: 40ch; font-size: var(--t-s); line-height: 1.55; } .ch-empty svg { width: 34px; height: 34px; color: var(--gold); }
/* «Чаты» на главной */
.hm-chats-box:not(:empty) { margin-top: var(--s3); }
.hm-chats .hc-badge { flex: none; min-width: 26px; height: 26px; padding: 0 8px; border-radius: 13px; background: var(--gold); color: var(--label-ink); font: 800 13px var(--f-text);
  display: flex; align-items: center; justify-content: center; } .hm-chats .hc-badge + .go { margin-left: 0; }

/* ---------- чат: шапка, лента, поле. Под шапкой сайта на весь экран, футер прячем ---------- */
body.chat-on footer.foot { display: none; }
.tg-chat { display: flex; gap: var(--s4); padding-top: var(--s3); padding-bottom: var(--s3); }
.ch-side { width: 340px; flex: none; display: flex; flex-direction: column; border-radius: var(--r3); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.ch-side-h { padding: 16px 18px 8px; } .ch-side-h a { font: 500 24px var(--f-display); letter-spacing: .01em; }
.ch-side .ch-list { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.ch-side .ch-row { min-height: 70px; padding: 8px 14px; gap: 12px; } .ch-side .ch-ava { width: 48px; height: 48px; } .ch-side .ch-row + .ch-row::before { left: 74px; }
.rmc { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; border-radius: var(--r3); background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.rmc.drop::after { content: "Отпусти, и картинка уйдёт в чат"; position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center;
  background: rgba(11, 9, 7, .82); border: 2px dashed var(--gold); border-radius: var(--r3); color: var(--gold); font: 500 20px var(--f-display); }
.rmc-head { flex: none; display: flex; align-items: center; gap: 6px; min-height: 66px; padding: 8px 14px 8px 8px; background: var(--surface); border-bottom: 1px solid var(--line); }
.rmc-back { display: none; }
.rmc-hb { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 6px 8px; border-radius: 12px; text-align: left; transition: background var(--d1); }
.rmc-hb:hover { background: var(--surface-2); }
.rmc-hb .ch-ava { width: 44px; height: 44px; } .rmc-hb .ava.lg { width: 44px; height: 44px; font-size: 19px; }
.rmc-hb > span { min-width: 0; } .rmc-hb b { display: block; font-weight: 800; font-size: 16.5px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rmc-hb small { display: block; color: var(--muted); font-size: 12.5px; }
#rmc-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; }
#rmc-list { margin-top: auto; display: flex; flex-direction: column; width: 100%; max-width: 820px; margin-left: auto; margin-right: auto; padding: 10px 14px 14px; }
.rmc-empty { margin: auto; color: var(--muted); font-size: var(--t-s); text-align: center; padding: 60px 20px; }
.rmc-day { display: flex; justify-content: center; margin: 14px 0 6px; pointer-events: none; }
.rmc-day span { padding: 3px 11px; border-radius: 12px; background: rgba(40, 35, 44, .92); font-size: 12.5px; font-weight: 700; }
.rmc-m { display: flex; align-items: flex-end; gap: 8px; margin-top: 2px; border-radius: 12px; transition: background .5s; } .rmc-m.first { margin-top: 10px; }
.rmc-m.me { justify-content: flex-end; } .rmc-m.hl { background: rgba(233, 180, 92, .16); }
.rmc-av, .rmc-sp { width: 34px; height: 34px; flex: none; } .rmc-av .ava { width: 34px; height: 34px; font-size: 14px; box-shadow: none; }
.rmc-b { position: relative; max-width: min(78%, 520px); padding: 6px 10px 6px 12px; border-radius: 17px; background: #2a231b; font-size: 15.5px; line-height: 1.4;
  overflow-wrap: anywhere; cursor: pointer; transition: transform .12s ease-out, filter .12s; }
.rmc-b:active { transform: scale(.985); }
.rmc-m.me .rmc-b { background: #4a3c24; }
.rmc-m:not(.me):not(.first) .rmc-b { border-top-left-radius: 6px; } .rmc-m:not(.me):not(.last) .rmc-b { border-bottom-left-radius: 6px; }
.rmc-m.me:not(.first) .rmc-b { border-top-right-radius: 6px; } .rmc-m.me:not(.last) .rmc-b { border-bottom-right-radius: 6px; }
/* хвостик у последнего сообщения группы */
.rmc-m.last:not(.me) .rmc-b { border-bottom-left-radius: 4px; } .rmc-m.last.me .rmc-b { border-bottom-right-radius: 4px; }
.rmc-m.last .rmc-b::after { content: ""; position: absolute; bottom: 0; width: 12px; height: 14px; }
.rmc-m.last:not(.me) .rmc-b::after { left: -7px; background: radial-gradient(circle at 0 0, transparent 11.5px, #2a231b 12px); }
.rmc-m.last.me .rmc-b::after { right: -7px; background: radial-gradient(circle at 100% 0, transparent 11.5px, #4a3c24 12px); }
.rmc-nm { display: block; font-size: 13.5px; font-weight: 800; margin-bottom: 1px; }
.rmc-tx { user-select: text; cursor: text; }
.rmc-meta { float: right; display: inline-flex; align-items: center; gap: 3px; margin: 8px -2px -5px 12px; font-size: 11.5px; color: rgba(247, 247, 238, .5); white-space: nowrap; user-select: none; }
.rmc-tk { font-style: normal; font-size: 11px; letter-spacing: -3px; padding-right: 3px; } .rmc-tk.read { color: #9fd48a; } .rmc-tk.wait { letter-spacing: 0; font-size: 10px; }
.rmc-q { margin: 2px 0 4px; padding: 3px 8px; border-left: 3px solid var(--gold); border-radius: 4px 8px 8px 4px; background: rgba(255, 255, 255, .06); font-size: 13.5px;
  color: rgba(247, 247, 238, .75); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rmc-q i { display: block; font-style: normal; font-weight: 800; color: var(--gold); }
.rmc-at { color: var(--gold); font-weight: 700; } .rmc-at.me { background: rgba(233, 180, 92, .22); border-radius: 4px; padding: 0 2px; }
.rmc-m.new { animation: rmcIn .26s cubic-bezier(.22,.8,.24,1); }
.rmc-m.me.new { animation: rmcSend .24s cubic-bezier(.22,.8,.24,1); transform-origin: 100% 100%; }   /* своё вырастает из поля ввода */
@keyframes rmcIn { from { opacity: 0; transform: translateY(12px); } }
@keyframes rmcSend { from { opacity: 0; transform: translateY(26px) scale(.82); } }
@keyframes rmcPop { from { transform: scale(.4); opacity: 0; } }
@keyframes rmcFade { from { opacity: 0; } }
/* карточка фильма в сообщении */
.rmc-film { display: flex; gap: 10px; margin: 2px 0 4px; padding: 8px; border-radius: 12px; background: rgba(0, 0, 0, .22); min-width: 240px; transition: background var(--d1); }
.rmc-film:hover { background: rgba(0, 0, 0, .32); }
.rmc-fp { width: 56px; height: 84px; border-radius: 8px; object-fit: cover; flex: none; background: var(--surface-3); display: block; }
.rmc-film .fb { min-width: 0; display: flex; flex-direction: column; } .rmc-film .fb > b { font-weight: 800; font-size: 15px; line-height: 1.25; }
.rmc-film .fb > small { color: rgba(247, 247, 238, .6); font-size: 12px; }
.rmc-film .rp-list { margin-top: 6px; gap: 4px; } .rmc-film .rp { font-size: 12px; padding: 2px 8px; }
.rmc-seen { margin-top: 6px; font-size: 12.5px; color: rgba(247, 247, 238, .7); }
/* картинки */
.rmc-img { position: relative; width: min(300px, 62vw); max-height: 360px; margin: 2px -6px 4px; border-radius: 12px; overflow: hidden; background: rgba(0, 0, 0, .25); cursor: zoom-in; }
.rmc-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rmc-img.solo { margin-bottom: -18px; } .rmc-img.solo + .rmc-tx .rmc-meta { position: relative; z-index: 1; padding: 1px 6px; border-radius: 9px; background: rgba(0, 0, 0, .45); color: #fff; }
.rmc-up { position: absolute; inset: 0; background: rgba(0,0,0,.35) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='20' r='14' fill='none' stroke='white' stroke-width='3' stroke-dasharray='60 30'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 20 20' to='360 20 20' dur='1s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/svg%3E") center/40px no-repeat; }
.img-full { position: fixed; inset: 0; z-index: 400; background: rgba(0, 0, 0, .92); display: flex; align-items: center; justify-content: center; padding: 24px; animation: rmcFade .22s ease-out; cursor: zoom-out; }
.img-full img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.img-full.out { background: rgba(0, 0, 0, 0); transition: background .22s ease-in; } .img-full.out img { transition: transform .22s cubic-bezier(.4,0,.6,1), opacity .22s; }
/* реакции */
.rmc-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: 4px; }
.rmc-foot .rmc-meta { float: none; margin: 0 -2px -1px auto; }
.rmc-rxs { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
.rmc-rx { display: inline-flex; align-items: center; gap: 3px; height: 26px; padding: 0 8px 0 6px; border-radius: 13px; background: rgba(255, 255, 255, .1);
  color: var(--ink); font-size: 12.5px; font-weight: 800; transition: background .18s, color .18s, transform .12s; }
.rmc-rx:hover { background: rgba(255, 255, 255, .16); } .rmc-rx:active { transform: scale(.9); }
.rmc-rx.pop { animation: rxPop .32s cubic-bezier(.34,1.56,.64,1); } .rmc-rx.pop i { animation: rxEmoji .42s cubic-bezier(.34,1.56,.64,1); }
@keyframes rxPop { from { transform: scale(.3); opacity: 0; } }
@keyframes rxEmoji { 0% { transform: scale(.4); } 55% { transform: scale(1.35); } 100% { transform: scale(1); } }
.rmc-rx i { font-style: normal; font-size: 15px; line-height: 1; } .rmc-rx.on { background: var(--gold); color: var(--label-ink); }
.rx-av { display: inline-flex; } .rx-av .ava { width: 18px; height: 18px; font-size: 9px; box-shadow: 0 0 0 1.5px #2a231b; }
.rmc-m.me .rx-av .ava { box-shadow: 0 0 0 1.5px #4a3c24; } .rmc-rx.on .rx-av .ava { box-shadow: 0 0 0 1.5px var(--gold); } .rx-av .ava + .ava { margin-left: -6px; }
/* слой под меню без затемнения: пузырь живёт внутри страницы и над слоем не поднимается, поэтому выбранный подсвечен рамкой */
.rmc-ctx { position: fixed; inset: 0; z-index: 250; background: transparent; } .rmc-ctx.out { opacity: 0; transition: opacity .15s; }
.rmc-ctx-bar { position: fixed; display: flex; gap: 2px; padding: 5px 6px; border-radius: 26px; background: #2f2a34; box-shadow: 0 8px 24px rgba(0, 0, 0, .45); animation: ctxIn .24s cubic-bezier(.34,1.56,.64,1); }
.rmc-ctx-bar button { width: 40px; height: 40px; border-radius: 50%; font-size: 25px; line-height: 1; transition: transform .12s; animation: ctxEmoji .26s cubic-bezier(.34,1.56,.64,1) both; }
.rmc-ctx-bar button:hover { transform: scale(1.2); } .rmc-ctx-bar button:active { transform: scale(1.35); } .rmc-ctx-bar button.on { background: rgba(233, 180, 92, .3); }
@keyframes ctxIn { from { transform: scale(.25); opacity: 0; } }
@keyframes ctxEmoji { from { transform: scale(.2) translateY(6px); opacity: 0; } }
.rmc-ctx.out .rmc-ctx-bar, .rmc-ctx.out .rmc-ctx-menu { transform: scale(.85); opacity: 0; transition: transform .15s ease-in, opacity .15s ease-in; }
.rmc-ctx-menu { position: fixed; min-width: 210px; border-radius: 14px; overflow: hidden; background: #2f2a34; box-shadow: 0 8px 24px rgba(0, 0, 0, .45); animation: ctxMenu .2s cubic-bezier(.22,.8,.24,1); }
@keyframes ctxMenu { from { transform: scale(.6); opacity: 0; } }
.rmc-ctx-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 16px; color: var(--ink); font-size: 15px; text-align: left; }
.rmc-ctx-menu button:hover { background: rgba(255, 255, 255, .05); }
.rmc-ctx-menu button + button { border-top: 1px solid rgba(255, 255, 255, .07); } .rmc-ctx-menu svg { color: var(--muted); }
.rmc-b.pick { box-shadow: 0 0 0 2px var(--gold), 0 8px 24px rgba(0, 0, 0, .4); }
.rmc-rx-big { font-size: 22px; width: 36px; text-align: center; }
.rmc-quote { margin: 4px 40px 4px 0; padding: 10px 12px; border-radius: 12px; background: #4a3c24; font-size: 15px; }
/* поле ввода */
.rmc-bar { flex: none; padding: 8px 12px 10px; background: var(--surface); border-top: 1px solid var(--line); }
.rmc-bar > * { max-width: 820px; margin-left: auto; margin-right: auto; }
.rmc-typline { height: 0; overflow: hidden; padding-left: 14px; font-size: 13px; opacity: 0; transition: height .2s ease-out, opacity .2s ease-out, margin .2s ease-out; }
.rmc-typline.on { height: 18px; margin-bottom: 6px; opacity: 1; }
.rmc-typing { color: var(--gold); } .rmc-typing i { display: inline-block; width: 4px; height: 4px; margin-left: 2px; border-radius: 50%; background: currentColor; vertical-align: 2px;
  animation: rmcDot 1.2s infinite ease-in-out; } .rmc-typing i:nth-child(2) { animation-delay: .15s; } .rmc-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes rmcDot { 0%, 60%, 100% { opacity: .25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-2px); } }
.rmc-in { display: flex; align-items: flex-end; gap: 6px; padding: 4px 4px 4px 6px; border-radius: 24px; background: var(--bg-2); border: 1px solid var(--line-2); transition: border-color var(--d1); }
.rmc-in:focus-within { border-color: rgba(233, 180, 92, .45); }
.rmc-in textarea { flex: 1; min-height: 38px; max-height: 140px; padding: 9px 0; border: 0; outline: none; background: none; color: var(--ink); font: inherit; font-size: 16px; line-height: 1.3; resize: none; }
#rmc-att { width: 38px; height: 38px; flex: none; border-radius: 50%; color: var(--muted); display: flex; align-items: center; justify-content: center; transition: color var(--d1), background var(--d1); }
#rmc-att:hover { color: var(--gold); background: var(--surface-2); }
#rmc-send { width: 38px; height: 38px; flex: none; border-radius: 50%; background: var(--gold); color: var(--label-ink); display: flex; align-items: center; justify-content: center;
  animation: rmcPop .18s cubic-bezier(.22,.8,.24,1); } #rmc-send[hidden] { display: none; }
.rmc-rep { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; padding: 0 4px; color: var(--gold); animation: rmcPop .2s ease-out; }
.rmc-rep div { flex: 1; min-width: 0; font-size: 13px; padding-left: 8px; border-left: 2px solid var(--gold); } .rmc-rep i { display: block; font-style: normal; font-weight: 800; }
.rmc-rep span { display: block; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .rmc-rep button { color: var(--muted); display: flex; }
.rmc-pop { margin-bottom: 8px; border-radius: 14px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; animation: rmcPop .16s ease-out; }
.rmc-pop button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 12px; color: var(--ink); text-align: left; } .rmc-pop button:hover { background: var(--surface-3); }
.rmc-pop button + button { border-top: 1px solid var(--line); } .rmc-pop .ava { width: 28px; height: 28px; font-size: 12px; }
.rmc-rep[hidden], .rmc-pop[hidden] { display: none; }

/* ---------- «Как пользоваться»: живые картинки, всё запускается заново при показе карточки ---------- */
.tvr-vis { align-items: center; min-height: 230px; overflow: hidden; }
.tvr-a { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; color: #140f06; font: 600 18px var(--f-display); box-shadow: 0 0 0 3px rgba(0,0,0,.25); }
.tvr-inv { position: relative; width: 280px; height: 170px; }
.tvr-link { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; padding: 10px 16px; border-radius: 22px; background: var(--gold); color: #140f06; font-weight: 800; font-size: 14px; white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0,0,0,.35); animation: tvrPulse 1.6s ease-in-out .9s infinite; }
.tvr-inv .fly { position: absolute; left: 117px; top: 62px; animation: tvrFly .7s cubic-bezier(.34,1.56,.64,1) both; }
.tvr-inv .a1 { --x: -92px; --y: -55px; animation-delay: .15s; } .tvr-inv .a2 { --x: 92px; --y: -55px; animation-delay: .3s; }
.tvr-inv .a3 { --x: -92px; --y: 55px; animation-delay: .45s; } .tvr-inv .a4 { --x: 92px; --y: 55px; animation-delay: .6s; }
@keyframes tvrFly { from { transform: translate(0, 0) scale(.2); opacity: 0; } to { transform: translate(var(--x), var(--y)) scale(1); opacity: 1; } }
@keyframes tvrPulse { 0%, 100% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-50%, -50%) scale(1.06); } }
.tvr-lines { position: absolute; inset: 0; width: 100%; height: 100%; } .tvr-lines path { fill: none; stroke: rgba(233, 180, 92,.5); stroke-width: 2; stroke-dasharray: 5 6; animation: tvrDash 1.2s linear infinite; }
@keyframes tvrDash { to { stroke-dashoffset: -22; } }
@keyframes tvrFill { to { stroke-dashoffset: var(--O); } }
.tvr-ok { position: absolute; right: -3px; bottom: -3px; width: 22px; height: 22px; border-radius: 50%; background: #9fd48a; color: #14200f; font-style: normal; font-weight: 900; font-size: 13px;
  display: flex; align-items: center; justify-content: center; }
@keyframes tvrPop { from { transform: scale(0); } }
@keyframes tvrUp { from { transform: translateY(14px); opacity: 0; } }
@keyframes tvrShow { to { opacity: 1; } }
@keyframes tvrW { to { width: var(--w); } }
.tvr-taste { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 7px; }
.tvr-tr { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 8px; align-items: center; animation: tvrUp .4s ease-out var(--d) both; }
.tvr-tr.hd { justify-items: center; } .tvr-tr.hd .tvr-a { width: 34px; height: 34px; font-size: 14px; box-shadow: none; }
.tvr-tr > span { font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 6px; white-space: nowrap; } .tvr-tr > span i { font-style: normal; font-size: 17px; }
.tvr-tr b { position: relative; height: 22px; border-radius: 7px; background: rgba(0,0,0,.28); overflow: hidden; }
.tvr-tr b em { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--c); opacity: .85; animation: tvrW .6s cubic-bezier(.22,.8,.24,1) var(--dd) forwards; }
.tvr-tr b u { position: relative; display: block; text-align: center; line-height: 22px; font-size: 12px; font-weight: 800; text-decoration: none; color: #fff; opacity: 0; animation: tvrShow .3s ease-out calc(var(--dd) + .3s) forwards; }
.tvr-match { display: flex; gap: 10px; justify-content: center; margin-top: 8px; }
.tvr-match > span { display: inline-flex; align-items: center; padding: 4px 10px 4px 4px; border-radius: 20px; background: rgba(159,212,138,.15); box-shadow: inset 0 0 0 1px rgba(159,212,138,.4);
  animation: tvrPop .45s cubic-bezier(.34,1.56,.64,1) var(--d) both; }
.tvr-match .tvr-a { width: 26px; height: 26px; font-size: 11px; box-shadow: 0 0 0 2px #1d3328; } .tvr-match .tvr-a + .tvr-a { margin-left: -7px; } .tvr-match b { margin-left: 7px; color: #9fd48a; font-size: 14px; }
.tvr-host { width: 100%; max-width: 340px; display: flex; flex-direction: column; gap: 12px; }
.tvr-crown { display: flex; align-items: center; gap: 8px; font-size: 22px; animation: tvrUp .4s ease-out both; } .tvr-crown b { font-size: 15px; } .tvr-crown .tvr-a { width: 34px; height: 34px; font-size: 14px; }
.tvr-ai { padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(233, 180, 92,.45); font-size: 14px; overflow: hidden; white-space: nowrap; animation: tvrUp .4s ease-out .15s both; }
.tvr-ai svg { width: 14px; height: 14px; vertical-align: -2px; color: var(--gold); }
.tvr-type { display: inline-block; overflow: hidden; vertical-align: bottom; width: 0; animation: tvrType 1.1s steps(34) .4s forwards; } @keyframes tvrType { to { width: 100%; } }
.tvr-chips { display: flex; flex-wrap: wrap; gap: 6px; } .tvr-chips i { font-style: normal; padding: 6px 12px; border-radius: 16px; background: var(--label); color: var(--label-ink); font-size: 13px; font-weight: 700;
  animation: tvrPop .35s cubic-bezier(.34,1.56,.64,1) var(--d) both; }
.tvr-btn { padding: 12px; border-radius: 14px; background: var(--gold); color: var(--label-ink); text-align: center; font-weight: 800; animation: tvrUp .4s ease-out 1.4s both, tvrPress .5s ease-in-out 2s 2; }
@keyframes tvrPress { 50% { transform: scale(.95); filter: brightness(1.15); } }
.tvr-three { display: flex; gap: 12px; justify-content: center; align-items: flex-end; }
.tvr-col { position: relative; width: 98px; display: flex; flex-direction: column; align-items: center; animation: tvrUp .5s cubic-bezier(.22,.8,.24,1) var(--d) both; }
.tvr-col.best { width: 108px; } .tvr-col.best .tvr-poster { box-shadow: 0 0 0 2px var(--gold), 0 10px 28px rgba(233, 180, 92,.35); }
.tvr-best { position: absolute; top: -10px; z-index: 2; padding: 2px 8px; border-radius: 9px; background: var(--gold); color: var(--label-ink); font-size: 11px; font-weight: 800;
  animation: tvrPop .4s cubic-bezier(.34,1.56,.64,1) 1.6s both; }
.tvr-poster { width: 100%; aspect-ratio: 2 / 3; border-radius: 10px; overflow: hidden; background: linear-gradient(160deg, rgba(255,255,255,.12), rgba(0,0,0,.3)); box-shadow: 0 8px 20px rgba(0,0,0,.4); }
.tvr-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tvr-nm { margin-top: 6px; font-size: 11.5px; font-weight: 800; text-align: center; line-height: 1.2; min-height: 28px; }
.tvr-all { position: relative; width: 52px; height: 52px; margin-top: 2px; }
.tvr-all svg { width: 100%; height: 100%; transform: rotate(-90deg); } .tvr-all circle { fill: none; stroke-width: 5; } .tvr-all .bg { stroke: rgba(0,0,0,.3); }
.tvr-all .fg { stroke: #9fd48a; stroke-linecap: round; stroke-dasharray: var(--C); stroke-dashoffset: var(--C); animation: tvrFill .9s cubic-bezier(.22,.8,.24,1) var(--dd) forwards; }
.tvr-all b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 600 15px var(--f-display); color: #cfe7b8; }
.tvr-ppl { display: flex; gap: 3px; margin-top: 6px; } .tvr-ppl span { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10.5px; font-weight: 800; color: rgba(247, 247, 238,.85);
  animation: tvrPop .35s cubic-bezier(.34,1.56,.64,1) var(--d) both; }
.tvr-ppl i { width: 18px; height: 18px; border-radius: 50%; font-style: normal; font-size: 9px; color: #140f06; display: flex; align-items: center; justify-content: center; }
.tvr-cap { margin-top: 12px; text-align: center; font-size: 12.5px; color: rgba(247, 247, 238,.7); animation: tvrShow .4s ease-out 1.8s both; opacity: 0; } .tvr-cap svg { width: 1em; height: 1em; vertical-align: -2px; }
.tvr-chat { width: 100%; max-width: 340px; display: flex; flex-direction: column; gap: 10px; }
.tvr-chat .m { display: flex; align-items: flex-end; gap: 8px; animation: tvrUp .45s cubic-bezier(.22,.8,.24,1) var(--d) both; } .tvr-chat .m.r { justify-content: flex-end; }
.tvr-chat .tvr-a { width: 30px; height: 30px; font-size: 12px; box-shadow: none; }
.tvr-chat .b { padding: 8px 12px; border-radius: 16px; font-size: 14.5px; background: #2a231b; max-width: 240px; } .tvr-chat .r .b { background: #4a3c24; }
.tvr-chat .b b { display: block; font-size: 12.5px; color: #9fd48a; }
.tvr-mini { margin-top: 6px; padding: 6px 8px; border-radius: 8px; background: rgba(0,0,0,.25); font-size: 12.5px; font-weight: 700; } .tvr-mini svg { width: 1em; height: 1em; vertical-align: -2px; }
.tvr-rx { display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 10px; background: rgba(255,255,255,.14); font-size: 12px; font-weight: 800; animation: tvrPop .4s cubic-bezier(.34,1.56,.64,1) 1s both; }
.tvr-vote { align-self: flex-start; display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 12px; background: var(--gold); color: var(--label-ink); font-weight: 800; font-size: 13.5px;
  animation: tvrUp .4s ease-out var(--d) both; } .tvr-vote b { display: inline-flex; min-width: 20px; height: 20px; border-radius: 10px; background: rgba(0,0,0,.18); align-items: center; justify-content: center; animation: tvrPop .4s cubic-bezier(.34,1.56,.64,1) 1.5s both; }

/* ---------- телефон ---------- */
@media (max-width: 1080px) {
  .ch-side { display: none; }
  .tg-room aside { margin-top: var(--s2); }
}
@media (max-width: 820px) {
  /* в чате шапка сайта компактная: без строки поиска и разделов, иначе ленте не хватает места */
  body.chat-on header.top nav.main, body.chat-on header.top .hsearch { display: none; }
  body.chat-on header.top .wrap { padding-bottom: 10px; }
  .tg-chat { padding: 0; gap: 0; }
  .tg-chat .rmc { border-radius: 0; box-shadow: none; border-top: 1px solid var(--line); }
  .rmc-back { display: inline-flex; flex: none; }
  .rmc-b { max-width: 82%; }
  #rmc-list { padding: 8px 8px 12px; }
  .rmc-av, .rmc-sp, .rmc-av .ava { width: 30px; height: 30px; }
  .rmc-bar { padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); }
  .ch-row { padding: 8px 14px; } .ch-row + .ch-row::before { left: 82px; }
  .tg-chats .ch-list { margin: 0 calc(-1 * var(--gut)); border-radius: 0; box-shadow: none; background: none; }
  .rm-film .t { font-size: 19px; } .rm-fp { width: 72px; height: 108px; }
  .rm-acts .btn { padding: 0 10px; }
  .rm-card { padding: var(--s4); }
  .rm-who { flex-wrap: wrap; row-gap: 8px; } .rm-who .txt { flex-basis: 100%; margin-left: 2px; }
  .rm-strip { align-items: flex-start; }
  .rm-mem { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .rmc-m.new, .rmc-m.me.new, .rmc-rx.pop, .rmc-rx.pop i, .rmc-ctx-bar, .rmc-ctx-bar button, .rmc-ctx-menu, .img-full, .rmc-ctx, #rmc-send, .rmc-rep, .rmc-pop, .ch-row, .ch-l em { animation: none !important; }
  [class^="tvr"], [class*=" tvr"], .tvr-inv .fly, .tvr-all .fg, .tvr-type { animation-duration: .01s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; }
}
/* шапка комнаты прилипает под шапкой сайта, как в приложении. На телефоне шапка сайта и так высокая, там не прилипает */
@media (min-width: 821px) {

  .tg-room .rm-head .h1 { font-size: var(--t-3); }
}

/* r2: чаты тактильнее. Строка отвечает на нажатие, пустой список это карточка с одной кнопкой */
.ch-row { transition: background-color var(--d1), transform var(--d1) var(--ease); }
.ch-row:active { transform: scale(.99); }
.ch-list.card { border-radius: var(--r3); }
.ch-empty { margin-top: var(--s4); padding: var(--s8) var(--s6); border-radius: var(--r3);
            background: radial-gradient(90% 80% at 50% 0%, rgba(233, 180, 92, .07), transparent 65%), linear-gradient(180deg, rgba(247, 247, 238, .04), rgba(247, 247, 238, .015));
            box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(247, 247, 238, .05); }
.ch-empty .em-mark { margin-bottom: 6px; }
.ch-empty b { font-weight: 600; letter-spacing: -.01em; }
.ch-empty span { font-size: var(--t-m); }
.ch-empty .btn { margin-top: var(--s4); }
@media (max-width: 520px) { .ch-empty { padding: var(--s7) var(--s5); } .ch-empty .btn { width: 100%; } }

/* аватарки комнаты в ровной колонке, текст не наезжает; между «Сеансами» и «Твоими комнатами» воздух (4.11) */
.rm-avas { width: 74px; align-items: center; }
.rm-avas .ava { width: 32px !important; height: 32px !important; font-size: 13px; flex: none; }
.rm-avas .ava + .ava { margin-left: -11px; }
.tg-list + .tg-h, * + .tg-h { margin-top: var(--s6); }

/* ===== «Вместе» изнутри в стиле нового сайта (4.11) ===== */
/* комната: подбор как на «Что посмотреть», уточнения свёрнуты */
.rm-pick { margin-top: var(--s6); }
.rm-pick .tg-h { margin-bottom: var(--s3); }
.rm-pick .rm-more { margin-top: 12px; }
.rm-go { margin-top: 16px; display: grid; gap: 10px; justify-items: start; }
.rm-go .btn.lg { width: 100%; }
.rm-hist.live { border-color: rgba(233, 180, 92, .35); background: linear-gradient(120deg, rgba(233, 180, 92, .08), transparent 60%), var(--surface); }
.tg-room .rm-strip { background: linear-gradient(120deg, rgba(141, 177, 255, .06), transparent 55%), var(--surface); }
.tg-room .rm-chat-row { background: linear-gradient(120deg, rgba(233, 180, 92, .06), transparent 55%), var(--surface); }

/* подборка комнаты: три карточки рядом, большой постер, голоса полосой и аватарками */
.tg-pick .page-head { max-width: 760px; }
.tg-pick .rm-films { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; align-items: stretch; }
.tg-pick .rm-film { position: relative; display: flex; flex-direction: column; padding: 14px; border-radius: 20px; transition: transform 200ms var(--ease), border-color 200ms var(--ease); }
.tg-pick .rm-film.lead { border-color: rgba(233, 180, 92, .45); box-shadow: 0 0 0 1px rgba(233, 180, 92, .15), 0 20px 50px rgba(0, 0, 0, .35); }
.tg-pick .rm-film .top { flex-direction: column; gap: 14px; }
.tg-pick .rm-fp { width: 100%; height: auto; aspect-ratio: 2 / 3; max-height: 420px; border-radius: 14px; }
.tg-pick .rm-film .t { font-size: 22px; text-wrap: balance; }
.tg-pick .rm-film .b { gap: 2px; }
.tg-pick .rm-acts { margin-top: auto; padding-top: 14px; }
.rm-lead { position: absolute; z-index: 2; top: 24px; left: 24px; padding: 4px 10px; border-radius: 99px; background: var(--gold); color: #1a1208; font: 800 12px/1.2 var(--f-text); box-shadow: 0 6px 18px rgba(0, 0, 0, .4); }
.rm-vbar { height: 4px; margin-top: 14px; border-radius: 4px; background: rgba(247, 247, 238, .08); overflow: hidden; }
.rm-vbar i { display: block; height: 100%; border-radius: 4px; background: var(--gold); transition: width 400ms var(--ease); }
.rm-vline { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: var(--t-xs); color: var(--muted); font-weight: 600; min-height: 26px; }
.rm-voters { display: flex; } .rm-voters .ava { width: 24px; height: 24px; font-size: 11px; box-shadow: 0 0 0 2px var(--surface); }
.rm-voters .ava + .ava { margin-left: -7px; }
@media (max-width: 700px) { .tg-pick .rm-films { grid-template-columns: 1fr; } .tg-pick .rm-fp { max-height: none; width: 46%; } .tg-pick .rm-film .top { flex-direction: row; } }

/* чат: разделитель новых, кнопка отправки на месте всегда */
.rmc-new { display: flex; align-items: center; gap: 12px; margin: 16px 6px 6px; color: var(--blue); font-size: 12.5px; font-weight: 700; }
.rmc-new::before, .rmc-new::after { content: ""; flex: 1; height: 1px; background: color-mix(in srgb, var(--blue) 40%, transparent); }
#rmc-send.off { background: rgba(247, 247, 238, .1); color: var(--faint); pointer-events: none; }
#rmc-send { transition: background-color 160ms var(--ease), color 160ms var(--ease), transform 160ms var(--ease); }
#rmc-send:active { transform: scale(.94); }
.rmc-m.me .rmc-b { background: linear-gradient(160deg, #5a4826, #43361f); }
.rmc-m.last.me .rmc-b::after { background: radial-gradient(circle at 100% 0, transparent 11.5px, #43361f 12px); }
.rmc-day span { background: rgba(20, 16, 12, .92); border: 1px solid var(--line); color: var(--ink-2); font-weight: 600; }

/* список чатов: непрочитанные заметнее */
.ch-row.un .ch-t b { color: var(--ink); }
.ch-row.un .ch-l span { color: var(--ink-2); }
.ch-row.un::after { content: ""; position: absolute; left: 6px; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; background: var(--blue); }
.tg-chats .ch-list { overflow: hidden; }
.dc-more2.rm-more summary small { font-weight: 500; }

/* Можно смотреть вместе (7.11): на компьютере компактный список, на телефоне строка и окно */
.rl-box { margin-top: var(--s3); }
.rl-entry { display: none; } .rl-ps { display: flex; flex: none; } .rl-pi { width: 26px; height: 39px; border-radius: 5px; object-fit: cover; box-shadow: 0 0 0 2px var(--surface); background: var(--surface-3); display: block; }
.rl-pi + .rl-pi { margin-left: -12px; } .rl-entry small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rl-wide { padding: 12px 16px 6px; } .rl-hd { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; } .rl-hd b { font: 500 18px var(--f-display); letter-spacing: .01em; } .rl-hd small { color: var(--muted); font-size: var(--t-xs); }
.rl-list { margin-top: 6px; } .rl-it { padding: 8px 0; border-top: 1px solid var(--line); } .rl-it:first-child { border-top: 0; }
.rl-top { display: flex; align-items: center; gap: 10px; } .rl-link { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; }
.rl-p { width: 34px; height: 51px; border-radius: 6px; object-fit: cover; flex: none; background: var(--surface-3); display: block; }
.rl-b { min-width: 0; display: flex; flex-direction: column; } .rl-b b { font-weight: 800; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rl-link:hover .rl-b b { color: var(--gold); }
.rl-b small { font-size: var(--t-xs); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .rl-b i { font-style: normal; color: #9fd48a; }
.rl-mine { flex: none; display: inline-flex; align-items: center; gap: 3px; font-size: 13px; font-weight: 800; color: #9fd48a; } .rl-mine svg { width: 1em; height: 1em; }
.rl-dc { flex: none; color: var(--gold); }
.modal .rl-it .rp-list, .modal .rl-it .rmc-seen { margin-left: 46px; } .modal .rl-it .rp { font-size: 12px; padding: 2px 8px; } .modal .rmc-seen { display: block; margin-top: 6px; }
@media (max-width: 820px) { .rl-entry { display: flex; } .rl-wide { display: none; } }

/* 7.11, Леша: кого позвали */
.rm-invd { background: transparent; box-shadow: inset 0 0 0 1px var(--line); cursor: default; }
.rm-invd small { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); } .rm-invd small svg { color: var(--green); flex: none; }
.tg-room .rm-who:focus-visible, .tg-room .rm-plus:focus-visible { outline: none; }   /* 7.11, Леша: после закрытия окна не обводим полосу золотом */

/* 7.11, Леша: проценты совпадения ровной колонкой, человек по нажатию открывает профиль */
.rm-pair > b { width: 80px; min-width: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rm-pair > em { width: 80px; max-width: none; }
a.rm-pair { color: inherit; text-decoration: none; } a.rm-pair:hover .nm { color: var(--gold); }

/* 9.11, Леша: проценты в чатах и комнатах как на карточке фильма */
.rp-who { display: inline-flex; align-items: center; gap: 6px; } .rp-who > i { font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.rp-who .pp { height: 24px; padding: 0 9px; gap: 7px; font-size: 12.5px; }
/* 9.11, Леша: поле комментария в «Обсудить» той же мягкой капсулой, что строка поиска; появляется после выбора первого чата */
textarea.dc-cm { display: block; width: 100%; height: 50px; margin: 0 0 10px; resize: none; padding: 13px 20px; border: 0; outline: none; border-radius: 25px;
  background: rgba(255, 255, 255, .075); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), inset 0 0 0 1px rgba(255, 255, 255, .06); color: var(--ink); font: 16px/24px inherit; font-family: inherit; caret-color: var(--blue);
  transition: background-color var(--d2), box-shadow var(--d2); animation: dcIn .2s cubic-bezier(.23, 1, .32, 1) both; }
textarea.dc-cm[hidden] { display: none; } textarea.dc-cm::placeholder { color: var(--faint); }
textarea.dc-cm:focus { background: rgba(255, 255, 255, .1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), inset 0 0 0 1px rgba(233, 180, 92, .4), 0 0 0 4px rgba(233, 180, 92, .08); }
@keyframes dcIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
/* 9.11, Леша: «Ждём ответа» в окне участников комнаты, компактно */
.rm-wait { margin-top: 16px; padding: 4px 16px; border-radius: var(--r2, 16px); background: rgba(247, 247, 238, .04); box-shadow: inset 0 0 0 1px var(--line); }
.rw-h { display: flex; align-items: center; gap: 8px; padding: 10px 0 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.rw-h span { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: rgba(247, 247, 238, .08); color: var(--ink); font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.rw-row { display: flex; align-items: center; gap: 10px; height: 44px; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.rw-row .ava { width: 30px; height: 30px; font-size: 13px; flex: none; }
.rw-row b { flex: 1; min-width: 0; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rw-row small { color: var(--muted); font-size: 12.5px; flex: none; }
.rw-more { display: block; width: 100%; height: 42px; border: 0; border-top: 1px solid var(--line); background: none; color: var(--gold); font-weight: 700; font-size: 14px; cursor: pointer; }
