/* OSU Club Hub — match cards. Scoreboard style: a row per club with its crest, time on the left, where/what on the right.
   Lists are size containers, so the card switches to its stacked layout whenever its column is narrow (phones, side columns). */
.mc { display: grid; grid-template-columns: 62px minmax(0, 1fr) 236px; align-items: center; gap: 0 20px; padding: 12px 18px 12px 20px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; position: relative;
  transition: transform .15s, border-color .2s, background .2s; animation: rise .35s both; }
.mc:hover { border-color: var(--line2); background: var(--card2); transform: translateY(-1px); }
.mc::before { content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 4px; border-radius: 0 4px 4px 0; background: transparent; }
.mc.st-live::before { background: var(--lime); }
.mc.r-W::before { background: var(--win); } .mc.r-D::before { background: var(--draw); } .mc.r-L::before { background: var(--loss); }
.mc.st-played, .mc.st-final { background: color-mix(in srgb, var(--card) 80%, var(--bg)); }
.glist .mc { background: var(--card2); }

.mc-when b { display: block; font: 400 30px/1 var(--disp); letter-spacing: .01em; }
.mc-when small { font: 800 10.5px var(--body); letter-spacing: .1em; color: var(--mute); }
.mc-date { display: block; font: 700 11px var(--body); text-transform: uppercase; letter-spacing: .06em; color: var(--sky); margin-bottom: 4px; }

