/* MangaNew — сторінки користувача: профіль, закладинки, сповіщення, підписки */

/* Спільне: вкладки */
.acc-hero { margin-bottom: 18px; }
.acc-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.acc-tabs a { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 13px; border-radius: var(--radius-btn); border: 2px solid var(--line-strong); color: var(--text); font-size: 14px; font-weight: 600; transition: border-color var(--t-fast, .22s) ease, background-color var(--t-fast, .22s) ease; }
.acc-tabs a:hover { border-color: var(--frame-soft); color: var(--text); }
.acc-tabs a.active, .acc-tabs a.is-active, .acc-tabs a[aria-current="page"] { background: var(--frame); border-color: var(--frame); color: var(--bg); }
.acc-tabs b { font-size: 12px; font-weight: 700; opacity: .6; }
.acc-tabs__aside { margin-left: auto; }

/* Закладинки: сітка тайтлів (модуль виводить картки поруч із вкладками) */
.wrap:has(> .acc-tabs) { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 24px 18px; align-content: start; }
.wrap:has(> .acc-tabs) > :not(.ci) { grid-column: 1 / -1; }
@media (max-width: 760px) { .wrap:has(> .acc-tabs) { grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 18px 12px; } }

/* ═══ Профіль ═══ */
.pf { display: flex; flex-direction: column; gap: 30px; }
.pf-head { position: relative; isolation: isolate; display: flex; align-items: center; gap: 26px; padding: 8px 0 4px; }
.pf-head::before { content: ""; position: absolute; z-index: -1; inset: -28px -24px -12px 40%; background: radial-gradient(circle, rgba(127, 127, 127, .22) 1.2px, transparent 1.6px) 0 0 / 9px 9px; -webkit-mask-image: radial-gradient(ellipse at 80% 40%, #000 10%, transparent 68%); mask-image: radial-gradient(ellipse at 80% 40%, #000 10%, transparent 68%); pointer-events: none; }
.pf-ava { position: relative; flex: none; }
.pf-ava img { display: block; width: 120px; height: 120px; border-radius: 50%; object-fit: cover; background: var(--surface-2); border: 3px solid var(--frame); box-shadow: 6px 6px 0 var(--accent); }
.pf-ava__dot { position: absolute; right: 8px; bottom: 8px; width: 18px; height: 18px; border-radius: 50%; background: var(--ok); border: 3px solid var(--bg); }
.pf-head__info { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.pf-name { margin: 0; font-family: var(--font-head); font-size: clamp(26px, 4vw, 38px); line-height: 1.1; overflow-wrap: anywhere; }
.pf-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; font-size: 14px; color: var(--muted); }
.pf-group { font-weight: 700; color: var(--text); }
.pf-online { color: var(--ok); font-weight: 600; }
.pf-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.pf-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 0; border-radius: var(--radius-btn); background: var(--surface-2); color: var(--text); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; transition: background-color var(--t-fast, .22s) ease, color var(--t-fast, .22s) ease; }
.pf-btn:hover { background: var(--accent-soft); }
.pf-btn--main { background: var(--accent); color: var(--accent-ink); }
.pf-btn--main:hover { background: var(--accent); filter: brightness(1.08); }
/* {pm-ico} — посилання з іконкою: розтягуємо на всю кнопку */
.pf-btn--pm a { position: absolute; inset: 0; z-index: 1; font-size: 0; }
.pf-btn--pm img, .pf-btn--pm i { display: none; }

.pf-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.pf-stat { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 10px; background: var(--surface); }
.pf-stat b { font-family: var(--font-head); font-size: 26px; line-height: 1.1; }
.pf-stat span { font-size: 13px; color: var(--muted); }
.pf-stat__link { margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--accent); }

