/* TR Portal — правая панель: ник, мой номер, клуб одной строкой, друзья (#269). Подключается после sidebars.css. */

/* ник и справа значок выхода — одна строка */
#ptRight #ptPlayer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
#ptRight #ptPlayer .pt-nick { flex: 1 1 auto; min-width: 0; text-align: left; }
#ptRight #ptPlayer .pt-nick > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#ptRight #ptPlayer .pt-logout { flex: none; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--t3); font-size: 18px; cursor: pointer; }
#ptRight #ptPlayer .pt-logout:hover { color: var(--t1); background: rgba(255,255,255,.06); }
#ptRight #ptPlayer .pt-logout:focus-visible { outline: 2px solid var(--t1); outline-offset: 1px; }
/* мой номер игрока под ником — его диктуют другу */
body.pt-in #ptRight .sb-me { margin-bottom: 0; }
#ptRight .pt-my-code { margin-top: 0; color: var(--t3); font-size: 12px; font-weight: 600; }
#ptRight .pt-my-code b { color: var(--t2); font-weight: 800; letter-spacing: .04em; }
#ptRight .pt-my-code[hidden], body:not(.pt-in) #ptRight .pt-my-code { display: none; }
/* клуб одной строкой: значок · Клуб — название. Вид (красный градиент, скошенный угол, красный значок) — от классов ДС
   tr-nav-item active (portal-design); здесь только размеры строки, красная полоска слева и текст */
#ptRight .pt-club { display: flex; align-items: center; gap: 6px; min-width: 0; margin: 0 0 10px; padding: 7px 12px; font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; cursor: default; }
#ptRight .pt-club[hidden] { display: none; }
#ptRight .pt-club.tr-nav-item.active::before { opacity: 1; }
#ptRight .pt-club > i { flex: none; }
#ptRight .pt-club-lab, #ptRight .pt-club-sep { flex: none; color: var(--tr-text); }
#ptRight .pt-club-name { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--tr-text); font-weight: 800; }

/* #263: гостю поиск не показываем; поле друзей скрыто до лупы */
#ptRight .sb-find { display: none; }
body.pt-in #ptRight .sb-find { display: flex; }
#ptRight .sb-find[hidden], body.pt-in #ptRight .sb-find[hidden] { display: none; }
/* блок «Друзья» — после входа; список рисует friends-view.js, данные и заявки — friends-panel.js */
#ptFriends { display: none; }
body.pt-in #ptFriends { display: block; }
#ptFriends .pt-friends-head { display: flex; align-items: center; justify-content: space-between; }
.pt-friend-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 6px; padding: 0 5px; border-radius: 9px; background: var(--tr-red, #f00); color: #fff; font-size: 11px; font-weight: 800; }
.pt-friend-badge[hidden] { display: none; }
.pt-friends-actions { display: flex; gap: 4px; margin-left: auto; }
.pt-friends-actions button { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--t3); font: inherit; cursor: pointer; }
.pt-friends-actions button:hover { color: var(--t1); background: rgba(255,255,255,.06); }
.pt-friends-actions button:focus-visible { outline: 2px solid var(--t1); outline-offset: 1px; }
.pt-friend-search { margin-top: 8px; }
.pt-friend-empty { margin-top: 8px; color: var(--t3); font-size: 12px; line-height: 1.4; }
.pt-friend-group { margin-top: 12px; }
.pt-friend-group-title { color: var(--t2); font-size: 12px; font-weight: 700; }
.pt-friend { display: flex; align-items: center; gap: 8px; padding: 6px 0; }
.pt-friend-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--off); }
.pt-friend--online .pt-friend-dot { background: var(--ok-t); }
.pt-friend--ingame .pt-friend-dot { background: var(--wine); }
.pt-friend-main { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.pt-friend-main b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--t1); font-size: 14px; font-weight: 700; }
.pt-friend--offline .pt-friend-main b { color: var(--off); }
.pt-friend-main small { color: var(--t3); font-size: 11px; }
/* результаты поиска и заявки — строка «ник · номер» и кнопки справа */
.pt-friend-results:empty, .pt-friend-requests:empty { display: none; }
.pt-friend-results { margin-top: 8px; }
.pt-friend-requests { margin-top: 12px; }
.pt-friend-note { padding: 6px 0; color: var(--t3); font-size: 12px; line-height: 1.4; }
.pt-friend-note.is-err { color: #ff6b6b; }
.pt-friend-acts { display: flex; flex: none; gap: 4px; }
.pt-friend-btn { height: 26px; padding: 0 10px; border: 0; border-radius: 6px; background: rgba(255,255,255,.08); color: var(--t1); font: inherit; font-size: 11px; font-weight: 800; cursor: pointer; }
.pt-friend-btn:hover { background: rgba(255,255,255,.14); }
.pt-friend-btn.is-main { background: var(--tr-red, #f00); color: #fff; }
.pt-friend-btn.is-main:hover { background: var(--tr-red-dark, #a00); }
.pt-friend-btn:disabled { opacity: .5; cursor: default; }
.pt-friend-ibtn { display: grid; place-items: center; width: 28px; padding: 0; font-size: 16px; }
/* #294: «Не в сети» — свёрнутая группа: стрелка + счётчик */
.pt-friend-fold-head { display: flex; align-items: center; gap: 4px; width: 100%; padding: 0; border: 0; background: none; font: inherit; font-size: 12px; font-weight: 700; text-align: left; cursor: pointer; }
.pt-friend-fold-head i { font-size: 14px; transition: transform .15s; }
.pt-friend-fold.is-open .pt-friend-fold-head i { transform: rotate(90deg); }
.pt-friend-fold-head:hover { color: var(--t1); }
.pt-friend-fold-head:focus-visible { outline: 2px solid var(--t1); outline-offset: 1px; }
.pt-friend-btn:focus-visible { outline: 2px solid var(--t1); outline-offset: 1px; }
.pt-friend-tag { flex: none; color: var(--t3); font-size: 11px; font-weight: 700; }
