/* PCZ Public Match History v1.0 */
.pcz-history-page{background:#f5f7fb;min-height:60vh;padding-bottom:70px}
.pcz-history-container{width:min(1180px,92%);margin:0 auto}
.pcz-history-hero{background:linear-gradient(135deg,#071d49,#0d4ea6);color:#fff;padding:70px 0 55px;margin-bottom:35px}
.pcz-history-eyebrow{font-size:12px;font-weight:800;letter-spacing:3px;opacity:.75}
.pcz-history-hero h1{margin:8px 0 10px;font-size:clamp(32px,5vw,52px);font-weight:900}
.pcz-history-hero p{margin:0;opacity:.86}
.pcz-history-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.pcz-history-card,.pcz-history-report,.pcz-history-empty{background:#fff;border:1px solid #e5eaf2;border-radius:20px;box-shadow:0 10px 30px rgba(10,30,70,.07)}
.pcz-history-card{padding:25px}
.pcz-history-card-top{display:flex;justify-content:space-between;gap:12px;font-size:12px;color:#697586;text-transform:uppercase;letter-spacing:.6px}
.pcz-history-card-top b{color:#1769d1}
.pcz-history-card-teams{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:14px;margin:25px 0 15px;text-align:center}
.pcz-history-card-teams>div{display:flex;align-items:center;justify-content:center;gap:10px;flex-direction:column}
.pcz-history-card-teams img,.pcz-history-team img{width:58px;height:58px;object-fit:contain}
.pcz-history-card-score{font-size:30px;color:#071d49;white-space:nowrap}
.pcz-history-card-place{font-size:13px;color:#7b8794;text-align:center;min-height:20px}
.pcz-history-button{display:block;text-align:center;text-decoration:none;background:#0b55b5;color:#fff!important;border-radius:12px;padding:13px 16px;font-weight:800;margin-top:20px}
.pcz-history-button:hover{background:#073e87}
.pcz-history-back{display:inline-block;margin:0 0 18px;text-decoration:none;font-weight:800;color:#0b55b5}
.pcz-history-report{overflow:hidden}
.pcz-history-report-head{background:#071d49;color:#fff;text-align:center;padding:38px 25px}
.pcz-history-status{font-size:11px;letter-spacing:2px;font-weight:800;opacity:.7}
.pcz-history-scoreline{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:25px;margin:25px auto 18px;max-width:760px}
.pcz-history-team{display:flex;align-items:center;justify-content:center;gap:10px;flex-direction:column;font-size:18px}
.pcz-history-score{font-size:42px;font-weight:900;white-space:nowrap}
.pcz-history-meta{font-size:13px;opacity:.75}
.pcz-history-section{padding:30px;border-top:1px solid #e8edf4}
.pcz-history-section h2{margin:0 0 20px;color:#071d49;font-size:22px}
.pcz-history-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.pcz-history-stat{background:#f5f7fb;border-radius:12px;padding:15px}
.pcz-history-stat span{display:block;color:#778394;font-size:12px;text-transform:uppercase}
.pcz-history-stat strong{display:block;margin-top:5px;font-size:20px;color:#0b55b5}
.pcz-history-events{max-width:760px;margin:auto}
.pcz-history-event{display:grid;grid-template-columns:60px 1fr;gap:15px;padding:15px 0;border-bottom:1px solid #edf0f5}
.pcz-history-minute{font-weight:900;color:#0b55b5}
.pcz-history-event b,.pcz-history-event small{display:block;margin-top:4px}
.pcz-history-event small{color:#778394}
.pcz-history-event p{margin:5px 0 0;color:#667085}
.pcz-history-lineups{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.pcz-history-lineup{background:#f5f7fb;border-radius:14px;padding:20px}
.pcz-history-lineup h3{margin-top:0;color:#071d49}
.pcz-history-lineup h4{font-size:12px;text-transform:uppercase;color:#0b55b5;letter-spacing:1px}
.pcz-history-lineup ol{margin:0;padding-left:22px}
.pcz-history-empty{padding:60px 25px;text-align:center}
.pcz-history-empty h2{color:#071d49}
@media(max-width:700px){
 .pcz-history-grid{grid-template-columns:1fr}
 .pcz-history-card-teams,.pcz-history-scoreline{gap:8px}
 .pcz-history-card-score{font-size:23px}
 .pcz-history-score{font-size:32px}
 .pcz-history-stats{grid-template-columns:1fr 1fr}
 .pcz-history-lineups{grid-template-columns:1fr}
 .pcz-history-section{padding:22px}
}

/* v1.2 Match Report polish */
.pcz-history-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;padding:24px 30px;background:#f7f9fc;border-bottom:1px solid #e8edf4}
.pcz-history-summary div{background:#fff;border:1px solid #e5eaf2;border-radius:12px;padding:14px 16px}
.pcz-history-summary span{display:block;font-size:10px;font-weight:800;letter-spacing:1.3px;color:#8490a0}
.pcz-history-summary strong{display:block;margin-top:5px;color:#092451;font-size:14px}
.pcz-history-report-head .pcz-history-team strong{font-size:20px}
.pcz-history-section:first-of-type{background:#fff}
.pcz-history-section h2{font-weight:900}
@media(max-width:700px){
 .pcz-history-summary{grid-template-columns:1fr;padding:18px 22px}
 .pcz-history-report-head{padding:30px 18px}
 .pcz-history-report-head .pcz-history-team strong{font-size:16px}
}

/* v1.3 Line-up archive fix */
.pcz-history-lineup-section{background:#fff}
.pcz-history-lineup-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.pcz-history-lineup-head h3{margin:0}
.pcz-history-captain{font-size:11px;font-weight:800;color:#806300;background:#fff2c7;border-radius:999px;padding:6px 9px}
.pcz-history-lineup h4{display:flex;align-items:center;justify-content:space-between;gap:10px}
.pcz-history-lineup h4 span{font-size:10px;font-weight:700;color:#8a95a4}
.pcz-history-player-list{border:1px solid #e7ebf1;border-radius:12px;overflow:hidden;background:#fff}
.pcz-history-player{display:grid;grid-template-columns:34px minmax(0,1fr) 58px;gap:9px;align-items:center;padding:9px 10px;border-bottom:1px solid #eef1f5}
.pcz-history-player:last-child{border-bottom:0}
.pcz-history-player-no{width:27px;height:27px;display:flex;align-items:center;justify-content:center;border-radius:7px;background:#eef5ff;color:#0b55b5;font-weight:900;font-size:11px}
.pcz-history-player-name{min-width:0;font-size:12px;font-weight:800;color:#17263d}
.pcz-history-player-pos{text-align:right;font-size:10px;font-weight:800;color:#8a95a4}
.pcz-history-player-captain{display:inline-block;margin-left:6px;padding:2px 5px;border-radius:5px;background:#fff2c7;color:#8a6700;font-size:8px;vertical-align:middle}
.pcz-history-subs-list{background:#fafbfd}
@media(max-width:700px){
 .pcz-history-player{grid-template-columns:30px minmax(0,1fr) 48px;padding:8px}
 .pcz-history-player-name{font-size:11px}
}

/* v1.4 Match Report visual polish */
.pcz-history-summary{grid-template-columns:minmax(140px,.7fr) minmax(150px,.9fr) minmax(260px,1.6fr) minmax(140px,.8fr);gap:14px;padding:22px 30px;background:#f7f9fc}
.pcz-history-summary-card{min-height:72px;display:flex!important;flex-direction:column;justify-content:center;background:#fff!important;border:1px solid #e3e9f1!important;border-radius:14px!important;padding:14px 17px!important;box-shadow:0 4px 14px rgba(10,30,70,.04)}
.pcz-history-summary-card span{font-size:10px!important;font-weight:900!important;letter-spacing:1.4px;color:#8190a2!important}
.pcz-history-summary-card strong{margin-top:7px!important;font-size:15px!important;line-height:1.35;color:#092451!important}
.pcz-history-summary-card:first-child{border-top:3px solid #0b55b5!important}
.pcz-history-summary-card:first-child strong{font-size:24px!important;color:#0b55b5!important}
.pcz-history-lineup-section{padding-top:32px}
.pcz-history-lineup{border:1px solid #e4eaf2;background:#fbfcfe!important}
.pcz-history-lineup-head{padding-bottom:13px;border-bottom:1px solid #e7ebf1}
.pcz-history-lineup-head h3{font-size:18px}
.pcz-history-lineup h4{margin:18px 0 9px}
.pcz-history-player-list{box-shadow:0 2px 8px rgba(10,30,70,.03)}
.pcz-history-player{min-height:38px}
@media(max-width:700px){
 .pcz-history-summary{grid-template-columns:1fr;padding:18px 22px}
 .pcz-history-summary-card:first-child strong{font-size:22px!important}
}

/* v1.5 Match History filters + pagination */
.pcz-history-filters{display:flex;align-items:flex-end;gap:12px;margin:0 0 24px;padding:18px;background:#fff;border:1px solid #e3e9f1;border-radius:16px;box-shadow:0 8px 24px rgba(10,30,70,.05)}
.pcz-history-filter-group{display:flex;flex-direction:column;gap:6px}
.pcz-history-filter-group label{font-size:9px;font-weight:900;letter-spacing:1.2px;color:#7d8998}
.pcz-history-filter-group select,.pcz-history-filter-group input{height:42px;border:1px solid #dce3ec;border-radius:10px;background:#fff;padding:0 12px;font-size:12px;color:#1b2a41;outline:none}
.pcz-history-filter-group select:focus,.pcz-history-filter-group input:focus{border-color:#0b55b5}
.pcz-history-filter-group select{min-width:130px}
.pcz-history-opponent{flex:1}
.pcz-history-filter-button{height:42px;border:0;border-radius:10px;background:#0b55b5;color:#fff;padding:0 20px;font-size:11px;font-weight:900;cursor:pointer}
.pcz-history-reset{height:42px;display:flex;align-items:center;padding:0 12px;text-decoration:none;font-size:11px;font-weight:800;color:#6f7c8d}
.pcz-history-pagination{display:flex;align-items:center;justify-content:center;gap:18px;margin-top:28px}
.pcz-history-pagination a{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:0 15px;border-radius:10px;background:#0b55b5;color:#fff!important;text-decoration:none;font-size:11px;font-weight:900}
.pcz-history-pagination span{font-size:11px;font-weight:900;color:#6f7c8d}
@media(max-width:700px){
 .pcz-history-filters{align-items:stretch;flex-direction:column}
 .pcz-history-filter-group select,.pcz-history-filter-group input,.pcz-history-filter-button,.pcz-history-reset{width:100%;box-sizing:border-box}
 .pcz-history-reset{justify-content:center}
 .pcz-history-pagination{gap:8px}
}

/* v1.6 Competition + Season */
.pcz-history-card-competition{margin:10px 0 2px;text-align:center;font-size:10px;font-weight:900;letter-spacing:.8px;color:#0b55b5;text-transform:uppercase}
.pcz-history-meta-competition{font-size:11px;letter-spacing:.7px;text-transform:uppercase;color:#b78a00}
.pcz-history-summary-card:nth-child(2){border-top:3px solid #c99b22!important}
@media(min-width:701px){
 .pcz-history-filters{flex-wrap:wrap}
 .pcz-history-filters .pcz-history-opponent{min-width:190px}
 .pcz-history-filters .pcz-history-filter-group:nth-of-type(3),
 .pcz-history-filters .pcz-history-filter-group:nth-of-type(4){min-width:150px}
}