/* wide: home (name, crest) | score or vs | away (crest, name) on one line, crests facing each other */
.mc-teams { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 14px; min-width: 0; }
.mc-row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mc-row.h { flex-direction: row-reverse; text-align: right; }
.mc-row .crest { width: 44px !important; height: 44px !important; flex: none; }
.mc-row .mc-score { display: none; }
/* logos sit on the card itself (transparent), never in a white circle; a faint halo keeps dark logos readable on the dark theme */
/* flex (not grid) so tall shields like OSU, AOJ and Gloucester Hornets shrink to fit the box instead of spilling below it */
.crest.has { display: inline-flex; align-items: center; justify-content: center; background: none; border-radius: 0; padding: 0; box-shadow: none; }
.crest.has img { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; filter: drop-shadow(0 0 1px rgba(255, 255, 255, .28)) drop-shadow(0 1px 2px rgba(0, 0, 0, .35)); }
[data-theme="light"] .crest.has img { filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .18)); }
.mc-name { font-size: 16px; font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.mc-name:hover { text-decoration: underline; }
.mc-row.osu .mc-name { font-weight: 800; }
.mc-row.us .mc-name { color: var(--sky); }
.mc-vs { display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 54px; }
.mc-vs span { font: 800 11px var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.mc-vs.has { min-width: 72px; padding: 4px 10px; border-radius: 10px; background: color-mix(in srgb, var(--bg) 55%, transparent); }
.mc-vs b { font: 400 26px/1 var(--disp); color: var(--mute); } .mc-vs i { font-style: normal; color: var(--faint); }
.mc-vs b.us { color: var(--ink); }
.mc.r-W .mc-vs b.us { color: var(--win); } .mc.r-L .mc-vs b.us { color: var(--loss); } .mc.r-D .mc-vs b.us { color: var(--draw); }
.mc-score { font: 400 26px/1 var(--disp); min-width: 26px; text-align: right; color: var(--mute); }
.mc-row.us .mc-score { color: var(--ink); }
.mc.r-W .mc-row.us .mc-score { color: var(--win); } .mc.r-L .mc-row.us .mc-score { color: var(--loss); } .mc.r-D .mc-row.us .mc-score { color: var(--draw); }

.mc-info { display: grid; gap: 7px; justify-items: start; align-content: center; border-left: 1px solid var(--line); padding-left: 16px; min-width: 0; }
.mc-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12.5px; color: var(--mute); }
.mc-where { display: flex; gap: 6px; align-items: center; font-size: 13.5px; font-weight: 650; min-width: 0; }
.mc-where > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-where em { font-style: normal; color: var(--mute); font-weight: 500; }
.mc-where .i { color: var(--sky); } .mc-where .ico { width: 15px; height: 15px; }
.mc-state:empty { display: none; }

/* monogram badges for clubs without a crest file */
.crest.mono svg { display: block; width: 100%; height: 100%; }

/* medium column (team-page lists on a laptop): teams get the whole first line, tags and venue drop to a second line, so names are not cut */
@container (min-width: 761px) and (max-width: 1000px) {
  .mc { grid-template-columns: 62px minmax(0, 1fr); grid-template-areas: 'when teams' 'when info'; row-gap: 8px; }
  .mc-when { grid-area: when; } .mc-teams { grid-area: teams; }
  .mc-info { grid-area: info; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; border-left: 0; padding: 8px 0 0; border-top: 1px dashed var(--line); }
}

/* narrow column (phones, team-page lists, planner): header line, then the two club rows stacked, score at the end of each */
@container (max-width: 760px) {
  .mc { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: 'when tags state' 'teams teams teams' 'where where where'; gap: 10px 10px; padding: 11px 13px 11px 15px; }
  .mc::before { top: 11px; bottom: 11px; width: 3px; }
  .mc-when { grid-area: when; display: flex; align-items: baseline; gap: 4px; }
  .mc-when b { display: inline; font-size: 21px; } .mc-when small { font-size: 10px; }
  .mc-date { display: inline; margin: 0 6px 0 0; font-size: 11px; }
  .mc-info { display: contents; }
  .mc-tags { grid-area: tags; flex-wrap: nowrap; overflow: hidden; font-size: 11.5px; }
  .mc-tags .mc-tier { white-space: nowrap; }
  .mc-state { grid-area: state; }
  .mc-teams { grid-area: teams; grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .mc-row, .mc-row.h { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 11px; text-align: left; }
  .mc-row .crest { width: 38px !important; height: 38px !important; }
  .mc-row .mc-score { display: block; }
  .mc-vs { display: none; }
  .mc-name { font-size: 15px; }
  .mc-score { font-size: 24px; }
  .mc-where { grid-area: where; font-size: 12.5px; padding-top: 8px; border-top: 1px dashed var(--line); }
  .badge { padding: 5px 7px; font-size: 9.5px; }
}

/* By venue view: wider columns, nothing spills past its column (long team names get an ellipsis) */
body { overflow-x: clip; }
.venuecols { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.venuecols > .vcol { min-width: 0; }
.vcol ol, .vlist { grid-template-columns: minmax(0, 1fr); }
.vrow, .vlist li { min-width: 0; }
.vrow > *, .vlist li > * { flex: none; }
.vrow b, .vlist li b { flex: 0 1 auto; min-width: 0; max-width: 45%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vrow .muted, .vlist li .muted { flex: 1 1 0; min-width: 0; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.3; }

/* No shirt drawings or kit-colour styling anywhere: Coliseum's kit colours don't mean anything (Huy, 2026-11-19) */
.kitwrap, .thero-bg, .empty-art { display: none !important; }
.tcard::after { display: none; }
.thero { background: linear-gradient(120deg, #0f3473, #081c3f) !important; color: #fff !important; }
/* club ladder: every column carries a stat (no empty middle) */
.ladder li { grid-template-columns: 28px minmax(260px, 2.2fr) minmax(140px, 1fr) 40px 70px 50px 44px 92px 72px 56px; }
.ladder li > a { min-width: 0; }
.ladder li > a { white-space: nowrap; }
.ladder li > a b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ladder .ls { text-align: center; font: 600 15px var(--body); font-variant-numeric: tabular-nums; color: var(--ink); }
.ladder .ls.m { color: var(--mute); } .ladder .ls.b { font-weight: 800; } .ladder .ls.pos { color: var(--win); } .ladder .ls.neg { color: var(--loss); }
.ladder .lf { display: flex; justify-content: flex-end; }
.ladder li.lh { padding-top: 0; padding-bottom: 2px; font: 800 10.5px var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.ladder li.lh:hover { background: none; } .ladder li.lh .lbar { visibility: hidden; } .ladder li.lh .lp { text-align: right; font-size: 10.5px; color: var(--faint); }
@media (max-width: 1100px) { .ladder li { grid-template-columns: 28px minmax(220px, 2.2fr) minmax(120px, 1fr) 40px 44px 92px 56px 56px; } .ladder .ls.x { display: none; } }
@media (max-width: 860px) { .ladder li .ls, .ladder li.lh { display: none; } }
@media (max-width: 760px) { .ladder li { grid-template-columns: 24px 1fr auto 46px; } }
@media (max-width: 860px) {
  .tgrid .tcard { grid-template-columns: 1fr auto auto; }
  .tgrid .tcard .tc-name { grid-column: 1; } .tgrid .tcard .tc-pos { grid-column: 2; } .tgrid .tcard .star { grid-column: 3; }
}

/* stacked cards (league tables etc.) never touch */
.view > .card + .card { margin-top: 16px; }

/* league tables: the same column widths in every table, so stacked tables line up */
.tblwrap .tbl { table-layout: fixed; }
.tblwrap .tbl th:nth-child(1) { width: 52px; }
.tblwrap .tbl th:nth-child(n+3):nth-child(-n+8) { width: 52px; }
.tblwrap .tbl th:nth-child(9), .tblwrap .tbl th:nth-child(10) { width: 60px; }
.tblwrap .tbl th:nth-child(11) { width: 130px; }
.tblwrap .tbl td.l { overflow: hidden; }
.tblwrap .tteam { display: flex; min-width: 0; }
.tblwrap .tteam span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 860px) {
  .tblwrap .tbl th:nth-child(1) { width: 34px; }
  .tblwrap .tbl th:nth-child(n+3):nth-child(-n+8) { width: 36px; }
  .tblwrap .tbl th:nth-child(9), .tblwrap .tbl th:nth-child(10) { width: 42px; }
  .tblwrap .tbl th:nth-child(11) { width: 92px; }
}
@media (max-width: 640px) {
  .tblwrap .tbl th:nth-child(1) { width: 28px; }
  .tblwrap .tbl th:nth-child(n+3):nth-child(-n+8) { width: 28px; }
  .tblwrap .tbl th:nth-child(9) { width: 38px; } .tblwrap .tbl th:nth-child(10) { width: 34px; }
  .tblwrap .tbl th:nth-child(11) { width: 58px; }
  .tblwrap .form { gap: 2px; } .tblwrap .form i { width: 14px; height: 14px; line-height: 14px; font-size: 8px; border-radius: 4px; }
  .tblwrap .tteam span { white-space: normal; }
}
