/* Body offset for fixed header + ticker */
body {
  padding-top: 108px !important;
  display: flex; flex-direction: column;
  min-height: 100vh; overflow-x: hidden;
}
/* width:100% обязателен — у GP .grid-container есть margin-inline:auto, а auto-margin
   по поперечной оси флекса отключает stretch, и контейнер shrink-to-fit'ится по
   max-content, пока стримится HTML (569px → 1200px, CLS ~0.4 на каждой странице). */
body > #page, body > .site { flex: 1 0 auto; width: 100%; }

/* ── HEADER ── */
#pf-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  background: rgba(10,22,40,.85);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding-top: env(safe-area-inset-top, 0);
}
[data-theme="light"] #pf-header {
  background: rgba(251,246,240,.92);
  border-bottom-color: rgba(115,37,83,.14);
  box-shadow: 0 1px 0 rgba(115,37,83,.04);
}
.pf-header-row {
  max-width: 1400px; margin: 0 auto;
  height: 64px; display: flex; align-items: center; gap: 18px;
  padding: 0 24px;
}
@media(max-width:768px) {
  /* 56 header + 44 ticker + safe-area на notch-девайсах */
  body { padding-top: calc(96px + env(safe-area-inset-top, 0)) !important; }
  .pf-header-row { height: 56px; gap: 12px; padding: 0 16px; }
}

/* Brand */
.pf-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700;
  font-size: 16px; letter-spacing: .02em;
  color: var(--text); text-decoration: none;
}
.pf-brand:hover, .pf-brand:focus, .pf-brand:active,
#pf-header .pf-brand:hover,
#pf-header .pf-brand:focus,
#pf-header .pf-brand:active,
html[data-theme="dark"] .pf-brand:hover,
html[data-theme="dark"] #pf-header .pf-brand:hover {
  color: var(--text);
  text-decoration: none;
}
.pf-brand:hover .pf-brand-dot,
#pf-header .pf-brand:hover .pf-brand-dot {
  color: var(--accent-text,var(--accent));
}
.pf-brand-mark {
  width: 32px; height: 32px; border-radius: 8px;
  flex: none; overflow: hidden;
}
.pf-brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.pf-brand-dot { color: var(--accent-text,var(--accent)); }

/* Nav */
.pf-nav { display: flex; align-items: center; gap: 4px; margin-left: 12px; flex: 1; }
.pf-nav-item { position: relative; }
.pf-nav-link {
  display: flex; align-items: center; gap: 5px;
  padding: 8px 14px; font-size: 14px; font-weight: 600;
  color: var(--text-muted); border-radius: var(--r-sm);
  transition: background .15s, color .15s;
  text-decoration: none; white-space: nowrap;
}
.pf-nav-link:hover, .pf-nav-link.is-active {
  background: var(--chip-bg); color: var(--text);
}
.pf-nav-link.is-active::after {
  content: ""; display: block; margin-top: 4px;
  height: 2px; border-radius: 1px; background: var(--accent);
  width: 18px; margin-left: auto; margin-right: auto;
}
.pf-nav-link svg { width: 12px; height: 12px; flex-shrink: 0; opacity: .7; transition: transform .2s; }
.pf-nav-item:hover > .pf-nav-link svg { transform: rotate(180deg); }

/* Dropdown */
.pf-dropdown {
  display: none; position: absolute; top: 100%; left: 0;
  min-width: 200px; background: var(--bg-1);
  border-radius: var(--r-md); border: 1px solid var(--border);
  box-shadow: var(--shadow-md); padding: 6px; z-index: 100;
  padding-top: 14px; margin-top: 0;
}
.pf-dropdown::before {
  content: ''; position: absolute; top: -6px; left: 0; right: 0; height: 10px;
}
.pf-nav-item:hover .pf-dropdown,
.pf-nav-item.open .pf-dropdown { display: block; }
.pf-dropdown a {
  display: block; padding: 9px 14px; color: var(--text-muted);
  font-size: 13px; font-weight: 600; text-decoration: none;
  border-radius: var(--r-sm); transition: all .15s;
}
.pf-dropdown a:hover { color: var(--text); background: var(--chip-bg); }

