/* ══ RESET GP WRAPPERS — nuclear, kills all GP sizing on homepage ══ */
body.page-id-5531 .site.grid-container,
body.page-id-5531 #page.grid-container{max-width:100%!important;padding:0!important;margin:0!important;width:100%!important}
body.page-id-5531 .site-content,
body.page-id-5531 #content{max-width:100%!important;padding:0!important;margin:0!important;width:100%!important;display:block!important}
body.page-id-5531 .content-area,
body.page-id-5531 #primary{max-width:100%!important;padding:0!important;margin:0!important;width:100%!important;float:none!important}
body.page-id-5531 main{max-width:100%!important;padding:0!important;margin:0!important;width:100%!important}
body.page-id-5531 .inside-article{max-width:100%!important;padding:0!important;margin:0!important;width:100%!important;background:transparent!important;box-shadow:none!important;border:none!important}
body.page-id-5531 .entry-content{max-width:100%!important;padding:0!important;margin:0!important;width:100%!important}
body.page-id-5531 .separate-containers .inside-article{background:transparent!important;box-shadow:none!important}
body.page-id-5531 #right-sidebar,
body.page-id-5531 .sidebar,
body.page-id-5531 #secondary{display:none!important}
body.page-id-5531,body.page-id-5531 .site-content{background:var(--bg)!important}

/* ══ HOME GRID ══ */
.home-grid{display:grid;grid-template-columns:1fr 340px;gap:28px;max-width:1280px;margin:0 auto;padding:24px 24px 40px;box-sizing:border-box}
.ph-main-col{display:flex;flex-direction:column;gap:28px;min-width:0}
@media(max-width:1100px){.home-grid{grid-template-columns:1fr;max-width:780px}}
@media(max-width:768px){.home-grid{padding:12px 12px 32px;gap:20px}}

/* ── Sidebar ── */
.ph-sidebar{display:flex;flex-direction:column;gap:20px;min-width:0}
@media(max-width:1100px){.ph-sidebar{gap:16px}}

/* ── Ticker ── */
.ph-ticker-outer{background:var(--bg-1);padding:0;overflow:hidden;position:relative;margin-bottom:4px;border-bottom:2px solid var(--accent)}
.ph-ticker-label{position:absolute;left:0;top:0;bottom:0;z-index:2;background:var(--accent);color:var(--accent-ink);font-family:var(--font-display);font-size:12px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;display:flex;align-items:center;gap:6px;padding:0 18px;white-space:nowrap;box-shadow:4px 0 16px rgba(0,0,0,.3)}
.ph-ticker-wrap{margin-left:120px;overflow:hidden}
.ph-ticker-track{display:flex;gap:0;width:max-content;will-change:transform;backface-visibility:hidden;-webkit-backface-visibility:hidden;transform:translate3d(0,0,0)}
.ph-tk-item{display:inline-flex;align-items:center;gap:10px;padding:12px 20px;border-right:1px solid var(--border);white-space:nowrap;color:var(--text);font-size:14px;transition:background .15s}
.ph-tk-item:hover{background:var(--chip-bg)}
.ph-tk-item img{width:24px;height:24px;object-fit:contain}
.ph-tk-name{font-weight:700;font-size:14px;letter-spacing:.01em}
.ph-tk-date{font-size:11px;color:var(--text-dim);font-weight:600}
.ph-tk-score{font-family:var(--font-mono);font-weight:700;font-size:14px;padding:2px 10px;border-radius:var(--r-sm);background:var(--surface);min-width:48px;text-align:center;letter-spacing:1px;color:var(--text)}
.ph-tk-score.ph-tk-live{background:var(--accent);color:var(--accent-ink);animation:phLivePulse 1.5s ease-in-out infinite;box-shadow:0 0 12px rgba(255,92,141,.4)}
.ph-tk-score.ph-tk-fin{background:var(--chip-bg);color:var(--text)}
.ph-tk-time{font-size:12px;color:var(--text-dim);font-weight:600;background:var(--chip-bg);padding:3px 8px;border-radius:var(--r-sm)}
.ph-tk-live-dot{width:8px;height:8px;border-radius:50%;background:var(--ruby);animation:phLivePulse 1.5s ease-in-out infinite;flex-shrink:0;box-shadow:0 0 8px rgba(255,92,141,.5)}
@keyframes phLivePulse{0%,100%{opacity:1}50%{opacity:.3}}
@media(max-width:480px){
  .ph-ticker-label{padding:0 10px;font-size:10px;gap:4px}
  .ph-ticker-wrap{margin-left:90px}
  .ph-tk-item{padding:10px 14px;gap:6px;font-size:12px}
  .ph-tk-item img{width:20px;height:20px}
  .ph-tk-name{font-size:12px}
  .ph-tk-score{font-size:12px;padding:2px 8px;min-width:40px}
  .ph-tk-date{display:none}
}

/* ── Universal: nuke theme underlines on news anchors ── */
.ph-hero,.ph-hero *,
.ph-ncard,.ph-ncard *{
  text-decoration:none!important;
  text-decoration-line:none!important;
  text-decoration-color:transparent!important;
  text-decoration-style:solid!important;
  text-underline-offset:0!important;
  text-decoration-thickness:0!important;
}
.ph-hero h2,.ph-hero h3,.ph-ncard h2,.ph-ncard h3{
  text-decoration:none!important;border-bottom:0!important;box-shadow:none!important;
}

