/*
 * League profile — official portal style (bundesliga.com reference):
 * hero cover, overlapping crest card, identity band, tab navigation,
 * statistic / fixtures / table / news cards.
 */
.ap-league{--apl-shell:1240px;background:#f4f5f7}
.apl-shell{margin-inline:auto;width:min(calc(100% - 40px),var(--apl-shell))}

/* Hero */
.apl-hero{background:linear-gradient(120deg,var(--ap-profile-accent),#10151d 78%);background-position:center;background-size:cover;height:clamp(200px,32vw,360px);position:relative}
.apl-hero.has-cover{background-color:#10151d}
.apl-hero__veil{background:linear-gradient(0deg,rgba(10,14,20,.55),rgba(10,14,20,.05) 55%);inset:0;position:absolute}
.apl-hero__bar{padding-top:20px;position:relative;z-index:1}
.apl-hero .ap-profile-breadcrumb a,.apl-hero .ap-profile-breadcrumb strong{color:#fff}

/* Identity band with overlapping crest */
.apl-identity-band{position:relative;z-index:5}
.apl-identity{align-items:flex-end;background:var(--ap-profile-chalk,#fff);border-radius:0 0 14px 14px;display:flex;gap:26px;justify-content:space-between;margin-top:-64px;padding:0 28px 18px;position:relative}
.apl-crest{background:#fff;border-radius:16px;box-shadow:0 10px 34px rgba(12,18,28,.16);flex:0 0 auto;margin-bottom:-26px;padding:10px;transform:translateY(-30px)}
.apl-crest .apl-crest__img{border-radius:10px;display:grid;height:118px;object-fit:contain;place-items:center;width:118px}
span.apl-crest__img{color:var(--ap-profile-accent);font-size:44px;font-weight:800}
.apl-identity__main{flex:1;min-width:0;padding-top:16px}
.apl-identity__main h1{font-size:clamp(28px,4vw,44px);font-weight:800;letter-spacing:-.02em;line-height:1.02;margin:0}
.apl-verified{background:var(--ap-profile-accent);border-radius:50%;color:#fff;display:inline-grid;place-items:center;height:22px;vertical-align:6px;width:22px}
.apl-identity__intro{color:var(--ap-profile-muted,#687386);margin:8px 0 0;max-width:640px}
.apl-identity__facts{display:flex;flex-wrap:wrap;gap:8px 26px;margin-top:14px}
.apl-identity__facts span{color:var(--ap-profile-muted,#687386);font-size:13px}
.apl-identity__facts strong{color:var(--ap-profile-ink,#14181f);font-size:15px;margin-right:5px}
.apl-identity__season{border-left:3px solid var(--ap-profile-accent);flex:0 0 auto;margin-bottom:20px;padding-left:14px}
.apl-identity__season span{color:var(--ap-profile-muted,#687386);display:block;font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.apl-identity__season strong{font-size:20px}

/* Tabs */
.apl-tabs-bar{background:var(--ap-profile-chalk,#fff);border-bottom:1px solid var(--ap-profile-line,#e5e8ed);box-shadow:0 6px 18px rgba(12,18,28,.05);position:relative;z-index:4}
.apl-tabs{display:flex;gap:26px;overflow-x:auto;scrollbar-width:none}
.apl-tabs button{background:transparent;border:0;border-bottom:3px solid transparent;color:var(--ap-profile-muted,#687386);cursor:pointer;font-size:14.5px;font-weight:750;padding:15px 2px 12px;white-space:nowrap}
.apl-tabs button:hover{color:var(--ap-profile-ink,#14181f)}
.apl-tabs button[aria-selected=true]{border-bottom-color:var(--ap-profile-accent);color:var(--ap-profile-ink,#14181f)}

/* Panels + cards */
.apl-panels{padding-block:26px 64px}
.apl-panel[hidden]{display:none}
.apl-grid{display:grid;gap:20px}
.apl-grid--overview{grid-template-columns:1fr 1.15fr 1.05fr}
.apl-grid--two{grid-template-columns:1fr 1fr}
.apl-card{background:var(--ap-profile-chalk,#fff);border:1px solid var(--ap-profile-line,#e5e8ed);border-radius:12px;box-shadow:0 1px 2px rgba(16,24,40,.05);padding:20px 22px;min-width:0}
.apl-card__title{color:var(--ap-profile-accent);font-size:13px;font-weight:850;letter-spacing:.08em;margin:0 0 14px;text-transform:uppercase}
.apl-card__more{color:var(--ap-profile-accent);display:inline-flex;font-size:13.5px;font-weight:800;margin-top:12px;text-decoration:none}
.apl-card__more b{margin-left:6px;transition:transform .18s ease}
.apl-card__more:hover b{transform:translateX(4px)}
.apl-card--prose .ap-profile-prose{font-size:16px;line-height:1.7}

/* Stats */
.apl-stats{display:grid;gap:18px 14px;grid-template-columns:1fr 1fr}
.apl-stats div{border-bottom:1px solid var(--ap-profile-line,#e5e8ed);padding-bottom:12px}
.apl-stats b{display:block;font-size:28px;font-weight:800;letter-spacing:-.01em}
.apl-stats span{display:block;font-size:12.5px;font-weight:700;margin-top:2px}
.apl-stats small{color:var(--ap-profile-muted,#687386);font-size:10.5px}

/* Next-match rows */
.apl-next{align-items:center;border-bottom:1px solid var(--ap-profile-line,#e5e8ed);color:inherit;display:grid;gap:14px;grid-template-columns:52px 1fr auto;padding:11px 0;text-decoration:none}
.apl-next:hover{background:var(--ap-profile-soft,#f6f7f9)}
.apl-next__date{font-size:13px;font-weight:800;text-align:center}
.apl-next__date small{color:var(--ap-profile-muted,#687386);display:block;font-size:10.5px;font-weight:600}
.apl-next__teams{align-items:center;display:grid;gap:10px;grid-template-columns:1fr auto 1fr;min-width:0}
.apl-next__teams>span{align-items:center;display:flex;font-size:13.5px;font-weight:700;gap:8px;min-width:0}
.apl-next__teams b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.apl-next__teams>span:last-child{justify-content:flex-end;text-align:right}
.apl-next__teams em{color:var(--ap-profile-muted,#687386);font-style:normal}
.apl-next .ap-profile-logo{height:22px;width:22px;flex:0 0 auto}
.apl-next__score{background:var(--ap-profile-soft,#f1f3f6);border-radius:6px;font-family:ui-monospace,Consolas,monospace;font-size:14px;font-weight:800;padding:6px 9px;text-align:center;min-width:44px}

/* Tables */
.apl-table-scroll{overflow-x:auto}
.apl-minitable,.apl-table{border-collapse:collapse;width:100%}
.apl-minitable th,.apl-minitable td,.apl-table th,.apl-table td{border-bottom:1px solid var(--ap-profile-line,#e5e8ed);font-size:13px;padding:10px 8px;text-align:center;white-space:nowrap}
.apl-minitable th,.apl-table th{color:var(--ap-profile-muted,#687386);font-size:10.5px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
.apl-minitable td:nth-child(2),.apl-table td:nth-child(2),.apl-minitable th:nth-child(2),.apl-table th:nth-child(2){text-align:left}
.apl-minitable a,.apl-table td:nth-child(2) a{align-items:center;color:inherit;display:inline-flex;font-weight:750;gap:9px;text-decoration:none}
.apl-minitable .ap-profile-logo,.apl-table .ap-profile-logo{height:22px;width:22px}
.apl-minitable .apl-points,.apl-table .apl-points{font-weight:900}
.apl-table tbody tr:hover,.apl-minitable tbody tr:hover{background:var(--ap-profile-soft,#f6f7f9)}

/* Clubs */
.apl-clubs{display:grid;gap:10px;grid-template-columns:repeat(auto-fill,minmax(250px,1fr))}
.apl-club{align-items:center;background:var(--ap-profile-soft,#f8f9fb);border:1px solid var(--ap-profile-line,#e5e8ed);border-radius:10px;color:inherit;display:flex;gap:12px;padding:11px 14px;text-decoration:none;transition:transform .16s ease,border-color .16s ease}
.apl-club:hover{border-color:var(--ap-profile-accent);transform:translateY(-2px)}
.apl-club .ap-profile-logo{height:34px;width:34px}
.apl-club b{display:block;font-size:14px}
.apl-club small{color:var(--ap-profile-muted,#687386);font-size:11.5px}
.apl-club em{color:var(--ap-profile-accent);font-style:normal;margin-left:auto}
.apl-club span{min-width:0}

/* News */
.apl-news-grid{display:grid;gap:16px;grid-template-columns:repeat(3,1fr)}
.apl-news-grid--wide{grid-template-columns:repeat(auto-fill,minmax(280px,1fr))}
.apl-news-card{background:var(--ap-profile-chalk,#fff);border:1px solid var(--ap-profile-line,#e5e8ed);border-radius:12px;box-shadow:0 1px 2px rgba(16,24,40,.06);color:inherit;display:flex;flex-direction:column;overflow:hidden;position:relative;text-decoration:none;transition:box-shadow .2s ease,transform .2s ease}
.apl-news-card:hover{box-shadow:0 10px 30px rgba(16,24,40,.14);transform:translateY(-3px)}
.apl-news-card img,.apl-news-card__ph{aspect-ratio:16/9;display:block;object-fit:cover;width:100%}
.apl-news-card__ph{background:linear-gradient(135deg,#1d2634,#2c3e52)}
.apl-news-card__badge{background:var(--ap-profile-accent);border-radius:4px;color:#fff;font-size:10px;font-weight:850;letter-spacing:.06em;left:10px;padding:4px 8px;position:absolute;text-transform:uppercase;top:10px}
.apl-news-card__body{display:block;padding:13px 15px 16px}
.apl-news-card__body time{color:var(--ap-profile-muted,#687386);font-size:11px;font-weight:700}
.apl-news-card__body h3{font-size:16.5px;font-weight:800;line-height:1.25;margin:6px 0 0}
.apl-news-card__body p{color:var(--ap-profile-muted,#687386);font-size:13px;margin:7px 0 0}

/* Empty + FAQ */
.apl-empty{background:var(--ap-profile-soft,#f8f9fb);border:1px dashed var(--ap-profile-line,#e5e8ed);border-radius:10px;color:var(--ap-profile-muted,#687386);padding:18px}
.apl-card--prose .ap-profile-prose{max-width:820px}

/* Responsive */
@media(max-width:1060px){
  .apl-grid--overview{grid-template-columns:1fr 1fr}
  .apl-grid--overview .apl-card:first-child{grid-column:1/-1}
  .apl-grid--overview .apl-stats{grid-template-columns:repeat(4,1fr)}
}
@media(max-width:820px){
  .apl-grid--overview,.apl-grid--two{grid-template-columns:1fr}
  .apl-identity{align-items:flex-start;flex-direction:column;gap:0;padding:0 20px 16px}
  .apl-crest{margin-bottom:-42px;transform:translateY(-22px)}
  .apl-crest .apl-crest__img{height:92px;width:92px}
  .apl-identity__season{display:none}
  .apl-tabs{gap:18px}
  .apl-stats{grid-template-columns:1fr 1fr}
  .apl-news-grid{grid-template-columns:1fr}
}

/* ── Vereins- & Spielerprofil Ergänzungen ────────────────────────── */
.apl-grid--four{grid-template-columns:repeat(4,minmax(0,1fr))}
.apl-grid--twowide{grid-template-columns:1.4fr 1fr;margin-top:20px}
.apl-grid--three{grid-template-columns:repeat(3,minmax(0,1fr))}
.apl-minitable tr.is-own,.apl-table tr.is-own{background:color-mix(in srgb,var(--ap-profile-accent) 9%,#fff)}
.apl-minitable tr.is-own td:nth-child(2) span{color:var(--ap-profile-accent)}

/* Spieler-Highlight (Topscorer-Karte) */
.apl-highlight{border-radius:12px;color:#fff;display:grid;grid-template-columns:1fr auto;overflow:hidden;position:relative;text-decoration:none;min-height:190px}
.apl-highlight img,.apl-highlight__ph{grid-area:1/1;height:100%;object-fit:cover;object-position:top center;width:100%}
.apl-highlight__ph{background:linear-gradient(135deg,#1d2634,#2c3e52)}
.apl-highlight__veil{background:linear-gradient(0deg,rgba(10,14,20,.88),rgba(10,14,20,.08) 60%);grid-area:1/1}
.apl-highlight__copy{align-self:end;grid-area:1/1;padding:16px;position:relative;z-index:1}
.apl-highlight__copy small{color:#ffb321;display:block;font-size:10px;font-weight:850;letter-spacing:.1em;text-transform:uppercase}
.apl-highlight__copy b{font-size:22px;font-weight:800}
.apl-highlight__goals{align-self:end;grid-area:1/1;justify-self:end;padding:16px;position:relative;text-align:center;z-index:1}
.apl-highlight__goals b{display:block;font-size:34px;font-weight:900;line-height:1}
.apl-highlight__goals small{font-size:10.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}

/* Saison-Gauges */
.apl-gauges{display:flex;flex-wrap:wrap;gap:20px 28px;justify-content:space-between}
.apl-gauge{text-align:center}
.apl-gauge__ring{--ring:conic-gradient(var(--ap-profile-accent) calc(var(--pct)*1%),#e8eaee 0);align-items:center;background:var(--ring);border-radius:50%;display:grid;height:76px;justify-items:center;place-items:center;width:76px}
.apl-gauge__ring:before{background:var(--ap-profile-chalk,#fff);border-radius:50%;content:"";height:56px;position:absolute;width:56px}
.apl-gauge__ring{position:relative}
.apl-gauge__ring b{position:relative;z-index:1;font-size:19px;font-weight:800}
.apl-gauge small{color:var(--ap-profile-muted,#687386);display:block;font-size:11px;font-weight:700;margin-top:7px}
.apl-statline{border-top:1px solid var(--ap-profile-line,#e5e8ed);color:var(--ap-profile-muted,#687386);font-size:13px;margin:16px 0 0;padding-top:12px}
.apl-statline strong{color:var(--ap-profile-ink,#14181f)}

/* Fakten-Liste + News-Zeilen + Club-Chip */
.apl-facts div{border-bottom:1px solid var(--ap-profile-line,#e5e8ed);display:flex;gap:12px;justify-content:space-between;padding:9px 0}
.apl-facts dt{color:var(--ap-profile-muted,#687386);font-weight:700}
.apl-facts dd{font-weight:750;margin:0;text-align:right}
.apl-facts dd a{color:var(--ap-profile-accent)}
.apl-newsrow{align-items:center;border-bottom:1px solid var(--ap-profile-line,#e5e8ed);color:inherit;display:flex;gap:12px;padding:10px 0;text-decoration:none}
.apl-newsrow:hover b{color:var(--ap-profile-accent)}
.apl-newsrow img,.apl-newsrow__ph{border-radius:8px;flex:0 0 74px;height:52px;object-fit:cover;width:74px}
.apl-newsrow__ph{background:linear-gradient(135deg,#1d2634,#2c3e52);display:block}
.apl-newsrow small{color:var(--ap-profile-muted,#687386);display:block;font-size:10.5px;font-weight:700}
.apl-newsrow b{display:block;font-size:13.5px;line-height:1.3}
.apl-clubchip{align-items:center;background:var(--ap-profile-soft,#f6f7f9);border:1px solid var(--ap-profile-line,#e5e8ed);border-radius:10px;color:inherit;display:inline-flex;gap:11px;margin-top:16px;max-width:420px;padding:10px 14px;text-decoration:none}
.apl-clubchip img{height:30px;width:30px;object-fit:contain}
.apl-clubchip small{color:var(--ap-profile-muted,#687386);display:block;font-size:10px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
.apl-clubchip b{font-size:14px}
.apl-clubchip em{color:var(--ap-profile-muted,#687386);font-size:11px;font-style:normal;margin-left:auto}
.apl-club--row{grid-template-columns:auto 1fr auto}
.apl-person-photo{border-radius:50%;object-fit:cover}
.apl-hero--photo .apl-hero__veil{background:linear-gradient(0deg,rgba(10,14,20,.6),rgba(10,14,20,.15))}
.apl-crest--photo .apl-crest__img{border-radius:16px;object-fit:cover}

@media(max-width:1060px){
  .apl-grid--four{grid-template-columns:1fr 1fr}
  .apl-grid--three{grid-template-columns:1fr}
}
@media(max-width:680px){
  .apl-grid--four,.apl-grid--twowide{grid-template-columns:1fr}
  .apl-gauges{gap:14px;justify-content:flex-start}
}