/* Header actions */
.pf-header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.pf-search-btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 40px; padding: 0 12px;
  background: var(--chip-bg); border: 1px solid var(--border);
  border-radius: var(--r-md); color: var(--text-muted);
  font-size: 13px; min-width: 220px; cursor: pointer;
  font-family: var(--font-ui);
}
.pf-search-btn kbd {
  margin-left: auto; font-size: 11px; font-family: var(--font-mono);
  background: var(--surface); color: var(--text-muted);
  border-radius: 4px; padding: 1px 6px; border: 1px solid var(--border);
}
.pf-search-btn:hover { border-color: var(--border-strong); color: var(--text); }
.pf-icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--r-md);
  background: var(--chip-bg); border: 1px solid var(--border);
  color: var(--text-muted); position: relative; padding: 0; flex: none;
  cursor: pointer;
}
.pf-icon-btn svg { flex: none; }
.pf-icon-btn:hover { color: var(--text); border-color: var(--border-strong); }
.pf-icon-btn .dot {
  position: absolute; top: 4px; right: 4px;
  min-width: 16px; height: 16px; border-radius: 8px;
  background: var(--ruby); border: 2px solid var(--bg-1);
  color: var(--accent-ink, #fff); font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px; line-height: 1; box-sizing: border-box;
}
.pf-icon-btn .dot:empty { width: 7px; min-width: 7px; height: 7px; padding: 0; top: 8px; right: 8px; }

/* Notification dropdown */
#pf-notif-dropdown {
  position: absolute; top: 48px; right: 0; z-index: 9999;
  width: 360px; max-height: 480px; overflow-y: auto;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--r-md); box-shadow: 0 8px 32px rgba(0,0,0,.18);
}
@media (max-width: 480px) { #pf-notif-dropdown { width: calc(100% - 20px); right: 0; } }
.pf-notif-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  font-weight: 700; font-size: 14px; color: var(--text);
}
.pf-notif-header button {
  background: none; border: none; color: var(--ruby); cursor: pointer;
  font-size: 12px; font-weight: 600; padding: 4px 8px; border-radius: 4px;
}
.pf-notif-header button:hover { background: var(--chip-bg); }
.pf-notif-list { padding: 4px 0; }
.pf-notif-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 16px; cursor: pointer; transition: background .15s;
  text-decoration: none; color: var(--text);
}
.pf-notif-item:hover { background: var(--chip-bg); }
.pf-notif-item .pf-ni-icon { font-size: 18px; flex: none; margin-top: 2px; }
.pf-notif-item .pf-ni-body { flex: 1; min-width: 0; }
.pf-notif-item .pf-ni-text { font-size: 13px; line-height: 1.4; }
.pf-notif-item .pf-ni-time { font-size: 11px; color: var(--text-dim); margin-top: 2px; }
.pf-notif-empty { padding: 24px 16px; text-align: center; color: var(--text-dim); font-size: 13px; }
.pf-header-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid var(--accent); cursor: pointer;
  object-fit: cover; background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--text); font-weight: 700; font-size: 14px;
  overflow: hidden; flex: none;
}
.pf-burger { display: none; }
@media (max-width: 1100px) {
  .pf-nav { display: none; }
  .pf-search-btn { display: none; }
  .pf-burger { display: inline-flex; }
}
@media (max-width: 768px) {
  .pf-header-actions { gap: 6px; }
  /* Скрываем колокольчик уведомлений, чтобы освободить место — переключатель темы остаётся */
  .pf-header-actions #pf-notif-wrap { display: none; }
}

/* User dropdown */
#pf-user-menu { position: relative; }
#pf-user-dropdown {
  display: none; position: absolute; top: calc(100% + 10px); right: 0;
  width: 260px; background: var(--bg-1); border-radius: var(--r-md);
  border: 1px solid var(--border); box-shadow: var(--shadow-md);
  padding: 8px; z-index: 10000;
}
#pf-user-menu.open #pf-user-dropdown { display: block; }
#pf-user-dropdown a {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 14px; color: var(--text-muted);
  font-size: 14px; font-weight: 600; text-decoration: none;
  border-radius: var(--r-sm); transition: all .15s;
}
#pf-user-dropdown a:hover { color: var(--text); background: var(--chip-bg); }

