
*{box-sizing:border-box}
:root{
  --black:#111111;
  --black2:#1b1b1b;
  --charcoal:#252525;
  --red:#cf2424;
  --red-dark:#a91717;
  --red-soft:#fff0ed;
  --cream:#f7f3ec;
  --paper:#fffdf9;
  --ink:#1a1a1a;
  --muted:#77736e;
  --line:#e5ded4;
  --surface:#fffdf9;
  --bg:#f3efe8;
  --green:#238760;
  --shadow:0 18px 50px rgba(17,17,17,.08);
  --navy:var(--black);
  --navy2:var(--black2);
  --blue:var(--red);
  --blue-soft:var(--red-soft);
}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;-webkit-font-smoothing:antialiased}
button,input,select{font:inherit}
button,a{touch-action:manipulation}
.topbar{background:var(--navy);color:#fff;border-bottom:1px solid rgba(255,255,255,.08);position:sticky;top:0;z-index:30}
.topbar-inner{max-width:1240px;margin:auto;padding:14px 24px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.brand{display:flex;align-items:center;gap:12px}
.brand-logo{width:42px;height:42px;border-radius:10px;background:var(--red);display:grid;place-items:center;box-shadow:0 7px 20px rgba(207,36,36,.22);border:1px solid rgba(255,255,255,.12)}
.brand-logo span{font-size:.85rem;font-weight:900;letter-spacing:-.04em}
.brand-copy{display:flex;flex-direction:column;line-height:1.15}
.brand-copy strong{font-size:.97rem;letter-spacing:-.01em}
.brand-copy small{font-size:.69rem;color:#b8b2aa;margin-top:3px}
.live-pill{border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.055);border-radius:999px;padding:7px 11px;font-size:.7rem;font-weight:800;color:#ded9d2}
.hero{background:linear-gradient(125deg,#111 0%,#181818 58%,#251212 100%);color:#fff;position:relative;overflow:hidden;border-bottom:4px solid var(--red)}
.hero:after{content:"";position:absolute;width:430px;height:430px;border-radius:50%;right:-120px;top:-230px;border:82px solid rgba(207,36,36,.10)}
.hero-inner{max-width:1240px;margin:auto;padding:56px 24px 48px;display:grid;grid-template-columns:1.35fr .9fr;gap:60px;align-items:end;position:relative;z-index:2}
.eyebrow,.section-kicker{font-size:.65rem;font-weight:900;letter-spacing:.14em}
.eyebrow{color:#ef5650;margin:0 0 12px}
.hero h1{font-size:clamp(2rem,4.2vw,4rem);line-height:1.03;letter-spacing:-.052em;margin:0;max-width:780px}
.subtitle{font-size:1rem;line-height:1.65;color:#c9c4bd;max-width:650px;margin:18px 0 0}
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.stat{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.11);border-radius:15px;padding:17px 15px;backdrop-filter:blur(8px)}
.stat strong{display:block;font-size:1.65rem;letter-spacing:-.05em;color:#fff}
.stat span{display:block;font-size:.68rem;text-transform:uppercase;letter-spacing:.08em;color:#bbb5ad;margin-top:4px;font-weight:800}
.layout{max-width:1240px;margin:0 auto;padding:28px 24px 50px;display:grid;grid-template-columns:280px minmax(0,1fr);gap:24px;align-items:start}
.countries-panel,.search-card,.country-card{background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow)}
.countries-panel{border-radius:18px;padding:18px;position:sticky;top:88px;max-height:calc(100vh - 112px);display:flex;flex-direction:column}
.panel-head,.search-heading{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.panel-head h2,.search-heading h2{margin:4px 0 0;font-size:1.08rem;letter-spacing:-.025em}
.section-kicker{color:var(--red)}
.muted,.search-hint{font-size:.7rem;color:#8492a4}
.filter-wrap,.global-search-wrap{position:relative}
.search-icon{position:absolute;left:12px;top:50%;transform:translateY(-52%);color:#7f8da0;font-size:1.1rem;pointer-events:none}
.input{width:100%;border:1px solid #dce4ed;background:#fff;color:var(--ink);border-radius:11px;padding:11px 12px;outline:none;transition:.15s}
.filter-wrap .input,.global-search-wrap .input{padding-left:36px}
.input:focus{border-color:#df7771;box-shadow:0 0 0 4px rgba(207,36,36,.09)}
.filter-wrap{margin-top:14px}
.country-list{margin-top:12px;overflow:auto;padding-right:3px}
.country-btn{width:100%;display:grid;grid-template-columns:27px 1fr auto;align-items:center;gap:9px;text-align:left;border:0;background:transparent;border-radius:10px;padding:9px 10px;color:#33475e;cursor:pointer;font-size:.78rem;font-weight:700}
.country-btn:hover{background:#f4f7fa}.country-btn.active{background:var(--red-soft);color:var(--red-dark)}
.country-btn .flag{font-size:1.08rem}.country-btn .count{font-size:.64rem;background:#edf1f5;color:#76859a;border-radius:999px;padding:3px 6px}
.country-btn.active .count{background:#f7d8d4;color:var(--red-dark)}
.content{min-width:0}
.mobile-country{display:none}
.search-card{border-radius:18px;padding:20px;margin-bottom:20px}
.search-row{display:flex;gap:10px;margin-top:15px}
.global-search-wrap{flex:1}
.button{border:0;border-radius:10px;padding:0 16px;font-weight:800;cursor:pointer}.secondary{background:#eef2f6;color:#526174}
.search-results{display:grid;gap:8px;margin-top:10px}
.result{display:flex;flex-direction:column;gap:3px;width:100%;text-align:left;border:1px solid #e1e7ee;background:#fff;padding:10px 12px;border-radius:10px;cursor:pointer}
.result:hover{border-color:#b9cae0;background:#f9fbfd}.result strong{font-size:.82rem}.result small{font-size:.68rem;color:#7d8b9c}
.country-card{border-radius:20px;overflow:hidden}
.country-header{display:flex;align-items:center;gap:16px;padding:22px 24px;background:linear-gradient(180deg,#fffdf9,#faf5ee);border-bottom:1px solid var(--line)}
.big-flag{width:52px;height:52px;background:#f4eee6;border:1px solid #e3dbd1;border-radius:14px;display:grid;place-items:center;font-size:1.8rem}
.country-header h2{margin:0;font-size:1.45rem;letter-spacing:-.035em}.country-header p{margin:5px 0 0;color:var(--muted);font-size:.77rem}
.clubs{padding:14px}
.club{border:1px solid #e2e8ef;border-radius:13px;overflow:hidden;margin-bottom:9px;background:#fff}
.club-toggle{width:100%;display:grid;grid-template-columns:20px 1fr auto;gap:10px;align-items:center;border:0;background:#fff;padding:13px 14px;cursor:pointer;text-align:left}
.club-toggle:hover{background:#fafbfd}
.chev{font-size:1.3rem;color:#8190a2;transition:.16s}.club.open .chev{transform:rotate(90deg);color:var(--blue)}
.club-name{font-size:.8rem;font-weight:900;color:#283b51}.club-count{font-size:.65rem;color:#7d8a9a;background:#f0f3f6;border-radius:999px;padding:4px 7px}
.players{display:none;padding:10px;background:#f5f0e9;border-top:1px solid #e6ddd4}.club.open .players{display:block}
.player-card{background:#fff;border:1px solid #e1e7ed;border-radius:12px;padding:13px 14px;margin:7px 0;box-shadow:0 2px 8px rgba(22,44,70,.035)}
.player-main{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}
.player-main>div{display:flex;flex-direction:column;min-width:0}
.player-name{font-size:.88rem;font-weight:900;color:#162a42}
.player-note{font-size:.7rem;color:#79889a;margin-top:3px}
.tm-link{flex:none;display:inline-flex;align-items:center;border:1px solid #d8d0c7;background:#fffdfa;color:#333;border-radius:8px;padding:6px 8px;font-size:.65rem;font-weight:900;text-decoration:none}
.tm-link:hover{border-color:#d67b74;background:#fff0ed;color:var(--red-dark)}
.player-meta{display:grid;grid-template-columns:88px 1fr;gap:10px;align-items:center;margin-top:10px;padding-top:9px;border-top:1px solid #edf1f5}
.meta-label{font-size:.57rem;text-transform:uppercase;letter-spacing:.09em;font-weight:900;color:#9aa5b3}
.previous-club{font-size:.72rem;font-weight:800;color:#506176}.previous-club.empty{color:#a0a9b4;font-weight:500;font-style:italic}
footer{background:#111;color:#aaa39b;margin-top:20px;border-top:4px solid var(--red)}
.footer-inner{max-width:1240px;margin:auto;padding:24px;display:flex;justify-content:space-between;gap:20px;align-items:center}
.footer-inner>div{display:flex;flex-direction:column}.footer-inner strong{color:#fff;font-size:.82rem}.footer-inner span,.footer-inner p{font-size:.68rem}.footer-inner p{margin:0;max-width:560px;text-align:right}
@media(max-width:900px){
  .hero-inner{grid-template-columns:1fr;gap:28px;padding-top:38px}.layout{grid-template-columns:1fr}.countries-panel{display:none}.mobile-country{display:block;margin-bottom:14px}.mobile-country label{display:block;font-size:.7rem;font-weight:800;color:#617184;margin-bottom:6px}
}
@media(max-width:620px){
  .topbar-inner{padding:11px 15px}.brand-copy small{display:none}.live-pill{font-size:.6rem;padding:6px 8px}
  .hero-inner{padding:30px 16px}.hero h1{font-size:2.2rem}.subtitle{font-size:.86rem}
  .stats{gap:7px}.stat{padding:13px 10px}.stat strong{font-size:1.35rem}.stat span{font-size:.56rem}
  .layout{padding:16px 12px 34px}.search-card{padding:16px}.search-row{align-items:stretch}.button{padding:0 12px;font-size:.73rem}
  .country-header{padding:17px}.clubs{padding:9px}.club-toggle{padding:12px 10px}.club-count{font-size:.58rem}
  .player-card{padding:11px}.player-name{font-size:.82rem}.tm-link{font-size:.59rem;padding:5px 7px}.player-meta{grid-template-columns:75px 1fr}
  .footer-inner{padding:20px 16px;display:block}.footer-inner p{text-align:left;margin-top:8px}
}

/* Status badges */
.player-id-block{display:flex;flex-direction:column;min-width:0}
.player-name-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.status-badge{display:inline-flex;align-items:center;border-radius:999px;padding:3px 7px;font-size:.56rem;font-weight:900;letter-spacing:.055em;text-transform:uppercase;border:1px solid transparent;white-space:nowrap}
.status-badge.active{background:#ecf8f2;color:#14734f;border-color:#cfeadd}
.status-badge.summer{background:#fff4e6;color:#a85a00;border-color:#f4d8b4}
.status-badge.loan{background:#fff8d8;color:#7c6400;border-color:#ebdda0}
.status-badge.loaned{background:#f2ebff;color:#6b38b7;border-color:#d8c5f3}
.mother-row{margin-top:11px}
.mother-club{font-size:.72rem;font-weight:900;color:#6b38b7}
@media(max-width:620px){
  .player-name-row{gap:6px}
  .status-badge{font-size:.51rem;padding:3px 6px}
}

.loan-info{margin-top:10px;padding-top:2px;border-top:1px solid #edf1f5}
.loan-info + .player-meta{margin-top:0}
.loan-row{margin-top:7px;padding-top:0;border-top:0}
.loan-club{font-size:.72rem;font-weight:900;color:#6b38b7}

.virtual-loan{position:relative}
.virtual-loan::before{content:"";position:absolute;left:0;top:12px;bottom:12px;width:3px;border-radius:3px;background:currentColor;opacity:.12}

/* TheCartoonKit-inspired palette: colors only */
.topbar-actions{display:flex;align-items:center;gap:10px}
.powered-by{display:flex;align-items:baseline;gap:4px;color:#c9c2b9;text-decoration:none;font-size:.67rem;white-space:nowrap;transition:.15s}
.powered-by .powered-label{color:#8f8982}
.powered-by strong{color:#fff;font-size:.69rem;letter-spacing:.01em}
.powered-by:hover strong{color:#ef5650}
.footer-tck{color:#d6cfc6;text-decoration:none;font-weight:800;margin-left:3px}
.footer-tck:hover{color:#ef5650}
.search-card,.country-card,.countries-panel{background:var(--paper)}
.club{border-color:#e4dcd2}
.club-toggle{background:var(--paper)}
.club-toggle:hover{background:#faf5ef}
.player-card{border-color:#e5ddd4}
.player-name{color:#171717}
.status-badge.loaned{background:#fff0ed;color:#a91717;border-color:#efc6c2}
.status-badge.loan{background:#f8eee7;color:#8d4b31;border-color:#e5cec0}
.loan-club{color:var(--red-dark)}
.virtual-loan::before{background:var(--red)}
.button.secondary:hover{background:#e7dfd6;color:#242424}
@media(max-width:760px){
  .powered-by .powered-label{display:none}
  .powered-by{font-size:.62rem}
}
@media(max-width:520px){
  .topbar-actions{gap:6px}
  .powered-by{display:none}
}

/* Duidelijke zwarte outlines voor meer structuur */
.countries-panel,
.search-card,
.country-card{
  border:2px solid #171717 !important;
  box-shadow:0 10px 28px rgba(17,17,17,.07);
}

.country-btn{
  border:1px solid transparent;
}
.country-btn:hover{
  border-color:#171717;
}
.country-btn.active{
  border:2px solid #171717;
}

.country-header{
  border-bottom:2px solid #171717 !important;
}

.club{
  border:2px solid #171717 !important;
  overflow:hidden;
}
.club + .club{
  margin-top:10px;
}
.club.open .club-toggle{
  border-bottom:1px solid #171717;
}

.player-card{
  border:1.5px solid #171717 !important;
  box-shadow:none;
}

.input{
  border:1.5px solid #171717 !important;
}
.input:focus{
  border-color:#cf2424 !important;
}

.tm-link{
  border:1.5px solid #171717 !important;
}

.stat{
  border:1px solid rgba(255,255,255,.28);
}

@media(max-width:620px){
  .countries-panel,.search-card,.country-card{border-width:1.5px !important}
  .club{border-width:1.5px !important}
  .player-card{border-width:1px !important}
}

/* Professionele Nederlandse verfijning */
:root{--accent:#cf2424;--outline:#171717;--paper:#fffdf9;--warm:#f3efe8}

/* Eigen DPA-identiteit */
.brand-logo{background:#111!important;border:2px solid #fff!important;box-shadow:none!important;border-radius:8px!important;position:relative;overflow:hidden}
.brand-logo::after{content:"";position:absolute;left:0;right:0;bottom:0;height:6px;background:var(--accent)}
.brand-logo strong,.brand-logo span{position:relative;z-index:1}

/* Afzender */
.topbar-inner{min-height:66px}
.powered-by{text-transform:uppercase;letter-spacing:.055em;gap:6px}
.powered-by .powered-label{font-size:.56rem;color:#aaa39b}
.powered-by strong{font-size:.64rem;letter-spacing:.035em}

/* Rood alleen als accent */
.eyebrow{color:#ef5650!important}
.country-btn.active{background:#fff!important;color:#171717!important;border-color:#171717!important;box-shadow:inset 4px 0 0 var(--accent)}
.country-btn.active .count{background:#171717!important;color:#fff!important}
.section-kicker{color:#77736e!important}

/* Compactere database */
.content-grid{gap:18px}
.countries-panel{padding:14px!important}
.country-list{gap:4px!important}
.country-btn{min-height:38px!important;padding:7px 9px!important;border-radius:7px!important}
.country-header{padding:18px 20px!important}
.clubs{padding:12px!important}
.club{margin-bottom:8px!important;border-radius:8px!important}
.club-toggle{min-height:48px!important;padding:10px 13px!important}
.players{padding:7px!important;background:#f5f0e9!important}
.player-card{padding:9px 11px!important;margin:5px 0!important;border-radius:6px!important}

/* Typografische hiërarchie */
.country-header h2{font-size:1.65rem!important;font-weight:950!important;letter-spacing:-.035em;color:#111}
.club-name,.club-toggle strong{font-size:.91rem!important;font-weight:900!important;letter-spacing:.005em;color:#111}
.player-name{font-size:.89rem!important;font-weight:850!important;color:#111!important}
.player-meta,.previous-club,.loan-info{font-size:.69rem!important;color:#77736e!important;line-height:1.35}
.loan-club{color:#4f4b46!important;font-weight:800}

/* Statuslabels */
.status-badge{font-size:.57rem!important;font-weight:950!important;letter-spacing:.055em;border-radius:5px!important;padding:4px 6px!important}
.status-badge.active{background:#f1f1ee!important;color:#30302e!important;border-color:#aaa59e!important}
.status-badge.loaned{background:#fff0ed!important;color:#a91717!important;border-color:#cf2424!important}
.status-badge.loan{background:#e8f5ec!important;color:#176b3a!important;border-color:#2f7d4f!important}

/* Structuur zonder overmatige schaduw */
.search-card,.country-card,.countries-panel{box-shadow:4px 4px 0 rgba(17,17,17,.06)!important}
.club{box-shadow:2px 2px 0 rgba(17,17,17,.045)}
.player-card{box-shadow:none!important}

/* Footer */
footer{border-top:4px solid var(--accent)!important}
footer p{line-height:1.8}
.footer-tck{white-space:nowrap}

@media(max-width:760px){
  .topbar-inner{min-height:60px}
  .country-header{padding:15px 16px!important}
  .country-header h2{font-size:1.42rem!important}
  .club-toggle{min-height:45px!important;padding:9px 11px!important}
  .player-card{padding:8px 9px!important}
}
@media(max-width:520px){
  .powered-by{display:flex!important}
  .powered-by .powered-label{display:none!important}
  .powered-by strong{font-size:.57rem}
}