/* ── Hero ── */
.ph-hero{
  display:grid;
  grid-template-columns:1.05fr 1fr;
  gap:0;
  cursor:pointer;
  min-height:300px;
  text-decoration:none;color:inherit;
  border:1px solid var(--border);
  background:var(--surface);
  overflow:hidden;
  transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  position:relative;
}
.ph-hero:hover{
  transform:translateY(-3px);
  border-color:color-mix(in oklab, var(--accent) 50%, var(--border));
  box-shadow:0 18px 40px -12px color-mix(in oklab, var(--accent) 50%, transparent);
}
.ph-hero-img{
  aspect-ratio:16/10;
  background-size:cover;background-position:center;
  border-radius:0;
  position:relative;
  transition:transform .35s ease;
  overflow:hidden;
}
.ph-hero:hover .ph-hero-img{transform:scale(1.04)}
.ph-hero-img::after{
  content:"";
  position:absolute;inset:auto 0 0 0;height:55%;
  background:linear-gradient(180deg, transparent 0%, rgba(8,4,16,.45) 80%, rgba(8,4,16,.7) 100%);
  pointer-events:none;
}
.ph-hero-body{
  padding:28px 28px 22px;
  display:flex;flex-direction:column;justify-content:space-between;
  background:var(--surface);
  position:relative;
  min-width:0;
}
.ph-hero-meta{display:flex;align-items:center;gap:10px;margin-bottom:14px;flex-wrap:wrap}
.ph-hero-title{
  font-family:var(--font-display);
  font-size:clamp(20px,2vw,26px)!important;
  font-weight:700!important;
  line-height:1.18!important;
  letter-spacing:.005em!important;
  margin:0 0 12px!important;
  color:var(--text)!important;
  text-wrap:balance;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
  transition:color .15s;
}
.ph-hero:hover .ph-hero-title{color:var(--accent-text,var(--accent))}
.ph-hero-excerpt{
  color:var(--text-muted)!important;
  font-size:14px!important;line-height:1.55!important;
  margin:0!important;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.ph-hero-author{
  display:flex;align-items:center;gap:10px;
  margin-top:18px;padding-top:14px;
  border-top:1px solid color-mix(in oklab, var(--border) 60%, transparent);
  font-size:12px;color:var(--text-dim);font-weight:600;
  flex-wrap:wrap;
}
.ph-hero-author .avatar{width:30px;height:30px;flex-shrink:0}
.ph-hero-author .avatar img{width:100%;height:100%;object-fit:cover}
.ph-hero-author .icon{display:inline-block;vertical-align:-2px}
.ph-hero-sep{color:var(--border)}
@media(max-width:768px){
  .ph-hero{grid-template-columns:1fr;min-height:auto}
  .ph-hero-img{aspect-ratio:16/9}
  .ph-hero-body{padding:18px 16px 20px}
  .ph-hero-title{font-size:21px!important;line-height:1.25!important;-webkit-line-clamp:3}
  .ph-hero-excerpt{font-size:14px!important;line-height:1.55!important;-webkit-line-clamp:3}
  .ph-hero-meta .chip{height:26px!important;font-size:11px!important;padding:0 12px!important}
  .ph-hero-author{font-size:12px;gap:6px;margin-top:14px;flex-wrap:wrap}
  .ph-hero-author .avatar{width:26px!important;height:26px!important}
  .ph-hero-sep{display:none!important}
}

/* ── Match blocks in cards ── */
.ph-hero-match{border-radius:var(--r-lg) 0 0 var(--r-lg);overflow:hidden;display:flex;align-items:stretch}
.ph-hero-match .pf-match-summary,.ph-hero-match .pf-match-preview{margin:0!important;border-radius:0!important;border:0!important;width:100%;min-height:100%}
.ph-ncard-match{overflow:hidden;aspect-ratio:16/9;display:flex;align-items:stretch}
.ph-ncard-match .pf-match-summary,.ph-ncard-match .pf-match-preview{margin:0!important;border-radius:0!important;border:0!important;padding:14px 12px!important;width:100%;font-size:12px}
.ph-ncard-match .pf-ms-logo,.ph-ncard-match .pf-mp-logo{width:40px!important;height:40px!important}
.ph-ncard-match .pf-ms-score-val{font-size:28px!important}
.ph-ncard-match .pf-ms-name,.ph-ncard-match .pf-mp-name{font-size:11px!important}
.ph-ncard-match .pf-ms-badge,.ph-ncard-match .pf-mp-badge{font-size:10px!important;padding:2px 8px!important}
.ph-ncard-match .pf-ms-goals,.ph-ncard-match .pf-mp-top{display:none!important}
.ph-ncard-match .pf-mp-vs{font-size:18px!important}
.ph-ncard-match .pf-mp-datetime{font-size:13px!important}
@media(max-width:768px){
  .ph-hero-match{border-radius:var(--r-lg) var(--r-lg) 0 0}
}

/* ── News ── */
.ph-news-wrap{position:relative}
.ph-news-wrap.ph-loading .ph-news-grid{opacity:.35;pointer-events:none;transition:opacity .2s}
.ph-news-wrap .ph-news-grid{transition:opacity .2s}
@keyframes phNewsFadeIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
.ph-news-wrap.ph-fade-in .ph-news-grid{animation:phNewsFadeIn .3s ease-out}
.ph-news-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
@media(max-width:900px){.ph-news-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.ph-news-grid{grid-template-columns:1fr;gap:12px}}

/* Модификатор поверх .card.card-hover: depth = border-color, без in-flow тени */
.ph-ncard{
  cursor:pointer;
  text-decoration:none;color:inherit;
  display:flex;flex-direction:column;
  position:relative;
}
.ph-ncard:hover{
  border-color:color-mix(in oklab, var(--accent) 50%, var(--border));
}
.ph-ncard-img{
  aspect-ratio:16/9;
  background-size:cover;background-position:center;
  position:relative;
  overflow:hidden;
  transition:transform .35s ease;
}
.ph-ncard:hover .ph-ncard-img{transform:scale(1.05)}
.ph-ncard-img::after{
  content:"";
  position:absolute;inset:auto 0 0 0;height:40%;
  background:linear-gradient(180deg, transparent 0%, rgba(8,4,16,.35) 100%);
  pointer-events:none;
  opacity:.55;
}
.ph-ncard-body{
  padding:14px 14px 16px;
  display:flex;flex-direction:column;
  flex:1;
  gap:10px;
}
.ph-ncard-meta{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.ph-ncard-title{
  font-family:var(--font-ui)!important;
  font-size:14px!important;
  font-weight:700!important;
  line-height:1.32!important;
  letter-spacing:0!important;
  color:var(--text)!important;
  text-wrap:balance;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
  margin:0!important;
  transition:color .15s;
}
.ph-ncard:hover .ph-ncard-title{color:var(--accent-text,var(--accent))}
@media(max-width:600px){
  .ph-ncard{flex-direction:row;align-items:stretch}
  .ph-ncard-img{aspect-ratio:1/1;width:120px;min-width:120px;flex-shrink:0;border-radius:0}
  .ph-ncard-body{padding:12px 14px;justify-content:center;gap:8px}
  .ph-ncard-title{font-size:14px!important;-webkit-line-clamp:3}
  .ph-ncard-meta .chip{height:22px!important;font-size:10px!important;max-width:90px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .section-head{flex-direction:column!important;align-items:flex-start!important;gap:8px}
  .section-title{font-size:15px!important}
  .section-head .h-scroll{width:100%;padding-bottom:4px}
  .h-scroll .chip{height:32px;font-size:13px;padding:0 14px;flex-shrink:0}
}

/* News category chips — header */
.ph-news-chip{
  transition:transform .15s ease, background .15s ease, color .15s ease;
}
.ph-news-chip:hover{transform:translateY(-1px)}

/* ── Stats / Form / Podcasts ── */
.ph-stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
@media(max-width:900px){.ph-stats-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:480px){.ph-stats-grid{grid-template-columns:1fr 1fr;gap:10px}}

/* ── New stat cards ── */
.ph-stat-card{
  position:relative;
  padding:18px 16px 14px;
  display:flex;flex-direction:column;gap:10px;
  cursor:pointer;
  transition:border-color .18s ease;
}
.ph-stat-card::before{
  content:"";
  position:absolute;inset:0;
  background:linear-gradient(135deg, color-mix(in oklab, var(--ph-clr) 22%, transparent) 0%, transparent 65%);
  pointer-events:none;
  opacity:.85;
}
.ph-stat-card::after{
  content:"";
  position:absolute;left:0;top:0;bottom:0;width:3px;
  background:var(--ph-clr,var(--accent));
  opacity:.85;
}
.ph-stat-card:hover{
  border-color:color-mix(in oklab, var(--ph-clr,var(--accent)) 60%, var(--border));
}
.ph-stat-card > *{position:relative;z-index:1}
.ph-stat-icon{
  position:absolute;top:10px;right:12px;
  font-size:22px;line-height:1;opacity:.55;
  filter:drop-shadow(0 1px 2px rgba(0,0,0,.18));
  pointer-events:none;
}
.ph-stat-label{
  font-family:var(--font-display);
  font-size:10px;font-weight:800;
  letter-spacing:.10em;
  text-transform:uppercase;
  color:var(--text-dim);
  padding-right:30px;
  line-height:1.2;
}
.ph-stat-leader{
  display:flex;align-items:center;gap:10px;
  margin-top:2px;
}
.ph-stat-leader img{
  width:48px;height:48px;flex-shrink:0;
  object-fit:contain;
  filter:drop-shadow(0 2px 4px rgba(0,0,0,.18));
}
.ph-stat-leader img.ph-stat-photo{
  border-radius:50%;
  object-fit:cover;
  border:2px solid color-mix(in oklab, var(--ph-clr,var(--border)) 50%, var(--border));
  background:var(--bg-1);
}
.ph-stat-leader-name{
  font-size:12px;font-weight:700;
  color:var(--text);
  line-height:1.25;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.ph-stat-value-row{
  display:flex;align-items:baseline;gap:6px;
  margin-top:auto;padding-top:4px;
}
.ph-stat-value{
  font-family:var(--font-display);
  font-size:36px;font-weight:800;
  line-height:1;
  color:var(--text);
  letter-spacing:-.01em;
}
.ph-stat-unit{
  font-size:11px;font-weight:600;
  color:var(--text-dim);
  text-transform:lowercase;
  letter-spacing:.02em;
}
.ph-stat-more{
  font-size:10px;font-weight:700;
  color:color-mix(in oklab, var(--ph-clr,var(--accent)) 70%, var(--text-dim));
  letter-spacing:.04em;
  text-transform:uppercase;
  opacity:0;
  transform:translateY(2px);
  transition:opacity .18s ease, transform .18s ease;
  margin-top:2px;
}
.ph-stat-card:hover .ph-stat-more{opacity:1;transform:none}

@media(max-width:480px){
  .ph-stat-card{padding:14px 12px 12px;gap:8px}
  .ph-stat-icon{top:8px;right:10px;font-size:18px}
  .ph-stat-label{font-size:10px;padding-right:24px}
  .ph-stat-leader img,.ph-stat-leader .avatar-lg{width:38px!important;height:38px!important}
  .ph-stat-leader-name{font-size:11px}
  .ph-stat-value{font-size:28px}
  .ph-stat-more{display:none}
}

/* ── Stat-leaderboard modal ── */
.ph-stat-modal{
  position:fixed;inset:0;
  background:rgba(8,4,16,.72);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
  display:none;align-items:center;justify-content:center;
  z-index:99999;
  padding:24px;
  animation:phsmFade .18s ease;
}
.ph-stat-modal.is-open{display:flex}
@keyframes phsmFade{from{opacity:0}to{opacity:1}}
.ph-stat-modal-card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--r-lg);
  width:100%;max-width:520px;
  max-height:88vh;
  display:flex;flex-direction:column;
  overflow:hidden;
  box-shadow:0 24px 60px -10px rgba(0,0,0,.5);
  animation:phsmRise .22s ease;
  position:relative;
}
@keyframes phsmRise{from{transform:translateY(14px);opacity:.4}to{transform:none;opacity:1}}
.ph-stat-modal-close{
  position:absolute;top:12px;right:12px;
  width:32px;height:32px;border-radius:8px;
  background:rgba(20,32,48,.06);
  color:var(--text);
  border:1px solid var(--border);
  cursor:pointer;padding:0;
  display:inline-flex;align-items:center;justify-content:center;
  transition:background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
  z-index:2;
  -webkit-tap-highlight-color:transparent;
}
.ph-stat-modal-close svg{display:block;stroke:currentColor;width:14px;height:14px}
.ph-stat-modal-close:hover{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}
.ph-stat-modal-close:active{transform:scale(.92)}
.ph-stat-modal-close:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
[data-theme="dark"] .ph-stat-modal-close{background:rgba(255,255,255,.06)}
.ph-stat-modal-head{
  display:flex;align-items:center;gap:14px;
  padding:18px 22px;
  background:linear-gradient(135deg, color-mix(in oklab, var(--accent) 18%, var(--surface)), var(--surface));
  border-bottom:1px solid var(--border);
}
.ph-stat-modal-icon{
  font-size:34px;line-height:1;
  filter:drop-shadow(0 2px 4px rgba(0,0,0,.25));
}
.ph-stat-modal-title{
  font-family:var(--font-display);
  font-size:20px;font-weight:800;
  color:var(--text);
  letter-spacing:.01em;
  line-height:1.15;
}
.ph-stat-modal-sub{
  font-size:11px;font-weight:600;
  color:var(--text-dim);
  margin-top:3px;
  letter-spacing:.02em;
}
.ph-stat-modal-body{
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
  padding:8px 0 12px;
  flex:1;
}
.ph-stat-modal-loader{
  display:flex;justify-content:center;gap:6px;
  padding:50px 0;
}
.ph-stat-modal-loader span{
  width:8px;height:8px;border-radius:50%;
  background:var(--accent);
  animation:phsmDot .9s ease-in-out infinite;
}
.ph-stat-modal-loader span:nth-child(2){animation-delay:.15s}
.ph-stat-modal-loader span:nth-child(3){animation-delay:.3s}
@keyframes phsmDot{0%,80%,100%{opacity:.25;transform:scale(.7)}40%{opacity:1;transform:scale(1)}}
.ph-stat-modal-empty{padding:40px 16px;text-align:center;color:var(--text-dim);font-size:13px}

.ph-stat-rank-list{list-style:none;margin:0;padding:0}
.ph-stat-rank-row{
  display:grid;
  grid-template-columns:42px 44px 1fr minmax(110px, 130px);
  align-items:center;gap:10px;
  padding:10px 18px;
  border-bottom:1px solid color-mix(in oklab, var(--border) 60%, transparent);
  transition:background .12s;
}
.ph-stat-rank-row:last-child{border-bottom:none}
.ph-stat-rank-row:hover{background:color-mix(in oklab, var(--accent) 6%, transparent)}
.ph-stat-rank-row.is-top{
  background:linear-gradient(90deg, color-mix(in oklab, var(--accent) 14%, transparent), transparent 70%);
}
.ph-stat-rank-pos{
  font-family:var(--font-display);
  font-size:15px;font-weight:800;
  color:var(--text-dim);
  text-align:center;
  line-height:1;
}
.ph-stat-rank-row.is-top .ph-stat-rank-pos{font-size:22px}
.ph-stat-rank-img{
  width:36px;height:36px;flex-shrink:0;
  object-fit:contain;
  display:flex;align-items:center;justify-content:center;
}
.ph-stat-rank-img-photo{border-radius:50%;object-fit:cover;background:#1a1a24;border:1px solid var(--border)}
.ph-stat-rank-img-fallback{
  background:var(--chip-bg,rgba(255,255,255,.06));
  color:var(--text);
  font-size:11px;font-weight:700;
  text-transform:uppercase;
}
.ph-stat-rank-info{min-width:0}
.ph-stat-rank-name{
  display:block;
  font-size:13px;font-weight:700;
  color:var(--text);
  text-decoration:none;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  line-height:1.25;
}
a.ph-stat-rank-name:hover{color:var(--accent-text,var(--accent))}
.ph-stat-rank-name-pl{cursor:pointer}
.ph-stat-rank-name-pl:hover{color:var(--accent-text,var(--accent))}
.ph-stat-rank-sub{
  display:flex;align-items:center;gap:5px;
  font-size:11px;font-weight:600;color:var(--text-dim);
  margin-top:2px;
}
.ph-stat-rank-sub img{width:13px;height:13px;object-fit:contain;flex-shrink:0}
.ph-stat-rank-val{
  display:flex;flex-direction:column;align-items:flex-end;gap:4px;
  min-width:0;
}
.ph-stat-rank-bar{
  width:100%;height:5px;
  background:color-mix(in oklab, var(--border) 80%, transparent);
  border-radius:3px;
  overflow:hidden;
}
.ph-stat-rank-bar span{
  display:block;height:100%;
  background:linear-gradient(90deg, var(--accent), color-mix(in oklab, var(--accent) 60%, #fff));
  border-radius:3px;
  transition:width .4s ease;
}
.ph-stat-rank-row.is-top .ph-stat-rank-bar span{
  background:linear-gradient(90deg, #FFC107, #FF8A00);
  box-shadow:0 0 10px rgba(255,140,0,.35);
}
.ph-stat-rank-num{
  display:flex;align-items:baseline;gap:4px;
  font-size:11px;color:var(--text-dim);font-weight:600;
}
.ph-stat-rank-num strong{
  font-family:var(--font-display);
  font-size:18px;font-weight:800;color:var(--text);
  line-height:1;
}
.ph-stat-rank-row.is-top .ph-stat-rank-num strong{color:var(--accent-text,var(--accent))}
.ph-stat-rank-unit{font-size:10px;text-transform:lowercase;letter-spacing:.02em}

@media(max-width:520px){
  .ph-stat-modal{padding:0;align-items:flex-end}
  .ph-stat-modal-card{max-width:100%;max-height:92vh;border-radius:var(--r-lg) var(--r-lg) 0 0}
  .ph-stat-modal-head{padding:16px 18px}
  .ph-stat-modal-title{font-size:17px}
  .ph-stat-modal-icon{font-size:28px}
  .ph-stat-rank-row{grid-template-columns:32px 36px 1fr 96px;padding:9px 14px;gap:8px}
  .ph-stat-rank-pos{font-size:13px}
  .ph-stat-rank-row.is-top .ph-stat-rank-pos{font-size:18px}
  .ph-stat-rank-img{width:30px;height:30px}
  .ph-stat-rank-name{font-size:12px}
  .ph-stat-rank-sub{font-size:10px}
  .ph-stat-rank-num strong{font-size:15px}
}
/* ── Form cards ── */
.ph-form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.ph-form-card{
  position:relative;
  display:grid;
  grid-template-columns:32px 32px 1fr auto auto;
  align-items:center;
  gap:12px;
  padding:12px 16px 12px 14px;
  text-decoration:none;color:inherit;
  transition:border-color .18s ease;
}
.ph-form-card::before{
  content:"";
  position:absolute;left:0;top:0;bottom:0;width:3px;
  background:var(--ph-clr,var(--accent));
  opacity:.85;
}
.ph-form-card::after{
  content:"";
  position:absolute;inset:0;
  background:linear-gradient(90deg, color-mix(in oklab, var(--ph-clr) 14%, transparent) 0%, transparent 60%);
  pointer-events:none;
  opacity:.7;
}
.ph-form-card > *{position:relative;z-index:1}
.ph-form-card:hover{
  border-color:color-mix(in oklab, var(--ph-clr,var(--accent)) 50%, var(--border));
}
.ph-form-card.is-cl::before{background:var(--emerald)}
.ph-form-card.is-rel::before{background:var(--ruby)}
.ph-form-pos{
  font-family:var(--font-display);
  font-size:18px;font-weight:800;
  color:var(--text-muted);
  text-align:center;
  line-height:1;
}
.ph-form-card.is-cl .ph-form-pos{color:var(--emerald)}
.ph-form-card.is-rel .ph-form-pos{color:var(--ruby)}
.ph-form-logo{
  width:30px;height:30px;
  object-fit:contain;
  flex-shrink:0;
  filter:drop-shadow(0 1px 3px rgba(0,0,0,.18));
}
.ph-form-name{
  font-size:13px;font-weight:700;
  color:var(--text);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  min-width:0;
}
.ph-form-pills{display:flex;gap:4px}
/* Размер/интерактив-модификатор поверх .form-pill (.w/.d/.l — цвета из токенов) */
.ph-form-pill.ph-form-pill{
  width:22px;height:22px;
  border:none;padding:0;
  font-size:11px;font-weight:800;
  border-radius:6px;
  cursor:pointer;
  font-family:var(--font-display);
  letter-spacing:.02em;
  transition:transform .12s ease, filter .12s ease;
  -webkit-tap-highlight-color:transparent;
}
.ph-form-pill:hover{transform:translateY(-2px) scale(1.08);filter:brightness(1.1)}
.ph-form-pill:active{transform:translateY(0) scale(.96)}
.ph-form-pill-empty.ph-form-pill-empty{
  background:var(--chip-bg,rgba(255,255,255,.06));
  color:var(--text-dim);
  cursor:default;
}
.ph-form-pill-empty:hover{transform:none;filter:none}
.ph-form-pts{
  font-family:var(--font-display);
  font-weight:800;font-size:18px;
  color:var(--accent-text,var(--accent));
  min-width:32px;
  text-align:right;
  line-height:1;
}
@media(max-width:768px){
  .ph-form-grid{grid-template-columns:1fr;gap:10px}
  .ph-form-card{grid-template-columns:28px 28px 1fr auto auto;padding:10px 12px;gap:10px}
  .ph-form-pill.ph-form-pill{width:24px;height:24px;font-size:12px;border-radius:6px;position:relative}
  .ph-form-pill.ph-form-pill::after{content:"";position:absolute;top:-8px;bottom:-8px;left:-2px;right:-2px}
  .ph-form-pos{font-size:16px}
  .ph-form-logo{width:26px;height:26px}
  .ph-form-pts{font-size:16px}
}
@media(max-width:380px){
  .ph-form-card{grid-template-columns:24px 24px 1fr auto;gap:8px;padding:9px 10px}
  .ph-form-name{display:none}
  .ph-form-pill.ph-form-pill{width:24px;height:24px;font-size:11px}
}
.ph-podcasts-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:14px}
@media(max-width:900px){.ph-podcasts-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:600px){.ph-podcasts-grid{grid-template-columns:repeat(2,1fr);gap:12px}}
.ph-pod{cursor:pointer;display:flex;flex-direction:column;text-decoration:none;color:inherit}
.ph-pod-cover{position:relative;width:100%;aspect-ratio:1/1;border-radius:var(--r-md);overflow:hidden;background:radial-gradient(circle at 30% 30%,color-mix(in oklch,var(--accent) 55%,#0d0614),#0a0610 72%)}
.ph-pod-cover img{width:100%;height:100%;object-fit:cover}
.ph-pod-play-btn.ph-pod-play-btn{
  position:absolute;right:10px;bottom:10px;
  width:38px;height:38px;
  border-radius:50%;
  background:var(--accent);color:var(--accent-ink);
  border:none;
}
.ph-pod.ph-playing .ph-pod-play-btn{background:var(--emerald)}
.ph-pod.ph-playing .ph-pod-progress-fill{background:var(--emerald)!important}

/* ── Analytics cards (v2) ── */
.ph-analytics-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.ph-analytics-card-v2{
  position:relative;
  padding:18px 16px 14px;
  display:flex;flex-direction:column;gap:10px;
  text-decoration:none;color:inherit;
  transition:border-color .18s ease;
}
.ph-analytics-card-v2::before{
  content:"";
  position:absolute;left:0;right:0;top:0;height:3px;
  background:var(--ph-an,var(--accent));
  opacity:.95;
}
.ph-analytics-card-v2::after{
  content:"";
  position:absolute;inset:0;
  background:radial-gradient(140% 60% at 100% 0%, color-mix(in oklab, var(--ph-an,var(--accent)) 16%, transparent) 0%, transparent 60%);
  pointer-events:none;
}
.ph-analytics-card-v2 > *{position:relative;z-index:1}
.ph-analytics-card-v2:hover{
  border-color:color-mix(in oklab, var(--ph-an,var(--accent)) 50%, var(--border));
}
.ph-analytics-icon{
  position:absolute;top:10px;right:12px;
  font-size:22px;line-height:1;opacity:.7;
  filter:drop-shadow(0 1px 2px rgba(0,0,0,.22));
  pointer-events:none;
}
.ph-analytics-label{
  font-family:var(--font-display);
  font-size:10px;font-weight:800;
  letter-spacing:.10em;
  text-transform:uppercase;
  color:var(--ph-an,var(--accent));
  line-height:1.2;
  padding-right:30px;
}
.ph-analytics-team{
  display:flex;align-items:center;gap:10px;
}
.ph-analytics-team img{
  width:42px;height:42px;
  object-fit:contain;
  flex-shrink:0;
  filter:drop-shadow(0 2px 4px rgba(0,0,0,.18));
}
.ph-analytics-team-name{
  font-size:13px;font-weight:700;
  color:var(--text);
  line-height:1.25;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.ph-analytics-value-row{
  display:flex;align-items:baseline;gap:6px;
  margin-top:auto;padding-top:4px;
}
.ph-analytics-value{
  font-family:var(--font-display);
  font-size:34px;font-weight:800;
  line-height:1;
  color:var(--ph-an,var(--text));
  letter-spacing:-.01em;
}
.ph-analytics-unit{
  font-size:11px;font-weight:600;
  color:var(--text-dim);
  letter-spacing:.02em;
}
@media(max-width:900px){
  .ph-analytics-grid{grid-template-columns:1fr;gap:10px}
}
@media(max-width:480px){
  .ph-analytics-card-v2{padding:14px 12px 12px}
  .ph-analytics-icon{font-size:18px}
  .ph-analytics-label{font-size:10px}
  .ph-analytics-team img{width:36px;height:36px}
  .ph-analytics-value{font-size:28px}
}

/* Legacy hint — keep old class harmless if cached */
.ph-analytics-card{padding:0}

/* ══════════════════════════════════════════════
   SIDEBAR WIDGETS — unified styling
   ══════════════════════════════════════════════ */
/* Модификатор поверх .card */
.ph-sb-card{
  position:relative;
}
.ph-sb-head{
  display:flex;align-items:center;justify-content:space-between;
  padding:14px 16px;
  border-bottom:1px solid var(--border);
  background:linear-gradient(135deg, color-mix(in oklab, var(--accent) 12%, var(--surface)), var(--surface));
  gap:8px;
}
.ph-sb-head-right{display:flex;align-items:center;gap:8px}
.ph-sb-chip{
  font-size:10px;font-weight:800;
  letter-spacing:.06em;
  text-transform:uppercase;
  padding:4px 8px;
  border-radius:6px;
  background:color-mix(in oklab, var(--accent) 18%, transparent);
  color:var(--accent-text,var(--accent));
}
.ph-sb-foot{
  padding:10px 16px;
  border-top:1px solid var(--border);
  background:color-mix(in oklab, var(--accent) 4%, transparent);
  text-align:center;
}
.ph-sb-empty{padding:20px 16px;text-align:center;color:var(--text-dim);font-size:13px}

/* ── Profile widget ── */
.ph-sb-profile{padding:18px 18px 16px;display:flex;flex-direction:column;gap:14px}
.ph-sb-prof-head{display:flex;align-items:center;gap:12px}
/* Модификатор поверх .avatar.avatar-lg */
.ph-sb-prof-avatar{
  position:relative;
  background:linear-gradient(135deg, color-mix(in oklab, var(--accent) 60%, #1E2F4A), #1E2F4A);
  text-decoration:none;color:#fff;
  border:2px solid color-mix(in oklab, var(--accent) 30%, var(--border));
  transition:transform .18s ease, border-color .18s ease;
}
.ph-sb-prof-avatar:hover{transform:scale(1.05);border-color:var(--accent)}
.ph-sb-prof-avatar img{width:100%;height:100%;object-fit:cover}
.ph-sb-prof-init{font-family:var(--font-display);font-size:18px;font-weight:800}
.ph-sb-prof-meta{min-width:0;flex:1}
.ph-sb-prof-name{
  display:block;
  font-family:var(--font-display);
  font-size:16px;font-weight:800;
  color:var(--text);
  text-decoration:none;
  letter-spacing:.02em;
  line-height:1.15;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  margin-bottom:3px;
}
.ph-sb-prof-name:hover{color:var(--accent-text,var(--accent))}
.ph-sb-prof-since{
  font-size:11px;color:var(--text-dim);
  font-weight:600;
}
.ph-sb-rank{
  display:flex;align-items:center;gap:14px;
  padding:12px 14px;
  background:linear-gradient(135deg, color-mix(in oklab, var(--gold) 16%, var(--bg-2)), var(--bg-2));
  border:1px solid color-mix(in oklab, var(--gold) 32%, var(--border));
  border-radius:12px;
  position:relative;
  overflow:hidden;
}
.ph-sb-rank::before{
  content:"";
  position:absolute;
  inset:-30% -30% auto auto;
  width:120px;height:120px;
  background:radial-gradient(circle, color-mix(in oklab, var(--gold) 20%, transparent), transparent 65%);
  pointer-events:none;
}
.ph-sb-rank-monkey{
  width:56px;height:56px;flex-shrink:0;
  object-fit:contain;
  border-radius:50%;
  background:rgba(0,0,0,.15);
  filter:drop-shadow(0 2px 6px rgba(0,0,0,.2));
  position:relative;z-index:1;
}
.ph-sb-rank-monkey-fallback{
  display:inline-flex;align-items:center;justify-content:center;
  font-size:30px;background:var(--bg-1);
}
.ph-sb-rank-body{flex:1;min-width:0;position:relative;z-index:1}
.ph-sb-rank-row{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:6px}
.ph-sb-rank-title{
  font-family:var(--font-display);
  font-size:15px;font-weight:800;
  color:var(--text);
  letter-spacing:.01em;
  line-height:1.1;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.ph-sb-rank-lvl{
  font-family:var(--font-mono,monospace);
  font-size:10px;font-weight:700;
  color:var(--gold);
  background:color-mix(in oklab, var(--gold) 16%, transparent);
  padding:2px 7px;border-radius:5px;
  letter-spacing:.05em;
  flex-shrink:0;
}
.ph-sb-rank-bar{
  height:5px;
  background:color-mix(in oklab, var(--border) 60%, transparent);
  border-radius:3px;overflow:hidden;
  margin-bottom:6px;
}
.ph-sb-rank-bar span{
  display:block;height:100%;
  background:var(--gold);
  border-radius:3px;
  transition:width .4s ease;
}
.ph-sb-rank-pts{
  display:flex;justify-content:space-between;align-items:baseline;
  font-size:11px;color:var(--text-dim);
  font-weight:600;gap:6px;
}
.ph-sb-rank-pts strong{
  font-family:var(--font-display);
  font-size:14px;font-weight:800;
  color:var(--text);
}
.ph-sb-rank-diff{color:var(--gold);font-weight:700}

.ph-sb-favs{display:grid;grid-template-columns:1fr;gap:8px}
.ph-sb-fav{
  display:flex;align-items:center;gap:10px;
  padding:10px 12px;
  background:var(--bg-2);
  border-radius:10px;
  border:1px solid color-mix(in oklab, var(--border) 60%, transparent);
  transition:border-color .15s, transform .15s;
  min-width:0;
  overflow:hidden;
}
.ph-sb-fav > div{min-width:0;flex:1}
.ph-sb-fav:hover{border-color:var(--accent);transform:translateY(-1px)}
.ph-sb-fav img{width:28px;height:28px;object-fit:contain;flex-shrink:0;filter:drop-shadow(0 1px 2px rgba(0,0,0,.18))}
.ph-sb-fav img.is-photo{border-radius:50%;object-fit:cover;border:1.5px solid var(--border);background:#1a1a24}
.ph-sb-fav-init{
  width:28px;height:28px;flex-shrink:0;
  border-radius:50%;
  background:#334766;color:#fff;
  display:inline-flex;align-items:center;justify-content:center;
  font-size:11px;font-weight:800;
}
.ph-sb-fav-label{
  font-size:9px;font-weight:800;
  letter-spacing:.08em;
  color:var(--text-dim);
  margin-bottom:1px;
}
.ph-sb-fav-name{
  font-size:12px;font-weight:700;
  color:var(--text);
  line-height:1.2;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}

.ph-sb-prof-btns{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.ph-sb-prof-btns .btn{width:100%;height:38px;font-size:13px;display:inline-flex;align-items:center;justify-content:center;gap:6px}

/* Logged-out variant */
.ph-sb-login{padding:24px 20px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:14px}
.ph-sb-login-icon{
  width:56px;height:56px;
  border-radius:50%;
  background:color-mix(in oklab, var(--accent) 14%, var(--bg-2));
  color:var(--accent-text,var(--accent));
  display:inline-flex;align-items:center;justify-content:center;
}
.ph-sb-login-text{color:var(--text-muted);font-size:13px;margin:0;line-height:1.45}

/* ── Standings ── */
.ph-stand-tbl-wrap{width:100%;overflow:hidden}
.ph-standings-table{width:100%;border-collapse:collapse;font-size:13px;table-layout:auto;margin:0}
.ph-standings-table tbody tr:last-child td{padding-bottom:14px}
.ph-standings-table tbody tr:first-child td{padding-top:8px}
.ph-standings-table thead tr{
  color:var(--text-dim);font-size:10px;
  text-transform:uppercase;letter-spacing:.06em;
}
.ph-standings-table th,.ph-standings-table td{
  padding:10px 3px;text-align:center;font-weight:700;
  white-space:nowrap;
}
.ph-standings-table th.col-pos,.ph-standings-table td.col-pos{
  padding:10px 4px 10px 12px;text-align:left;position:relative;
}
.ph-standings-table th.col-club,.ph-standings-table td.col-club{
  padding:10px 4px;text-align:left;
}
.ph-standings-table th.col-pts,.ph-standings-table td.col-pts{
  padding:10px 10px 10px 4px;
}
.ph-standings-table td.col-pts{color:#A78BFA!important;font-weight:800}
[data-theme="light"] .ph-standings-table td.col-pts{color:#6D28D9!important}
.ph-standings-table tbody tr{
  border-top:1px solid var(--border);
  transition:background .12s;
}
.ph-standings-table tbody tr:hover{background:color-mix(in oklab, var(--accent) 6%, transparent)}
.ph-standings-table .col-stat{font-weight:700}
.ph-standings-table td.col-pl{color:var(--text-dim)!important;font-weight:600}
.ph-standings-table td.col-w{color:var(--emerald)!important}
.ph-standings-table td.col-d{color:var(--text-muted)!important}
.ph-standings-table td.col-l{color:var(--rose-400)!important}
[data-theme="light"] .ph-standings-table td.col-w{color:#1F7A5C!important}
[data-theme="light"] .ph-standings-table td.col-l{color:var(--wine-500)!important}
[data-theme="light"] .ph-standings-table td.col-d{color:var(--steel-600)!important}
[data-theme="light"] .ph-standings-table td.col-pl{color:var(--steel-600)!important}
.ph-standings-table .ph-stand-zone{
  position:absolute;left:0;top:50%;
  transform:translateY(-50%);
  width:3px;height:18px;border-radius:0 2px 2px 0;
}
.ph-standings-table .ph-stand-pos{font-weight:800;color:var(--text);font-family:var(--font-mono,inherit)}
.ph-standings-table tbody tr:nth-child(-n+4) .ph-stand-pos{color:var(--steel-400)}
.ph-standings-table tbody tr:nth-child(5) .ph-stand-pos,
.ph-standings-table tbody tr:nth-child(6) .ph-stand-pos{color:var(--emerald)}
.ph-standings-table tbody tr:nth-last-child(-n+3) .ph-stand-pos{color:var(--rose-400)}
[data-theme="light"] .ph-standings-table tbody tr:nth-child(-n+4) .ph-stand-pos{color:var(--steel-600)}
[data-theme="light"] .ph-standings-table tbody tr:nth-child(5) .ph-stand-pos,
[data-theme="light"] .ph-standings-table tbody tr:nth-child(6) .ph-stand-pos{color:#1F7A5C}
[data-theme="light"] .ph-standings-table tbody tr:nth-last-child(-n+3) .ph-stand-pos{color:var(--wine-500)}
.ph-standings-table .ph-stand-club{display:flex;align-items:center;gap:6px;min-width:0}
.ph-standings-table .ph-stand-logo{width:20px;height:20px;object-fit:contain;flex-shrink:0}
.ph-standings-table .ph-stand-name{
  font-weight:600;color:var(--text);
  white-space:nowrap;
}

/* Toggle button — hidden on desktop, shown on mobile */
.ph-stand-toggle{
  display:none;
  width:100%;
  padding:11px 16px;
  background:color-mix(in oklab, var(--accent) 6%, transparent);
  border:none;
  border-top:1px solid var(--border);
  color:var(--accent-text,var(--accent));
  font-family:var(--font-display);
  font-size:12px;font-weight:800;
  letter-spacing:.06em;
  text-transform:uppercase;
  cursor:pointer;
  align-items:center;justify-content:center;gap:6px;
  transition:background .15s;
  -webkit-tap-highlight-color:transparent;
}
.ph-stand-toggle:hover{background:color-mix(in oklab, var(--accent) 12%, transparent)}
.ph-stand-toggle .icon{transition:transform .2s}
.ph-sb-stand:not([data-collapsed]) .ph-stand-toggle .icon{transform:rotate(90deg)}

/* ── Predictions ── */
.ph-sb-pred-list{padding:6px 0}
.ph-sb-pred-row{
  display:grid;
  grid-template-columns:30px 28px 1fr auto;
  align-items:center;gap:10px;
  padding:9px 14px;
  border-top:1px solid color-mix(in oklab, var(--border) 60%, transparent);
  transition:background .12s;
}
.ph-sb-pred-row:first-child{border-top:none}
.ph-sb-pred-row:hover{background:color-mix(in oklab, var(--accent) 6%, transparent)}
.ph-sb-pred-row.is-top{background:linear-gradient(90deg, rgba(245,158,11,.12), transparent 70%)}
.ph-sb-pred-pos{
  font-family:var(--font-display);
  font-size:14px;font-weight:800;
  color:var(--text-dim);
  text-align:center;line-height:1;
}
.ph-sb-pred-row.is-top .ph-sb-pred-pos{font-size:20px}
/* Модификатор поверх .avatar.avatar-sm */
.ph-sb-pred-av{width:28px;height:28px;font-size:11px}
.ph-sb-pred-av img{width:100%;height:100%;object-fit:cover}
.ph-sb-pred-name{
  font-size:13px;font-weight:600;
  color:var(--text);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  min-width:0;
}
.ph-sb-pred-pts{
  font-family:var(--font-display);
  font-size:14px;font-weight:800;
  color:var(--accent-text,var(--accent));
}
.ph-sb-pred-row.is-top .ph-sb-pred-pts{color:var(--gold)}

/* ── Fixtures ── */
.ph-sb-fix #ph-fix-list > div[style*="text-transform:uppercase"]{
  background:color-mix(in oklab, var(--accent) 5%, transparent);
}
.ph-sb-fix .ph-fix-row{transition:background .12s}
.ph-sb-fix .ph-fix-row:hover{background:color-mix(in oklab, var(--accent) 5%, transparent)}

/* ── Empty state ── */
/* Модификатор поверх .pf-empty */
.ph-empty{padding:24px}

/* ══════════════════════════════════════════════
   GLOBAL NO-OVERFLOW (страница не должна горизонтально скроллиться)
   ══════════════════════════════════════════════ */
.ph-main-col,.ph-sidebar{min-width:0;max-width:100%}
.home-grid{min-width:0}
.home-grid > *,.ph-main-col > *,.ph-sidebar > *{min-width:0;max-width:100%}
.ph-sb-card,.ph-stat-card,.ph-form-card,.ph-analytics-card-v2,.ph-hero,.ph-ncard{max-width:100%}
@media(max-width:768px){
  body.page-id-5531{overflow-x:hidden}
  .home-grid{overflow-x:hidden}
  /* Touch targets: invisible hit-area extension for small inline icon buttons */
  .ph-fix-cal,.ph-sb-expand{position:relative}
  .ph-fix-cal::after,.ph-sb-expand::after{content:"";position:absolute;top:-8px;bottom:-8px;left:-7px;right:-7px}
}

/* ══════════════════════════════════════════════
   MOBILE LAYOUT — main column first, sidebar at the bottom
   Order (top → bottom):
     1 hero · 2 news · 3 stats · 4 form · 5 analytics · 6 podcasts
     7 profile · 8 standings · 9 fixtures · 10 predictions
   ══════════════════════════════════════════════ */
@media(max-width:1100px){
  .home-grid{display:flex;flex-direction:column;gap:24px;max-width:780px}
  .ph-main-col,.ph-sidebar{display:contents}
  /* gap inside ph-main-col is now irrelevant; rely on .home-grid gap */

  [data-ph-block="hero"]       {order:1}
  [data-ph-block="news"]       {order:2}
  [data-ph-block="stats"]      {order:3}
  [data-ph-block="form"]       {order:4}
  [data-ph-block="analytics"]  {order:5}
  [data-ph-block="podcasts"]   {order:6}
  [data-ph-block="profile"]    {order:7}
  [data-ph-block="standings"]  {order:8}
  [data-ph-block="fixtures"]   {order:9}
  [data-ph-block="predictions"]{order:10}
}

/* ══════════════════════════════════════════════
   FIXTURES — team-row helpers
   ══════════════════════════════════════════════ */
.ph-fix-teams{display:flex;flex-direction:column;gap:6px;min-width:0}
.ph-fix-team{display:flex;align-items:center;gap:8px;min-width:0}
.ph-fix-logo{width:22px;height:22px;object-fit:contain;flex-shrink:0}
.ph-fix-name{
  font-size:13px;font-weight:600;color:var(--text);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  min-width:0;
}

/* ══════════════════════════════════════════════
   MOBILE-FIRST OVERRIDES (≤768px)
   Страница должна быть БОЛЬШОЙ, а не уменьшенной
   ══════════════════════════════════════════════ */
@media(max-width:768px){
  /* Main column spacing */
  .ph-main-col{gap:24px;min-width:0}
  .ph-sidebar{min-width:0}

  /* Section headings — larger on mobile */
  .section-head{margin-bottom:12px}
  .section-title{font-size:15px!important}
  .section-link{font-size:14px}

  /* Sidebar on mobile — full width, larger spacing */
  .ph-sidebar{gap:16px}
  /* New ph-sb-card MUST stay overflow:hidden (rounded corners + accent borders) */
  .ph-sidebar .card:not(.ph-sb-card){border-radius:var(--r-lg);overflow-x:auto;-webkit-overflow-scrolling:touch}
  .ph-sidebar .ph-sb-card{overflow:hidden}

  /* Profile widget mobile (legacy avatar) */
  .ph-sidebar .avatar-lg{width:48px!important;height:48px!important;font-size:16px!important}
  .ph-sidebar .btn{height:44px;font-size:15px}

  /* ── STANDINGS — collapsed mode by default on mobile ── */
  .ph-stand-toggle{display:flex}
  .ph-sb-stand[data-collapsed] .col-stat{display:none}
  /* Compacted layout — #, логотип + имя, очки на всю ширину карточки */
  .ph-standings-table{font-size:13px;table-layout:fixed}
  .ph-sb-stand[data-collapsed] .ph-standings-table{width:100%}
  .ph-sb-stand[data-collapsed] .ph-standings-table th.col-pos,
  .ph-sb-stand[data-collapsed] .ph-standings-table td.col-pos{padding:8px 6px 8px 12px;width:36px}
  .ph-sb-stand[data-collapsed] .ph-standings-table th.col-club,
  .ph-sb-stand[data-collapsed] .ph-standings-table td.col-club{width:auto;text-align:left;padding:8px 4px}
  .ph-sb-stand[data-collapsed] .ph-standings-table .ph-stand-club{justify-content:flex-start;gap:8px}
  .ph-sb-stand[data-collapsed] .ph-standings-table .ph-stand-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .ph-sb-stand[data-collapsed] .ph-standings-table th.col-pts,
  .ph-sb-stand[data-collapsed] .ph-standings-table td.col-pts{padding:8px 14px 8px 4px;font-size:14px;width:46px;text-align:right}
  .ph-standings-table .ph-stand-logo{width:22px;height:22px}
  .ph-standings-table .ph-stand-name{font-size:13px}

  /* Fixtures widget — larger rows */
  .ph-fix-row{min-height:56px}
  .ph-sidebar .icon-btn{width:36px;height:36px}

  /* ── New sidebar profile widget mobile ── */
  .ph-sb-profile{padding:16px 14px;gap:12px}
  .ph-sb-prof-head{gap:10px}
  .ph-sb-prof-avatar{width:52px;height:52px}
  .ph-sb-prof-name{font-size:15px}
  .ph-sb-prof-since{font-size:11px}

  /* Rank card — compact */
  .ph-sb-rank{padding:10px 12px;gap:12px}
  .ph-sb-rank-monkey{width:50px;height:50px}
  .ph-sb-rank-title{font-size:14px}
  .ph-sb-rank-lvl{font-size:9px;padding:2px 6px}
  .ph-sb-rank-pts strong{font-size:13px}
  .ph-sb-rank-pts{font-size:10px}

  /* Favs — два столбца на планшете, если хватает ширины */
  .ph-sb-favs{grid-template-columns:1fr 1fr}
  .ph-sb-fav{padding:8px 10px;gap:8px}
  .ph-sb-fav img,.ph-sb-fav-init{width:26px;height:26px}
  .ph-sb-fav-name{font-size:12px}
  .ph-sb-fav-label{font-size:10px}

  /* Buttons — full-width touch targets */
  .ph-sb-prof-btns{grid-template-columns:1fr 1fr;gap:10px}
  .ph-sb-prof-btns .btn{height:40px;font-size:13px}

  /* ── Headers on all sidebar cards ── */
  .ph-sb-head{padding:12px 14px}
  .ph-sb-foot{padding:9px 14px}

  /* ── Predictions ── */
  .ph-sb-pred-row{padding:9px 14px;gap:9px;grid-template-columns:28px 26px 1fr auto}
  .ph-sb-pred-row.is-top .ph-sb-pred-pos{font-size:18px}
  .ph-sb-pred-pos{font-size:13px}
  .ph-sb-pred-av{width:26px;height:26px}
  .ph-sb-pred-name{font-size:12px}
  .ph-sb-pred-pts{font-size:13px}

  /* ── Form cards already responsive — extra polish on tablet ── */
  .ph-form-grid{grid-template-columns:1fr 1fr}
  .ph-form-card{grid-template-columns:30px 30px 1fr auto auto;padding:11px 12px}

  /* ── Analytics — 2 cols on tablet looks better than 1 ── */
  .ph-analytics-grid{grid-template-columns:repeat(2,1fr)}

  /* ── Stats — slightly tighter top icon ── */
  .ph-stat-card{padding:14px 12px 12px}
  .ph-stat-icon{top:9px;right:10px;font-size:18px}
  .ph-stat-value{font-size:30px}
  .ph-stat-leader img{width:42px;height:42px}
  .ph-stat-leader img.ph-stat-photo{width:42px;height:42px}
  .ph-stat-leader-name{font-size:11px}
}

/* ══ TABLET PORTRAIT — sidebar already stacked (≤1100px) but main col shrinks ══ */
@media(max-width:1100px) and (min-width:769px){
  /* Form cards: keep 2 cols but allow more pill room */
  .ph-form-card{grid-template-columns:30px 32px 1fr auto auto}
}

/* ══ SMALL PHONES (≤480px) — fine-tune cards & buttons ══ */
@media(max-width:480px){
  /* Form cards single column gets MORE room — go back to 1 col layout */
  .ph-form-grid{grid-template-columns:1fr}
  .ph-form-card{grid-template-columns:26px 28px 1fr auto auto;padding:10px 11px;gap:9px}
  .ph-form-name{font-size:12px}
  .ph-form-pill.ph-form-pill{width:24px;height:24px;font-size:11px}
  .ph-form-pos{font-size:15px}
  .ph-form-pts{font-size:15px}
  .ph-form-logo{width:26px;height:26px}

  /* Analytics — back to 1 col on real phones */
  .ph-analytics-grid{grid-template-columns:1fr;gap:10px}
  .ph-analytics-card-v2{padding:14px 14px 12px}
  .ph-analytics-icon{font-size:20px}
  .ph-analytics-value{font-size:30px}
  .ph-analytics-team img{width:38px;height:38px}

  /* Sidebar profile — denser */
  .ph-sb-profile{padding:14px 12px;gap:11px}
  .ph-sb-prof-avatar{width:48px;height:48px;border-width:2px}
  .ph-sb-rank-monkey{width:46px;height:46px}
  .ph-sb-rank{padding:9px 10px;gap:10px;border-radius:10px}

  /* Fixtures — на узких показываем только лого + счёт/время */
  .ph-fix-name{display:none}
  .ph-fix-logo{width:28px;height:28px}
  .ph-fix-teams{flex-direction:row;gap:14px;align-items:center;justify-content:flex-start}
  .ph-fix-team{justify-content:center}

  /* Hero — slightly smaller padding */
  .ph-hero-body{padding:18px 14px}
  .ph-hero-author{font-size:11px;margin-top:12px;padding-top:10px}
  .ph-hero-author .avatar{width:24px!important;height:24px!important}

  /* Stats: pull title closer */
  .ph-stat-leader{gap:8px}
  .ph-stat-leader img{width:38px;height:38px}
  .ph-stat-value{font-size:26px}
  .ph-stat-icon{font-size:16px}

  /* Section heads on phones — chips horizontal scroll */
  .ph-news-chip{flex-shrink:0}
}

/* ══ SMALL PHONES (≤400px) — iPhone SE et al ══ */
@media(max-width:400px){
  .home-grid{padding:10px 10px 28px}
  .ph-hero-title{font-size:19px!important;-webkit-line-clamp:3}
  .ph-hero-excerpt{font-size:13px!important;-webkit-line-clamp:2}
  .ph-hero-body{padding:16px 12px 18px}
  .ph-hero-meta .chip{height:24px!important;font-size:10px!important}
  .ph-ncard{flex-direction:row;align-items:stretch}
  .ph-ncard-img{width:100px!important;min-width:100px!important;aspect-ratio:1/1}
  .ph-ncard-body{padding:10px 12px;gap:6px}
  .ph-ncard-title{font-size:13px!important;-webkit-line-clamp:3}

  .ph-stats-grid{gap:8px}
  .ph-stat-card{padding:12px 10px 10px;gap:8px}
  .ph-stat-icon{font-size:15px;top:6px;right:8px}
  .ph-stat-label{font-size:9px;padding-right:20px}
  .ph-stat-leader img,.ph-stat-leader .avatar-lg{width:34px!important;height:34px!important}
  .ph-stat-leader img.ph-stat-photo{width:34px!important;height:34px!important}
  .ph-stat-leader-name{font-size:11px;line-height:1.2}
  .ph-stat-value{font-size:24px}
  .ph-stat-unit{font-size:10px}

  /* Form: drop logo column on tiniest screens — pos + name + pills + pts */
  .ph-form-card{grid-template-columns:24px 24px 1fr auto;gap:7px;padding:9px 10px}
  .ph-form-card .ph-form-name{display:none}
  .ph-form-pill.ph-form-pill{width:20px;height:20px;font-size:10px;border-radius:5px}
  .ph-form-pos{font-size:14px}
  .ph-form-logo{width:24px;height:24px}
  .ph-form-pts{font-size:14px;min-width:24px}

  /* Analytics: more compact */
  .ph-analytics-card-v2{padding:12px 12px 10px}
  .ph-analytics-value{font-size:26px}
  .ph-analytics-team img{width:34px;height:34px}
  .ph-analytics-team-name{font-size:12px}
  .ph-analytics-label{font-size:9px}

  /* Sidebar profile — really tight */
  .ph-sb-profile{padding:13px 11px;gap:10px}
  .ph-sb-prof-head{gap:9px}
  .ph-sb-prof-avatar{width:44px;height:44px}
  .ph-sb-prof-name{font-size:14px}
  .ph-sb-rank{padding:8px 10px;gap:9px}
  .ph-sb-rank-monkey{width:42px;height:42px}
  .ph-sb-rank-title{font-size:13px}
  .ph-sb-rank-lvl{font-size:9px;padding:1px 5px}
  .ph-sb-rank-pts strong{font-size:12px}
  .ph-sb-favs{grid-template-columns:1fr}
  .ph-sb-fav{padding:8px 10px}
  .ph-sb-fav img,.ph-sb-fav-init{width:24px;height:24px}
  .ph-sb-prof-btns{grid-template-columns:1fr;gap:8px}

  /* Stat-modal — bottom-sheet sized for small */
  .ph-stat-modal-head{padding:14px 16px}
  .ph-stat-modal-title{font-size:16px}
  .ph-stat-modal-icon{font-size:24px}
  .ph-stat-rank-row{grid-template-columns:28px 32px 1fr 88px;padding:9px 12px;gap:7px}
  .ph-stat-rank-pos{font-size:12px}
  .ph-stat-rank-row.is-top .ph-stat-rank-pos{font-size:16px}
  .ph-stat-rank-img{width:28px;height:28px}
  .ph-stat-rank-name{font-size:12px}
  .ph-stat-rank-num strong{font-size:14px}

  /* Predictions — drop avatar size */
  .ph-sb-pred-row{grid-template-columns:26px 24px 1fr auto;padding:8px 12px;gap:8px}
  .ph-sb-pred-av{width:24px;height:24px}
  .ph-sb-pred-name{font-size:12px}
  .ph-sb-pred-pts{font-size:13px}
  .ph-sb-pred-row.is-top .ph-sb-pred-pos{font-size:17px}
}