/* ── TICKER ── */
.pf-ticker {
  position: fixed; top: 64px; left: 0; right: 0; z-index: 9998;
  background: var(--bg-1); border-bottom: 1px solid var(--border);
  overflow: hidden;
}
@media(max-width:768px) { .pf-ticker { top: 56px; } }
[data-theme="light"] .pf-ticker { background: var(--bg-2); }
.pf-ticker-inner {
  display: flex; align-items: center; height: 44px;
  gap: 0; white-space: nowrap;
}
.pf-ticker-label {
  position: sticky; left: 0; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0 16px; height: 44px;
  font-family: var(--font-display); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--navy-900); background: var(--accent);
  flex-shrink: 0;
}
.pf-ticker-track {
  display: flex; align-items: center; gap: 0;
  animation: pfTickerScroll 80s linear infinite;
}
.pf-ticker:hover .pf-ticker-track { animation-play-state: paused; }
.pf-ticker-item {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 0 18px; height: 44px;
  font-size: 13px; font-weight: 600;
  border-right: 1px solid var(--border);
  flex-shrink: 0;
}
.pf-ticker-item .pf-ticker-score {
  font-family: var(--font-mono); font-weight: 700; color: var(--text);
  padding: 2px 6px; background: var(--surface); border-radius: 4px;
  font-size: 12px;
}
.pf-ticker-item .pf-ticker-score.live { color: var(--accent-text,var(--accent)); }
.pf-ticker-item .pf-ticker-date { color: var(--text-dim); font-size: 11px; }
.pf-ticker-item.is-clickable { transition: background .15s; }
.pf-ticker-item.is-clickable:hover { background: var(--surface); }
.pf-ticker-item.is-clickable:hover .pf-ticker-score { background: var(--bg-2); }
[data-theme="light"] .pf-ticker-item.is-clickable:hover { background: rgba(0,0,0,.04); }
.pf-ticker-crest {
  width: 20px; height: 20px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 8px; font-weight: 700; flex-shrink: 0;
  overflow: hidden;
}
.pf-ticker-crest img { width: 100%; height: 100%; object-fit: contain; }
@keyframes pfTickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (max-width: 768px) {
  .pf-ticker-label { padding: 0 12px; font-size: 10px; }
  .pf-ticker-item { padding: 0 14px; font-size: 12px; }
}

/* ── SEARCH OVERLAY ── */
#pf-search-wrap {
  display: none; position: fixed; inset: 0;
  background: var(--scrim); z-index: 10001;
  align-items: flex-start; justify-content: center;
  padding-top: 120px; backdrop-filter: blur(8px);
}
#pf-search-wrap.open { display: flex; }
#pf-search-inner { width: 100%; max-width: 640px; padding: 0 16px; }
#pf-search-wrap input {
  width: 100%; padding: 16px 20px; border-radius: var(--r-lg);
  border: 2px solid var(--accent); background: var(--bg-2);
  color: var(--text); font-size: 18px; outline: none;
  box-sizing: border-box; font-family: var(--font-ui);
}
#pf-search-wrap input::placeholder { color: var(--text-dim); }
#pf-search-hint {
  text-align: center; margin-top: 12px;
  font-size: 13px; color: var(--text-dim);
}
#pf-search-close {
  position: absolute; top: 20px; right: 20px;
  background: var(--chip-bg); border: 1px solid var(--border);
  border-radius: 50%; width: 40px; height: 40px;
  color: var(--text); font-size: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
/* ── SEARCH TYPEAHEAD ── */
#pf-search-results { display: none; background: var(--surface, var(--bg-2)); border: 1px solid var(--border); border-radius: 12px; margin-top: 8px; max-height: 400px; overflow-y: auto; box-shadow: 0 8px 32px rgba(0,0,0,.18); }
#pf-search-results.has-results { display: block; }
.pf-sr-group { padding: 0; }
.pf-sr-group + .pf-sr-group { border-top: 1px solid var(--border); }
.pf-sr-group-title { padding: 10px 16px 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--text-dim); }
.pf-sr-item { display: flex; align-items: center; padding: 10px 16px; cursor: pointer; text-decoration: none; color: var(--text); font-size: 14px; transition: background .12s; }
.pf-sr-item:hover, .pf-sr-item.active { background: var(--hover, rgba(255,255,255,.06)); }
.pf-sr-item-icon { width: 20px; height: 20px; margin-right: 12px; flex-shrink: 0; color: var(--text-dim); }
.pf-sr-empty { padding: 24px 16px; text-align: center; font-size: 14px; color: var(--text-dim); }

