/* ── Hide theme defaults + kill sidebar ── */
h1.page-title,h1.archive-title,.archive-header-content h1,.entry-title{
    display:none!important;visibility:hidden!important;height:0!important;
    margin:0!important;padding:0!important;overflow:hidden!important;
}
.category-transfers .widget-area.sidebar,
.category-transfers .is-right-sidebar,
.category-transfers .is-left-sidebar,
.category-transfers #right-sidebar,
.category-transfers #left-sidebar{display:none!important}
.category-transfers .site-content .content-area{width:100%!important;max-width:100%!important}

/* ── Page container ── */
.pft-page{margin:0;padding:0}
.pft-container{
    max-width:1400px;margin:0 auto;
    padding:28px 24px 60px;
}
@media(max-width:768px){.pft-container{padding:20px 16px 40px}}

/* ════════ CAROUSEL ════════ */
.pft-carousel{padding:0;overflow:hidden;margin-bottom:28px;border-radius:var(--r-lg)}
.pft-carousel-head{
    background:linear-gradient(90deg, var(--accent) 0%, color-mix(in oklch, var(--accent) 70%, #2d0b3a) 100%);
    padding:14px 20px;display:flex;align-items:center;justify-content:space-between;color:#fff;
}
.pft-carousel-head strong{
    font-family:var(--font-display);font-size:17px;font-weight:800;letter-spacing:-0.01em;
}
.pft-carousel-nav{display:flex;gap:6px}
.pft-nav-btn{
    width:34px;height:34px;border-radius:50%;
    background:rgba(255,255,255,.18);border:none;color:#fff;cursor:pointer;
    display:inline-flex;align-items:center;justify-content:center;
    transition:background .15s;
    font-size:20px;font-weight:700;line-height:1;
    padding:0;
}
.pft-nav-btn:hover{background:rgba(255,255,255,.32)}

/* ── Tiles grid ── */
.pft-tiles{display:grid;grid-template-columns:repeat(4,1fr);gap:0}
@media(max-width:900px){.pft-tiles{grid-template-columns:repeat(2,1fr)}}
@media(max-width:500px){.pft-tiles{grid-template-columns:1fr}}

.pft-tile{
    position:relative;aspect-ratio:1/1;min-height:200px;
    border:none;padding:0;cursor:pointer;overflow:hidden;
    text-align:left;color:#fff;display:flex;flex-direction:column;justify-content:flex-end;
    border-right:1px solid rgba(255,255,255,.08);
    border-bottom:1px solid rgba(255,255,255,.08);
    transition:transform .18s ease-out,box-shadow .18s ease-out;
}
.pft-tile:hover{transform:translateY(-3px);box-shadow:0 8px 24px rgba(0,0,0,.25)}
.pft-tile-empty{background:var(--bg-2);cursor:default}
.pft-tile-empty:hover{transform:none;box-shadow:none}

.pft-tile-logo{
    position:absolute;top:50%;left:50%;transform:translate(-50%,-55%);
    width:50%;height:50%;object-fit:contain;opacity:.18;pointer-events:none;
}
.pft-tile-grad{
    position:absolute;inset:0;
    background:linear-gradient(0deg,rgba(0,0,0,.78) 0%,rgba(0,0,0,.35) 45%,transparent 65%);
}
.pft-tile-text{
    position:relative;z-index:2;padding:12px 14px 14px;
    font-size:13px;font-weight:700;line-height:1.35;
    display:-webkit-box;-webkit-line-clamp:6;-webkit-box-orient:vertical;overflow:hidden;
    text-shadow:0 1px 2px rgba(0,0,0,.4);overflow-wrap:break-word;text-wrap:pretty;
}
@media(max-width:500px){
    .pft-tile{aspect-ratio:auto;min-height:160px}
    .pft-tile-text{font-size:14.5px;-webkit-line-clamp:unset;padding:14px 16px 16px}
}

/* ════════ NEWS POPUP ════════ */
.pft-modal-overlay{
    position:fixed;inset:0;z-index:999999;
    background:var(--scrim,rgba(8,15,24,.55));
    backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);
    display:none;align-items:center;justify-content:center;
    padding:24px 16px;overflow-y:auto;
}
.pft-modal-overlay.open{display:flex}
.pft-modal{
    max-width:720px;width:100%;padding:28px 36px 32px;
    border-radius:var(--r-lg)!important;position:relative;
    box-shadow:var(--elev-hi);
    max-height:85vh;overflow-y:auto;
}
.pft-modal-close{
    position:absolute;top:16px;right:16px;
    width:36px;height:36px;border-radius:8px;
    background:var(--bg-2);border:1px solid var(--border);
    display:inline-flex;align-items:center;justify-content:center;
    cursor:pointer;color:var(--text-muted);
    font-family:var(--font-display,inherit);
    font-size:22px;font-weight:400;line-height:1;
    padding:0;
    box-shadow:0 1px 2px rgba(0,0,0,.04);
    transition:background .18s ease,color .18s ease,border-color .18s ease,transform .18s ease,box-shadow .18s ease;
}
.pft-modal-close:hover{
    background:var(--accent);color:var(--accent-ink,#142030);
    border-color:var(--accent);
    transform:rotate(90deg);
    box-shadow:0 4px 12px color-mix(in oklch, var(--accent) 35%, transparent);
}
.pft-modal-close:active{transform:rotate(90deg) scale(.94)}
.pft-modal-close:focus-visible{
    outline:2px solid var(--accent);outline-offset:2px;
}

/* News modal content */
.pft-news-header{display:flex;gap:14px;align-items:flex-start;margin-bottom:16px;padding-right:40px}
.pft-news-logo{width:44px;height:44px;object-fit:contain;flex-shrink:0}
.pft-news-title{
    margin:0 0 6px;font-family:var(--font-display);font-size:24px;font-weight:800;
    line-height:1.2;color:var(--accent-text,var(--accent));
}
.pft-news-date{font-size:12px;color:var(--text-dim);font-weight:600}
.pft-news-content{font-size:15px;line-height:1.7;color:var(--text)}
.pft-news-content p{margin:12px 0}
.pft-news-content blockquote{
    margin:16px 0;padding:14px 18px;
    background:color-mix(in oklch, var(--accent) 6%, var(--bg-2));
    border-left:3px solid var(--accent);
    border-radius:0 var(--r-sm) var(--r-sm) 0;
    font-style:italic;font-size:15px;line-height:1.55;color:var(--text);
}
.pft-news-content strong{color:var(--text)}
.pft-news-source{
    margin-top:24px;padding-top:16px;
    border-top:1px solid var(--border);
    font-size:13px;color:var(--text-dim);
}
.pft-news-source em{color:var(--text-muted);font-style:italic;font-weight:600}

/* ════════ CLUB GRID ════════ */
.pft-grid-label{
    font-size:11px;font-weight:800;letter-spacing:.08em;
    text-transform:uppercase;color:var(--text-dim);margin-bottom:12px;
}
.pft-club-grid{
    display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin-bottom:28px;
}
@media(min-width:1200px){.pft-club-grid{grid-template-columns:repeat(5,1fr)}}
@media(max-width:900px){.pft-club-grid{grid-template-columns:repeat(4,1fr);gap:10px}}
@media(max-width:680px){.pft-club-grid{grid-template-columns:repeat(3,1fr);gap:10px}}
@media(max-width:420px){.pft-club-grid{grid-template-columns:repeat(2,1fr)}}

.pft-grid-cell{
    position:relative;padding:20px 12px 14px;
    display:flex;flex-direction:column;align-items:center;gap:10px;
    cursor:pointer;background:var(--bg-1);
    border:1px solid var(--border);border-radius:var(--r-lg);
    transition:transform .15s,border-color .15s,background .15s;
    text-align:center;
}
.pft-grid-cell:hover{
    transform:translateY(-3px);
    border-color:var(--border-strong);
    box-shadow:var(--shadow-md);
}
.pft-grid-cell.pft-grid-active{
    border-color:var(--accent);
    background:color-mix(in oklch, var(--accent) 8%, var(--bg-1));
}
.pft-grid-logo{
    width:56px;height:56px;object-fit:contain;
}
.pft-grid-name{
    font-size:10px;font-weight:800;letter-spacing:.04em;
    text-transform:uppercase;color:var(--text);line-height:1.2;
}
.pft-grid-badge{
    position:absolute;top:10px;right:10px;
    min-width:26px;height:22px;padding:0 7px;
    border-radius:11px;
    background:var(--accent);color:var(--accent-ink,#fff);
    font-size:11px;font-weight:800;
    display:inline-flex;align-items:center;justify-content:center;
    box-shadow:0 1px 3px rgba(0,0,0,.2);
}
.pft-grid-badge-empty{
    background:var(--chip-bg);color:var(--text-dim);box-shadow:none;
}

/* ════════ CREST (inline) ════════ */
.pft-crest{
    display:inline-flex;align-items:center;justify-content:center;
    border-radius:50%;font-family:var(--font-display);
    font-weight:700;flex-shrink:0;letter-spacing:0;
    border:1.5px solid rgba(255,255,255,.15);
}
.pft-crest-xl{width:56px;height:56px;font-size:15px;border-width:2px}

/* ════════ DETAIL (CARDS) ════════ */
.pft-detail-head{
    display:flex;align-items:center;justify-content:space-between;
    margin-bottom:16px;flex-wrap:wrap;gap:12px;
}
.pft-detail-title{display:flex;align-items:center;gap:12px}
.pft-detail-title h2{
    margin:0;font-family:var(--font-display);
    font-size:clamp(20px,2vw,28px);font-weight:800;color:var(--text);
}
.pft-detail-logo{width:36px;height:36px;object-fit:contain}

.pft-chips{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:16px}

.pft-cards{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
    gap:12px;
}
@media(max-width:500px){.pft-cards{grid-template-columns:1fr}}

.pft-empty{
    grid-column:1/-1;padding:40px;text-align:center;
    color:var(--text-dim);font-size:14px;font-weight:600;
}

/* ── Transfer Card ── */
.pft-card{padding:0;overflow:hidden;display:flex;flex-direction:column}
.pft-card-head{
    padding:10px 12px;display:flex;justify-content:space-between;align-items:center;
    background:var(--bg-2);border-bottom:1px solid var(--border);
}
.pft-card-status{
    font-size:10px;font-weight:800;letter-spacing:.08em;
    text-transform:uppercase;display:flex;align-items:center;gap:5px;
}
.pft-dot{width:6px;height:6px;border-radius:50%;flex-shrink:0}
.pft-card-type{
    font-size:9px;font-weight:800;letter-spacing:.08em;
    color:var(--text-dim);padding:2px 6px;
    border:1px solid var(--border);border-radius:3px;
}
.pft-card-body{
    position:relative;padding:18px 14px 14px;text-align:center;
}
.pft-card-photo{
    width:64px;height:64px;border-radius:50%;object-fit:cover;
    margin:0 auto 10px;display:block;
    border:2px solid var(--border);background:var(--bg-2);
}
.pft-card-avatar{
    width:64px;height:64px;border-radius:50%;
    margin:0 auto 10px;display:inline-flex;
    align-items:center;justify-content:center;
    font-size:20px;font-weight:800;color:#fff;
}
.pft-card-name{
    font-family:var(--font-display);font-weight:800;
    font-size:15px;line-height:1.2;margin-bottom:4px;color:var(--text);
}
.pft-card-photo:hover,.pft-card-avatar[onclick]:hover{
    transform:scale(1.08);box-shadow:0 0 0 3px var(--accent);
    transition:transform .15s,box-shadow .15s;
}
.pft-card-foot{
    padding:12px 14px;display:flex;align-items:center;justify-content:space-between;
    gap:8px;border-top:1px solid var(--border);
}
.pft-card-from,.pft-card-to{
    display:flex;align-items:center;gap:5px;min-width:0;flex:1;
}
.pft-card-to{justify-content:flex-end}
.pft-card-club-img{width:22px;height:22px;object-fit:contain;flex-shrink:0}
.pft-card-club-label{font-size:11px;font-weight:700;color:var(--text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pft-card-club-bold{color:var(--text);font-weight:800}
.pft-card-club-free{font-style:italic;color:var(--text-dim);font-weight:600}
.pft-card-status-empty{min-height:14px;display:inline-block}
.pft-card-arrow{color:var(--accent-text,var(--accent));font-size:14px;flex-shrink:0}

/* ════════ CLUB POPUP (for future use) ════════ */
.pft-modal-club{max-width:600px;width:100%;padding:0;border-radius:var(--r-lg)!important;overflow:hidden;box-shadow:var(--elev-hi)}

/* ════════ CHIP (override/ensure) ════════ */
.chip{
    display:inline-flex;align-items:center;gap:6px;
    height:28px;padding:0 12px;
    font-size:12px;font-weight:600;letter-spacing:.02em;
    background:var(--chip-bg);color:var(--text-muted);
    border-radius:var(--r-pill);border:1px solid transparent;
    cursor:pointer;transition:background .15s,color .15s;
}
.chip:hover{background:var(--chip-hover);color:var(--text)}
.chip.is-active{background:var(--accent);color:var(--accent-ink)}

/* Player links */
.pf-player-link{cursor:pointer;border-bottom:1px dotted var(--accent);color:inherit;transition:color .2s}
.pf-player-link:hover{color:var(--accent-text,var(--accent))}

/* ════ MOBILE ════ */
@media(max-width:768px){
  .pft-container{padding:16px 12px 36px}
  /* Carousel */
  .pft-carousel-head{padding:12px 16px}
  .pft-carousel-head strong{font-size:15px}
  .pft-nav-btn{width:38px;height:38px}
  .pft-tile{min-height:180px}
  .pft-tile-text{font-size:14px;padding:14px 16px 16px}
  /* Modal fullscreen on mobile */
  .pft-modal-overlay{padding:0;align-items:stretch;justify-content:stretch}
  .pft-modal{
    max-width:100%;max-height:100vh;height:100vh;
    border-radius:0!important;padding:0;
    display:flex;flex-direction:column;overflow:hidden;
  }
  .pft-modal-close{
    position:fixed;top:12px;right:12px;z-index:1000002;
    width:44px;height:44px;border-radius:8px;font-size:26px;
    background:var(--bg-1);border:1px solid var(--border);
    box-shadow:0 4px 14px rgba(0,0,0,.25);
  }
  #pft-news-body{
    flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch;
    padding:20px 16px 32px;
  }
  .pft-news-header{padding-right:48px}
  .pft-news-title{font-size:20px}
  .pft-news-content{font-size:15px;line-height:1.7}
  /* Club grid */
  .pft-grid-cell{padding:16px 10px 12px}
  .pft-grid-logo{width:48px;height:48px}
  .pft-grid-name{font-size:11px}
  .pft-grid-badge{font-size:12px;min-width:28px;height:24px}
  /* Cards */
  .pft-card-name{font-size:16px}
  .pft-card-photo,.pft-card-avatar{width:60px;height:60px}
  .pft-card-foot{padding:14px}
  .pft-card-club-label{font-size:12px}
  .pft-detail-title h2{font-size:20px!important}
  .pft-chips .chip{height:32px;font-size:13px;padding:0 14px}
}
@media(max-width:420px){
  .pft-grid-cell{padding:14px 8px 10px;gap:8px}
  .pft-grid-logo{width:40px;height:40px}
  .pft-grid-badge{top:6px;right:6px}
}

/* CLS: резерв высоты под JS-рендер (пока контейнеры пустые) */
#pft-tiles:empty{min-height:551px}
#pft-club-grid:empty{min-height:618px}
@media(max-width:900px){#pft-tiles:empty{min-height:1100px}}
@media(max-width:500px){#pft-tiles:empty{min-height:1440px}#pft-club-grid:empty{min-height:1156px}}
