
:root{--navy:#071b3b;--blue:#0b4ea2;--gold:#d6b34c;--white:#fff;--ink:#101828;--bg:#f4f7fb}
*{box-sizing:border-box}body{margin:0;font-family:Arial,Helvetica,sans-serif;background:var(--bg);color:var(--ink)}
.topbar{position:sticky;top:0;z-index:10;display:flex;justify-content:space-between;align-items:center;padding:10px 5%;background:var(--navy);color:#fff}
.brand{display:flex;align-items:center;gap:12px;color:white;text-decoration:none}.brand img{width:58px;height:58px}.topbar nav{display:flex;gap:18px}.topbar nav a{color:white;text-decoration:none;font-weight:700}
.hero{min-height:68vh;position:relative;display:grid;place-items:center;overflow:hidden}.hero-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(7,27,59,.84),rgba(7,27,59,.25),rgba(7,27,59,.72))}
.hero-content{position:relative;color:white;text-align:center;padding:30px}.hero-crest{width:120px;max-height:140px}.hero h1{font-size:clamp(42px,7vw,84px);margin:8px}.hero p{font-size:clamp(24px,3vw,38px);font-weight:900;color:var(--gold);margin:0}.hero small{font-size:18px}
.section{max-width:1280px;margin:auto;padding:60px 5%}.section h2{font-size:38px;color:var(--navy);margin:4px 0 22px}.eyebrow{font-size:12px;letter-spacing:.16em;color:var(--gold);font-weight:900}
.grid{display:grid;gap:18px}.two{grid-template-columns:repeat(2,1fr)}.three{grid-template-columns:repeat(3,1fr)}
.card{background:white;border-radius:18px;padding:24px;border-top:4px solid var(--gold);box-shadow:0 8px 24px rgba(10,35,70,.07)}.match-label{font-size:12px;font-weight:900;color:var(--blue)}.match-box{font-size:20px;font-weight:800;line-height:1.45;margin-top:12px}
.subheading{color:var(--navy);margin-top:34px}.matches-list{display:grid;gap:12px}.match-row{background:white;border-radius:14px;padding:16px 18px;display:grid;grid-template-columns:160px 1fr auto;gap:18px;align-items:center;border-left:4px solid var(--blue);box-shadow:0 5px 16px rgba(13,33,70,.06)}.match-date,.match-teams{font-weight:800}.match-meta{font-size:13px;opacity:.7;margin-top:5px}.match-score{font-size:24px;font-weight:900;color:var(--blue)}
.status{margin-bottom:18px;padding:12px 16px;border-radius:10px;background:#eef4ff;color:#244a81}.status.ok{background:#e9f8ef;color:#176b39}.status.error{background:#fff0f0;color:#a22222}
.empty{padding:18px;background:white;border:1px dashed #ccd6e6;border-radius:12px}
.gallery{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.gallery img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:14px}
.sponsor-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.sponsor-grid>*{background:white;width:100%;height:120px;object-fit:contain;padding:14px;border-radius:14px}.text-sponsor{display:grid;place-items:center;font-size:22px;font-weight:900;color:var(--navy)}
footer{background:var(--navy);color:white;padding:40px 5%;display:grid;grid-template-columns:auto 1fr auto;gap:24px;align-items:center}footer a{color:white}.footer-crest{width:84px}.social{display:flex;gap:14px}
@media(max-width:850px){.topbar nav{display:none}.two,.three{grid-template-columns:1fr}.gallery{grid-template-columns:repeat(2,1fr)}.sponsor-grid{grid-template-columns:repeat(2,1fr)}footer{grid-template-columns:1fr;text-align:center}.footer-crest{margin:auto}.social{justify-content:center}.match-row{grid-template-columns:1fr}}

/* --- Players module --- */
.players-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.player-card{background:#fff;border-radius:18px;overflow:hidden;box-shadow:0 8px 24px rgba(10,35,70,.08);border-bottom:4px solid var(--gold)}
.player-photo-wrap{aspect-ratio:4/5;background:linear-gradient(145deg,#0b2b5f,#071b3b);display:grid;place-items:center;overflow:hidden}
.player-photo{width:100%;height:100%;object-fit:cover}
.player-photo-placeholder{color:#fff;font-size:54px;font-weight:900;opacity:.85}
.player-body{padding:18px}
.player-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.player-name{font-size:20px;font-weight:900;color:var(--navy);margin:0}
.player-number{font-size:30px;font-weight:900;color:var(--gold);line-height:1}
.player-position{margin-top:4px;color:var(--blue);font-weight:800}
.player-meta{margin-top:14px;display:grid;grid-template-columns:repeat(2,1fr);gap:8px;font-size:13px}
.player-stat{background:#f5f8fc;border-radius:10px;padding:9px 10px}
.player-stat b{display:block;color:var(--navy);font-size:16px}
.players-empty{grid-column:1/-1;background:#fff;border:1px dashed #c9d4e6;border-radius:16px;padding:28px;text-align:center;color:#60708b}
@media(max-width:1000px){.players-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:760px){.players-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:520px){.players-grid{grid-template-columns:1fr}}

/* --- Academy module --- */
.academy-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.academy-card{background:#fff;border-radius:18px;overflow:hidden;box-shadow:0 8px 24px rgba(10,35,70,.08);border-bottom:4px solid var(--gold)}
.academy-photo-wrap{aspect-ratio:16/10;background:linear-gradient(145deg,#0b2b5f,#071b3b);display:grid;place-items:center;overflow:hidden}
.academy-photo{width:100%;height:100%;object-fit:cover}
.academy-photo-placeholder{color:#fff;font-size:42px;font-weight:900;opacity:.85}
.academy-body{padding:18px}
.academy-title{font-size:22px;font-weight:900;color:var(--navy);margin:0 0 6px}
.academy-meta{color:var(--blue);font-weight:800;margin-bottom:10px}
.academy-info{font-size:14px;line-height:1.5;color:#465268}
.academy-empty{grid-column:1/-1;background:#fff;border:1px dashed #c9d4e6;border-radius:16px;padding:28px;text-align:center;color:#60708b}
@media(max-width:950px){.academy-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:620px){.academy-grid{grid-template-columns:1fr}}

.gallery-filters{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:18px}
.gallery-filter{border:0;border-radius:999px;padding:10px 16px;background:#e8eef8;color:var(--navy);font-weight:900;cursor:pointer}
.gallery-filter.active{background:var(--blue);color:#fff}.photo-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.photo-card{background:#fff;border-radius:14px;overflow:hidden;box-shadow:0 7px 20px rgba(10,35,70,.08)}
.photo-card img{width:100%;aspect-ratio:4/3;object-fit:cover;display:block;cursor:pointer}

.gallery-empty{grid-column:1/-1;background:#fff;border:1px dashed #c9d4e6;border-radius:16px;padding:28px;text-align:center;color:#60708b}
.lightbox{position:fixed;inset:0;background:rgba(0,0,0,.88);display:none;place-items:center;z-index:999;padding:24px}.lightbox.open{display:grid}
.lightbox img{max-width:94vw;max-height:88vh;border-radius:12px}.lightbox-close{position:absolute;top:18px;right:24px;background:#fff;color:#111;border:0;border-radius:999px;width:42px;height:42px;font-size:26px;cursor:pointer}
@media(max-width:1000px){.photo-grid{grid-template-columns:repeat(3,1fr)}}@media(max-width:760px){.photo-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:520px){.photo-grid{grid-template-columns:1fr}}

/* --- Standings module --- */
.table-wrap{overflow-x:auto;background:#fff;border-radius:16px;box-shadow:0 8px 24px rgba(10,35,70,.08)}
.standings-table{width:100%;border-collapse:collapse;min-width:720px}
.standings-table th,.standings-table td{padding:14px 16px;text-align:center;border-bottom:1px solid #e8edf4}
.standings-table th{background:var(--navy);color:#fff;font-size:13px;letter-spacing:.04em}
.standings-table th:nth-child(2),.standings-table td:nth-child(2){text-align:left}
.standings-table tbody tr:hover{background:#f7f9fc}
.standings-table tbody tr.harmanli{background:#fff7df;font-weight:900}
.standings-pos{font-weight:900;color:var(--navy)}
.standings-points{font-size:18px;font-weight:900;color:var(--blue)}

/* --- Sponsors module --- */
.sponsor-card{background:#fff;border-radius:14px;min-height:140px;padding:16px;display:flex;align-items:center;justify-content:center;box-shadow:0 6px 18px rgba(20,40,80,.06);text-decoration:none;color:var(--navy);position:relative}
.sponsor-card img{max-width:100%;max-height:100px;object-fit:contain}
.sponsor-card .sponsor-name{font-weight:900;font-size:20px;text-align:center}
.sponsor-card .sponsor-tag{position:absolute;bottom:8px;right:10px;font-size:10px;opacity:.55}
.sponsor-card:hover{transform:translateY(-2px)}

/* --- Player profiles v12 --- */
.player-card{cursor:pointer;transition:transform .18s ease,box-shadow .18s ease}
.player-card:hover{transform:translateY(-3px);box-shadow:0 12px 30px rgba(10,35,70,.14)}
.players-note{margin-top:16px;color:#65728a;font-size:14px}
.player-card-link{display:block;color:inherit;text-decoration:none;height:100%}
.profile-page{max-width:1180px;margin:0 auto;padding:46px 5% 70px}
.profile-back{display:inline-flex;align-items:center;gap:8px;color:var(--blue);font-weight:900;text-decoration:none;margin-bottom:24px}
.profile-hero{display:grid;grid-template-columns:minmax(260px,380px) 1fr;gap:34px;align-items:stretch}
.profile-photo-box{background:linear-gradient(145deg,#0b2b5f,#071b3b);border-radius:22px;overflow:hidden;min-height:460px;display:grid;place-items:center;box-shadow:0 12px 30px rgba(10,35,70,.13)}
.profile-photo-box img{width:100%;height:100%;object-fit:cover}
.profile-initial{font-size:120px;font-weight:900;color:white;opacity:.9}
.profile-info{background:#fff;border-radius:22px;padding:32px;box-shadow:0 12px 30px rgba(10,35,70,.09);position:relative}
.profile-number{position:absolute;right:28px;top:22px;font-size:76px;line-height:1;font-weight:900;color:var(--gold);opacity:.95}
.profile-name{font-size:clamp(34px,5vw,58px);margin:0 90px 6px 0;color:var(--navy)}
.profile-position{font-size:20px;font-weight:900;color:var(--blue);margin-bottom:22px}
.profile-meta{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin:20px 0 26px}
.profile-meta-item{background:#f6f8fc;border-radius:12px;padding:14px}
.profile-meta-item span{display:block;font-size:12px;color:#738098;text-transform:uppercase;letter-spacing:.08em}
.profile-meta-item b{display:block;margin-top:5px;color:var(--navy);font-size:17px}
.profile-stats{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin-top:20px}
.profile-stat{background:var(--navy);color:#fff;border-radius:14px;padding:18px;text-align:center}
.profile-stat b{display:block;font-size:30px;color:var(--gold)}
.profile-stat span{font-size:12px;text-transform:uppercase;letter-spacing:.06em}
.profile-section{margin-top:28px;background:#fff;border-radius:18px;padding:26px;box-shadow:0 8px 24px rgba(10,35,70,.07)}
.profile-section h2{margin-top:0;color:var(--navy)}
.profile-loading,.profile-error{padding:30px;background:#fff;border-radius:16px;text-align:center}
.profile-error{color:#a22222}
@media(max-width:850px){
  .profile-hero{grid-template-columns:1fr}
  .profile-photo-box{min-height:420px}
  .profile-stats{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:520px){
  .profile-info{padding:24px}
  .profile-number{font-size:54px}
  .profile-name{margin-right:62px}
  .profile-meta{grid-template-columns:1fr}
}

/* --- News module v13 --- */
.news-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.news-card{background:#fff;border-radius:18px;overflow:hidden;box-shadow:0 8px 24px rgba(10,35,70,.08);transition:transform .18s ease,box-shadow .18s ease}
.news-card:hover{transform:translateY(-3px);box-shadow:0 14px 32px rgba(10,35,70,.13)}
.news-card a{color:inherit;text-decoration:none;display:block;height:100%}
.news-thumb{aspect-ratio:16/9;background:#eef2f7;overflow:hidden}
.news-thumb img{width:100%;height:100%;object-fit:cover}
.news-thumb-placeholder{width:100%;height:100%;display:grid;place-items:center;background:linear-gradient(145deg,#0b2b5f,#071b3b);color:#fff;font-weight:900;font-size:30px}
.news-body{padding:18px}
.news-date{font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:#7a879c;margin-bottom:8px}
.news-title{margin:0 0 10px;color:var(--navy);font-size:21px}
.news-excerpt{margin:0;color:#5e6a7d;line-height:1.55}
.news-readmore{display:inline-block;margin-top:14px;color:var(--blue);font-weight:900}
.article-page{max-width:920px;margin:0 auto;padding:46px 5% 70px}
.article-back{display:inline-flex;align-items:center;gap:8px;color:var(--blue);font-weight:900;text-decoration:none;margin-bottom:24px}
.article-card{background:#fff;border-radius:22px;overflow:hidden;box-shadow:0 12px 30px rgba(10,35,70,.09)}
.article-hero{width:100%;max-height:520px;object-fit:cover;background:#eef2f7}
.article-content{padding:32px}
.article-content h1{font-size:clamp(34px,5vw,56px);line-height:1.05;margin:0 0 12px;color:var(--navy)}
.article-meta{color:#7a879c;margin-bottom:24px}
.article-text{font-size:18px;line-height:1.75;color:#2d394d;white-space:pre-wrap}
.article-loading,.article-error{padding:30px;background:#fff;border-radius:16px;text-align:center}
.article-error{color:#a22222}
@media(max-width:900px){.news-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.news-grid{grid-template-columns:1fr}.article-content{padding:24px}}

/* --- Club profile v14 --- */
.club-layout{display:grid;grid-template-columns:1.25fr .75fr;gap:22px}
.club-main-card,.club-facts,.club-management{background:#fff;border-radius:20px;box-shadow:0 8px 24px rgba(10,35,70,.08)}
.club-main-card{display:grid;grid-template-columns:190px 1fr;gap:24px;padding:28px;align-items:center}
.club-crest-wrap{display:grid;place-items:center;background:#f6f8fc;border-radius:18px;min-height:190px;padding:20px}
.club-crest-large{max-width:150px;max-height:160px;object-fit:contain}
.club-main-card h3{font-size:34px;color:var(--navy);margin:0 0 8px}
.club-motto{font-size:20px;font-weight:900;color:var(--blue);margin:0 0 16px}
.club-history{line-height:1.7;color:#445067;white-space:pre-wrap}
.club-facts{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:#e8edf4;overflow:hidden}
.club-fact{background:#fff;padding:20px}
.club-fact span{display:block;color:#7a879c;font-size:12px;text-transform:uppercase;letter-spacing:.06em;margin-bottom:6px}
.club-fact b{color:var(--navy);font-size:17px}
.club-management{margin-top:22px;padding:26px}
.club-management h3{margin-top:0;color:var(--navy)}
.club-management-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.club-person{background:#f6f8fc;border-radius:14px;padding:18px}
.club-person span{display:block;color:#7a879c;font-size:12px;text-transform:uppercase;margin-bottom:5px}
.club-person b{color:var(--navy)}
@media(max-width:900px){
  .club-layout{grid-template-columns:1fr}
  .club-management-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:620px){
  .club-main-card{grid-template-columns:1fr;text-align:center}
  .club-facts{grid-template-columns:1fr}
  .club-management-grid{grid-template-columns:1fr}
}

/* --- Academy pages v15 --- */
.academy-page{max-width:1180px;margin:0 auto;padding:46px 5% 70px}
.academy-hero{background:linear-gradient(145deg,#0b2b5f,#071b3b);color:#fff;border-radius:24px;padding:34px;margin-bottom:28px;box-shadow:0 12px 30px rgba(10,35,70,.12)}
.academy-hero h1{margin:0 0 10px;font-size:clamp(38px,6vw,64px)}
.academy-hero p{margin:0;max-width:760px;line-height:1.65;color:#dbe7f7}
.academy-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.academy-group-card{background:#fff;border-radius:18px;overflow:hidden;box-shadow:0 8px 24px rgba(10,35,70,.08);transition:transform .18s ease,box-shadow .18s ease}
.academy-group-card:hover{transform:translateY(-3px);box-shadow:0 14px 32px rgba(10,35,70,.13)}
.academy-group-card a{display:block;height:100%;color:inherit;text-decoration:none}
.academy-group-image{aspect-ratio:16/10;background:#eef2f7;overflow:hidden}
.academy-group-image img{width:100%;height:100%;object-fit:cover}
.academy-group-placeholder{width:100%;height:100%;display:grid;place-items:center;background:linear-gradient(145deg,#0b2b5f,#071b3b);color:#fff;font-size:28px;font-weight:900}
.academy-group-body{padding:18px}
.academy-group-body h3{margin:0 0 8px;color:var(--navy);font-size:24px}
.academy-group-meta{display:grid;gap:7px;color:#5d687a;font-size:14px}
.academy-group-meta b{color:var(--navy)}
.academy-readmore{display:inline-block;margin-top:14px;color:var(--blue);font-weight:900}
.group-page{max-width:1080px;margin:0 auto;padding:46px 5% 70px}
.group-back{display:inline-flex;align-items:center;gap:8px;color:var(--blue);font-weight:900;text-decoration:none;margin-bottom:24px}
.group-hero{display:grid;grid-template-columns:minmax(280px,440px) 1fr;gap:28px}
.group-photo{background:#eef2f7;border-radius:22px;overflow:hidden;min-height:360px;display:grid;place-items:center}
.group-photo img{width:100%;height:100%;object-fit:cover}
.group-placeholder{font-size:72px;font-weight:900;color:var(--navy)}
.group-info{background:#fff;border-radius:22px;padding:30px;box-shadow:0 12px 30px rgba(10,35,70,.09)}
.group-info h1{margin:0 0 10px;color:var(--navy);font-size:clamp(34px,5vw,56px)}
.group-year{font-size:18px;font-weight:900;color:var(--blue);margin-bottom:22px}
.group-facts{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.group-fact{background:#f6f8fc;border-radius:12px;padding:14px}
.group-fact span{display:block;font-size:12px;text-transform:uppercase;color:#7a879c;letter-spacing:.06em;margin-bottom:5px}
.group-fact b{color:var(--navy)}
.group-description{margin-top:22px;line-height:1.75;color:#39465a;white-space:pre-wrap}
@media(max-width:900px){
  .academy-list{grid-template-columns:repeat(2,minmax(0,1fr))}
  .group-hero{grid-template-columns:1fr}
}
@media(max-width:620px){
  .academy-list{grid-template-columns:1fr}
  .group-facts{grid-template-columns:1fr}
}

/* --- Match Calendar v16 --- */
.matches-page{max-width:1180px;margin:0 auto;padding:46px 5% 70px}
.matches-hero{background:linear-gradient(145deg,#0b2b5f,#071b3b);color:#fff;border-radius:24px;padding:34px;margin-bottom:28px;box-shadow:0 12px 30px rgba(10,35,70,.12)}
.matches-hero h1{margin:0 0 10px;font-size:clamp(38px,6vw,64px)}
.matches-hero p{margin:0;color:#dbe7f7;max-width:760px;line-height:1.65}
.match-tabs{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 20px}
.match-tab{border:0;border-radius:999px;padding:10px 16px;background:#eef2f7;color:var(--navy);font-weight:900;cursor:pointer}
.match-tab.active{background:var(--navy);color:#fff}
.month-filter{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:20px}
.month-filter label{font-weight:900;color:var(--navy)}
.month-filter select{max-width:240px}
.match-list{display:grid;gap:14px}
.match-row{background:#fff;border-radius:16px;padding:18px 20px;display:grid;grid-template-columns:120px 1fr 160px;gap:18px;align-items:center;box-shadow:0 8px 24px rgba(10,35,70,.07)}
.match-datebox{background:#f6f8fc;border-radius:12px;padding:12px;text-align:center}
.match-datebox b{display:block;font-size:26px;color:var(--navy)}
.match-datebox span{display:block;font-size:12px;text-transform:uppercase;color:#7a879c}
.match-teams{display:grid;grid-template-columns:1fr auto 1fr;gap:12px;align-items:center}
.match-team{font-weight:900;color:var(--navy)}
.match-team.home{text-align:right}
.match-team.away{text-align:left}
.match-score{font-size:26px;font-weight:900;color:var(--blue);min-width:70px;text-align:center}
.match-vs{font-size:14px;color:#7a879c;font-weight:900}
.match-meta{font-size:13px;color:#697589;line-height:1.55;text-align:right}
.match-row.harmanli{outline:2px solid rgba(196,155,46,.35)}
.match-section-title{margin:26px 0 12px;color:var(--navy)}
@media(max-width:850px){
  .match-row{grid-template-columns:1fr}
  .match-meta{text-align:left}
  .match-teams{grid-template-columns:1fr auto 1fr}
}

/* --- Home Page Upgrade v17 --- */
.home-dashboard{padding:0 5%;margin-top:-34px;position:relative;z-index:5}
.home-dashboard-grid{max-width:1180px;margin:0 auto;display:grid;grid-template-columns:1.15fr 1.15fr .9fr;gap:18px}
.home-panel{background:#fff;border-radius:18px;padding:20px;box-shadow:0 12px 30px rgba(10,35,70,.11);min-height:178px}
.home-panel-body{margin-top:12px}
.home-match-teams{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:10px}
.home-team{font-size:18px;font-weight:900;color:var(--navy)}
.home-team:first-child{text-align:right}
.home-team:last-child{text-align:left}
.home-score{font-size:28px;font-weight:900;color:var(--blue);min-width:72px;text-align:center}
.home-vs{font-size:14px;font-weight:900;color:#7a879c}
.home-match-meta{margin-top:24px;text-align:center;color:#6c788d;font-size:13px;line-height:1.5}
.home-standing-row{display:flex;align-items:center;justify-content:space-between;background:#f6f8fc;border-radius:12px;padding:12px 14px;margin-top:8px}
.home-standing-row.highlight{background:#fff4cf;border:1px solid rgba(196,155,46,.35)}
.home-standing-pos{font-weight:900;color:var(--navy);min-width:28px}
.home-standing-name{font-weight:900;color:var(--navy);flex:1}
.home-standing-points{font-weight:900;color:var(--blue)}
.home-panel-link{display:inline-block;margin-top:12px;font-weight:900;color:var(--blue);text-decoration:none}
.section-heading-row{display:flex;align-items:center;justify-content:space-between;gap:14px}
.section-link{color:var(--blue);font-weight:900;text-decoration:none}
.hero::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(3,19,43,.68),rgba(3,19,43,.22));pointer-events:none}
.hero>*{position:relative;z-index:1}
.hero h1{text-shadow:0 3px 18px rgba(0,0,0,.25)}
.news-card:first-child{grid-column:span 2}
.news-card:first-child .news-title{font-size:28px}
.sponsor-grid{align-items:stretch}
@media(max-width:980px){
  .home-dashboard-grid{grid-template-columns:1fr 1fr}
  .home-table{grid-column:1/-1}
}
@media(max-width:700px){
  .home-dashboard{margin-top:-16px}
  .home-dashboard-grid{grid-template-columns:1fr}
  .home-table{grid-column:auto}
  .news-card:first-child{grid-column:auto}
  .section-heading-row{align-items:flex-start;flex-direction:column}
}

/* --- SEO intro v20 --- */
.seo-intro{padding:24px 5% 6px}
.seo-intro-inner{max-width:1180px;margin:0 auto;background:#fff;border-radius:16px;padding:20px 24px;box-shadow:0 8px 24px rgba(10,35,70,.06)}
.seo-intro h2{margin:0 0 8px;color:var(--navy);font-size:26px}
.seo-intro p{margin:0;color:#536078;line-height:1.65}


/* --- v20.5 Hero: full width, cropped top/bottom, captions by the balls --- */
.hero.hero-photo{
  position:relative;
  width:100%;
  height:clamp(390px,56vw,720px);
  min-height:0;
  overflow:hidden;
  background:#071b3b;
  display:block;
}

.hero.hero-photo .hero-bg{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 56%;
  transform:scale(1.08);
}

.hero-caption{
  position:absolute;
  left:50%;
  bottom:4.5%;
  transform:translateX(-50%);
  width:min(94%,900px);
  text-align:center;
  color:#fff;
  z-index:2;
  text-shadow:0 2px 8px rgba(0,0,0,.85);
  line-height:1.15;
  pointer-events:none;
}

.hero-caption::before{
  content:"";
  position:absolute;
  inset:-10px -18px;
  background:linear-gradient(90deg,transparent,rgba(7,27,59,.62),transparent);
  border-radius:12px;
  z-index:-1;
}

.hero-latin{
  font-size:clamp(16px,1.8vw,24px);
  font-weight:900;
  letter-spacing:.03em;
}

.hero-bulgarian{
  margin-top:4px;
  font-size:clamp(12px,1.25vw,17px);
  font-weight:800;
}

@media(max-width:700px){
  .hero.hero-photo{
    height:58vw;
    min-height:300px;
    max-height:480px;
  }

  .hero.hero-photo .hero-bg{
    object-position:center 55%;
    transform:scale(1.10);
  }

  .hero-caption{
    bottom:3.5%;
  }
}


/* --- v20.6 Hero final adjustments --- */
.hero.hero-photo{
  position:relative;
  width:100%;
  height:clamp(410px,57vw,730px) !important;
  overflow:hidden;
  background:#071b3b;
}
.hero.hero-photo .hero-bg{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover !important;
  object-position:center 56% !important;
  transform:scale(1.09);
}
.hero.hero-photo::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, rgba(0,0,0,.10) 0%, rgba(0,0,0,0) 28%, rgba(0,0,0,.08) 72%, rgba(0,0,0,.18) 100%);
  pointer-events:none;
}
.hero-top-crest{
  position:absolute;
  top:18px;
  left:18px;
  width:98px;
  max-height:118px;
  z-index:3;
  filter:drop-shadow(0 3px 10px rgba(0,0,0,.30));
}
.hero-big-title{
  position:absolute;
  left:50%;
  bottom:14.5%;
  transform:translateX(-50%);
  z-index:3;
  width:min(96%,1100px);
  text-align:center;
  font-size:clamp(40px,5.7vw,82px);
  font-weight:1000;
  letter-spacing:.06em;
  line-height:1;
  color:#0a2f6f; /* тъмно синьо */
  text-transform:uppercase;
  /* бели контури */
  text-shadow:
    -2px -2px 0 #ffffff,
     2px -2px 0 #ffffff,
    -2px  2px 0 #ffffff,
     2px  2px 0 #ffffff,
     0px  3px 10px rgba(0,0,0,.25);
}
.hero-caption{
  position:absolute;
  left:50%;
  bottom:1.2%;
  transform:translateX(-50%);
  width:min(96%,980px);
  text-align:center;
  z-index:3;
  line-height:1.1;
  pointer-events:none;
}
.hero-caption::before{
  display:none;
}
.hero-latin,
.hero-bulgarian{
  color:#0b4ea2; /* морско синьо */
  font-weight:1000;
  letter-spacing:.02em;
  text-shadow:
    -1px -1px 0 #ffffff,
     1px -1px 0 #ffffff,
    -1px  1px 0 #ffffff,
     1px  1px 0 #ffffff,
     0 2px 8px rgba(0,0,0,.20);
}
.hero-latin{
  font-size:clamp(14px,1.45vw,22px) !important;
  margin:0;
}
.hero-bulgarian{
  font-size:clamp(11px,1.1vw,16px) !important;
  margin-top:2px;
}
@media(max-width:900px){
  .hero-top-crest{
    width:82px;
    max-height:100px;
    top:14px;
    left:14px;
  }
  .hero-big-title{
    bottom:14%;
    font-size:clamp(34px,7.2vw,64px);
  }
  .hero-caption{
    bottom:.8%;
  }
}
@media(max-width:640px){
  .hero.hero-photo{
    height:62vw !important;
    min-height:300px;
    max-height:470px;
  }
  .hero.hero-photo .hero-bg{
    object-position:center 54% !important;
    transform:scale(1.11);
  }
  .hero-top-crest{
    width:64px;
    max-height:80px;
  }
  .hero-big-title{
    bottom:13%;
    font-size:clamp(26px,8vw,44px);
    letter-spacing:.04em;
    text-shadow:
      -1.5px -1.5px 0 #ffffff,
       1.5px -1.5px 0 #ffffff,
      -1.5px  1.5px 0 #ffffff,
       1.5px  1.5px 0 #ffffff,
       0px 2px 8px rgba(0,0,0,.22);
  }
  .hero-latin{
    font-size:clamp(11px,2.6vw,14px) !important;
  }
  .hero-bulgarian{
    font-size:clamp(9px,2.1vw,12px) !important;
  }
}


/* --- v20.7 Hero fine tuning --- */
.hero-top-crest{
  width:128px !important;
  max-height:154px !important;
  top:14px !important;
  left:16px !important;
}
.hero-big-title{
  bottom:20.5% !important;
  font-size:clamp(50px,6.8vw,100px) !important;
  width:min(98%,1200px) !important;
  letter-spacing:.065em !important;
}
.hero-caption{
  bottom:.6% !important;
  width:min(96%,920px) !important;
}
.hero-latin{
  font-size:clamp(12px,1.15vw,17px) !important;
}
.hero-bulgarian{
  font-size:clamp(9px,.9vw,13px) !important;
  margin-top:1px !important;
}

@media(max-width:900px){
  .hero-top-crest{
    width:100px !important;
    max-height:122px !important;
    top:12px !important;
    left:12px !important;
  }
  .hero-big-title{
    bottom:19% !important;
    font-size:clamp(40px,8vw,72px) !important;
  }
  .hero-caption{
    bottom:.45% !important;
  }
  .hero-latin{
    font-size:clamp(10px,2vw,14px) !important;
  }
  .hero-bulgarian{
    font-size:clamp(8px,1.65vw,11px) !important;
  }
}

@media(max-width:640px){
  .hero-top-crest{
    width:78px !important;
    max-height:96px !important;
  }
  .hero-big-title{
    bottom:18% !important;
    font-size:clamp(30px,8.8vw,50px) !important;
  }
  .hero-latin{
    font-size:clamp(9px,2.25vw,12px) !important;
  }
  .hero-bulgarian{
    font-size:clamp(7px,1.9vw,10px) !important;
  }
}


/* --- v20.8 Hero final tweak --- */
.hero-top-crest{
  width:156px !important;
  max-height:188px !important;
  top:10px !important;
  left:14px !important;
}
.hero-big-title{
  top:6.5% !important;
  bottom:auto !important;
  font-size:clamp(54px,7vw,104px) !important;
  width:min(98%,1220px) !important;
}
.hero-caption{
  bottom:1% !important;
}
.hero-latin,
.hero-bulgarian{
  opacity:.5 !important;
  color:#0b4ea2 !important;
  text-shadow:
    -1px -1px 0 rgba(255,255,255,.55),
     1px -1px 0 rgba(255,255,255,.55),
    -1px  1px 0 rgba(255,255,255,.55),
     1px  1px 0 rgba(255,255,255,.55),
     0 2px 8px rgba(0,0,0,.12) !important;
}
.hero-latin{
  font-size:clamp(12px,1.05vw,16px) !important;
}
.hero-bulgarian{
  font-size:clamp(8px,.8vw,12px) !important;
}
@media(max-width:900px){
  .hero-top-crest{
    width:118px !important;
    max-height:144px !important;
    top:8px !important;
    left:10px !important;
  }
  .hero-big-title{
    top:7% !important;
    font-size:clamp(42px,8vw,74px) !important;
  }
}
@media(max-width:640px){
  .hero-top-crest{
    width:88px !important;
    max-height:110px !important;
  }
  .hero-big-title{
    top:8% !important;
    font-size:clamp(32px,9vw,54px) !important;
  }
  .hero-latin{
    font-size:clamp(9px,2vw,12px) !important;
  }
  .hero-bulgarian{
    font-size:clamp(7px,1.7vw,10px) !important;
  }
}


/* --- v20.8.1 tiny adjustment --- */
.hero-big-title{
  top:5.7% !important; /* повдигнат леко нагоре */
}
@media(max-width:900px){
  .hero-big-title{
    top:6.2% !important;
  }
}
@media(max-width:640px){
  .hero-big-title{
    top:7.1% !important;
  }
}


/* --- v20.9 Team logos in matches --- */
.team-name-logo{display:inline-flex;align-items:center;gap:8px;vertical-align:middle}
.team-name-logo.away{flex-direction:row}
.team-mini-logo{width:30px;height:30px;object-fit:contain;flex:0 0 30px}
.team-mini-logo-placeholder{display:none}
.match-dash{display:inline-block;margin:0 6px}
.match-team{display:flex;align-items:center;gap:10px}
.match-team.home{justify-content:flex-end}
.match-team.away{justify-content:flex-start}
.match-team-logo{width:44px;height:44px;object-fit:contain;flex:0 0 44px}
@media(max-width:700px){
  .team-mini-logo{width:24px;height:24px;flex-basis:24px}
  .match-team-logo{width:36px;height:36px;flex-basis:36px}
}


/* --- v20.9.2 absolute logo size fix + fresh CSS filename --- */
.team-mini-logo,
.home-team-logo,
.match-team-logo,
.match-box .team-mini-logo,
.match-row .team-mini-logo,
.home-panel .home-team-logo{
  width:32px !important;
  height:32px !important;
  min-width:32px !important;
  min-height:32px !important;
  max-width:32px !important;
  max-height:32px !important;
  object-fit:contain !important;
  display:inline-block !important;
  flex:0 0 32px !important;
  position:static !important;
  transform:none !important;
}

.match-team-logo{
  width:40px !important;
  height:40px !important;
  min-width:40px !important;
  min-height:40px !important;
  max-width:40px !important;
  max-height:40px !important;
  flex-basis:40px !important;
}

.home-team,
.team-name-logo,
.match-team{
  display:flex !important;
  align-items:center !important;
  gap:8px !important;
}

@media(max-width:700px){
  .team-mini-logo,
  .home-team-logo,
  .match-box .team-mini-logo,
  .match-row .team-mini-logo,
  .home-panel .home-team-logo{
    width:26px !important;
    height:26px !important;
    min-width:26px !important;
    min-height:26px !important;
    max-width:26px !important;
    max-height:26px !important;
    flex-basis:26px !important;
  }
  .match-team-logo{
    width:34px !important;
    height:34px !important;
    min-width:34px !important;
    min-height:34px !important;
    max-width:34px !important;
    max-height:34px !important;
    flex-basis:34px !important;
  }
}


/* --- v20.9.3 Match layout refinement --- */
.next-match-stack,
.home-next-stack{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  text-align:center;
}
.next-match-stack .team-name-logo,
.home-next-stack .team-name-logo{
  flex-direction:column;
  justify-content:center;
  text-align:center;
  gap:4px;
}
.next-match-vs,
.home-next-stack .home-vs{
  font-size:14px;
  font-weight:900;
  color:#7a879c;
}
.last-result-inline,
.home-result-horizontal{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:10px;
  text-align:center;
}
.last-result-inline .team-name-logo.home,
.home-result-horizontal .team-name-logo.home{
  justify-content:flex-end;
}
.last-result-inline .team-name-logo.away,
.home-result-horizontal .team-name-logo.away{
  justify-content:flex-start;
}
.last-result-inline strong{
  color:var(--blue);
  font-size:22px;
  white-space:nowrap;
}
.match-teams.upcoming-layout{
  display:grid !important;
  grid-template-columns:1fr auto 1fr !important;
  align-items:center !important;
  justify-items:center !important;
  gap:18px !important;
  text-align:center !important;
}
.match-teams.upcoming-layout .team-name-logo,
.match-teams.upcoming-layout .match-team{
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
  text-align:center !important;
  gap:6px !important;
}
.match-teams.result-layout{
  display:grid !important;
  grid-template-columns:1fr auto 1fr !important;
  align-items:center !important;
  gap:12px !important;
}
.match-teams.result-layout .team-name-logo.home,
.match-teams.result-layout .match-team.home{
  justify-content:flex-end !important;
  flex-direction:row !important;
  text-align:right !important;
}
.match-teams.result-layout .team-name-logo.away,
.match-teams.result-layout .match-team.away{
  justify-content:flex-start !important;
  flex-direction:row !important;
  text-align:left !important;
}
.match-vs-center,
.match-vs{
  font-size:15px;
  color:#6f7c90;
  font-weight:900;
  text-align:center;
}
.match-score-inline{
  font-size:24px;
  font-weight:900;
  color:var(--blue);
  white-space:nowrap;
}
.match-row-upcoming .team-mini-logo.large{
  width:64px !important;
  height:64px !important;
  min-width:64px !important;
  min-height:64px !important;
  max-width:64px !important;
  max-height:64px !important;
  flex-basis:64px !important;
}
.match-row-upcoming .team-mini-logo.large.is-harmanli{
  width:72px !important;
  height:72px !important;
  min-width:72px !important;
  min-height:72px !important;
  max-width:72px !important;
  max-height:72px !important;
  flex-basis:72px !important;
}
.match-team-logo{
  width:64px !important;
  height:64px !important;
  min-width:64px !important;
  min-height:64px !important;
  max-width:64px !important;
  max-height:64px !important;
  flex-basis:64px !important;
}
.match-team-logo.is-harmanli{
  width:72px !important;
  height:72px !important;
  min-width:72px !important;
  min-height:72px !important;
  max-width:72px !important;
  max-height:72px !important;
  flex-basis:72px !important;
}
.match-team span,
.team-name-logo span{
  line-height:1.2;
}
@media(max-width:700px){
  .match-row-upcoming .team-mini-logo.large,
  .match-team-logo{
    width:52px !important;
    height:52px !important;
    min-width:52px !important;
    min-height:52px !important;
    max-width:52px !important;
    max-height:52px !important;
    flex-basis:52px !important;
  }
  .match-row-upcoming .team-mini-logo.large.is-harmanli,
  .match-team-logo.is-harmanli{
    width:58px !important;
    height:58px !important;
    min-width:58px !important;
    min-height:58px !important;
    max-width:58px !important;
    max-height:58px !important;
    flex-basis:58px !important;
  }
  .last-result-inline,
  .home-result-horizontal{
    gap:6px;
  }
}


/* --- v20.10 Multi-photo gallery upload --- */
.gallery-upload-progress{
  margin-top:14px;
  display:grid;
  gap:7px;
}
.gallery-upload-row{
  padding:9px 11px;
  background:#f5f7fb;
  border-radius:9px;
  font-size:13px;
}
.gallery-upload-row.ok{
  background:#e9f8ef;
  color:#176b39;
}
.gallery-upload-row.err{
  background:#fff0f0;
  color:#a22222;
}
#uploadGalleryPhoto:disabled{
  opacity:.6;
  cursor:wait;
}


/* --- v20.10.1 Mobile header spacing fix --- */
.brand{
  min-width:0;
}
.brand strong{
  display:block;
  white-space:nowrap;
  line-height:1.1;
}

@media(max-width:600px){
  .topbar{
    padding:8px 14px !important;
    min-height:58px;
  }
  .brand{
    gap:8px !important;
    max-width:100%;
  }
  .brand img{
    width:42px !important;
    height:42px !important;
    min-width:42px !important;
    object-fit:contain;
    flex:0 0 42px;
  }
  .brand strong{
    font-size:15px !important;
    letter-spacing:.01em;
    white-space:nowrap;
  }
}

@media(max-width:380px){
  .brand img{
    width:38px !important;
    height:38px !important;
    min-width:38px !important;
    flex-basis:38px;
  }
  .brand strong{
    font-size:13px !important;
  }
}

@media(max-width:600px){
  body:has(.admin) .brand strong{
    white-space:normal;
    font-size:13px !important;
    max-width:210px;
  }
}


/* --- v20.10.2 Mobile hero crest/title spacing --- */
@media(max-width:640px){
  .hero-top-crest{
    width:70px !important;
    height:auto !important;
    max-height:86px !important;
    top:8px !important;
    left:8px !important;
  }

  .hero-big-title{
    top:7.4% !important;
    left:54% !important;
    transform:translateX(-50%) !important;
    width:84% !important;
    padding-left:18px !important;
    font-size:clamp(28px,8.2vw,46px) !important;
    line-height:1 !important;
    white-space:nowrap !important;
    text-align:center !important;
  }
}

@media(max-width:390px){
  .hero-top-crest{
    width:62px !important;
    max-height:76px !important;
  }

  .hero-big-title{
    left:55% !important;
    width:82% !important;
    font-size:clamp(25px,7.8vw,36px) !important;
  }
}


/* --- v20.11 Match scorers and assists --- */
.match-contributors{
  margin-top:12px;
  padding:10px 12px;
  border-radius:10px;
  background:#f5f8fc;
  color:#34445f;
  font-size:13px;
  line-height:1.55;
  text-align:left;
}
.match-contributors b{
  color:var(--navy);
}
.last-result-inline + small + .match-contributors{
  margin-top:20px;
}
.match-row .match-contributors{
  grid-column:2/3;
}
.match-contributors-admin textarea{
  min-height:76px;
}
@media(max-width:850px){
  .match-row .match-contributors{
    grid-column:1/-1;
  }
}


/* --- v20.11.1 Goals/assists shown as name + count --- */
.match-entry-help{
  margin:12px 0 14px;
  padding:11px 13px;
  border-radius:10px;
  background:#eef4ff;
  color:#244a81;
  font-size:14px;
  line-height:1.45;
}
.contribution-person{
  display:block;
  margin-top:3px;
  padding-left:10px;
}
.match-contributors > div{
  margin-top:7px;
}
.match-contributors > div:first-child{
  margin-top:0;
}


/* --- v20.12 News image/video media --- */
.news-admin-preview{
  display:block;
  width:min(100%,420px);
  max-height:280px;
  object-fit:contain;
  border-radius:12px;
  margin:12px 0;
  background:#eef2f7;
}
.news-admin-video{
  display:block;
  width:min(100%,560px);
  max-height:360px;
  border-radius:12px;
  margin:12px 0;
  background:#000;
}
.news-video-thumb{
  position:relative;
  overflow:hidden;
}
.news-video-thumb video{
  width:100%;
  height:100%;
  aspect-ratio:16/9;
  object-fit:cover;
  display:block;
  background:#071b3b;
}
.news-play-badge{
  position:absolute;
  left:12px;
  bottom:12px;
  padding:7px 11px;
  border-radius:999px;
  background:rgba(7,27,59,.88);
  color:#fff;
  font-size:12px;
  font-weight:900;
}
.article-video{
  display:block;
  width:100%;
  max-height:72vh;
  background:#000;
}


/* --- v20.12.1 News position and reliable opening --- */
#news{
  scroll-margin-top:82px;
}
.news-card{
  cursor:pointer;
}
.news-card:focus{
  outline:3px solid rgba(11,78,162,.28);
  outline-offset:3px;
}
.news-card-link{
  display:block;
  height:100%;
  color:inherit;
  text-decoration:none;
}
.news-card .news-thumb img,
.news-card .news-thumb video,
.news-card .news-play-badge{
  pointer-events:none;
}
.home-dashboard + #news{
  padding-top:46px;
}
@media(max-width:700px){
  .home-dashboard + #news{
    padding-top:34px;
  }
}


/* --- v20.12.2 News directly below next match --- */
.news-under-next-match{
  margin:34px 0 24px;
  padding:28px 0 8px;
  border-top:1px solid rgba(7,27,59,.12);
}
.news-under-next-match .news-grid{
  position:relative;
  z-index:2;
}
.news-card,
.news-card-link{
  position:relative;
  z-index:3;
}
.news-card-link{
  pointer-events:auto !important;
}
.news-card .news-thumb,
.news-card .news-body{
  pointer-events:none;
}
@media(max-width:700px){
  .news-under-next-match{
    margin-top:24px;
    padding-top:22px;
  }
}


/* --- v20.12.3 News modal: opens on the same page --- */
.news-card-button{
  width:100%;
  padding:0;
  border:0;
  background:transparent;
  font:inherit;
  color:inherit;
  text-align:left;
  cursor:pointer;
}
.news-card-button:focus-visible{
  outline:3px solid rgba(11,78,162,.35);
  outline-offset:4px;
}
.news-modal[hidden]{
  display:none !important;
}
.news-modal{
  position:fixed;
  inset:0;
  z-index:99999;
  display:grid;
  place-items:center;
  padding:20px;
}
.news-modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(2,12,30,.78);
}
.news-modal-card{
  position:relative;
  z-index:1;
  width:min(920px,96vw);
  max-height:92vh;
  overflow:auto;
  border-radius:18px;
  background:#fff;
  box-shadow:0 24px 80px rgba(0,0,0,.38);
}
.news-modal-close{
  position:absolute;
  top:12px;
  right:12px;
  z-index:3;
  width:42px;
  height:42px;
  border:0;
  border-radius:50%;
  background:rgba(7,27,59,.92);
  color:#fff;
  font-size:28px;
  line-height:1;
  cursor:pointer;
}
.news-modal-image,
.news-modal-video{
  display:block;
  width:100%;
  max-height:58vh;
  object-fit:contain;
  background:#071b3b;
}
.news-modal-content{
  padding:26px;
}
.news-modal-content h2{
  margin:6px 0 16px;
  color:var(--navy);
}
.news-modal-full-link{
  display:inline-block;
  margin-top:20px;
  font-weight:800;
}
body.news-modal-open{
  overflow:hidden;
}
@media(max-width:640px){
  .news-modal{
    padding:8px;
  }
  .news-modal-card{
    width:100%;
    max-height:96vh;
    border-radius:14px;
  }
  .news-modal-content{
    padding:20px 16px 24px;
  }
}


/* --- v20.12.4 News literally under next match --- */
.top-match-news-grid{
  align-items:start;
}
.top-next-card{
  grid-column:1/-1;
}
.news-between-matches{
  grid-column:1/-1;
  margin:0;
  padding:28px 0 8px;
  border-top:1px solid rgba(7,27,59,.12);
  border-bottom:1px solid rgba(7,27,59,.12);
}
.top-last-card{
  grid-column:1/-1;
}
.news-between-matches .news-grid{
  margin-top:16px;
}
.news-card-button{
  width:100%;
  padding:0;
  border:0;
  background:#fff;
  color:inherit;
  text-align:left;
  font:inherit;
  cursor:pointer;
}
.news-inline-article[hidden]{
  display:none !important;
}
.news-inline-article{
  margin-top:22px;
  padding:22px;
  border-radius:16px;
  background:#fff;
  box-shadow:0 12px 38px rgba(7,27,59,.14);
  scroll-margin-top:80px;
}
.news-inline-close{
  float:right;
  border:0;
  border-radius:999px;
  padding:9px 14px;
  background:#071b3b;
  color:#fff;
  font-weight:800;
  cursor:pointer;
}
.news-inline-image,
.news-inline-video{
  display:block;
  width:100%;
  max-height:60vh;
  object-fit:contain;
  border-radius:12px;
  background:#071b3b;
  margin-bottom:18px;
}
.news-inline-article h2{
  color:var(--navy);
  margin:8px 0 14px;
}
@media(max-width:700px){
  .news-between-matches{
    padding-top:24px;
  }
  .news-between-matches .news-grid{
    grid-template-columns:1fr;
  }
  .news-inline-article{
    padding:16px;
  }
}


/* --- v20.12.5 Next match and news opening fix --- */
.news-direct-link{
  display:inline-block;
  margin-top:8px;
  color:#0b4ea2;
  font-size:13px;
  font-weight:800;
  text-decoration:underline;
  position:relative;
  z-index:5;
  pointer-events:auto !important;
}


/* --- v20.12.6 Hide public success messages --- */
body:not(.admin-page) .status.ok,
body:not(.admin-page) .status:not(.err){
  display:none !important;
}
body:not(.admin-page) .status.err{
  display:block !important;
}


/* --- v20.13 Video section --- */
.video-section{
  margin-top:34px;
  padding-top:30px;
  border-top:1px solid rgba(7,27,59,.12);
}
.videos-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:22px;
}
.video-card{
  position:relative;
  overflow:hidden;
  border-radius:16px;
  background:#fff;
  box-shadow:0 12px 34px rgba(7,27,59,.12);
}
.video-frame{
  position:relative;
  aspect-ratio:16/9;
  background:#000;
}
.video-frame iframe,
.video-frame video{
  width:100%;
  height:100%;
  display:block;
  border:0;
  object-fit:contain;
  background:#000;
}
.video-card-body{
  padding:18px;
}
.video-card-body h3{
  margin:0 0 8px;
  color:var(--navy);
}
.video-card-body p{
  margin:0 0 10px;
  line-height:1.5;
}
.live-badge{
  position:absolute;
  top:12px;
  left:12px;
  z-index:2;
  padding:7px 10px;
  border-radius:999px;
  background:#d71920;
  color:#fff;
  font-size:12px;
  font-weight:900;
}
@media(max-width:760px){
  .videos-grid{
    grid-template-columns:1fr;
  }
}


/* --- v20.13.1 Gallery without photo file names --- */
.photo-caption-category{
  padding:10px 14px;
}
.photo-caption-category span{
  display:block;
  font-size:13px;
  color:#6b778c;
}


/* --- v20.14 Compact players grouped by position --- */
.players-groups{
  display:block;
}
.player-position-group{
  margin-top:34px;
}
.player-position-group:first-child{
  margin-top:12px;
}
.player-group-title{
  margin:0 0 18px;
  color:var(--navy);
  font-size:30px;
  font-weight:900;
}
.player-position-group .players-grid{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:18px;
}
.player-card-compact{
  border-bottom:0;
  border-radius:18px;
  background:transparent;
  box-shadow:0 10px 26px rgba(10,35,70,.10);
}
.player-card-compact .player-photo-wrap{
  position:relative;
  aspect-ratio:3/4;
  min-height:0;
  border-radius:18px;
  overflow:hidden;
  background:linear-gradient(145deg,#dfe4ff,#172d70);
}
.player-card-compact .player-photo{
  object-position:center top;
}
.player-photo-gradient{
  position:absolute;
  inset:auto 0 0;
  height:46%;
  background:linear-gradient(to top,rgba(7,27,59,.96),rgba(7,27,59,0));
  pointer-events:none;
}
.player-card-overlay{
  position:absolute;
  left:16px;
  right:16px;
  bottom:15px;
  z-index:2;
  display:flex;
  align-items:flex-end;
  gap:10px;
  color:#fff;
}
.player-card-overlay .player-name{
  margin:0;
  color:#fff;
  font-size:18px;
  line-height:1.05;
  text-shadow:0 2px 6px rgba(0,0,0,.35);
}
.player-card-overlay .player-position{
  margin-top:5px;
  color:#fff;
  font-size:14px;
  font-weight:500;
}
.player-overlay-number{
  flex:0 0 auto;
  font-size:52px;
  line-height:.82;
  font-weight:900;
  color:rgba(255,255,255,.92);
  text-shadow:0 2px 8px rgba(0,0,0,.28);
}
.player-card-compact:hover{
  transform:translateY(-4px);
}
@media(max-width:1200px){
  .player-position-group .players-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:900px){
  .player-position-group .players-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:650px){
  .player-position-group .players-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .player-group-title{font-size:25px}
  .player-card-overlay{left:11px;right:11px;bottom:11px}
  .player-card-overlay .player-name{font-size:15px}
  .player-card-overlay .player-position{font-size:12px}
  .player-overlay-number{font-size:38px}
}


/* --- v20.14.2 Gallery category filtering --- */
.gallery-filters{
  position:relative;
  z-index:5;
}
.gallery-filter{
  position:relative;
  z-index:6;
  pointer-events:auto !important;
  transition:transform .15s ease,background .15s ease,color .15s ease;
}
.gallery-filter:hover{
  transform:translateY(-1px);
}
.gallery-filter.active{
  box-shadow:0 6px 16px rgba(11,78,162,.18);
}
#galleryGrid{
  min-height:140px;
}


/* --- v20.14.3 Gallery starts empty until a category is chosen --- */
.gallery-empty{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:180px;
  padding:24px;
  border-radius:22px;
  background:#fff;
  border:1px dashed rgba(11,32,74,.22);
  color:#51607c;
  font-weight:700;
  text-align:center;
}


/* --- v20.14.5 Full-width rows on the home page only --- */
.home-page main,
.home-page .section,
.home-page .home-dashboard,
.home-page .seo-intro{
  width:100%;
  max-width:1400px;
  margin-left:auto;
  margin-right:auto;
  box-sizing:border-box;
}

.home-page .top-match-news-grid,
.home-page .news-between-matches,
.home-page .top-next-card,
.home-page .top-last-card,
.home-page .video-section,
.home-page .matches-list,
.home-page .home-dashboard-grid{
  width:100%;
  max-width:none;
  box-sizing:border-box;
}

.home-page .news-grid{
  grid-template-columns:1fr !important;
}

.home-page .news-card,
.home-page .news-card-button{
  width:100%;
  max-width:none;
}

.home-page .videos-grid{
  grid-template-columns:1fr !important;
}

.home-page .home-dashboard-grid{
  grid-template-columns:1fr !important;
}

.home-page .home-panel{
  width:100%;
}

@media(max-width:700px){
  .home-page main,
  .home-page .section,
  .home-page .home-dashboard,
  .home-page .seo-intro{
    width:100%;
  }
}


/* --- v20.14.6 Equal row width across the home page --- */
.home-page{
  --home-content-width:1400px;
  --home-side-padding:32px;
}

.home-page main{
  width:100%;
  max-width:var(--home-content-width);
  margin:0 auto;
  padding-left:var(--home-side-padding);
  padding-right:var(--home-side-padding);
  box-sizing:border-box;
}

/* Every direct row/section inside main uses the same exact width */
.home-page main > .section,
.home-page main > .home-dashboard,
.home-page main > .seo-intro{
  width:100%;
  max-width:none;
  margin-left:0;
  margin-right:0;
  box-sizing:border-box;
}

/* Inner rows fill their parent equally, regardless of column count */
.home-page .top-match-news-grid,
.home-page .matches-list,
.home-page .home-dashboard-grid,
.home-page .news-grid,
.home-page .videos-grid,
.home-page .club-layout,
.home-page .academy-grid,
.home-page .players-groups,
.home-page .table-wrap,
.home-page .photo-grid,
.home-page .sponsor-grid,
.home-page .seo-intro-inner{
  width:100%;
  max-width:none;
  box-sizing:border-box;
}

/* Remove nested horizontal padding that caused visual misalignment */
.home-page .news-between-matches,
.home-page .video-section,
.home-page .home-dashboard,
.home-page .seo-intro{
  padding-left:0;
  padding-right:0;
}

/* Keep multi-column layouts, but align the row edges */
.home-page .home-dashboard-grid{
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
}

.home-page .news-grid{
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
}

.home-page .videos-grid{
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
}

@media(max-width:1000px){
  .home-page{
    --home-side-padding:24px;
  }
  .home-page .home-dashboard-grid{
    grid-template-columns:1fr !important;
  }
  .home-page .news-grid{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
  .home-page .videos-grid{
    grid-template-columns:1fr !important;
  }
}

@media(max-width:620px){
  .home-page{
    --home-side-padding:16px;
  }
  .home-page .news-grid{
    grid-template-columns:1fr !important;
  }
}


/* --- v20.14.7 Exact left/right alignment on home page --- */
.home-page main{
  padding-left:32px !important;
  padding-right:32px !important;
}

/* Remove the inherited extra horizontal padding from homepage sections */
.home-page main > section.section,
.home-page main > .home-dashboard,
.home-page main > .seo-intro{
  width:100% !important;
  max-width:none !important;
  margin-left:0 !important;
  margin-right:0 !important;
  padding-left:0 !important;
  padding-right:0 !important;
}

/* Club section was narrower because it kept its own section padding */
.home-page #club,
.home-page #team,
.home-page #academy,
.home-page #standings,
.home-page #gallery,
.home-page #sponsors,
.home-page #matches{
  width:100% !important;
  max-width:none !important;
  margin-left:0 !important;
  margin-right:0 !important;
  padding-left:0 !important;
  padding-right:0 !important;
}

/* Every visible row uses the full available width */
.home-page .top-match-news-grid,
.home-page .matches-list,
.home-page .home-dashboard-grid,
.home-page .seo-intro-inner,
.home-page .club-layout,
.home-page .club-management,
.home-page .players-groups,
.home-page .academy-grid,
.home-page .table-wrap,
.home-page .photo-grid,
.home-page .sponsor-grid,
.home-page .videos-grid,
.home-page .news-grid{
  width:100% !important;
  max-width:none !important;
  margin-left:0 !important;
  margin-right:0 !important;
}

/* Ensure the intro card itself reaches the same edges */
.home-page .seo-intro-inner{
  box-sizing:border-box;
}

@media(max-width:1000px){
  .home-page main{
    padding-left:24px !important;
    padding-right:24px !important;
  }
}

@media(max-width:620px){
  .home-page main{
    padding-left:16px !important;
    padding-right:16px !important;
  }
}


/* --- v20.14.8 Home news section: 3 cards per row + rotating groups --- */
.home-page #news{
  width:100% !important;
  max-width:none !important;
  margin-left:0 !important;
  margin-right:0 !important;
  padding-left:0 !important;
  padding-right:0 !important;
}

.home-page #newsGrid.news-grid{
  width:100%;
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:22px;
  align-items:stretch;
}

.home-page #newsGrid .news-card{
  width:100%;
  height:100%;
}

.home-page #newsGrid .news-title{
  font-size:18px;
  line-height:1.25;
}

.home-page #newsGrid .news-excerpt{
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.home-page #newsInlineArticle{
  margin-top:22px;
}

@media (max-width: 1100px){
  .home-page #newsGrid.news-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px){
  .home-page #newsGrid.news-grid{
    grid-template-columns:1fr;
  }
}


/* --- v20.14.9 Only the first news card rotates --- */
.home-page #newsGrid .news-card:first-child{
  animation:newsFirstCardFade .35s ease;
}

@keyframes newsFirstCardFade{
  from{opacity:.25;transform:translateY(4px)}
  to{opacity:1;transform:translateY(0)}
}


/* --- v20.14.10 News cards keep 1/3 width and faces stay visible --- */
.home-page #newsGrid.news-grid{
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:22px !important;
  width:100% !important;
  align-items:stretch;
  justify-content:start;
}

.home-page #newsGrid .news-card{
  width:100% !important;
  min-width:0;
  max-width:none !important;
  height:100%;
}

.home-page #newsGrid .news-thumb{
  width:100%;
  height:220px;
  aspect-ratio:auto !important;
  overflow:hidden;
  background:#eef2f7;
}

.home-page #newsGrid .news-thumb img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  object-position:center 18%;
}

.home-page #newsGrid .news-video-thumb video{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
}

/* Even with only 1 or 2 news items, each card keeps the size of one of 3 columns. */
.home-page #newsGrid .news-card:nth-child(1),
.home-page #newsGrid .news-card:nth-child(2),
.home-page #newsGrid .news-card:nth-child(3){
  grid-column:auto;
}

@media(max-width:1100px){
  .home-page #newsGrid.news-grid{
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  }
  .home-page #newsGrid .news-thumb{
    height:190px;
  }
}

@media(max-width:760px){
  .home-page #newsGrid.news-grid{
    grid-template-columns:1fr !important;
  }
  .home-page #newsGrid .news-thumb{
    height:230px;
  }
}


/* --- v20.15 Academy coaches and squads --- */
.admin-select{width:100%;padding:12px;border:1px solid #cbd5e1;border-radius:10px;font:inherit;background:#fff}
.academy-group-card a{display:block;height:100%;color:inherit;text-decoration:none}
.academy-group-card{cursor:pointer}
.academy-group-card:hover{transform:translateY(-3px)}

.academy-section-title{margin:42px 0 18px;color:var(--navy);font-size:clamp(28px,4vw,42px)}
.academy-coaches-grid,.academy-position-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
}
.academy-person-card{
  background:#fff;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 10px 28px rgba(7,27,59,.09);
  border-bottom:4px solid #d9ad2b;
}
.academy-person-photo{
  width:100%;
  aspect-ratio:4/5;
  background:#e9eef5;
  overflow:hidden;
}
.academy-person-photo img{width:100%;height:100%;object-fit:cover;object-position:center top;display:block}
.academy-person-placeholder{
  width:100%;height:100%;display:grid;place-items:center;
  background:linear-gradient(145deg,#0b2b5f,#071b3b);color:#fff;
  font-weight:900;font-size:36px;
}
.academy-person-body{padding:16px}
.academy-person-body h3{margin:0 0 6px;color:var(--navy);font-size:20px}
.academy-person-role{color:#0b4ea2;font-weight:800}
.academy-position-block{margin-top:30px}
.academy-position-heading{
  display:flex;align-items:center;gap:12px;margin:0 0 14px;
  color:var(--navy);font-size:24px
}
.academy-position-heading::after{content:"";height:1px;background:#d8e0eb;flex:1}
.academy-empty{padding:18px;background:#fff;border-radius:14px;color:#68758a}
@media(max-width:1000px){
  .academy-coaches-grid,.academy-position-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:760px){
  .academy-coaches-grid,.academy-position-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:500px){
  .academy-coaches-grid,.academy-position-grid{grid-template-columns:1fr}
}


/* --- v20.15.1 Smaller cards only on academy listing page --- */
.academy-page .academy-page-grid,
#academyPageGrid.academy-page-grid{
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:18px !important;
}

.academy-page .academy-group-card,
#academyPageGrid .academy-group-card{
  border-radius:16px;
}

.academy-page .academy-group-image,
#academyPageGrid .academy-group-image{
  height:180px !important;
  min-height:180px !important;
  aspect-ratio:auto !important;
}

.academy-page .academy-group-image img,
#academyPageGrid .academy-group-image img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.academy-page .academy-group-body,
#academyPageGrid .academy-group-body{
  padding:14px 16px 16px !important;
}

.academy-page .academy-group-body h3,
#academyPageGrid .academy-group-body h3{
  font-size:22px !important;
  margin-bottom:6px !important;
}

.academy-page .academy-group-meta,
#academyPageGrid .academy-group-meta{
  font-size:14px !important;
  line-height:1.35;
}

.academy-page .academy-readmore,
#academyPageGrid .academy-readmore{
  font-size:13px;
}

@media(max-width:1200px){
  .academy-page .academy-page-grid,
  #academyPageGrid.academy-page-grid{
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  }
}

@media(max-width:850px){
  .academy-page .academy-page-grid,
  #academyPageGrid.academy-page-grid{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
}

@media(max-width:560px){
  .academy-page .academy-page-grid,
  #academyPageGrid.academy-page-grid{
    grid-template-columns:1fr !important;
  }

  .academy-page .academy-group-image,
  #academyPageGrid .academy-group-image{
    height:210px !important;
  }
}


/* --- v20.15.2 Correct smaller cards ONLY on academy.html --- */
body.academy-page #academyPageGrid.academy-list{
  display:grid !important;
  grid-template-columns:repeat(6,minmax(0,1fr)) !important;
  gap:14px !important;
}

body.academy-page #academyPageGrid .academy-group-card{
  border-radius:14px !important;
}

body.academy-page #academyPageGrid .academy-group-image{
  height:120px !important;
  min-height:120px !important;
  aspect-ratio:auto !important;
}

body.academy-page #academyPageGrid .academy-group-image img{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
}

body.academy-page #academyPageGrid .academy-group-body{
  padding:10px 12px 12px !important;
}

body.academy-page #academyPageGrid .academy-group-body h3{
  font-size:18px !important;
  margin:0 0 4px !important;
}

body.academy-page #academyPageGrid .academy-group-meta{
  font-size:12px !important;
  gap:3px !important;
  line-height:1.25 !important;
}

body.academy-page #academyPageGrid .academy-readmore{
  font-size:11px !important;
  margin-top:8px !important;
}

@media(max-width:1400px){
  body.academy-page #academyPageGrid.academy-list{
    grid-template-columns:repeat(5,minmax(0,1fr)) !important;
  }
}

@media(max-width:1150px){
  body.academy-page #academyPageGrid.academy-list{
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  }
}

@media(max-width:850px){
  body.academy-page #academyPageGrid.academy-list{
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  }
}

@media(max-width:620px){
  body.academy-page #academyPageGrid.academy-list{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
}

@media(max-width:420px){
  body.academy-page #academyPageGrid.academy-list{
    grid-template-columns:1fr !important;
  }
}


/* --- v20.15.5 Smaller clickable academy cards on homepage only --- */
.home-page #academyGroups.academy-grid{
  display:grid !important;
  grid-template-columns:repeat(auto-fill,minmax(210px,210px)) !important;
  gap:16px !important;
  justify-content:start !important;
  align-items:stretch !important;
}

.home-page #academyGroups .academy-card{
  width:210px !important;
  max-width:210px !important;
  min-width:210px !important;
  height:100% !important;
  overflow:hidden !important;
  border-radius:15px !important;
  cursor:pointer !important;
}

.home-page #academyGroups .academy-card-link{
  display:flex !important;
  flex-direction:column !important;
  width:100% !important;
  height:100% !important;
  color:inherit !important;
  text-decoration:none !important;
}

.home-page #academyGroups .academy-photo-wrap{
  width:100% !important;
  height:120px !important;
  min-height:120px !important;
  overflow:hidden !important;
}

.home-page #academyGroups .academy-photo{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  display:block !important;
}

.home-page #academyGroups .academy-body{
  flex:1 !important;
  padding:11px 13px 13px !important;
}

.home-page #academyGroups .academy-title{
  font-size:19px !important;
  margin:0 0 5px !important;
}

.home-page #academyGroups .academy-meta{
  font-size:12px !important;
  line-height:1.3 !important;
}

.home-page #academyGroups .academy-info{
  display:none !important;
}

@media(max-width:560px){
  .home-page #academyGroups.academy-grid{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:10px !important;
  }
  .home-page #academyGroups .academy-card{
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
  }
  .home-page #academyGroups .academy-photo-wrap{
    height:105px !important;
    min-height:105px !important;
  }
}


/* --- v20.15.8 Mobile homepage academy emblem position --- */
@media(max-width:560px){
  .home-page #academyGroups .academy-photo-wrap{
    overflow:hidden !important;
    background:#082958 !important;
  }

  .home-page #academyGroups .academy-photo{
    width:100% !important;
    height:100% !important;
    object-fit:cover !important;
    object-position:center 82% !important;
    transform:scale(1.08) translateY(-7px) !important;
    transform-origin:center center !important;
  }
}


/* --- v20.15.9 Mobile: academy crest should fill the blue top area on home page --- */
@media (max-width: 560px){
  .home-page #academyGroups .academy-card{
    overflow: hidden !important;
  }

  .home-page #academyGroups .academy-photo-wrap{
    background:#082958 !important;
    overflow:hidden !important;
    height: 130px !important; /* keeps compact card height */
  }

  .home-page #academyGroups .academy-photo{
    width:100% !important;
    height:100% !important;
    object-fit: cover !important;
    object-position: center 22% !important;
    transform: scale(1.28) translateY(-28px) !important;
    transform-origin: center top !important;
    display:block !important;
  }
}


/* --- v20.16 Match countdown and calendar buttons --- */
.match-countdown{
  position:relative;
  width:100%;
  display:grid;
  grid-template-columns:auto minmax(200px,1fr) auto auto;
  align-items:center;
  gap:28px;
  margin:28px 0 42px;
  padding:22px 26px;
  background:#fff;
  border:1px solid rgba(7,27,59,.08);
  border-radius:20px;
  box-shadow:0 12px 34px rgba(7,27,59,.08);
  box-sizing:border-box;
}

.countdown-heading{
  display:flex;
  align-items:baseline;
  gap:22px;
  white-space:nowrap;
}

.countdown-title{
  color:var(--navy);
  font-size:clamp(25px,2.6vw,42px);
  font-weight:1000;
  letter-spacing:.03em;
}

.countdown-next-label{
  color:#b88917;
  font-size:13px;
  font-weight:1000;
  font-style:italic;
  letter-spacing:.04em;
}

.countdown-match-name{
  min-width:0;
  color:var(--navy);
  font-weight:900;
  line-height:1.25;
  text-align:center;
}

.countdown-units{
  display:flex;
  align-items:flex-start;
  justify-content:center;
  gap:8px;
  white-space:nowrap;
}

.countdown-unit{
  min-width:54px;
  text-align:center;
}

.countdown-unit strong{
  display:block;
  color:var(--navy);
  font-size:clamp(27px,3vw,46px);
  line-height:.95;
  font-variant-numeric:tabular-nums;
}

.countdown-unit span{
  display:block;
  margin-top:8px;
  color:#68758a;
  font-size:10px;
  font-weight:900;
  letter-spacing:.05em;
}

.countdown-separator{
  color:var(--navy);
  font-size:clamp(25px,2.6vw,42px);
  font-weight:1000;
  line-height:.9;
}

.calendar-sync-wrap{
  position:relative;
  justify-self:end;
}

.calendar-sync-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:46px;
  padding:12px 18px;
  border:0;
  border-radius:999px;
  background:#eef1f5;
  color:var(--navy);
  font:inherit;
  font-weight:900;
  cursor:pointer;
}

.calendar-sync-button:disabled{
  opacity:.55;
  cursor:not-allowed;
}

.calendar-sync-menu{
  position:absolute;
  top:calc(100% + 8px);
  right:0;
  z-index:20;
  min-width:230px;
  padding:8px;
  border:1px solid #dce3ed;
  border-radius:14px;
  background:#fff;
  box-shadow:0 14px 38px rgba(7,27,59,.16);
}

.calendar-sync-menu button{
  width:100%;
  margin:0;
  padding:11px 12px;
  border:0;
  border-radius:9px;
  background:transparent;
  color:var(--navy);
  font:inherit;
  font-weight:800;
  text-align:left;
  cursor:pointer;
}

.calendar-sync-menu button:hover{
  background:#eef3f9;
}

@media(max-width:1120px){
  .match-countdown{
    grid-template-columns:1fr auto;
  }
  .countdown-heading{
    grid-column:1;
  }
  .countdown-match-name{
    grid-column:1;
    text-align:left;
  }
  .countdown-units{
    grid-column:2;
    grid-row:1/3;
  }
  .calendar-sync-wrap{
    grid-column:1/-1;
    justify-self:start;
  }
}

@media(max-width:700px){
  .match-countdown{
    grid-template-columns:1fr;
    gap:18px;
    margin:20px 0 30px;
    padding:20px 18px;
  }
  .countdown-heading{
    justify-content:space-between;
    gap:10px;
  }
  .countdown-title{
    font-size:28px;
  }
  .countdown-match-name{
    grid-column:1;
    text-align:left;
  }
  .countdown-units{
    grid-column:1;
    grid-row:auto;
    justify-content:space-between;
    gap:4px;
  }
  .countdown-unit{
    min-width:48px;
  }
  .countdown-unit strong{
    font-size:32px;
  }
  .calendar-sync-wrap{
    grid-column:1;
    width:100%;
  }
  .calendar-sync-button{
    width:100%;
  }
  .calendar-sync-menu{
    left:0;
    right:0;
  }
}


/* --- v20.16.1 Countdown inside header, one horizontal row --- */
.home-page .topbar{
  display:grid !important;
  grid-template-columns:auto minmax(430px,1fr) auto !important;
  align-items:center !important;
  gap:22px !important;
  padding:8px 3% !important;
}

.home-page .topbar .brand{
  min-width:max-content;
}

.home-page .topbar nav{
  justify-self:end;
  gap:12px !important;
  white-space:nowrap;
}

.home-page .topbar nav a{
  font-size:13px;
}

.home-page .match-countdown-header{
  position:relative;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:14px !important;
  width:auto !important;
  min-width:0 !important;
  margin:0 !important;
  padding:7px 12px !important;
  border:0 !important;
  border-radius:12px !important;
  background:#fff !important;
  box-shadow:none !important;
  overflow:visible !important;
}

.home-page .match-countdown-header .countdown-heading{
  display:flex !important;
  align-items:center !important;
  gap:8px !important;
  flex:0 0 auto;
}

.home-page .match-countdown-header .countdown-title{
  font-size:14px !important;
  line-height:1 !important;
  letter-spacing:.02em !important;
}

.home-page .match-countdown-header .countdown-next-label{
  font-size:9px !important;
  line-height:1 !important;
  white-space:nowrap;
}

.home-page .match-countdown-header .countdown-match-name{
  display:none !important;
}

.home-page .match-countdown-header .countdown-units{
  display:flex !important;
  align-items:center !important;
  gap:3px !important;
  flex:0 0 auto;
}

.home-page .match-countdown-header .countdown-unit{
  min-width:34px !important;
}

.home-page .match-countdown-header .countdown-unit strong{
  font-size:21px !important;
  line-height:1 !important;
}

.home-page .match-countdown-header .countdown-unit span{
  margin-top:3px !important;
  font-size:7px !important;
  line-height:1 !important;
}

.home-page .match-countdown-header .countdown-separator{
  font-size:19px !important;
  line-height:1 !important;
}

.home-page .match-countdown-header .calendar-sync-wrap{
  position:relative;
  justify-self:auto !important;
  flex:0 0 auto;
}

.home-page .match-countdown-header .calendar-sync-button{
  min-height:32px !important;
  padding:7px 10px !important;
  border-radius:999px !important;
  background:#eef1f5 !important;
  font-size:10px !important;
  white-space:nowrap;
}

.home-page .match-countdown-header .calendar-sync-menu{
  top:calc(100% + 10px) !important;
  right:0 !important;
  min-width:210px !important;
}

/* Compact progressively, but keep one row. */
@media(max-width:1550px){
  .home-page .topbar{
    grid-template-columns:auto minmax(330px,1fr) auto !important;
    gap:14px !important;
  }

  .home-page .match-countdown-header .countdown-title{
    display:none !important;
  }

  .home-page .topbar nav{
    gap:9px !important;
  }

  .home-page .topbar nav a{
    font-size:12px !important;
  }
}

@media(max-width:1280px){
  .home-page .match-countdown-header .calendar-sync-button{
    font-size:0 !important;
    width:34px !important;
    min-width:34px !important;
    padding:7px !important;
  }

  .home-page .match-countdown-header .calendar-sync-button span{
    font-size:14px !important;
  }

  .home-page .match-countdown-header .countdown-next-label{
    display:none !important;
  }
}

@media(max-width:1000px){
  .home-page .topbar{
    grid-template-columns:auto 1fr !important;
  }

  .home-page .topbar nav{
    display:none !important;
  }

  .home-page .match-countdown-header{
    justify-self:end;
  }
}

@media(max-width:650px){
  .home-page .topbar{
    grid-template-columns:auto 1fr !important;
    gap:8px !important;
  }

  .home-page .topbar .brand strong{
    display:none !important;
  }

  .home-page .match-countdown-header{
    gap:5px !important;
    padding:6px 8px !important;
  }

  .home-page .match-countdown-header .countdown-unit{
    min-width:28px !important;
  }

  .home-page .match-countdown-header .countdown-unit strong{
    font-size:17px !important;
  }

  .home-page .match-countdown-header .countdown-unit span{
    display:none !important;
  }

  .home-page .match-countdown-header .countdown-separator{
    font-size:15px !important;
  }

  .home-page .match-countdown-header .calendar-sync-button{
    display:none !important;
  }
}


/* --- v20.16.2 Desktop header countdown without white background --- */
@media(min-width:1001px){
  .home-page .match-countdown-header{
    background:transparent !important;
    border:0 !important;
    box-shadow:none !important;
    border-radius:0 !important;
    padding:0 !important;
    gap:10px !important;
  }

  /* Remove the CALENDAR heading */
  .home-page .match-countdown-header .countdown-title{
    display:none !important;
  }

  /* NEXT MATCH stays gold and matches the menu size */
  .home-page .match-countdown-header .countdown-next-label{
    display:inline-block !important;
    color:var(--gold) !important;
    font-size:13px !important;
    font-style:normal !important;
    font-weight:800 !important;
    letter-spacing:0 !important;
    white-space:nowrap !important;
  }

  /* Show the fixture name in white */
  .home-page .match-countdown-header .countdown-match-name{
    display:block !important;
    max-width:210px !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    white-space:nowrap !important;
    color:#fff !important;
    font-size:13px !important;
    font-weight:700 !important;
    text-align:left !important;
  }

  /* Countdown numbers are white and compact */
  .home-page .match-countdown-header .countdown-units{
    gap:3px !important;
  }

  .home-page .match-countdown-header .countdown-unit{
    min-width:24px !important;
  }

  .home-page .match-countdown-header .countdown-unit strong{
    color:#fff !important;
    font-size:13px !important;
    font-weight:800 !important;
    line-height:1 !important;
  }

  .home-page .match-countdown-header .countdown-unit span{
    display:none !important;
  }

  .home-page .match-countdown-header .countdown-separator{
    color:#fff !important;
    font-size:13px !important;
    font-weight:800 !important;
    line-height:1 !important;
  }

  /* Calendar button blends into the navy header */
  .home-page .match-countdown-header .calendar-sync-button{
    min-height:30px !important;
    padding:5px 9px !important;
    border:1px solid rgba(255,255,255,.45) !important;
    background:transparent !important;
    color:#fff !important;
    font-size:11px !important;
  }

  .home-page .match-countdown-header .calendar-sync-button:hover{
    background:rgba(255,255,255,.10) !important;
  }
}


/* --- v20.16.3 Mobile header countdown full-width like desktop --- */
@media (max-width: 1000px){
  .home-page .site-header .header-main{
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 10px !important;
  }

  .home-page .site-header .brand{
    flex: 0 0 auto !important;
    min-width: auto !important;
    margin-right: 0 !important;
  }

  .home-page .site-header .brand img,
  .home-page .site-header .brand-logo{
    width: 46px !important;
    height: 46px !important;
  }

  /* Countdown fills the area from the emblem to the right side, like desktop */
  .home-page .match-countdown-header{
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    margin: 0 8px 0 10px !important;
    padding: 0 !important;
    gap: 8px !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    overflow: visible !important;
  }

  .home-page .match-countdown-header .countdown-title{
    display:none !important;
  }

  .home-page .match-countdown-header .countdown-next-label{
    display:inline-block !important;
    color: var(--gold) !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
    line-height: 1 !important;
  }

  .home-page .match-countdown-header .countdown-match-name{
    display:block !important;
    color:#fff !important;
    font-size: 13px !important;
    font-weight:700 !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    max-width: 140px !important;
    line-height: 1 !important;
  }

  .home-page .match-countdown-header .countdown-units{
    display:flex !important;
    align-items:center !important;
    gap: 2px !important;
    margin-left: auto !important;
    flex: 0 0 auto !important;
  }

  .home-page .match-countdown-header .countdown-unit{
    min-width: auto !important;
  }

  .home-page .match-countdown-header .countdown-unit strong{
    color:#fff !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
  }

  .home-page .match-countdown-header .countdown-unit span{
    display:none !important;
  }

  .home-page .match-countdown-header .countdown-separator{
    color:#fff !important;
    font-size: 13px !important;
    font-weight:800 !important;
    line-height:1 !important;
  }

  /* keep calendar sync visible and clickable on mobile */
  .home-page .match-countdown-header .calendar-sync-wrapper,
  .home-page .match-countdown-header .countdown-sync{
    flex: 0 0 auto !important;
    display:flex !important;
    align-items:center !important;
  }

  .home-page .match-countdown-header .calendar-sync-button{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    min-height: 28px !important;
    padding: 4px 8px !important;
    border: 1px solid rgba(255,255,255,.45) !important;
    background: transparent !important;
    color:#fff !important;
    border-radius: 999px !important;
    font-size: 11px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    pointer-events: auto !important;
    position: relative !important;
    z-index: 5 !important;
  }

  .home-page .match-countdown-header .calendar-sync-button .icon,
  .home-page .match-countdown-header .calendar-sync-button svg{
    width: 14px !important;
    height: 14px !important;
  }

  /* If space is too tight, hide the long match name first */
  @media (max-width: 700px){
    .home-page .match-countdown-header .countdown-match-name{
      display:none !important;
    }
  }

  @media (max-width: 560px){
    .home-page .match-countdown-header{
      gap: 6px !important;
      margin-left: 6px !important;
      margin-right: 4px !important;
    }
    .home-page .match-countdown-header .countdown-next-label{
      font-size: 12px !important;
    }
    .home-page .match-countdown-header .countdown-unit strong,
    .home-page .match-countdown-header .countdown-separator{
      font-size: 12px !important;
    }
    .home-page .match-countdown-header .calendar-sync-button{
      padding: 4px 7px !important;
      font-size: 10px !important;
    }
  }

  @media (max-width: 460px){
    .home-page .match-countdown-header .countdown-next-label{
      display:none !important;
    }
    .home-page .match-countdown-header{
      margin-left: 4px !important;
    }
  }
}


/* --- v20.16.4 Clear Google / Apple Calendar labels --- */
.home-page .calendar-sync-menu{
  min-width:280px !important;
}

.home-page .calendar-sync-menu button{
  white-space:normal !important;
  line-height:1.3 !important;
}

@media(max-width:650px){
  .home-page .calendar-sync-menu{
    min-width:250px !important;
    max-width:min(92vw,320px) !important;
  }
}


/* --- v20.16.5 Mobile countdown centered + crests between teams --- */
.home-page .countdown-match-name.has-crests{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:8px !important;
}
.home-page .countdown-team-token{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-width:0;
}
.home-page .countdown-team-token img{
  width:18px;
  height:18px;
  object-fit:contain;
  flex:0 0 auto;
  display:block;
}
.home-page .countdown-team-text{
  display:inline-block;
  max-width:120px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.home-page .countdown-match-dash{
  color:#fff;
  font-weight:900;
  flex:0 0 auto;
}

@media (max-width:850px){
  .home-page .topbar{
    gap:10px !important;
    align-items:center !important;
  }
  .home-page .brand{
    flex:0 0 auto !important;
    min-width:auto !important;
    margin-right:0 !important;
  }
  .home-page .match-countdown-header{
    flex:1 1 auto !important;
    max-width:none !important;
    width:auto !important;
    margin:0 !important;
    padding:0 !important;
    background:transparent !important;
    justify-content:center !important;
    gap:8px !important;
  }
  .home-page .match-countdown-header .countdown-heading{
    display:flex !important;
    align-items:center !important;
    flex:0 0 auto !important;
  }
  .home-page .match-countdown-header .countdown-title{
    display:none !important;
  }
  .home-page .match-countdown-header .countdown-next-label{
    display:inline-block !important;
    color:#d8b24a !important;
    font-size:12px !important;
    white-space:nowrap !important;
  }
  .home-page .match-countdown-header .countdown-match-name{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    flex:1 1 auto !important;
    min-width:0 !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    color:#fff !important;
    font-size:11px !important;
    font-weight:800 !important;
    margin:0 !important;
  }
  .home-page .match-countdown-header .countdown-units{
    margin-left:0 !important;
    justify-content:center !important;
  }
  .home-page .match-countdown-header .calendar-sync-wrap,
  .home-page .match-countdown-header .calendar-sync-wrapper,
  .home-page .match-countdown-header .countdown-sync{
    flex:0 0 auto !important;
    margin-left:0 !important;
  }
}

@media (max-width:560px){
  .home-page .brand strong{
    display:none !important;
  }
  .home-page .topbar{
    justify-content:space-between !important;
    gap:8px !important;
  }
  .home-page .match-countdown-header{
    flex:1 1 calc(100% - 56px) !important;
    max-width:calc(100% - 56px) !important;
    min-width:0 !important;
  }
  .home-page .match-countdown-header .countdown-match-name{
    max-width:150px !important;
    font-size:10px !important;
  }
  .home-page .countdown-team-token img{
    width:16px;
    height:16px;
  }
  .home-page .countdown-team-text{
    max-width:56px;
    font-size:10px;
  }
  .home-page .match-countdown-header .countdown-unit strong,
  .home-page .match-countdown-header .countdown-separator{
    font-size:12px !important;
  }
  .home-page .match-countdown-header .calendar-sync-button{
    padding:4px 6px !important;
    font-size:10px !important;
  }
}

@media (max-width:420px){
  .home-page .match-countdown-header{
    gap:6px !important;
  }
  .home-page .match-countdown-header .countdown-match-name{
    max-width:120px !important;
  }
  .home-page .countdown-team-text{
    max-width:44px;
  }
}


/* --- v20.16.6 Mobile header countdown tightened + shorter calendar label --- */
.calendar-sync-label-short{display:none}
.calendar-sync-label-full{display:inline}

@media (max-width:700px){
  .home-page .topbar{
    display:grid !important;
    grid-template-columns:56px minmax(0, 1fr) !important;
    align-items:center !important;
    column-gap:10px !important;
  }
  .home-page .brand{
    width:56px !important;
    min-width:56px !important;
    overflow:visible !important;
  }
  .home-page .brand img{
    width:44px !important;
    height:44px !important;
    display:block;
  }
  .home-page .match-countdown-header{
    justify-self:center !important;
    align-self:center !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    margin:0 auto !important;
    gap:6px !important;
    justify-content:center !important;
    align-items:center !important;
  }
  .home-page .match-countdown-header .countdown-heading{
    min-width:auto !important;
    margin-right:2px !important;
  }
  .home-page .match-countdown-header .countdown-next-label{
    font-size:10px !important;
    letter-spacing:.3px !important;
    white-space:nowrap !important;
  }
  .home-page .match-countdown-header .countdown-units{
    gap:2px !important;
    flex:0 0 auto !important;
  }
  .home-page .match-countdown-header .countdown-unit strong,
  .home-page .match-countdown-header .countdown-separator{
    font-size:11px !important;
  }
  .home-page .match-countdown-header .countdown-unit span{
    font-size:8px !important;
  }
  .home-page .match-countdown-header .calendar-sync-wrap{
    margin-left:2px !important;
    flex:0 0 auto !important;
  }
  .home-page .match-countdown-header .calendar-sync-button{
    padding:4px 8px !important;
    font-size:10px !important;
    white-space:nowrap !important;
    gap:4px !important;
  }
  .calendar-sync-label-full{display:none !important}
  .calendar-sync-label-short{display:inline !important}
}

@media (max-width:480px){
  .home-page .match-countdown-header .countdown-match-name{
    display:none !important;
  }
  .home-page .match-countdown-header{
    gap:5px !important;
  }
  .home-page .match-countdown-header .calendar-sync-button{
    padding:4px 6px !important;
    font-size:9px !important;
  }
  .home-page .match-countdown-header .countdown-next-label{
    font-size:9px !important;
  }
}

@media (max-width:390px){
  .home-page .topbar{
    grid-template-columns:48px minmax(0,1fr) !important;
    column-gap:8px !important;
  }
  .home-page .brand,
  .home-page .brand img{
    width:40px !important;
    min-width:40px !important;
    height:40px !important;
  }
  .home-page .match-countdown-header .countdown-unit strong,
  .home-page .match-countdown-header .countdown-separator{
    font-size:10px !important;
  }
}


/* --- v20.16.7 Mobile: icon-only calendar button and cleaner centering --- */
.calendar-sync-icon{
  display:inline-block;
  line-height:1;
}

@media (max-width:700px){
  .home-page .topbar{
    display:grid !important;
    grid-template-columns:48px minmax(0,1fr) !important;
    align-items:center !important;
    column-gap:8px !important;
    padding:8px 12px !important;
  }

  .home-page .brand{
    width:48px !important;
    min-width:48px !important;
    justify-content:flex-start !important;
    overflow:visible !important;
  }

  .home-page .brand img{
    width:42px !important;
    height:42px !important;
    min-width:42px !important;
    display:block !important;
  }

  .home-page .brand strong{
    display:none !important;
  }

  .home-page .match-countdown-header{
    display:flex !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    margin:0 !important;
    padding:0 !important;
    align-items:center !important;
    justify-content:center !important;
    gap:6px !important;
    background:transparent !important;
    border:0 !important;
    box-shadow:none !important;
    overflow:visible !important;
  }

  /* Save space: hide only the label, keep team crests/names and the timer. */
  .home-page .match-countdown-header .countdown-heading{
    display:none !important;
  }

  .home-page .match-countdown-header .countdown-match-name{
    display:flex !important;
    flex:1 1 auto !important;
    min-width:0 !important;
    max-width:none !important;
    align-items:center !important;
    justify-content:center !important;
    gap:4px !important;
    margin:0 !important;
    overflow:hidden !important;
    color:#fff !important;
    font-size:10px !important;
    white-space:nowrap !important;
  }

  .home-page .countdown-team-token{
    gap:3px !important;
    min-width:0 !important;
  }

  .home-page .countdown-team-token img{
    width:15px !important;
    height:15px !important;
    flex:0 0 15px !important;
  }

  .home-page .countdown-team-text{
    max-width:52px !important;
    font-size:9px !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    white-space:nowrap !important;
  }

  .home-page .countdown-match-dash{
    font-size:10px !important;
    flex:0 0 auto !important;
  }

  .home-page .match-countdown-header .countdown-units{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:2px !important;
    flex:0 0 auto !important;
    margin:0 !important;
  }

  .home-page .match-countdown-header .countdown-unit{
    min-width:auto !important;
  }

  .home-page .match-countdown-header .countdown-unit strong,
  .home-page .match-countdown-header .countdown-separator{
    color:#fff !important;
    font-size:11px !important;
    font-weight:800 !important;
    line-height:1 !important;
  }

  .home-page .match-countdown-header .countdown-unit span{
    display:none !important;
  }

  .home-page .match-countdown-header .calendar-sync-wrap{
    position:relative !important;
    flex:0 0 30px !important;
    width:30px !important;
    margin:0 !important;
  }

  .home-page .match-countdown-header .calendar-sync-button{
    display:inline-flex !important;
    width:30px !important;
    min-width:30px !important;
    height:30px !important;
    min-height:30px !important;
    padding:0 !important;
    align-items:center !important;
    justify-content:center !important;
    border:1px solid rgba(255,255,255,.48) !important;
    border-radius:50% !important;
    background:transparent !important;
    color:#fff !important;
    font-size:0 !important;
    line-height:1 !important;
    cursor:pointer !important;
    pointer-events:auto !important;
  }

  .home-page .match-countdown-header .calendar-sync-label-full,
  .home-page .match-countdown-header .calendar-sync-label-short{
    display:none !important;
  }

  .home-page .match-countdown-header .calendar-sync-icon{
    display:block !important;
    font-size:15px !important;
    line-height:1 !important;
  }

  .home-page .match-countdown-header .calendar-sync-menu{
    top:calc(100% + 10px) !important;
    left:auto !important;
    right:0 !important;
    min-width:245px !important;
    max-width:min(88vw,300px) !important;
  }
}

@media (max-width:430px){
  .home-page .topbar{
    grid-template-columns:44px minmax(0,1fr) !important;
    column-gap:6px !important;
    padding-left:10px !important;
    padding-right:10px !important;
  }

  .home-page .brand{
    width:44px !important;
    min-width:44px !important;
  }

  .home-page .brand img{
    width:38px !important;
    height:38px !important;
    min-width:38px !important;
  }

  .home-page .match-countdown-header{
    gap:4px !important;
  }

  .home-page .countdown-team-text{
    max-width:42px !important;
  }

  .home-page .match-countdown-header .countdown-unit strong,
  .home-page .match-countdown-header .countdown-separator{
    font-size:10px !important;
  }

  .home-page .match-countdown-header .calendar-sync-wrap,
  .home-page .match-countdown-header .calendar-sync-button{
    width:28px !important;
    min-width:28px !important;
    height:28px !important;
    min-height:28px !important;
  }
}


/* --- v20.17 YouTube LIVE under the dash between the teams --- */
.home-page .countdown-match-name.has-crests{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) !important;
  align-items:center !important;
  justify-content:center !important;
  gap:6px !important;
  overflow:visible !important;
}

.home-page .countdown-team-token.home{
  justify-content:flex-end !important;
}

.home-page .countdown-team-token.away{
  justify-content:flex-start !important;
}

.home-page .countdown-match-center{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:3px;
  min-width:42px;
  flex:0 0 auto;
}

.home-page .countdown-match-dash{
  display:block;
  color:#fff;
  font-weight:900;
  line-height:.65;
}

.home-page .match-live-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  min-width:40px;
  padding:3px 7px;
  border-radius:999px;
  color:#fff;
  font-size:9px;
  font-weight:1000;
  line-height:1;
  letter-spacing:.06em;
  text-decoration:none;
  white-space:nowrap;
  box-sizing:border-box;
  margin-top:36px;
}

.home-page .match-live-dot{
  width:6px;
  height:6px;
  border-radius:50%;
  background:currentColor;
  flex:0 0 6px;
}

.home-page .match-live-button.is-live{
  background:#e00000;
  border:1px solid #ff4b4b;
  cursor:pointer;
  pointer-events:auto;
  box-shadow:0 0 0 0 rgba(255,0,0,.65),0 0 10px rgba(255,0,0,.65);
  animation:fcLivePulse 1.5s infinite;
}

.home-page .match-live-button.is-live:hover{
  background:#bd0000;
  transform:translateY(-1px);
}

.home-page .match-live-button.is-offline{
  background:#667085;
  border:1px solid #8c96a7;
  color:#d8dde7;
  cursor:default;
  pointer-events:none;
  box-shadow:none;
  opacity:.9;
}

@keyframes fcLivePulse{
  0%{box-shadow:0 0 0 0 rgba(255,0,0,.55),0 0 8px rgba(255,0,0,.55)}
  70%{box-shadow:0 0 0 7px rgba(255,0,0,0),0 0 12px rgba(255,0,0,.7)}
  100%{box-shadow:0 0 0 0 rgba(255,0,0,0),0 0 8px rgba(255,0,0,.45)}
}

@media(max-width:700px){
  .home-page .countdown-match-name.has-crests{
    gap:3px !important;
  }

  .home-page .countdown-match-center{
    min-width:36px;
    gap:2px;
  }

  .home-page .match-live-button{
    min-width:34px;
    padding:2px 5px;
    font-size:7px;
    gap:3px;
    margin-top:12px;
  }

  .home-page .match-live-dot{
    width:5px;
    height:5px;
    flex-basis:5px;
  }

  .home-page .countdown-team-text{
    max-width:50px !important;
  }
}

@media(max-width:430px){
  .home-page .countdown-match-center{
    min-width:32px;
  }

  .home-page .match-live-button{
    min-width:31px;
    padding:2px 4px;
    font-size:6.5px;
    margin-top:10px;
  }

  .home-page .countdown-team-text{
    max-width:42px !important;
  }
}


/* --- v20.17.3 Exact team-name / dash centering --- */

/* Desktop: show the full team names and center the dash exactly between them. */
@media (min-width:701px){
  .home-page .match-countdown-header .countdown-match-name.has-crests{
    display:grid !important;
    grid-template-columns:max-content auto max-content !important;
    justify-content:center !important;
    align-items:center !important;
    width:max-content !important;
    max-width:none !important;
    overflow:visible !important;
    gap:10px !important;
  }

  .home-page .countdown-team-token{
    width:max-content !important;
    min-width:max-content !important;
    max-width:none !important;
    overflow:visible !important;
  }

  .home-page .countdown-team-token.home{
    justify-content:flex-end !important;
  }

  .home-page .countdown-team-token.away{
    justify-content:flex-start !important;
  }

  .home-page .countdown-team-text{
    width:max-content !important;
    min-width:max-content !important;
    max-width:none !important;
    overflow:visible !important;
    text-overflow:clip !important;
    white-space:nowrap !important;
  }

  .home-page .countdown-match-center{
    justify-self:center !important;
    align-self:center !important;
  }

  .home-page .countdown-match-dash{
    width:100% !important;
    text-align:center !important;
  }
}

/* Mobile: equal space on both sides keeps the dash centered between both team names. */
@media (max-width:700px){
  .home-page .match-countdown-header .countdown-match-name.has-crests{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) !important;
    justify-content:stretch !important;
    align-items:center !important;
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
    gap:4px !important;
  }

  .home-page .countdown-team-token.home{
    justify-self:end !important;
    justify-content:flex-end !important;
  }

  .home-page .countdown-team-token.away{
    justify-self:start !important;
    justify-content:flex-start !important;
  }

  .home-page .countdown-match-center{
    justify-self:center !important;
    align-self:center !important;
  }

  .home-page .countdown-match-dash{
    width:100% !important;
    text-align:center !important;
  }

  /* Another ~0.5 cm lower on mobile only. */
  .home-page .match-live-button{
    margin-top:42px !important;
  }
}

@media (max-width:430px){
  .home-page .match-live-button{
    margin-top:38px !important;
  }
}


/* --- v20.17.4 Vertical alignment of dash and independent LIVE position --- */

/*
  LIVE is positioned independently, so it no longer pulls the dash upward.
  The dash is lowered slightly to align visually with both team names.
*/
.home-page .countdown-match-center{
  position:relative !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-height:18px !important;
  height:18px !important;
  gap:0 !important;
}

.home-page .countdown-match-dash{
  display:block !important;
  width:100% !important;
  line-height:1 !important;
  text-align:center !important;
  transform:translateY(6px) !important;
}

.home-page .match-live-button{
  position:absolute !important;
  left:50% !important;
  top:28px !important;
  margin:0 !important;
  transform:translateX(-50%) !important;
  z-index:3 !important;
}

.home-page .match-live-button.is-live:hover{
  transform:translateX(-50%) translateY(-1px) !important;
}

/* Give the LIVE badge enough room inside the blue header. */
@media (min-width:701px){
  .home-page .topbar{
    padding-bottom:18px !important;
  }
}

/* Mobile: keep the dash aligned with the names and LIVE another 0.5 cm lower. */
@media (max-width:700px){
  .home-page .topbar{
    padding-bottom:22px !important;
  }

  .home-page .countdown-match-center{
    min-height:16px !important;
    height:16px !important;
  }

  .home-page .countdown-match-dash{
    transform:translateY(5px) !important;
  }

  .home-page .match-live-button{
    top:36px !important;
    margin:0 !important;
  }
}

@media (max-width:430px){
  .home-page .match-live-button{
    top:34px !important;
  }
}


/* --- v20.17.5 Fine vertical adjustment --- */

/* Raise the dash slightly on desktop and mobile. */
.home-page .countdown-match-dash{
  transform:translateY(0px) !important;
}

/* On mobile, raise LIVE closer to the dash. */
@media (max-width:700px){
  .home-page .countdown-match-dash{
    transform:translateY(0px) !important;
  }

  .home-page .match-live-button{
    top:28px !important;
  }
}

@media (max-width:430px){
  .home-page .match-live-button{
    top:27px !important;
  }
}


/* --- v20.17.6 Raise dash a bit more on desktop and mobile --- */
.home-page .countdown-match-dash{
  transform: translateY(0px) !important;
}
@media (max-width:700px){
  .home-page .countdown-match-dash{
    transform: translateY(0px) !important;
  }
}


/* --- v20.18.3 centered match meta for results --- */
.match-meta-stacked{
  text-align:center !important;
  margin-top:10px !important;
  line-height:1.35 !important;
}
.match-meta-line{
  display:block;
}
.match-meta-competition{
  font-weight:700;
}
.match-meta-venue{
  margin-top:2px;
}
.home-match-meta{
  text-align:center !important;
}
.home-match-meta-line{
  display:block;
}
.home-match-meta-date{
  margin-bottom:4px;
}
.home-match-meta-competition{
  font-weight:700;
}


/* --- v20.19 player stats simplified --- */
.profile-stats{
  gap:16px;
  margin-top:22px;
}
.profile-stats-outfield{grid-template-columns:repeat(3,minmax(0,1fr))}
.profile-stats-gk{grid-template-columns:repeat(2,minmax(0,1fr));max-width:560px}
.profile-stat-advanced{
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  align-items:center;
  min-height:210px;
  padding:18px 16px 16px;
}
.profile-stat-title{
  font-size:18px;
  line-height:1.1;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.04em;
  color:#fff;
  margin-bottom:8px;
  text-align:center;
}
.profile-stat-advanced b{
  font-size:76px;
  line-height:.92;
  margin:4px 0 10px;
}
.profile-stat-total-label{
  font-size:12px;
  line-height:1.2;
  font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:#d9e1ef;
  margin-bottom:14px;
  text-align:center;
}
.profile-stat-season-label{
  font-size:12px;
  line-height:1.2;
  font-weight:800;
  letter-spacing:.05em;
  text-transform:uppercase;
  color:#fff;
  margin-bottom:6px;
  text-align:center;
}
.profile-stat-current{
  display:block;
  font-size:28px;
  line-height:1;
  font-weight:900;
  color:var(--gold);
}
@media(max-width:850px){
  .profile-stats-outfield{grid-template-columns:repeat(2,minmax(0,1fr))}
  .profile-stats-gk{grid-template-columns:repeat(2,minmax(0,1fr))}
  .profile-stat-advanced b{font-size:62px}
}
@media(max-width:520px){
  .profile-stats-outfield,.profile-stats-gk{grid-template-columns:1fr}
  .profile-stat-advanced{min-height:190px}
  .profile-stat-advanced b{font-size:56px}
  .profile-stat-title{font-size:17px}
}


/* --- v20.20 Every news item has its own shareable link --- */
.news-card.news-card-link{
  display:block;
  width:100%;
  max-width:none;
  overflow:hidden;
  background:#fff;
  color:inherit;
  text-decoration:none;
  cursor:pointer;
  box-sizing:border-box;
}
.news-card.news-card-link .news-thumb,
.news-card.news-card-link .news-body{
  pointer-events:none;
}
.news-card.news-card-link:focus-visible{
  outline:3px solid rgba(11,78,162,.36);
  outline-offset:4px;
}
.article-share-row{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
  margin-top:28px;
  padding-top:20px;
  border-top:1px solid rgba(7,27,59,.12);
}
.article-share-row button{
  border:0;
  border-radius:999px;
  padding:11px 17px;
  background:#0b4ea2;
  color:#fff;
  font:inherit;
  font-weight:900;
  cursor:pointer;
}
.article-share-row .article-copy-button{
  background:#e9eff8;
  color:#0b366f;
}
.article-link-status{
  color:#176b39;
  font-size:13px;
  font-weight:800;
}
.article-news-index{
  width:100%;
}
.article-news-heading{
  margin-bottom:24px;
}
.article-news-heading h1{
  margin:0 0 6px;
  color:var(--navy);
  font-size:clamp(34px,5vw,54px);
}
.article-news-heading p{
  margin:0;
  color:#66758c;
}
.article-news-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:22px;
}
@media(max-width:900px){
  .article-news-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:620px){
  .article-news-grid{grid-template-columns:1fr}
  .article-share-row{align-items:stretch;flex-direction:column}
  .article-share-row button{width:100%}
}


/* --- v20.20.2 Compact sponsors above share buttons --- */
.article-sponsors-band{
  width:100%;
  margin-top:26px;
  padding:12px 14px;
  box-sizing:border-box;
  overflow:hidden;
  border-radius:14px;
  background:#071b3b;
}
.article-sponsors-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(78px,1fr));
  gap:10px;
  align-items:center;
}
.article-sponsor-item{
  min-width:0;
  height:58px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:6px;
  box-sizing:border-box;
  color:#fff;
  text-decoration:none;
  border-radius:9px;
  background:rgba(255,255,255,.035);
  transition:transform .18s ease,background-color .18s ease;
}
.article-sponsor-item:hover{
  transform:translateY(-1px);
  background:rgba(255,255,255,.09);
}
.article-sponsor-logo{
  width:100%;
  height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.article-sponsor-logo img{
  display:block;
  width:100%;
  height:100%;
  max-width:74px;
  max-height:44px;
  object-fit:contain;
}
.article-sponsor-name{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  color:#fff;
  font-size:11px;
  line-height:1.15;
  font-weight:900;
  text-align:center;
}
.article-sponsors-band + .article-share-row{
  margin-top:14px;
}
@media(max-width:620px){
  .article-sponsors-band{
    margin-top:22px;
    padding:10px;
    border-radius:12px;
  }
  .article-sponsors-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:8px;
  }
  .article-sponsor-item{
    height:54px;
    padding:5px;
  }
  .article-sponsor-logo{
    height:40px;
  }
  .article-sponsor-logo img{
    max-width:66px;
    max-height:40px;
  }
}
@media(max-width:380px){
  .article-sponsors-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}


/* --- v20.20.3 Results simplification and latest-result page --- */
.home-result-link{
  display:block;
  color:inherit;
  text-decoration:none;
  position:relative;
  cursor:pointer;
  transition:transform .18s ease,box-shadow .18s ease;
}
.home-result-link:hover{
  transform:translateY(-3px);
  box-shadow:0 16px 36px rgba(10,35,70,.16);
}
.home-result-link:focus-visible{
  outline:3px solid rgba(11,78,162,.38);
  outline-offset:4px;
}
.home-result-link.is-disabled{
  cursor:default;
}
.home-result-open{
  display:inline-block;
  margin-top:12px;
  color:var(--blue);
  font-size:13px;
  font-weight:900;
}
.latest-result-page{
  max-width:1040px;
  margin:0 auto;
  padding:44px 5% 72px;
}
.latest-result-back{
  display:inline-flex;
  margin-bottom:24px;
  color:var(--blue);
  font-weight:900;
  text-decoration:none;
}
.latest-result-heading{
  margin-bottom:20px;
}
.latest-result-heading h1{
  margin:7px 0 0;
  color:var(--navy);
  font-size:clamp(34px,5vw,56px);
}
.latest-result-card{
  overflow:hidden;
  border-radius:22px;
  background:#fff;
  border-top:5px solid var(--gold);
  box-shadow:0 14px 38px rgba(10,35,70,.11);
  padding:30px;
}
.latest-result-date{
  color:#69758a;
  font-size:14px;
  font-weight:800;
  text-align:center;
}
.latest-result-score-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
  align-items:center;
  gap:22px;
  margin:22px 0 10px;
}
.latest-result-team{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
  color:var(--navy);
  font-size:clamp(18px,2.5vw,27px);
}
.latest-result-team.home{
  justify-content:flex-end;
  text-align:right;
}
.latest-result-team.away{
  justify-content:flex-start;
  text-align:left;
}
.latest-result-team img{
  width:54px;
  height:54px;
  object-fit:contain;
  flex:0 0 auto;
}
.latest-result-score{
  min-width:132px;
  color:var(--blue);
  font-size:clamp(34px,5vw,58px);
  line-height:1;
  font-weight:1000;
  text-align:center;
}
.latest-result-meta{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:4px;
  color:#748096;
  text-align:center;
}
.latest-result-meta strong{
  color:var(--navy);
}
.latest-result-contributors{
  margin-top:28px;
  padding:22px;
  border-radius:15px;
  background:#f2f6fc;
}
.latest-result-contributors h2{
  margin:0 0 16px;
  color:var(--navy);
  font-size:22px;
}
.latest-result-contribution{
  margin-top:14px;
  color:#263650;
}
.latest-result-contribution:first-of-type{
  margin-top:0;
}
.latest-result-contribution b{
  display:block;
  margin-bottom:7px;
  color:var(--navy);
}
.latest-result-contribution span{
  display:block;
  margin:5px 0 0 12px;
}
.latest-result-all-link{
  display:inline-block;
  margin-top:20px;
  color:var(--blue);
  font-weight:900;
  text-decoration:none;
}
.latest-result-empty,
.latest-result-empty-card{
  color:#69758a;
}
.latest-result-empty-card{
  padding:28px;
  border-radius:18px;
  background:#fff;
  text-align:center;
}
@media(max-width:700px){
  .latest-result-card{
    padding:22px 16px;
  }
  .latest-result-score-row{
    grid-template-columns:1fr;
    gap:12px;
  }
  .latest-result-team.home,
  .latest-result-team.away{
    justify-content:center;
    text-align:center;
  }
  .latest-result-team.home{
    flex-direction:column;
  }
  .latest-result-team.away{
    flex-direction:column-reverse;
  }
  .latest-result-score{
    min-width:0;
  }
  .latest-result-contributors{
    padding:18px 15px;
  }
}


/* --- v20.20.4 Clean home and gallery --- */
.photo-card img{
  border-radius:14px;
}


/* --- v20.21 Rotating player position cards --- */
.home-position-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:22px;
  align-items:start;
}
.home-position-column{
  min-width:0;
}
.home-position-title{
  margin:0 0 14px;
  color:var(--navy);
  font-size:clamp(23px,2vw,32px);
}
.home-position-card{
  position:relative;
  display:block;
  overflow:hidden;
  width:100%;
  aspect-ratio:4/5;
  border-radius:20px;
  background:linear-gradient(145deg,#0b2b5f,#071b3b);
  color:#fff;
  text-decoration:none;
  box-shadow:0 12px 30px rgba(10,35,70,.13);
  transition:transform .18s ease,box-shadow .18s ease;
}
.home-position-card:hover{
  transform:translateY(-3px);
  box-shadow:0 18px 38px rgba(10,35,70,.18);
}
.home-position-card:focus-visible{
  outline:3px solid rgba(11,78,162,.4);
  outline-offset:4px;
}
.home-position-stage{
  width:100%;
  height:100%;
  transition:opacity .18s ease;
}
.home-position-stage.is-changing{
  opacity:0;
}
.home-position-player-slide,
.home-position-player-slide .player-photo-wrap{
  width:100%;
  height:100%;
}
.home-position-player-slide{
  animation:homePlayerFade .34s ease;
}
.home-position-card .player-card-overlay{
  padding-bottom:28px;
}
.home-position-card .player-name{
  color:#fff;
  font-size:clamp(18px,1.55vw,25px);
}
.home-position-open{
  position:absolute;
  z-index:4;
  right:15px;
  top:14px;
  padding:7px 10px;
  border-radius:999px;
  background:rgba(7,27,59,.76);
  color:#fff;
  font-size:11px;
  font-weight:900;
  backdrop-filter:blur(5px);
}
.home-position-empty{
  width:100%;
  height:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:14px;
  padding:20px;
  box-sizing:border-box;
  color:#fff;
  text-align:center;
  font-weight:900;
}
.home-position-empty img{
  width:84px;
  height:84px;
  object-fit:contain;
}
.players-category-page{
  max-width:1500px;
  margin:0 auto;
  padding:44px 5% 72px;
}
.players-category-page h1{
  margin:7px 0 8px;
  color:var(--navy);
  font-size:clamp(42px,6vw,72px);
}
.players-category-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:22px;
  margin-top:26px;
}
@keyframes homePlayerFade{
  from{opacity:.25;transform:scale(1.015)}
  to{opacity:1;transform:scale(1)}
}
@media(max-width:1100px){
  .home-position-grid,
  .players-category-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media(max-width:620px){
  .home-position-grid,
  .players-category-grid{
    grid-template-columns:1fr;
  }
  .home-position-card{
    max-width:430px;
  }
}


/* --- v20.22 Gallery groups and rotating home gallery --- */
.section-more-link{
  color:var(--blue);
  font-weight:900;
  text-decoration:none;
}
.home-gallery-groups{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:24px;
}
.home-gallery-column{
  min-width:0;
}
.home-gallery-card{
  position:relative;
  display:block;
  width:100%;
  aspect-ratio:16/10;
  overflow:hidden;
  border-radius:22px;
  color:#fff;
  text-decoration:none;
  background:linear-gradient(145deg,#0b2b5f,#071b3b);
  box-shadow:0 14px 34px rgba(10,35,70,.15);
  transition:transform .18s ease,box-shadow .18s ease;
}
.home-gallery-card:hover{
  transform:translateY(-3px);
  box-shadow:0 20px 42px rgba(10,35,70,.22);
}
.home-gallery-card:focus-visible{
  outline:3px solid rgba(11,78,162,.42);
  outline-offset:4px;
}
.home-gallery-stage,
.home-gallery-slide{
  width:100%;
  height:100%;
}
.home-gallery-stage{
  transition:opacity .22s ease;
}
.home-gallery-stage.is-changing{
  opacity:0;
}
.home-gallery-slide{
  animation:galleryHomeFade .38s ease;
}
.home-gallery-slide img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}
.home-gallery-shade{
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(7,27,59,.06) 15%,rgba(7,27,59,.88) 100%);
}
.home-gallery-heading{
  position:absolute;
  z-index:3;
  left:22px;
  right:22px;
  bottom:22px;
  display:flex;
  align-items:center;
  gap:14px;
}
.home-gallery-icon{
  width:54px;
  height:54px;
  flex:0 0 54px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#fff;
  color:var(--navy);
  font-size:26px;
  box-shadow:0 8px 22px rgba(0,0,0,.18);
}
.home-gallery-kicker{
  display:block;
  margin-bottom:3px;
  color:#d7e3f4;
  font-size:11px;
  font-weight:900;
  letter-spacing:.13em;
}
.home-gallery-heading h3{
  margin:0;
  color:#fff;
  font-size:clamp(27px,3vw,44px);
  line-height:1;
}
.home-gallery-open{
  position:absolute;
  z-index:3;
  top:16px;
  right:16px;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(7,27,59,.78);
  color:#fff;
  font-size:12px;
  font-weight:900;
  backdrop-filter:blur(5px);
}
.home-gallery-empty{
  width:100%;
  height:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:14px;
  color:#fff;
  font-weight:900;
}
.home-gallery-empty img{
  width:90px;
  height:90px;
  object-fit:contain;
}
.gallery-page{
  max-width:1500px;
  margin:0 auto;
  padding:44px 5% 72px;
}
.gallery-page h1{
  margin:7px 0 8px;
  color:var(--navy);
  font-size:clamp(42px,6vw,72px);
}
.gallery-main-tabs{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
  margin:30px 0;
}
.gallery-main-tabs button{
  min-height:108px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  border:0;
  border-radius:18px;
  padding:18px;
  background:#e9eff8;
  color:var(--navy);
  font:inherit;
  font-size:clamp(22px,3vw,34px);
  font-weight:1000;
  cursor:pointer;
  transition:transform .18s ease,background .18s ease,color .18s ease;
}
.gallery-main-tabs button:hover{
  transform:translateY(-2px);
}
.gallery-main-tabs button.active{
  background:var(--navy);
  color:#fff;
}
.gallery-main-tab-icon{
  width:54px;
  height:54px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#fff;
  color:var(--navy);
  font-size:25px;
}
.gallery-subcategory-section{
  margin:26px 0 22px;
}
.gallery-subcategory-section h2{
  margin:0 0 14px;
  color:var(--navy);
  font-size:clamp(28px,4vw,44px);
}
.gallery-subcategory-tabs{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.gallery-subcategory-tabs button{
  border:0;
  border-radius:999px;
  padding:11px 17px;
  background:#e8eef8;
  color:var(--navy);
  font:inherit;
  font-weight:900;
  cursor:pointer;
}
.gallery-subcategory-tabs button.active{
  background:var(--blue);
  color:#fff;
}
.gallery-page-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:15px;
  margin-top:24px;
}
.gallery-page-photo{
  overflow:hidden;
  border-radius:15px;
  background:#fff;
  box-shadow:0 8px 22px rgba(10,35,70,.09);
}
.gallery-page-photo img{
  width:100%;
  aspect-ratio:4/3;
  display:block;
  object-fit:cover;
  cursor:pointer;
  transition:transform .22s ease;
}
.gallery-page-photo:hover img{
  transform:scale(1.025);
}
.gallery-page-prompt{
  grid-column:1/-1;
  padding:34px;
  border:1px dashed #c9d4e6;
  border-radius:16px;
  background:#fff;
  color:#66758c;
  text-align:center;
}
@keyframes galleryHomeFade{
  from{opacity:.2;transform:scale(1.015)}
  to{opacity:1;transform:scale(1)}
}
@media(max-width:900px){
  .gallery-page-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:720px){
  .home-gallery-groups,
  .gallery-main-tabs{
    grid-template-columns:1fr;
  }
  .gallery-page-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .home-gallery-card{aspect-ratio:4/3}
}
@media(max-width:480px){
  .gallery-page-grid{grid-template-columns:1fr}
  .gallery-main-tabs button{min-height:92px}
}


/* --- v20.22.1 Academy gallery category fix + crest icon --- */
.home-gallery-crest-icon,
.gallery-main-tab-icon img{
  width:78%;
  height:78%;
  display:block;
  object-fit:contain;
}


/* --- v20.22.3 Center player position category titles --- */
.home-position-column{
  display:flex;
  flex-direction:column;
  align-items:center;
}
.home-position-title{
  width:100%;
  text-align:center;
  display:block;
}


/* --- v20.22.4 Lower and equal-width player position titles --- */
.home-position-column{
  width:100%;
}
.home-position-title{
  width:100%;
  box-sizing:border-box;
  margin:0 0 6px;
  min-height:48px;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  text-align:center;
  line-height:1.05;
}
.home-position-card{
  width:100%;
}