/* ── AUTH MODAL ── */
#pf-auth-modal {
  display: none; position: fixed; inset: 0;
  background: var(--scrim); z-index: 10000;
  align-items: center; justify-content: center;
  backdrop-filter: blur(6px);
}
#pf-auth-modal.open { display: flex; }
#pf-auth-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); width: 420px; max-width: 95vw;
  overflow: hidden; box-shadow: var(--shadow-lg);
  animation: pfModalIn .25s cubic-bezier(.2,.8,.2,1);
}
@keyframes pfModalIn {
  from { transform: translateY(30px) scale(.96); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
#pf-auth-header {
  background: var(--navy-800);
  padding: 18px 22px 14px; position: relative;
}
#pf-auth-header h2 {
  color: #fff; font-size: 16px; font-weight: 800; margin: 0;
  font-family: var(--font-display); letter-spacing: -.01em;
}
#pf-auth-subtitle {
  font-size: 11px; color: rgba(255,255,255,.55); margin-top: 2px;
}
#pf-auth-close {
  position: absolute; top: 12px; right: 12px;
  width: 30px; height: 30px; background: rgba(255,255,255,.08);
  border: none; border-radius: 6px; color: #fff; font-size: 14px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
#pf-auth-close:hover { background: rgba(255,255,255,.2); }
/* Auth tabs removed — now step-based */
#pf-auth-body { padding: 24px; }
.pf-auth-form { display: none; }
.pf-auth-form.active { display: block; }
.pf-auth-field { margin-bottom: 14px; }
.pf-auth-field label {
  display: block; font-size: 12px; font-weight: 700;
  color: var(--text-muted); text-transform: uppercase;
  letter-spacing: .8px; margin-bottom: 5px;
}
.pf-auth-field input {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border); border-radius: var(--r-md);
  font-size: 14px; outline: none; transition: border-color .15s;
  box-sizing: border-box; background: var(--bg-2); color: var(--text);
  font-family: var(--font-ui);
}
.pf-auth-field input:focus { border-color: var(--accent); }
.pf-auth-field input::placeholder { color: var(--text-dim); }
.pf-auth-submit {
  width: 100%; padding: 12px;
  background: var(--accent); color: var(--accent-ink);
  border: none; border-radius: var(--r-md);
  font-size: 15px; font-weight: 700; font-family: var(--font-ui);
  cursor: pointer; transition: background .15s; margin-top: 4px;
}
.pf-auth-submit:hover { background: var(--accent-hover); }
.pf-auth-error {
  display: none; color: var(--ruby); font-size: 13px;
  margin-bottom: 10px; text-align: center;
}
.pf-auth-hint {
  text-align: center; margin-top: 14px;
  font-size: 13px; color: var(--text-muted);
}
.pf-auth-hint a { color: var(--accent-text,var(--accent)); font-weight: 700; text-decoration: none; }
.pf-auth-divider {
  display: flex; align-items: center; gap: 10px; margin: 16px 0;
}
.pf-auth-divider::before, .pf-auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.pf-auth-divider span { font-size: 12px; color: var(--text-dim); white-space: nowrap; }

/* ── FOOTER ── */
#pf-footer-wrap {
  background: var(--bg-1); border-top: 1px solid var(--border);
  margin-top: 60px; padding: 48px 0 80px;
}
[data-theme="light"] #pf-footer-wrap {
  background: var(--bg-2); border-top-color: rgba(115,37,83,.14);
}
#wpforo-dialog-extra-wrap, #wpforo-notifications-bar { position: fixed !important; }
.pf-footer-grid {
  max-width: 1400px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 900px) { .pf-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 520px) { .pf-footer-grid { grid-template-columns: 1fr; } }