.pf-sec__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 16px; }
.pf-bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: var(--surface-2); margin-bottom: 12px; }
.pf-bar span { display: block; height: 100%; }
.pf-bar--reading, .pf-list--reading { --l: var(--l-reading); } .pf-bar--readed, .pf-list--readed { --l: var(--l-readed); }
.pf-bar--planned, .pf-list--planned { --l: var(--l-planned); } .pf-bar--reread, .pf-list--reread { --l: var(--l-reread); }
.pf-bar--postponed, .pf-list--postponed { --l: var(--l-postponed); } .pf-bar--abandoned, .pf-list--abandoned { --l: var(--l-abandoned); }
.pf-bar--favorite, .pf-list--favorite { --l: var(--l-favorite); }
.pf-bar span { background: var(--l); }
.pf-lists { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.pf-list { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 11px 14px; border-radius: 9px; background: var(--surface); color: var(--text); font-size: 14px; font-weight: 600; box-shadow: inset 3px 0 0 var(--l); transition: background-color var(--t-fast, .22s) ease; }
.pf-list:hover { background: var(--surface-2); color: var(--text); }
.pf-list b { font-family: var(--font-head); font-size: 16px; }

.pf-playlists { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.pf-playlists > li { min-width: 0; padding: 12px; border-radius: 10px; background: var(--surface); }
.pf-playlists a { color: var(--text); font-weight: 600; }
.pf-playlists img { max-width: 100%; height: auto; border-radius: 6px; }
.pf-empty { color: var(--muted); background: none !important; padding: 0 !important; }

.pf-about:not(:has(dd, .pf-info, .pf-sign)) { display: none; }
.pf-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin: 0 0 12px; }
.pf-facts div { padding: 10px 14px; border-radius: 9px; background: var(--surface); }
.pf-facts dt { font-size: 12px; color: var(--muted); }
.pf-facts dd { margin: 2px 0 0; font-weight: 600; }
.pf-sign { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); font-style: italic; }

