/* the club profile (shares the sheet styling of the match dialog) */
.club { --club: #EFD71D; }
.club-head { display: flex; align-items: center; gap: 18px; margin: 0 52px 16px 0; }
.club-logo { width: 84px; height: 84px; object-fit: contain; flex: none; filter: drop-shadow(0 8px 24px rgba(0, 0, 0, .6)); animation: logoIn .6s cubic-bezier(.2, .9, .3, 1.3) both; }
@keyframes logoIn { from { opacity: 0; transform: scale(.6) rotate(-8deg); } }
.club-name { margin: 0; font: 700 clamp(26px, 4vw, 40px)/1 var(--f-display); text-transform: uppercase; }
.club-sub { margin: 8px 0 0; font-size: 13px; color: var(--ink-soft); }
/* the club's numbers on an LED strip */
.club-stats { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 1px; border-radius: 14px; overflow: hidden; background: #1a1a17; border: 1px solid #1d1d1a; }
.club-stats:empty { display: none; }
.club-stats::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--club); opacity: .9; }
.cs { background: #030303; padding: 12px 14px 10px; display: grid; gap: 4px; }
.cs span { font: 700 10px var(--f-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.cs b { font: 400 26px/1 "DotGothic16", "Archivo", monospace; color: var(--y); text-shadow: 0 0 12px rgba(239, 215, 29, .4); font-weight: 400; }
.cs-form b { display: flex; gap: 4px; }
[class^="f-"], [class*=" f-"] { font-style: normal; }
.cs-form i, .cg i { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; font: 800 11px var(--f-ui); color: #0b0b0a; text-shadow: none; }
.f-W { background: #4fbf6a; } .f-G { background: #8f8b7e; } .f-V { background: #E5352B; color: #fff !important; } .f-x { background: transparent; border: 1px solid #2a2a24; }
.c-h { margin: 18px 0 8px; font: 700 11px var(--f-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
/* games */
.cgs { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.cg { display: grid; grid-template-columns: 110px 1fr auto 26px; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 10px; background: #0d0d0c; border: 1px solid #1a1a17; font-size: 14px; }
.cg-d { font: 600 12px var(--f-ui); color: var(--ink-soft); text-transform: capitalize; }
.cg-o { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cg-s { font: 400 17px "DotGothic16", monospace; color: var(--y); white-space: nowrap; }
.cg.pre .cg-s { font: 700 11px var(--f-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
/* squad: photo cards */
.sq { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.sq-p { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; background: #0d0d0c; border: 1px solid #1a1a17; }
.sq-ph { position: relative; flex: none; width: 52px; height: 52px; border-radius: 50%; overflow: hidden; background: #1b1b18; display: grid; place-items: center; box-shadow: inset 0 0 0 2px var(--club); }
.sq-ph b { font: 400 18px "DotGothic16", monospace; color: var(--y); }
.sq-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 10%; background: #1b1b18; }
.sq-t { display: grid; gap: 2px; min-width: 0; }
.sq-t b { font: 700 14px/1.2 var(--f-ui); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sq-t small { font-size: 12px; color: var(--ink-soft); }
/* table */
.ct { width: 100%; border-collapse: collapse; font-size: 14px; }
.ct th { text-align: right; font: 700 10px var(--f-ui); letter-spacing: .12em; color: var(--ink-soft); padding: 6px 10px; }
.ct th:nth-child(1), .ct th:nth-child(2) { text-align: left; }
.ct td { text-align: right; padding: 7px 10px; border-top: 1px solid #171714; font-variant-numeric: tabular-nums; }
.ct td:nth-child(1) { text-align: left; color: var(--ink-soft); width: 3ch; }
.ct td:nth-child(2) { text-align: left; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.ct td:nth-child(2) img { width: 20px; height: 20px; object-fit: contain; }
.ct td:last-child { color: var(--y); font: 400 16px "DotGothic16", monospace; }
.ct tr[data-team] { cursor: pointer; } .ct tr[data-team]:hover td { background: rgba(239, 215, 29, .06); }
.ct tr.me td { background: rgba(239, 215, 29, .14); }
.match-pane.in .cg, .match-pane.in .sq-p, .match-pane.in .ct tr { animation: paneIn .4s var(--ease, ease) both; animation-delay: calc(min(var(--i, 0), 24) * 22ms); }
/* clickable clubs elsewhere */
[data-club] { cursor: pointer; }
.board-table tr[data-club]:hover td { background: rgba(239, 215, 29, .07); }
.ms-team b[data-club]:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--y); }
@media (max-width: 760px) {
  .club-head { gap: 12px; } .club-logo { width: 60px; height: 60px; }
  .cg { grid-template-columns: 78px 1fr auto 24px; font-size: 13px; gap: 8px; padding: 8px 10px; }
  .sq { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .club-logo, .match-pane.in .cg, .match-pane.in .sq-p, .match-pane.in .ct tr { animation: none !important; } }

/* line-up photos on the pitch (the shirt number becomes a small badge; without a photo the number stays big) */
.pl:has(.pl-ph) .pl-n { display: none; }
.pl-ph { pointer-events: none; }
.pl-n2 { font: 400 15px "DotGothic16", monospace; text-anchor: middle; paint-order: stroke; stroke-width: 5px; stroke-linejoin: round; }
.pl-h .pl-n2 { fill: #151513; stroke: #EFD71D; } .pl-a .pl-n2 { fill: #F4F1E6; stroke: #151513; }

/* the whole table: on a computer the first 10 rows, the button shows the rest (UCL: 36) */
.board-more[hidden] { display: none !important; }
@media (min-width: 761px) {
  .board:not(.all-rows) .board-table tr.r:nth-child(n + 11) { display: none; }
  .board-more { display: block; margin: 10px 22px 4px; width: calc(100% - 44px); min-height: 40px; border-radius: 10px; border: 1px solid #2a2a24; background: #121210; color: var(--ink); font: 700 12px var(--f-ui); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
  .board-more:hover { border-color: var(--y); }
  .board.all-rows .board-table { max-height: 62vh; overflow-y: auto; }
}
.cg-o small { display: block; font: 600 11px var(--f-ui); color: var(--ink-soft); letter-spacing: .02em; }

/* the stats strip: a row of LED cells that always fills the box; "Vorm" stretches out to the right (Patto 30-11) */
.club-stats { display: flex; flex-wrap: wrap; }
.club-stats .cs { flex: 1 1 96px; }
.club-stats .cs-form { flex: 3 1 170px; }
.cs-form b { gap: 5px; }

/* the club's last line-up, above the squad */
.c-last { margin-bottom: 6px; }
.c-last-k { margin: -4px 0 12px; font: 600 12px var(--f-ui); color: var(--ink-soft); letter-spacing: .04em; }
.c-last.in .pl-in { animation: plIn .5s cubic-bezier(.2, .9, .3, 1.3) both; animation-delay: calc(var(--i, 0) * 38ms + 60ms); transform-box: fill-box; transform-origin: center; }
.pitch-solo { max-width: 400px; }

/* ---------- a player ---------- */
.pp-head { align-items: center; }
.pp-ph { position: relative; flex: none; width: 104px; height: 104px; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 50% 30%, #262620, #0c0c0a); display: grid; place-items: center; box-shadow: inset 0 0 0 2px var(--y), 0 0 30px -8px rgba(239, 215, 29, .5); }
.pp-ph b { font: 400 34px "DotGothic16", monospace; color: var(--y); }
.pp-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; background: #1b1b18; }
.pp-club { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font: 700 11px var(--f-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--y); }
.pp-club img { width: 20px; height: 20px; object-fit: contain; }
.pp-flag { width: 18px; height: 12px; object-fit: cover; border-radius: 2px; vertical-align: -1px; margin-right: 6px; }
.pp-tw { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
.pp-t th, .pp-t td { text-align: center; white-space: nowrap; }
.pp-t th:first-child, .pp-t td:first-child { text-align: left; white-space: normal; }
.pp-t td:not(:first-child) { font: 400 17px "DotGothic16", monospace; color: var(--y); }
.pp-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 8px 0 0; font-size: 11px; color: var(--ink-soft); }
.pp-legend b { color: var(--ink); }
.pp-dob { margin: 18px 0 0; font-size: 12px; color: var(--ink-soft); }
@media (max-width: 760px) { .pp-ph { width: 78px; height: 78px; } .pp-ph b { font-size: 26px; } }
.pp-t td:nth-child(1) { width: auto; color: var(--ink); font: 600 13px var(--f-ui); }
.pp-t td:nth-child(2) { display: table-cell; }
@media (max-width: 760px) {
  .pp-t th, .pp-t td { padding: 7px 5px; }
  .pp-t td:not(:first-child) { font-size: 15px; }
  .pp-t td:nth-child(1) { font-size: 12px; }
}
.club-stats .cs-form b { width: 100%; }
.club-stats .cs-form i { flex: 1 1 0; max-width: 46px; height: 26px; }

/* the opponent's crest beside every match in a club's list */
.cg-o { display: flex !important; align-items: center; gap: 10px; min-width: 0; }
.cg-o > span { display: grid; min-width: 0; }
.cg-lg { flex: none; width: 26px; height: 26px; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .5)); }
.c-none { padding: 4px 0 6px !important; text-align: left !important; }
.ph-credit { margin: 14px 0 0; font-size: 11px; color: var(--ink-soft); }