.pf-footer-col h5 {
  font-family: var(--font-display); font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--text-muted); margin-bottom: 14px;
}
.pf-footer-links { display: flex; flex-direction: column; gap: 10px; }
.pf-footer-links a { color: var(--text-muted); font-size: 14px; text-decoration: none; }
.pf-footer-links a:hover { color: var(--accent-text,var(--accent)); }
.pf-footer-bottom {
  max-width: 1400px; margin: 40px auto 0; padding: 24px 24px 0;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--text-dim); gap: 16px; flex-wrap: wrap;
}
.pf-footer-bottom a { color: var(--text-dim); text-decoration: none; }
.pf-footer-bottom a:hover { color: var(--accent-text,var(--accent)); }
.pf-footer-clubs-row {
  display: grid; grid-template-columns: repeat(10, 1fr); gap: 10px;
  margin-top: 8px;
}
@media(max-width:600px) { .pf-footer-clubs-row { grid-template-columns: repeat(5, 1fr); } }
.pf-footer-club {
  display: flex; align-items: center; justify-content: center;
  width: 100%; aspect-ratio: 1; background: var(--chip-bg);
  border-radius: 12px; padding: 8px; transition: background .15s;
  text-decoration: none; min-width: 48px;
}
.pf-footer-club:hover { background: var(--chip-hover); }
.pf-footer-club img { width: 100%; height: 100%; object-fit: contain; }

/* ── BOTTOM NAV (mobile) ── */
.pf-bottom-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  background: rgba(10,22,40,.92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}
[data-theme="light"] .pf-bottom-nav { background: rgba(255,255,255,.94); }
.pf-bn-inner { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
.pf-bn-item {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 4px; border-radius: 8px; min-height: 48px;
  font-size: 10px; font-weight: 600; color: var(--text-dim);
  position: relative; text-decoration: none; cursor: pointer;
  background: none; border: none;
}
.pf-bn-item svg { width: 22px; height: 22px; }
.pf-bn-item.is-active { color: var(--accent-text,var(--accent)); }
.pf-bn-badge {
  position: absolute; top: 6px; left: calc(50% + 6px);
  min-width: 16px; height: 16px; padding: 0 4px;
  background: var(--ruby); color: #fff;
  font-size: 10px; font-weight: 700; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg);
}
@media (max-width: 768px) {
  .pf-bottom-nav { display: block; }
  #pf-footer-wrap { margin-bottom: 72px; }
}

