/* Dugout clubs screen: styles only the clubs view (js/views/clubs.js) uses.
   Classes here belong to this screen; tests/css-lint.mjs fails if another screen's file defines the same class. */
.clubhero { position: relative; border-radius: var(--r); padding: 22px 24px; margin-bottom: 18px; overflow: hidden; border: 1px solid var(--edge);
  background: linear-gradient(90deg, var(--k1) 0 14px, var(--k2, var(--card)) 14px 24px, var(--frame) 24px 26px, var(--card) 26px); padding-left: 44px; box-shadow: var(--drop); }
.clubhero h1 { margin: 0 0 4px; }
.clubhero .ink2 { color: var(--ink2); margin: 0 0 10px; }
.nextmatch .vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin: 6px 0 14px; text-align: center; }
.nextmatch .side-t { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.nextmatch .side-t .kit { width: 54px; height: 54px; font-size: 13px; }
.nextmatch .mid { display: flex; flex-direction: column; align-items: center; }
.nextmatch .ko { font: 800 16px var(--num); text-transform: uppercase; }
.nextmatch .sc { font: 900 extra-condensed 64px/1 var(--head); }
.srcs { margin-bottom: 10px; }
ul.newslist img, ul.newslist .noimg { width: 112px; height: 72px; object-fit: cover; border-radius: 6px; border: 1px solid var(--edge); background: var(--card2); display: grid; place-items: center; font-size: 26px; }
ul.newslist .nt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
ul.newslist .nt b { line-height: 1.35; }
ul.newslist .ns { color: var(--ink2); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 500px) {
  ul.newslist img, ul.newslist .noimg { width: 84px; height: 60px; }
  ul.newslist .ns { display: none; }
}
.fxlist li { grid-template-columns: 1fr 80px 48px; }
.fxlist li > span:first-child small { display: block; color: var(--muted); font-size: 13px; }
.ltab tr.us td { background: color-mix(in srgb, var(--bad) 22%, transparent); font-weight: 700; }
.clubhero { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.clubpick { color: var(--ink2); display: flex; flex-direction: column; gap: 4px; }
.mchead { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.mchead { border-bottom: 1px solid var(--edge); padding-bottom: 9px; margin-bottom: 14px; }   /* the card title's rule runs under the switch too */
.mchead h3 { margin: 0; padding: 0; border: 0; }
.mseg button { font-size: 13px; padding: 5px 10px; }
.ctr { text-align: center; }
.otable { display: grid; gap: 4px; margin: 6px 0 8px; }
.orow { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; align-items: center; text-align: center; padding: 6px 8px; border-radius: 6px; background: var(--card2); border: 1px solid var(--edge); }
.orow span:first-child { text-align: left; color: var(--ink2); font-size: 14px; }
.orow span:not(:first-child) { font: 900 extra-condensed 30px/1 var(--head); }
.orow.head { background: none; border: 0; padding: 0 8px; }
.orow.head span { font: 500 13px var(--font) !important; color: var(--muted); }
.orow.dim span:not(:first-child) { color: var(--ink2); font-size: 18px; }
.mstats { display: grid; gap: 8px; }
.mrow { display: grid; grid-template-columns: 56px 1fr 56px; align-items: center; row-gap: 3px; }
.mrow > span { font: 800 16px var(--num); }
.mrow > span:last-of-type { text-align: right; }
.mrow > small { text-align: center; color: var(--muted); font-size: 13px; }
.mbar { grid-column: 1 / -1; display: flex; gap: 3px; height: 7px; }
.mbar i { border-radius: 1px; background: var(--line); }
.mbar i.h.ahead { background: var(--seq); }
.mbar i.a.ahead { background: #c2410c; }
.lineups { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
@media (max-width: 640px) {
  .lineups { grid-template-columns: 1fr; }
}
.lu-h { margin-bottom: 6px; }
.halfpitch { border-radius: var(--r); padding: 10px 4px; border: 1px solid var(--edge);
  background: repeating-linear-gradient(180deg, var(--card) 0 34px, var(--card2) 34px 68px); display: flex; flex-direction: column; gap: 10px; }
.prow { display: flex; justify-content: space-around; }
/* five in a row didn't fit a half-width card at 1024px: they share the row rather than poke out of it */
.pp { display: flex; flex-direction: column; align-items: center; flex: 0 1 64px; min-width: 0; text-align: center; }
.pp .sh { width: 28px; height: 28px; border-radius: 50%; background: var(--card); color: var(--ink); border: 1px solid var(--edge); display: grid; place-items: center; font: 800 12px var(--num); }
.pp .pn { font-size: 12px; font-weight: 700; line-height: 1.3; margin-top: 3px; background: var(--ink); color: var(--bg); padding: 1px 5px; border-radius: 5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp .pm { font-size: 11px; min-height: 13px; }
.bench2 { font-size: 13px; margin-top: 6px; line-height: 1.6; overflow-wrap: anywhere; }
.bench2 .on { color: var(--ink); }
ul.tline { list-style: none; margin: 0; padding: 0; }
.tline li { display: grid; grid-template-columns: 52px 1fr auto; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 14px; }
.tline .tm { font: 800 14px var(--num); color: var(--muted); }
.tline li.gl { font-weight: 600; }
.tline li.a { background: linear-gradient(90deg, transparent, rgba(194,65,12,.08)); }
.tline li.h { background: linear-gradient(90deg, rgba(57,135,229,.08), transparent); }
.rcard { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rcard > div { background: var(--card2); border: 1px solid var(--edge); border-radius: 6px; padding: 10px; }
.rcard small { display: block; color: var(--muted); font: 700 10.5px var(--num); text-transform: uppercase; letter-spacing: .04em; }
.rcard b { display: block; font-size: 15px; margin: 2px 0; }
.posbars { display: flex; gap: 3px; align-items: flex-end; height: 110px; margin: 14px 0 22px; }
.posbars > div { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; position: relative; }
.posbars span { background: color-mix(in srgb, var(--muted) 45%, var(--card)); min-height: 1px; }
.posbars span.top { background: var(--seq); }
.posbars span.rel { background: var(--bad); }
.posbars small { position: absolute; bottom: -17px; left: 0; right: 0; text-align: center; font: 600 10px var(--num); color: var(--muted); }
svg.xgchart { width: 100%; height: auto; display: block; }
.xgchart .xf { fill: var(--seq); }
.xgchart .xa { fill: #c2410c; }
.xgchart .gdot { fill: var(--ink); stroke: var(--card); stroke-width: 2; }
.xgchart text { fill: var(--muted); font: 600 10px var(--num); }
.dual { display: flex; flex-direction: column; gap: 3px; }
.dual i { height: 7px; border-radius: 1px; min-width: 2px; }
.dual .g { background: var(--seq); }
.dual .x { background: #7c8b84; }
.tape td, .tape th { text-align: center; }
.tape td.c, .tape th.c { color: var(--muted); font-size: 13px; }
.tape td.win { font-weight: 800; }
.tape { table-layout: fixed; }
.tape td, .tape th { padding: 8px 4px; }
.tape .form.mini span { width: 15px; height: 15px; font-size: 10px; }
.clubgrid > div { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.newsbox { margin-top: 16px; }
.newshead { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.newshead { border-bottom: 1px solid var(--edge); padding-bottom: 9px; }
.newshead h3 { margin: 0; padding: 0; border: 0; }
.newshead .srcs { margin: 0; }
.talkby { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; }
.talkby .chip small { opacity: .7; }
ul.newsgrid { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.newsgrid li { background: var(--card); border: 1px solid var(--edge); border-radius: var(--r); overflow: hidden; box-shadow: var(--drop-sm); transition: transform .1s, box-shadow .1s; }
.newsgrid li:hover { transform: translate(-2px, -2px); box-shadow: 0 0 0 2px var(--accent), var(--drop-sm); }
.newsgrid a { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.newsgrid img, .newsgrid .noimg { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: grid; place-items: center; font-size: 32px; background: var(--card2); border-bottom: 1px solid var(--edge); }
.newsgrid .nt { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; flex: 1; }
.newsgrid .nt b { line-height: 1.3; font-size: 15.5px; font-weight: 800; }
.newsgrid .ns { color: var(--ink2); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.newsgrid small { color: var(--muted); font-size: 13px; margin-top: auto; }
@media (min-width: 760px) {
  .newsgrid li.nlead { grid-column: span 2; grid-row: span 2; }
  .newsgrid li.nlead .nt b { font: 900 extra-condensed 34px/1 var(--head); text-transform: uppercase; }
  .newsgrid li.nlead .ns { -webkit-line-clamp: 4; font-size: 15px; }
}
.newsfoot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
@media (max-width: 759px) {
  .newsgrid { gap: 10px; }
  .newsgrid li:not(.nlead) a { flex-direction: row; }
  .newsgrid li:not(.nlead) img, .newsgrid li:not(.nlead) .noimg { width: 108px; flex: none; aspect-ratio: 4 / 3; }
  .newsgrid li:not(.nlead) .ns { display: none; }
  .newsgrid li:not(.nlead) .nt { padding: 10px 12px; }
  .newsgrid li:not(.nlead) .nt b { font-size: 14.5px; }
}
.memo, .side, .clubgrid > div { gap: 14px; }
.newsbox { margin-top: 0; }
@media (min-width: 1300px) {
  .cg-news ul.newsgrid { grid-template-columns: repeat(3, 1fr); }
}
ul.newsgrid { grid-auto-flow: row dense; }
@media (min-width: 760px) {
  .newsgrid li.nlead img { aspect-ratio: auto; flex: 1 1 auto; min-height: 220px; height: 0; }
  .newsgrid li.nlead .nt { flex: none; }
}
svg.shotmap, svg.momentum { width: 100%; height: auto; display: block; }
.shotmap .pitchbg { fill: var(--card2); }
.shotmap .pl { stroke: color-mix(in srgb, var(--ink) 30%, transparent); stroke-width: 1.5; }
.shotmap text, .momentum text { fill: var(--muted); font: 600 11px var(--num); }
.ratings .rt { display: inline-block; min-width: 40px; padding: 2px 6px; border-radius: 6px; font: 800 13px var(--num); color: #fff;
  background: color-mix(in srgb, var(--seq) calc(var(--r) * 100%), #3a3d3b); }
.squadt td { white-space: nowrap; }
.squadt { font-size: 13px; }
.squadt td, .squadt th { padding: 6px 5px; }
.squadt td.small { max-width: 90px; overflow: hidden; text-overflow: ellipsis; }
/* the club hub: the page script (views/clubs.js) sorts the boxes into columns (.ccol) */
.clubgrid { display: grid; gap: 14px; grid-template-columns: 1fr; grid-template-areas: none; align-items: start; }
.ccol { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ccol > .cg-mc, .ccol > .cg-tn, .ccol > .cg-fx, .ccol > .cg-news { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
@media (max-width: 899px) {
  .ccol { display: contents; }
  .cg-mc { order: 1; }
  .cg-tn { order: 2; }
  .cg-fx { order: 3; }
  .cg-news { order: 4; }
}
@media (min-width: 900px) and (max-width: 1299px) {
  .clubgrid, .clubgrid[class] { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .ccol.c1 { grid-column: 1; grid-row: 1 / span 2; }
  .ccol.c2 { grid-column: 2; grid-row: 1; }
  .ccol.c3 { grid-column: 2; grid-row: 2; }
}
@media (min-width: 1300px) {
  .clubgrid, .clubgrid[class] { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); }
  .cg-news ul.newsgrid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}
@media (max-width: 899px) {
  .mv-c2 { order: 5; }
}
.tape td.win { color: var(--good); }
@media (max-width: 899px) {
  .clubgrid > .ccol { display: contents; }
}