/* Редагування */
.pf-edit { padding: 20px; border-radius: 14px; background: var(--surface); }
.pf-edit[hidden] { display: none; }
.pf-fs { margin: 0 0 18px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; }
.pf-fs legend { padding: 0 6px; font-family: var(--font-head); font-size: 15px; font-weight: 700; }
.pf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.pf-edit .field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.pf-edit input[type="text"], .pf-edit input[type="email"], .pf-edit input[type="password"], .pf-edit input[type="url"], .pf-edit select, .pf-edit textarea, .pf-xf input[type="text"] {
  width: 100%; min-height: 42px; padding: 9px 12px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text); font: inherit; font-size: 14px; float: none; max-width: none; box-shadow: none;
}
.pf-edit textarea { min-height: 96px; resize: vertical; }
.pf-edit input:focus, .pf-edit select:focus, .pf-edit textarea:focus { outline: 0; border-color: var(--accent); }
.pf-checks { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.pf-checks label, label.pf-checks { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.pf-edit input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--accent); }
.pf-avatar-edit { display: flex; align-items: center; gap: 16px; }
.pf-avatar-edit img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: var(--surface-2); }
.pf-file { position: relative; display: inline-flex; margin-bottom: 8px; cursor: pointer; }
.pf-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pf-file span { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 8px; background: var(--surface-2); font-size: 14px; font-weight: 700; }
.pf-file:hover span { background: var(--accent-soft); }
.pf-social { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.pf-team__cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.pf-team__preview { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 8px; }
.pf-teamcard { display: flex; gap: 12px; padding: 14px; border-radius: 12px; background: var(--surface-2); }
.pf-teamcard img { flex: none; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--bg); }
.pf-teamcard img:not([src]), .pf-teamcard img[src=""] { visibility: hidden; }
.pf-teamcard b { font-family: var(--font-head); }
.pf-teamcard p { margin: 4px 0 6px; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.pf-teamcard__links { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; }
.pf-teamcard__links span { padding: 2px 8px; border-radius: 10px; background: var(--bg); }
.team_logo input { opacity: 1; }
.pf-submit { display: flex; gap: 10px; flex-wrap: wrap; }
/* Редагування профілю: навігація зліва, картки справа, липка панель збереження */
.pf-edit { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; align-items: start; padding: 0; background: none; }
.pf-edit__nav { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 2px; padding: 8px; border-radius: 12px; background: var(--surface); }
.pf-edit__nav a { padding: 9px 12px; border-radius: 8px; color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; }
.pf-edit__nav a:hover, .pf-edit__nav a.is-on { background: var(--surface-2); color: var(--text); }
.pf-edit__body { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.pf-edit .pf-fs { margin: 0; padding: 20px; border: 0; border-radius: 14px; background: var(--surface); scroll-margin-top: 84px; }
.pf-edit .pf-fs legend { float: left; width: 100%; padding: 0; margin: 0 0 16px; font-size: 18px; }
.pf-edit .pf-fs legend + * { clear: both; }
.pf-fs__sub { margin: 18px 0 10px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 700; }
.pf-fs__sub small { margin-left: 6px; font-weight: 400; color: var(--muted); }
.pf-prof { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 24px; align-items: start; }
.pf-prof .pf-avatar-edit { flex-direction: column; gap: 10px; text-align: center; }
.pf-prof .pf-avatar-edit img { width: 112px; height: 112px; }
.pf-prof .pf-file { margin: 0; }
label.pf-checks.pf-del { flex-direction: row; justify-content: center; font-size: 13px; color: var(--muted); }
.pf-grid--3 { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.pf-checks--box { padding: 12px 14px; border-radius: 10px; background: var(--surface-2); }
/* {hidemail} — це <input> + <label for> окремо: сітка з двох колонок, щоб прапорець і текст стояли в одному рядку;
   рядок-обгортка «Відписатися…» займає обидві колонки з тим самим відступом тексту */
.pf-checks.pf-checks--box { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px; }
.pf-checks--box > input[type="checkbox"] { margin: 0; }
.pf-checks--box > label[for] { display: block; cursor: pointer; }
.pf-checks--box > label:not([for]) { grid-column: 1 / -1; gap: 10px; }
.pf-checks--box input[type="checkbox"], .pf-xf input[type="checkbox"] { flex: none; margin: 0; }
/* додаткові поля-прапорці (DLE: <label><input class="switch"><span>текст</span></label>) — кожне окремим рядком у плашці */
.pf-xf--checks { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; border-radius: 10px; background: var(--surface-2); font-size: 14px; }
.pf-xf label { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.pf-xf label > span { flex: 1; min-width: 0; }
.pf-edit .pf-submit { position: sticky; bottom: 12px; z-index: 5; align-items: center; justify-content: flex-end; padding: 12px 16px; border-radius: 14px; background: var(--surface); box-shadow: 0 6px 24px rgba(0, 0, 0, .25), inset 0 0 0 1px var(--line); }
.pf-submit__note { margin-right: auto; font-size: 13px; color: var(--muted); }
@media (max-width: 860px) {
  .pf-edit { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .pf-edit__nav { top: 64px; z-index: 6; flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .pf-edit__nav a { white-space: nowrap; }
}
@media (max-width: 560px) {
  .pf-prof { grid-template-columns: minmax(0, 1fr); }
  .pf-submit__note { display: none; }
  .pf-edit .pf-submit { bottom: 72px; }
}
@media (max-width: 860px) { .pf-team__cols { grid-template-columns: minmax(0, 1fr); } .pf-team__preview { position: static; } }
@media (max-width: 560px) {
  .pf-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .pf-ava img { width: 96px; height: 96px; }
}

/* ═══ Сповіщення ═══ */
.acc-notif__buttons .notification-all { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.acc-notif__buttons .mark-as-read { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 13px; border-radius: var(--radius-btn); background: var(--surface-2); color: var(--text); font-size: 13px; font-weight: 700; cursor: pointer; }
.acc-notif__buttons .mark-as-read:hover { background: var(--accent-soft); color: var(--text); }
.acc-notif__list { display: flex; flex-direction: column; gap: 8px; }
.acc-notif .notification { position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 12px 14px; border-radius: 10px; background: var(--surface); transition: opacity .3s ease, transform .3s ease; }
.acc-notif .notification.unread { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.acc-notif .notification.is-gone { opacity: 0; transform: translateX(20px); }
.acc-notif .notification__avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; }
.acc-notif .notification__avatar img { width: 100%; height: 100%; object-fit: cover; }
.acc-notif .icon-circle { width: 100%; height: 100%; display: grid; place-items: center; background: var(--accent) !important; color: #fff; }
.acc-notif .icon-circle i { font-size: 0 !important; width: 20px; height: 20px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='https://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8a6 6 0 1 1 12 0c0 7 3 9 3 9H3s3-2 3-9M10 21a2 2 0 0 0 4 0'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='https://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8a6 6 0 1 1 12 0c0 7 3 9 3 9H3s3-2 3-9M10 21a2 2 0 0 0 4 0'/%3E%3C/svg%3E") center / contain no-repeat; }
.acc-notif .notification__info { min-width: 0; flex: 1; }
.acc-notif .notification__text { font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.acc-notif .notification__text a { color: var(--accent); font-weight: 600; }
.acc-notif .notification__date { margin-top: 2px; font-size: 12px; color: var(--muted); }
.acc-notif .notification__controls { display: flex; gap: 4px; }
.acc-notif .notification__seen, .acc-notif .notification__delete { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; color: var(--muted); cursor: pointer; transition: background-color var(--t-fast, .22s) ease, color var(--t-fast, .22s) ease; }
.acc-notif .notification__seen:hover { background: var(--surface-2); color: var(--accent); }
.acc-notif .notification__delete:hover { background: var(--surface-2); color: var(--danger); }
.acc-notif .notification__controls i { font-size: 0; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.acc-notif .notification__seen i { --m: url("data:image/svg+xml,%3Csvg xmlns='https://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E"); }
.acc-notif .notification__delete i { --m: url("data:image/svg+xml,%3Csvg xmlns='https://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16M10 11v6M14 11v6M5 7l1 13h12l1-13M9 7V4h6v3'/%3E%3C/svg%3E"); }
.no-found-list { padding: 40px 16px; text-align: center; color: var(--muted); }
.acc-notif .navigation, .acc-notif .pager { margin-top: 16px; }

/* ═══ Підписки (заголовок і обгортку додає модуль) ═══ */
.content__head { margin-bottom: 20px; }
.content__head .container, .content__head .row, .content__head .col-12 { all: unset; display: block; }
.content__title { display: inline-block; margin: 0 0 10px; padding: 6px 14px; border-radius: 4px; background: var(--frame); color: var(--bg); font-family: var(--font-head); font-size: 22px; font-weight: 700; transform: skewX(-6deg); box-shadow: 3px 3px 0 var(--accent); }
.content__title i { display: none; }
.content__seo-text p { margin: 0; color: var(--muted); }
.subscriptions { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.sub { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; padding: 10px; border-radius: 10px; background: var(--surface); }
.sub__cover { display: block; aspect-ratio: 2 / 3; border-radius: 6px; overflow: hidden; background: var(--surface-2); }
.sub__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sub__body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.sub__name { font-weight: 700; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sub__name:hover { color: var(--accent); }
.sub__meta { font-size: 12px; color: var(--muted); }
.sub__btn { margin-top: auto; }
.sub__btn .subbutt { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: var(--radius-btn); background: var(--surface-2); font-size: 13px; font-weight: 700; cursor: pointer; }
.sub__btn .subbutt i { display: none; }
.sub__btn .unsubscribe_from:hover { background: var(--danger); color: #fff; }
.sub__btn .subscribe_to { background: var(--accent); color: var(--accent-ink); }

/* ═══ Профіль: оновлення (шапка з банером, статистика, полиці, релізи, колекції) — Manga Профіль ═══ */
.pf-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 22px 26px; padding: 26px 28px; border-radius: 20px; background: var(--surface); overflow: hidden; }
.pf-head::before { inset: -60px; background: var(--pf-cover) center / cover no-repeat; filter: blur(48px) saturate(1.4); opacity: .32; -webkit-mask-image: linear-gradient(100deg, #000 0%, rgba(0, 0, 0, .55) 45%, transparent 85%); mask-image: linear-gradient(100deg, #000 0%, rgba(0, 0, 0, .55) 45%, transparent 85%); }
.pf-head::after { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(circle, rgba(127, 127, 127, .2) 1.2px, transparent 1.6px) 0 0 / 9px 9px; -webkit-mask-image: radial-gradient(ellipse at 85% 30%, #000 0%, transparent 60%); mask-image: radial-gradient(ellipse at 85% 30%, #000 0%, transparent 60%); pointer-events: none; }
.pf-ava__dot { border-color: var(--surface); }
.pf-head .pf-actions { align-self: start; margin: 0; }
.pf-btn svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pf-group { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; background: var(--surface-2); font-size: 12px; line-height: 20px; letter-spacing: .02em; }
.pf-group--moder { background: rgba(139, 92, 246, .18); color: #a78bfa; }
.pf-group--team { background: var(--accent-soft); color: var(--accent); }
.pf-group--reader { background: var(--surface-2); color: var(--text); }
.pf-group--ban { background: rgba(127, 127, 127, .2); color: var(--muted); text-decoration: line-through; }
.pf-bio { max-width: 68ch; margin-top: 2px; color: var(--text); font-size: 14px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pf-bio p { margin: 0; }

/* статистика: 4 рівні плитки з іконками */
.pf-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pf-stat { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 14px 16px; color: var(--text); transition: background-color .15s ease; }
a.pf-stat:hover { background: var(--surface-2); color: var(--text); }
.pf-stat__ico { grid-row: 1 / 3; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.pf-stat__ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pf-stat b { font-size: 24px; font-variant-numeric: tabular-nums; }
.pf-stat span:not(.pf-stat__ico) { line-height: 1.3; }

/* полиці з обкладинками */
.pf-shelves { display: flex; flex-direction: column; gap: 22px; margin-top: 22px; }
.pf-shelves:empty { display: none; }
.pf-shelf__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.pf-shelf__head h3 { margin: 0; font-family: var(--font-head); font-size: 16px; }
.pf-shelf__head small { margin-left: 4px; color: var(--muted); font-size: 13px; font-weight: 600; }
.pf-shelf__row { display: grid; grid-auto-flow: column; grid-auto-columns: 118px; gap: 12px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.pf-shelf__item { display: flex; flex-direction: column; gap: 6px; min-width: 0; color: var(--text); scroll-snap-align: start; }
.pf-shelf__cover { display: block; aspect-ratio: 2 / 3; border-radius: 10px; overflow: hidden; background: var(--surface-2); box-shadow: 0 0 0 1px var(--line); transition: transform .2s ease, box-shadow .2s ease; }
.pf-shelf__cover img { width: 100%; height: 100%; object-fit: cover; }
.pf-shelf__item:hover .pf-shelf__cover { transform: translateY(-3px); box-shadow: 0 0 0 2px var(--accent); }
.pf-shelf__name { font-size: 13px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pf-shelf__item:hover .pf-shelf__name { color: var(--accent); }

/* релізи перекладача */
.pf-rel__thanks { padding: 4px 12px; border-radius: 999px; background: rgba(229, 72, 77, .14); color: #ff7a7f; font-size: 13px; font-weight: 700; }
.pf-rel__top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; margin-bottom: 16px; }
.pf-rel__team { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--surface); }
.pf-rel__team img { width: 56px; height: 56px; flex: none; border-radius: 12px; object-fit: cover; background: var(--surface-2); }
.pf-rel__team b { font-family: var(--font-head); font-size: 17px; }
.pf-rel__team p { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.pf-rel__links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pf-team-link { padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--text); font-size: 12px; font-weight: 700; }
.pf-team-link:hover { background: var(--accent-soft); color: var(--accent); }
.pf-rel__nums { display: grid; grid-auto-flow: column; gap: 10px; }
.pf-rel__nums > div { display: flex; flex-direction: column; justify-content: center; min-width: 120px; padding: 14px 18px; border-radius: 14px; background: var(--surface); }
.pf-rel__nums b { font-family: var(--font-head); font-size: 26px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.pf-rel__nums span { color: var(--muted); font-size: 13px; }
.pf-rel__top:not(:has(.pf-rel__team)) { grid-template-columns: auto; justify-content: start; }

/* колекції: обкладинка + назва (картки модуля колекцій) */
.pf-playlists > li.col-mini { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px; transition: background-color .15s ease; }
.pf-playlists > li.col-mini:hover { background: var(--surface-2); }
.col-mini__cover { display: block; aspect-ratio: 2 / 3; border-radius: 8px; overflow: hidden; background: var(--surface-2); }
.col-mini__cover img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.col-mini__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.col-mini__title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.col-mini__meta { color: var(--muted); font-size: 12px; }
.pf-empty { color: var(--muted); font-size: 14px; }

/* «Про себе» без імені, міста й підпису — порожній блок не показувати */
.pf-about:not(:has(dd, .pf-sign)) { display: none; }

@media (max-width: 900px) {
  .pf-head { grid-template-columns: auto minmax(0, 1fr); }
  .pf-head .pf-actions { grid-column: 1 / -1; }
  .pf-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf-rel__top { grid-template-columns: minmax(0, 1fr); }
  .pf-rel__nums { grid-auto-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .pf-head { display: grid; grid-template-columns: auto minmax(0, 1fr); padding: 18px; gap: 14px 16px; }
  .pf-head .pf-ava img { width: 76px; height: 76px; box-shadow: 4px 4px 0 var(--accent); }  .pf-name { font-size: 24px; }
  .pf-head .pf-actions .pf-btn { flex: 1; justify-content: center; }
  .pf-stat { padding: 12px; column-gap: 10px; }
  .pf-stat__ico { width: 34px; height: 34px; border-radius: 10px; }
  .pf-stat b { font-size: 20px; }
  .pf-shelf__row { grid-auto-columns: 96px; gap: 10px; }
}

/* ═══ Профіль: списки — сегментована смужка й картки з відсотками ═══ */
.pf-lists__total { margin-left: 6px; color: var(--muted); font-family: var(--font-body, inherit); font-size: 14px; font-weight: 600; }
.pf-lists-sec .pf-bar { gap: 3px; height: 12px; margin-bottom: 14px; padding: 0; border-radius: 6px; background: transparent; }
.pf-lists-sec .pf-bar span { flex: 0 1 0; min-width: 6px; border-radius: 4px; transition: filter .15s ease; }
.pf-lists-sec .pf-bar span[style$="flex-grow: 0"] { display: none; }
.pf-lists-sec .pf-bar:not(:has(span:not([style$="flex-grow: 0"]))) { background: var(--surface-2); }

.pf-lists-sec .pf-lists { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.pf-lists-sec .pf-list {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name name" "num pct";
  align-items: end; gap: 6px 8px; padding: 12px 14px 13px; border-radius: 14px; overflow: hidden;
  background: linear-gradient(160deg, color-mix(in srgb, var(--l) 16%, var(--surface)) 0%, var(--surface) 70%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--l) 22%, transparent); font-weight: 600;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.pf-lists-sec .pf-list::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--l); opacity: .9; }
.pf-lists-sec .pf-list:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--l); color: var(--text); }
.pf-list__name { grid-area: name; display: flex; align-items: center; gap: 7px; min-width: 0; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-list__name::before { content: ""; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--l); box-shadow: 0 0 0 3px color-mix(in srgb, var(--l) 25%, transparent); }
.pf-lists-sec .pf-list b { grid-area: num; font-family: var(--font-head); font-size: 26px; line-height: 1; font-variant-numeric: tabular-nums; color: var(--text); }
.pf-lists-sec .pf-list small { grid-area: pct; padding: 1px 7px; border-radius: 999px; background: color-mix(in srgb, var(--l) 18%, transparent); color: var(--l); font-size: 11px; font-weight: 800; line-height: 18px; }
/* порожні списки — приглушені */
.pf-lists-sec .pf-list[data-n="0"] { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.pf-lists-sec .pf-list[data-n="0"]::before, .pf-lists-sec .pf-list[data-n="0"] small { display: none; }
.pf-lists-sec .pf-list[data-n="0"] b { color: var(--muted); }
.pf-lists-sec .pf-list[data-n="0"] .pf-list__name::before { background: var(--muted); box-shadow: none; opacity: .6; }

@media (max-width: 1100px) { .pf-lists-sec .pf-lists { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .pf-lists-sec .pf-lists { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .pf-lists-sec .pf-list { padding: 10px 12px 11px; }
  .pf-lists-sec .pf-list b { font-size: 22px; }
}

/* ═══ Профіль: виправлення — підняття обкладинки й крапка біля назви списку не обрізаються, назви без підкреслення ═══ */
.pf-shelf__row { padding: 8px 6px 10px; margin: -8px -6px -4px; scroll-padding-inline: 6px; }
.pf-shelf__item, .pf-shelf__item:hover { text-decoration: none; }
.pf-lists-sec .pf-list__name { padding: 4px 0 4px 4px; margin: -4px 0 -4px -4px; }

/* ═══ Профіль: сповіщення в Telegram ═══ */
.pf-tg { display: grid; gap: 10px; justify-items: start; }
.pf-tg__lead { margin: 0; }
.pf-tg .field__hint { margin: 0; }
.pf-tg .pf-checks--box { justify-self: stretch; }
[data-mg-tg-box][hidden], [data-mg-tg-nav][hidden] { display: none !important; }

/* ═══ Підписки: команди, за якими стежить користувач ═══ */
.subs-h { margin: 22px 0 12px; font-family: var(--font-head); font-size: 18px; font-weight: 700; }
.subs-teams__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.subs-team { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.subs-team__logo { flex: none; display: grid; place-items: center; width: 48px; height: 48px; overflow: hidden; border-radius: 12px; background: var(--tm, var(--accent)); color: #fff; font-weight: 800; font-size: 20px; text-decoration: none; }
.subs-team__logo img { width: 100%; height: 100%; object-fit: cover; }
.subs-team__name { flex: 1; min-width: 0; overflow: hidden; color: var(--text); font-weight: 700; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; }
.subs-team__name:hover { color: var(--accent); }
.subs-team__btn { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 0; border-radius: 9px; background: var(--surface-2); color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.subs-team__btn svg { width: 15px; height: 15px; }
.subs-team__btn small { display: none; }
.subs-team__btn.is-on { background: color-mix(in srgb, var(--tm, var(--accent)) 20%, var(--surface-2)); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--tm, var(--accent)); }
.subs-team__btn.is-on svg { fill: currentColor; }
.subs-team__btn[aria-busy="true"] { opacity: .6; pointer-events: none; }

/* Сповіщення — у стилі дзвіночка: обкладинка-постер, мітка «Новий розділ N», назва, переклад; уся картка клікабельна (app.js) */
.acc-notif__list { gap: 10px; }
.acc-notif .notification { gap: 14px; padding: 14px 16px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); transition: opacity .3s ease, transform .3s ease, background-color .15s ease; }
.acc-notif .notification.unread { box-shadow: inset 3px 0 0 var(--accent), inset 0 0 0 1px color-mix(in srgb, var(--accent) 30%, var(--line)); }
.acc-notif .notification.is-link { cursor: pointer; }
.acc-notif .notification.is-link:hover { background: var(--surface-2); }
.acc-notif .notification.unread.is-link:hover { background: color-mix(in srgb, var(--accent) 18%, var(--surface)); }
.acc-notif .notification--cover .notification__avatar { width: 54px; height: 76px; border-radius: 8px; box-shadow: 0 0 0 1px var(--line), 0 6px 14px -8px rgba(0, 0, 0, .55); }
.acc-notif .notification__info { display: flex; flex-direction: column; gap: 4px; }
.acc-notif .notification__text.bell__text { font-size: 14px; line-height: 1.5; }
.acc-notif .bell__kick { font-size: 12px; }
.acc-notif .notification__text a.bell__title { color: var(--text); font-size: 16px; }
.acc-notif .notification__text a.bell__title:hover { color: var(--accent); }
.acc-notif .notification__text small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.acc-notif .bell__subj { font-size: 15px; }
.acc-notif .bell__sub { font-size: 13px; }
.acc-notif .notification__date { margin-top: 0; }
.acc-notif .notification__controls { align-self: flex-start; }
@media (max-width: 560px) {
  .acc-notif .notification { gap: 12px; padding: 12px; }
  .acc-notif .notification--cover .notification__avatar { width: 46px; height: 64px; }
  .acc-notif .notification__text a.bell__title { font-size: 15px; }
  .acc-notif .notification__controls { flex-direction: column; gap: 2px; }
  .acc-notif .notification__seen, .acc-notif .notification__delete { width: 30px; height: 30px; }
}