/* ── DRAWER (mobile menu) ── */
.pf-drawer-scrim {
  position: fixed; inset: 0; z-index: 80;
  background: var(--scrim); opacity: 0; pointer-events: none;
  transition: opacity .2s;
}
.pf-drawer-scrim.is-open { opacity: 1; pointer-events: auto; }
.pf-drawer {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 81;
  width: 320px; max-width: 85vw;
  background: var(--bg-1); border-right: 1px solid var(--border);
  transform: translateX(-100%);
  transition: transform .24s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column; padding: 20px;
  overflow-y: auto;
}
.pf-drawer.is-open { transform: translateX(0); }
.pf-drawer-close {
  position: absolute; top: 12px; right: 12px;
  width: 40px; height: 40px; display: flex;
  align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-muted);
  background: none; border: none;
}
.pf-drawer-section { margin-bottom: 20px; }
.pf-drawer-section-title {
  font-family: var(--font-display); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--text-muted); margin-bottom: 8px; padding: 0 12px;
}
.pf-drawer a {
  display: flex; align-items: center; gap: 10px;
  padding: 12px; color: var(--text-muted); font-size: 14px; font-weight: 600;
  text-decoration: none; border-radius: var(--r-md); transition: all .15s;
}
.pf-drawer a:hover { background: var(--chip-bg); color: var(--text); }
.pf-drawer a svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ══ Mobile improvements ══ */
@media(max-width:768px){
  /* Bottom nav — bigger touch targets */
  .pf-bn-item{min-height:52px;font-size:11px;gap:3px;padding:8px 4px}
  .pf-bn-item svg{width:24px;height:24px}

  /* Drawer — bigger items */
  .pf-drawer{width:300px;padding:20px 16px}
  .pf-drawer a{padding:14px 12px;font-size:15px}
  .pf-drawer a svg{width:22px;height:22px}
  .pf-drawer-section-title{font-size:12px;padding:0 12px;margin-bottom:10px}

  /* Header — bigger actions */
  .pf-header-row{padding:0 12px}
  .pf-icon-btn{width:42px;height:42px}
  .pf-header-avatar{width:38px!important;height:38px!important}
  .pf-brand{font-size:15px}

  /* Footer — compact mobile redesign */
  #pf-footer-wrap{padding:28px 0 80px;margin-top:32px}
  .pf-footer-grid{padding:0 16px!important;grid-template-columns:1fr 1fr!important;gap:20px 16px!important}
  /* Hide about block on mobile — redundant with header */
  .pf-footer-grid > .pf-footer-col:first-child{display:none}
  .pf-footer-col h5{font-size:13px;margin-bottom:10px}
  .pf-footer-links{gap:8px}
  .pf-footer-links a{font-size:14px;padding:3px 0;display:flex;align-items:center;gap:6px}
  /* Clubs column — span full width */
  .pf-footer-grid > .pf-footer-col:last-child{grid-column:1/-1}
  .pf-footer-clubs-row{grid-template-columns:repeat(10,1fr)!important;gap:6px}
  .pf-footer-club{border-radius:8px;padding:5px}
  .pf-footer-bottom{padding:16px 16px 0!important;margin-top:20px!important;font-size:12px;flex-direction:column;align-items:flex-start;gap:8px}

  /* Ticker — thinner on mobile */
  .pf-ticker-inner{height:40px}
  .pf-ticker-label{font-size:10px;padding:0 10px;gap:4px}
  .pf-ticker-item{padding:0 12px;font-size:12px;gap:6px}
  .pf-ticker-crest{width:18px;height:18px}
}

/* Small phones */
@media(max-width:400px){
  .pf-header-row{gap:8px;padding:0 10px}
  .pf-icon-btn{width:40px;height:40px}
  .pf-header-avatar{width:38px!important;height:38px!important}
  .pf-brand{font-size:14px;gap:8px}
  .pf-brand-mark{width:28px;height:28px}
}

/* Auth modal mobile */
@media(max-width:480px){
  #pf-auth-box{border-radius:var(--r-lg);margin:12px}
  #pf-auth-body{padding:20px 16px}
  .pf-auth-submit{padding:14px;font-size:16px}
  .pf-auth-field input{padding:13px 14px;font-size:16px}
  .pf-auth-field label{font-size:12px;margin-bottom:6px}
}

/* Notification & user dropdown — centered on mobile */
@media(max-width:768px){
  #pf-notif-dropdown{position:fixed!important;left:12px!important;right:12px!important;width:auto!important;top:58px!important;max-height:70vh;border-radius:var(--r-lg)!important;box-shadow:0 12px 40px rgba(0,0,0,.3)!important}
  #pf-user-dropdown{position:fixed!important;left:12px!important;right:12px!important;width:auto!important;top:58px!important;max-width:100%!important;border-radius:var(--r-lg)!important;box-shadow:0 12px 40px rgba(0,0,0,.3)!important}
}

/* Footer clubs row — small phones */
@media(max-width:480px){
  .pf-footer-clubs-row{grid-template-columns:repeat(5,1fr)!important;gap:6px}
  .pf-footer-club{border-radius:8px;padding:5px}
  .pf-footer-grid{gap:16px 12px!important}
  .pf-footer-col h5{font-size:12px}
  .pf-footer-links a{font-size:13px}
}

/* ── Скрываем заголовки разделов «Аналитика», «Матчи» и т.п. на мобильных ── */
@media(max-width:768px){
  body.archive .page-header,
  body.archive .page-header h1,
  body.archive .page-header .page-title,
  body.archive .archive-header,
  body.archive header.entry-header,
  body.blog .page-header,
  body.search .page-header{display:none!important}
  /* Главная страница списков (форум/блоги/прогнозы/чат уже скрыты в своих плагинах) */
}
