/* Sport hubs and team pages (Phase 2). Values follow boards 4, 5 and the team states on the design canvas. */
.card { background: #FFFFFF; border: 1px solid var(--line); border-radius: 20px; }
.bar { display: block; height: 8px; border-radius: 4px; background: var(--gold); overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--blue); }

/* ---- sport hub ---- */
.hub-hero { position: relative; overflow: hidden; color: #FFFFFF; background: linear-gradient(90deg, #003A68 0%, #004A82 50%, #005A9C 100%); }
.hub-hero::after { content: ""; position: absolute; right: -120px; top: -160px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(245,165,36,0.28), rgba(245,165,36,0) 65%); pointer-events: none; }
.hub-hero .wrap { position: relative; z-index: 1; padding-top: 64px; padding-bottom: 68px; display: flex; flex-direction: column; gap: 14px; }
.hub-hero h1 { margin: 0; font-size: 52px; line-height: 1.05; font-weight: 600; letter-spacing: -0.025em; }
.hub-hero p { margin: 0; font-size: 18px; color: #DCE7F2; max-width: 720px; }
.hubpage { padding-top: 24px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 16px; }
.hub-bar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: center; }
.sw2 { display: flex; padding: 3px; border-radius: 12px; background: #E8EBEF; justify-self: start; }
.sw2 button { min-height: 38px; padding: 0 20px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-2); font-size: 15px; font-weight: 500; cursor: pointer; }
.sw2 button[aria-pressed="true"] { background: #FFFFFF; color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(11,27,46,0.12); }
.hub-filter { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: #FFFFFF; }
.hub-filter:focus-within { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.hub-filter input { border: 0; outline: none; font-size: 15px; width: 100%; min-width: 0; background: transparent; }
.hub-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 84px; gap: 12px; }
.hub-grid[hidden], .team[hidden] { display: none; }
.team { display: flex; align-items: center; gap: 14px; height: 100%; padding: 14px 18px; border-radius: 18px; background: #FFFFFF; border: 1px solid var(--line); text-decoration: none; color: var(--ink) !important; }
.team:hover { border-color: var(--blue); box-shadow: 0 2px 8px rgba(0,30,60,0.10); }
.team .logo { width: 48px; height: 48px; flex: none; object-fit: contain; display: block; }
.team .logos { position: relative; width: 48px; height: 48px; flex: none; }
.team .logos img { width: 48px; height: 48px; object-fit: contain; display: block; }
.team .nologo { width: 100%; height: 100%; border-radius: 999px; background: var(--grey); color: var(--blue); display: flex; align-items: center; justify-content: center; }
/* two clubs share a stadium: two smaller logos on a diagonal, inside the same 48 px slot */
.team .logos.duo img { position: absolute; width: 32px; height: 32px; padding: 2px; border-radius: 999px; background: #FFFFFF; }
.team .logos.duo img:first-child { left: 0; top: 0; }
.team .logos.duo img:last-child { right: 0; bottom: 0; }
.team .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.team .nm { font-size: 17px; font-weight: 600; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.team .sb { font-size: 13px; line-height: 1.35; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.roof { display: inline-flex; align-items: center; min-height: 24px; padding: 0 9px; border-radius: 999px; border: 1px solid #BFD3E6; color: var(--blue); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; flex: none; }
.hub-none { color: var(--ink-2); }

/* ---- team page ---- */
.thero { position: relative; overflow: hidden; color: #FFFFFF; background: linear-gradient(90deg, #0B1B2E 0%, #0E2A48 55%, #004A82 100%); }
.thero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thero .shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,27,46,0.9) 0%, rgba(11,27,46,0.74) 48%, rgba(11,27,46,0.4) 100%); }
.thero-art { position: absolute; right: -80px; top: -140px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(245,165,36,0.26), rgba(245,165,36,0) 65%); }
.thero .wrap { position: relative; padding-top: 28px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 20px; }
.crumb { font-size: 14px; color: #C9D3E0; }
.crumb a { color: #FFFFFF !important; }
.tid { display: flex; align-items: center; gap: 18px; }
.tlogo-lg { width: 80px; height: 80px; flex: none; border-radius: 999px; background: #FFFFFF; display: flex; align-items: center; justify-content: center; }
.tlogo-lg img { width: 58px; height: 58px; object-fit: contain; }
.tid h1 { margin: 0; font-size: 48px; line-height: 1.05; font-weight: 600; letter-spacing: -0.025em; }
.tid p { margin: 4px 0 0; font-size: 17px; color: #DCE7F2; }
.tid p a { color: #FFFFFF !important; text-underline-offset: 3px; }
.tbody { padding-top: 24px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 24px; }
.tcols { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.tcal { flex: 3 1 640px; min-width: 0; padding: 24px; }
.month { display: flex; flex-direction: column; gap: 16px; }
.month[hidden], .month-side[hidden] { display: none; }
.mhead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.mnav { display: flex; align-items: center; gap: 12px; }
.mnav h2 { margin: 0; font-size: 26px; font-weight: 600; min-width: 190px; }
.arrows { display: flex; gap: 6px; }
.arr { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-2); background: #FFFFFF; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--ink); }
.arr:disabled { opacity: 0.35; cursor: default; }
.segs { display: flex; gap: 6px; flex-wrap: wrap; }
.seg { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: #FFFFFF; color: var(--ink); font-size: 14px; cursor: pointer; }
.seg-on { border-color: var(--ink); background: var(--ink); color: #FFFFFF; font-weight: 600; }
.mnote { margin: 0; font-size: 14px; color: var(--ink-2); }
.dow, .grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.dow { font-family: 'DM Mono', ui-monospace, monospace; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); text-align: center; }
.cell { min-height: 96px; padding: 9px; border-radius: 12px; display: flex; flex-direction: column; gap: 3px; text-align: left; min-width: 0; text-decoration: none; color: var(--ink) !important; }
.cell.blank { padding: 0; }
.cell.offday { background: var(--grey-2); }
.cell.offday .cday { font-weight: 500; color: #6B7B8F; }
.cell.game { border: 1px solid var(--line); background: #FFFFFF; }
.cell.game.away { border-style: dashed; border-color: #A3AEBC; }
a.cell.game:hover { border-color: var(--blue); box-shadow: 0 2px 8px rgba(0,30,60,0.10); }
.cell.past { opacity: 0.5; }
.cell.dim { opacity: 0.25; pointer-events: none; }
.ctop { display: flex; justify-content: space-between; align-items: baseline; gap: 4px; height: 22px; }
.cday { font-size: 15px; font-weight: 600; line-height: 22px; }
.ctime { font-family: 'DM Mono', ui-monospace, monospace; font-size: 12px; color: var(--ink-2); line-height: 22px; }
.copp { font-size: 12px; color: var(--ink-2); line-height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cell .bar { margin-top: auto; }
.bar.tba { background: repeating-linear-gradient(135deg, #E2E5EA 0 6px, #F4F5F7 6px 12px); }
.cfoot { font-size: 12px; color: var(--ink-2); white-space: nowrap; line-height: 18px; }
.cfoot.muted { margin-top: auto; color: #6B7B8F; }
.grid-wrap { position: relative; }
.grid-wrap.off .grid { opacity: 0.45; }
.offcard { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px; }
.offcard > div { max-width: 420px; padding: 24px 28px; border-radius: 16px; background: #FFFFFF; border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(0,30,60,0.10); display: flex; flex-direction: column; gap: 6px; text-align: center; }
.offcard p { margin: 0; font-size: 15px; color: var(--ink-2); }
.offcard p.t { font-size: 20px; font-weight: 600; color: var(--ink); }
.undated { margin: 16px 0 0; font-size: 14px; color: var(--ink-2); }
.none-match { margin: 0; font-size: 14px; color: var(--ink-2); }

.tside { flex: 1 1 320px; min-width: 0; padding: 24px; }
.month-side { display: flex; flex-direction: column; gap: 18px; }
.side-title { margin: 0 0 18px; font-size: 24px; font-weight: 600; }
.starts { display: flex; flex-direction: column; gap: 6px; }
.starts .sh { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.starts .sh span + span { font-size: 13px; font-weight: 400; color: var(--ink-2); }
.stt { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: #FFFFFF; font-size: 14px; font-family: inherit; color: var(--ink); cursor: pointer; text-align: left; width: 100%; }
.stt:hover { border-color: #A3AEBC; }
.stt[aria-checked="true"] { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue), 0 2px 8px rgba(0,30,60,0.12); }
.stt[aria-checked="true"] .pc { color: var(--ink); font-weight: 600; }
.side-map { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.side-map .mapbox { border-radius: 12px; background: var(--grey); padding: 8px; min-height: 160px; }
.player.sm { padding: 0; background: transparent; gap: 10px; }
.player.sm .play { width: 40px; height: 40px; }
.pl-ends { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-2); }
.stt .mono { font-size: 13px; width: 64px; flex: none; }
.stt .bar { flex: 1; }
.stt .pc { width: 40px; text-align: right; color: var(--ink-2); }
.fine { margin: 2px 0 0; font-size: 12px; color: var(--ink-2); }
.bestlist { display: flex; flex-direction: column; }
.bh { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.best { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.best > span { flex: 1; display: flex; flex-direction: column; }
.best > span span { font-size: 13px; color: var(--ink-2); }
.tix { flex: none; display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 10px; background: var(--ink); color: #FFFFFF !important; font-size: 14px; font-weight: 600; text-decoration: none; }
.side-link { font-weight: 600; font-size: 15px; }

.gear { border-top: 1px solid var(--line-2); margin-top: 16px; padding-top: 32px; display: flex; flex-direction: column; gap: 20px; }
.gear[hidden] { display: none; }
.gear-head h2 { margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -0.015em; }
.merch-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.merch { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--ink) !important; }
.merch-img { aspect-ratio: 1; border-radius: 16px; background: #FFFFFF; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.merch-img img { width: 86%; height: 86%; object-fit: contain; }
.mname { font-size: 14px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mprice { font-size: 13px; color: var(--ink-2); }

@media (max-width: 760px) {
  .hub-hero h1, .tid h1 { font-size: 30px; line-height: 1.12; letter-spacing: -0.02em; }
  .hub-hero p { font-size: 16px; }
  .hub-hero .wrap { padding-top: 36px; padding-bottom: 40px; }
  .hub-bar { grid-template-columns: 1fr; }
  .hub-bar > span { display: none; }
  .hub-grid { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; gap: 0; }
  .team { padding: 10px 0; border: 0; border-radius: 0; border-bottom: 1px solid var(--line); background: transparent; gap: 12px; }
  .team .logo, .team .logos, .team .logos img { width: 36px; height: 36px; }
  .team .logos.duo img { width: 24px; height: 24px; }
  .team .nm { font-size: 16px; }
  .roof { font-size: 10px; min-height: 22px; padding: 0 8px; }
  .tlogo-lg { width: 56px; height: 56px; }
  .tlogo-lg img { width: 40px; height: 40px; }
  .thero .wrap { padding-top: 22px; padding-bottom: 24px; gap: 14px; }
  .tid p { font-size: 15px; }
  .tcal, .tside { padding: 16px; }
  .tcols { gap: 16px; }
  .mnav h2 { font-size: 20px; min-width: 0; }
  .segs { flex-wrap: nowrap; overflow-x: auto; margin-right: -16px; padding-right: 16px; scrollbar-width: none; width: calc(100% + 16px); }
  .seg { flex: none; white-space: nowrap; }
  .grid, .dow { gap: 4px; }
  .dow { font-size: 9.5px; }
  .cell { min-height: 54px; height: 54px; padding: 6px 4px; gap: 6px; border-radius: 10px; }
  .cell .ctime, .cell .copp, .cell .cfoot { display: none; }
  .cell .cday { font-size: 14px; }
  .merch-row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 136px; overflow-x: auto; margin-right: -16px; padding-right: 16px; scrollbar-width: none; }
  .merch-img { border-radius: 12px; }
}
