:root {
  --sky: #63c8f4;
  --sky-bright: #8bdefc;
  --sky-dark: #078dcc;
  --sky-soft: #eaf8fe;
  --navy: #051f4a;
  --navy-2: #082e63;
  --ink: #071c35;
  --paper: #f4f9fc;
  --white: #fff;
  --muted: #607488;
  --line: #cddfe8;
  --win: #078561;
  --draw: #ae7500;
  --loss: #c72e47;
  --yellow: #f2c94c;
  --shadow: 0 18px 48px rgba(4, 31, 70, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 7% 28%, rgba(99, 200, 244, .17), transparent 28rem),
    linear-gradient(180deg, #effaff 0, var(--paper) 62rem);
  font-family: Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid #ffcf33; outline-offset: 3px; }
a { color: inherit; }
[hidden] { display: none !important; }

.masthead {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 0, rgba(255,255,255,.38), transparent 28rem),
    linear-gradient(135deg, #7dd6fa 0%, var(--sky) 55%, #48b7ec 100%);
}
.masthead::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .12;
  background-image:
    linear-gradient(45deg, var(--navy) 25%, transparent 25%, transparent 75%, var(--navy) 75%),
    linear-gradient(45deg, var(--navy) 25%, transparent 25%, transparent 75%, var(--navy) 75%);
  background-position: 0 0, 18px 18px;
  background-size: 36px 36px;
  mask-image: linear-gradient(90deg, transparent 35%, #000 100%);
}
.masthead__inner {
  position: relative;
  z-index: 1;
  width: min(1220px, calc(100% - 40px));
  min-height: 88px;
  margin: auto;
  padding: 8px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand { width: min(500px, 62vw); display: block; }
.brand img { width: 100%; height: auto; display: block; filter: drop-shadow(0 4px 0 rgba(255,255,255,.18)); }
.masthead .masthead-title {
  flex: 0 1 auto;
  margin: 0;
  color: var(--navy);
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: clamp(2rem, 4vw, 4.75rem);
  line-height: 1;
  letter-spacing: -.01em;
  text-align: right;
  text-transform: uppercase;
  white-space: nowrap;
}
.masthead .masthead-title em { color: white; font-style: normal; -webkit-text-stroke: 1px rgba(5,31,74,.72); text-shadow: 0 2px 0 rgba(5,31,74,.55); }
.private-pill {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(5,31,74,.18);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  color: var(--navy);
  background: rgba(255,255,255,.78);
  box-shadow: 0 8px 24px rgba(4,31,70,.09);
  font-size: .75rem;
  font-weight: 800;
}
.private-pill span { width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--win); box-shadow: 0 0 0 4px rgba(7,133,97,.12); }

.last-ribbon { color: white; background: linear-gradient(90deg, var(--navy), #07336d 62%, var(--navy)); box-shadow: 0 7px 20px rgba(5,31,74,.18); }
.last-ribbon > div { width: min(1220px, calc(100% - 40px)); min-height: 52px; margin: auto; display: flex; align-items: center; gap: 16px; font-family: "Barlow Condensed", Impact, sans-serif; text-transform: uppercase; }
.last-ribbon i { width: 13px; height: 13px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 18px rgba(99,200,244,.65); }
.last-ribbon strong { color: var(--sky); font-size: 1rem; letter-spacing: .3em; }
.last-ribbon span { width: 1px; height: 26px; background: rgba(255,255,255,.36); }
.last-ribbon b { min-width: 0; font-size: .9rem; line-height: 1.3; letter-spacing: .01em; text-transform: none; }

.scoreboard {
  position: relative;
  overflow: hidden;
  padding: 8px max(20px, calc((100% - 1220px) / 2)) 0;
  color: var(--navy);
  background:
    linear-gradient(90deg, rgba(255,255,255,.12) 50%, transparent 50%) 0 0 / 28px 14px,
    linear-gradient(135deg, #79d4f8 0%, var(--sky) 56%, #4eb9ec 100%);
}
.scoreboard::after { content: "26/27"; position: absolute; right: -25px; bottom: -72px; color: rgba(255,255,255,.18); font: 800 14rem/1 "Barlow Condensed", Impact, sans-serif; letter-spacing: -.05em; }
.scoreboard__intro { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr); }
.eyebrow { margin: 0 0 10px; color: var(--navy); font-size: .75rem; line-height: 1; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
h1, h2 { font-family: "Barlow Condensed", Impact, sans-serif; }
h1 { margin: 0; font-size: clamp(3.2rem, 6.7vw, 5.8rem); line-height: .88; letter-spacing: -.025em; text-transform: uppercase; white-space: nowrap; }
h1 em { display: inline; color: white; font-style: normal; -webkit-text-stroke: 1px rgba(5,31,74,.72); text-shadow: 0 3px 0 rgba(5,31,74,.65); }
.standfirst { max-width: none; margin: 20px 0 0; color: #0a3962; font-size: .95rem; line-height: 1.6; font-weight: 650; }

.view-tabs { position: relative; z-index: 2; margin-top: 6px; display: flex; gap: 7px; }
.view-tabs button { min-height: 48px; padding: 0 22px; border: 1px solid rgba(5,31,74,.22); border-bottom: 0; border-radius: 10px 10px 0 0; color: #164568; background: rgba(255,255,255,.48); font-size: .85rem; font-weight: 800; }
.view-tabs button.is-active { color: var(--navy); background: var(--paper); box-shadow: inset 0 4px var(--navy); }
.view-tabs span { min-width: 23px; margin-left: 7px; padding: 2px 7px; border-radius: 999px; color: white; background: var(--navy); font-size: .68rem; }

.workspace { width: min(1220px, calc(100% - 40px)); margin: auto; padding: 32px 0 68px; }
.control-bar { margin-bottom: 24px; padding: 17px; border: 1px solid var(--line); border-radius: 12px; display: grid; grid-template-columns: 230px auto; gap: 16px 22px; align-items: end; background: rgba(255,255,255,.82); box-shadow: 0 10px 28px rgba(4,31,70,.06); }
.select-wrap, .search-field, .segmented-wrap { display: grid; gap: 7px; }
.select-wrap > span, .search-field > span:first-child, .segmented-wrap > span { color: #536b80; font-size: .7rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
select, input { min-height: 46px; border: 1px solid #a9c5d3; border-radius: 8px; color: var(--navy); background-color: white; }
select { width: 100%; padding: 0 42px 0 13px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m6 8 4 4 4-4' fill='none' stroke='%23051f4a' stroke-width='1.7'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; font-size: .875rem; font-weight: 700; }
.segmented { min-height: 46px; padding: 4px; border: 1px solid #a9c5d3; border-radius: 8px; display: flex; background: white; }
.segmented button { min-width: 68px; padding: 0 15px; border: 0; border-radius: 5px; color: #587086; background: transparent; font-size: .8rem; font-weight: 800; }
.segmented button.is-active { color: white; background: var(--navy); }
.control-note { align-self: center; justify-self: end; margin: 19px 0 0; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .75rem; line-height: 1.4; }

.record-grid { margin-bottom: 24px; display: grid; grid-template-columns: 1.2fr repeat(3, 1fr) 1.45fr 1.3fr; border: 1px solid rgba(5,31,74,.15); border-radius: 12px; overflow: hidden; color: white; background: var(--navy); box-shadow: var(--shadow); }
.record-grid article { min-height: 118px; padding: 18px 15px; border-right: 1px solid rgba(255,255,255,.13); display: grid; align-content: center; text-align: center; }
.record-grid article:last-child { border-right: 0; }
.record-grid span { margin-bottom: 4px; color: var(--sky-bright); font-size: .67rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.record-grid strong { font: 800 2.6rem/1 "Barlow Condensed", Impact, sans-serif; }
.record-grid small { margin-top: 6px; color: #bdd7e6; font-size: .68rem; }
.record-card--played { background: linear-gradient(145deg, #0a3b76, #082b5c); }
.record-card--goals { background: linear-gradient(145deg, #0a3b76, #082b5c); }
.record-card--goals strong { color: var(--sky-bright); }
.record-card--difference strong.negative { color: #ff7186; }
.result-dot { width: 9px; height: 9px; justify-self: center; border-radius: 50%; }
.result-dot--win { background: #42d6a5; }
.result-dot--draw { background: #f2c94c; }
.result-dot--loss { background: #ff6880; }

.team-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, .75fr); gap: 24px; align-items: start; }
.panel { border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.9); box-shadow: 0 12px 34px rgba(4,31,70,.07); }
.panel__head { min-height: 88px; padding: 20px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.panel__head .eyebrow { margin-bottom: 6px; }
.panel h2 { margin: 0; color: var(--navy); font-size: 1.8rem; line-height: 1; text-transform: uppercase; }
.legend { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .67rem; font-weight: 700; }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.source-mark, .verified-mark, .archive-mark, .calc-mark, .uncertain-mark { flex: 0 0 auto; display: inline-grid; place-items: center; font-style: normal; font-weight: 900; }
.source-mark { min-width: 24px; height: 24px; padding: 0 4px; border-radius: 4px; color: white; font-size: .6rem; }
.source-mark--cc0 { background: var(--win); }
.source-mark--share { background: #6e4ba8; }
.calc-mark { width: 24px; height: 24px; border-radius: 50%; color: white; background: var(--sky-dark); }
.verified-mark { width: 22px; height: 22px; border-radius: 50%; color: white; background: var(--win); }
.archive-mark, .uncertain-mark { width: 22px; height: 22px; border-radius: 50%; color: var(--navy); background: var(--yellow); }

.form-strip { min-height: 50px; padding: 10px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px; background: #f6fbfd; }
.form-strip::before { content: "Form"; margin-right: 3px; color: var(--muted); font-size: .65rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.form-pill { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 5px; color: white; font: 800 .72rem/1 Inter, sans-serif; }
.form-pill--W { background: var(--win); }
.form-pill--D { background: var(--draw); }
.form-pill--L { background: var(--loss); }
.match-row { min-height: 93px; padding: 15px 22px; border-bottom: 1px solid #e2edf2; display: grid; grid-template-columns: 96px minmax(0, 1fr) 86px; gap: 15px; align-items: center; }
.match-row:last-child { border-bottom: 0; }
.match-date time { display: block; color: var(--navy); font-size: .76rem; font-weight: 800; }
.match-date span { display: block; margin-top: 4px; color: var(--muted); font-size: .67rem; }
.match-teams { min-width: 0; }
.match-teams strong { display: block; color: var(--navy); font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.match-reaction { display: inline-block; margin-top: 7px; color: #0877ad; font-size: .68rem; font-weight: 800; text-decoration: underline; text-underline-offset: 2px; }
.match-reaction:hover { color: var(--navy); }
.match-teams p { margin: 5px 0 0; display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: .68rem; }
.match-teams a { color: #285d83; font-weight: 700; text-underline-offset: 2px; }
.match-score { text-align: center; }
.match-score strong { display: block; color: var(--navy); font: 800 1.75rem/1 "Barlow Condensed", sans-serif; }
.match-score span { display: inline-block; margin-top: 5px; padding: 3px 7px; border-radius: 4px; color: white; font-size: .58rem; font-weight: 900; letter-spacing: .08em; }
.match-score span[data-result="W"] { background: var(--win); }
.match-score span[data-result="D"] { background: var(--draw); }
.match-score span[data-result="L"] { background: var(--loss); }
.match-row > .source-mark { justify-self: end; }

.content-panel { padding: 22px; position: sticky; top: 20px; }
.content-panel h2 { margin-bottom: 18px; }
.angle-list { display: grid; gap: 10px; }
.angle { padding: 14px; border: 1px solid #dceaf0; border-left: 4px solid var(--sky-dark); border-radius: 8px; background: #f7fcfe; }
.angle span { display: block; color: var(--muted); font-size: .64rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.angle strong { display: block; margin-top: 5px; color: var(--navy); font-size: .85rem; line-height: 1.45; }
.coverage-caution { margin: 18px 0 0; padding-top: 18px; border-top: 1px solid var(--line); display: flex; gap: 9px; color: var(--muted); font-size: .7rem; line-height: 1.5; }

.player-controls { grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(165px, .7fr)); }
.search-box { position: relative; display: block; }
.search-box svg { position: absolute; left: 13px; top: 13px; width: 19px; height: 19px; fill: none; stroke: #648095; stroke-width: 1.8; }
.search-box input { width: 100%; padding: 0 13px 0 42px; font-size: .875rem; }
.source-status { margin-bottom: 24px; padding: 12px 16px; border: 1px solid #c8dce6; border-radius: 9px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; color: #50697d; background: #eef8fc; font-size: .72rem; font-weight: 650; }
.source-status span { display: inline-flex; align-items: center; gap: 7px; }
.source-status button { margin-left: auto; padding: 0; border: 0; color: var(--navy); background: none; font-size: .7rem; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.players-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .65fr); gap: 24px; align-items: start; }
.player-table-panel { overflow: hidden; }
.panel__head small { color: var(--muted); font-size: .68rem; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { padding: 11px 14px; color: #587086; background: #f3f9fc; font-size: .64rem; font-weight: 800; letter-spacing: .08em; text-align: center; text-transform: uppercase; }
th:first-child { text-align: left; }
td { padding: 13px 14px; border-top: 1px solid #e2edf2; color: #34536b; font-size: .78rem; text-align: center; }
td:first-child { min-width: 210px; text-align: left; }
.player-row { cursor: pointer; }
.player-row:hover { background: #f2faff; }
.player-row.is-selected { background: #e6f7ff; box-shadow: inset 4px 0 var(--sky-dark); }
.player-row:focus-visible { outline: 3px solid #ffcf33; outline-offset: -3px; }
.player-identity { display: flex; align-items: center; gap: 11px; }
.player-identity__copy { display: grid; justify-items: start; gap: 4px; }
.shirt-number { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 6px; color: white; background: var(--navy); font: 800 1rem/1 "Barlow Condensed", sans-serif; }
.player-identity strong { color: var(--navy); font-size: .82rem; }
.player-status { padding: 2px 5px; border-radius: 3px; color: #587086; background: #edf4f7; font-size: .53rem; font-weight: 850; letter-spacing: .05em; line-height: 1.2; text-transform: uppercase; }
.player-status--missing { color: #775b00; background: #fff3bf; }
.pos-chip { display: inline-block; min-width: 30px; padding: 4px 5px; border-radius: 4px; color: var(--navy); background: #dff3fb; font-size: .62rem; font-weight: 900; }
.zero { color: #9aadb9; }
.unavailable { color: #8b6e16; font-weight: 800; }
.card-count { display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
.card { width: 8px; height: 12px; border-radius: 1px; display: inline-block; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.card--yellow { background: var(--yellow); }
.card--red { background: var(--loss); }

.player-card { position: sticky; top: 20px; overflow: hidden; min-height: 420px; padding: 92px 24px 24px; border: 1px solid rgba(5,31,74,.15); border-radius: 13px; color: white; background: linear-gradient(150deg, #0a3973, var(--navy) 55%, #04152f); box-shadow: 0 22px 52px rgba(4,31,70,.2); }
.player-card::before { content: "CCFC"; position: absolute; right: -24px; top: 18px; color: rgba(99,200,244,.1); font: 800 6.4rem/1 "Barlow Condensed", sans-serif; letter-spacing: -.06em; }
.player-card::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 12px; background: linear-gradient(90deg, var(--sky) 50%, white 50%) 0 0 / 24px 12px; }
.player-card__top { position: absolute; left: 24px; right: 24px; top: 32px; display: flex; align-items: center; justify-content: space-between; }
.player-card__top span { font: 800 2.4rem/1 "Barlow Condensed", sans-serif; color: var(--sky-bright); }
.player-card__top i { padding: 6px 8px; border: 1px solid rgba(255,255,255,.22); border-radius: 5px; color: white; background: rgba(255,255,255,.1); font-style: normal; font-size: .7rem; font-weight: 900; }
.player-card .eyebrow { color: var(--sky-bright); }
.player-card h2 { max-width: 260px; margin: 0; color: white; font-size: 2.7rem; line-height: .9; }
.player-card > p:not(.eyebrow):not(.player-card__note) { margin: 10px 0 0; color: #aac9db; font-size: .72rem; font-weight: 700; }
.player-card__stats { margin-top: 28px; display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid rgba(255,255,255,.15); border-radius: 8px; overflow: hidden; }
.player-card__stats div { min-height: 76px; border-right: 1px solid rgba(255,255,255,.15); display: grid; place-content: center; text-align: center; }
.player-card__stats div:last-child { border-right: 0; }
.player-card__stats strong { color: white; font: 800 1.8rem/1 "Barlow Condensed", sans-serif; }
.player-card__stats span { margin-top: 5px; color: #aac9db; font-size: .58rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.discipline { margin-top: 15px; display: flex; gap: 18px; color: #c4dbe7; font-size: .7rem; }
.discipline span { display: inline-flex; align-items: center; gap: 7px; }
.discipline strong { color: white; }
.player-card__note { margin: 23px 0 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); color: #aac9db; font-size: .68rem; line-height: 1.5; }
.mobile-player-dialog { width: min(520px, calc(100% - 28px)); max-height: calc(100dvh - 32px); padding: 72px 22px 24px; border: 1px solid rgba(255,255,255,.18); border-top: 0; border-radius: 14px; color: white; background: linear-gradient(150deg, #0a3973, var(--navy) 55%, #04152f); box-shadow: 0 28px 90px rgba(0,0,0,.55); }
.mobile-player-dialog::backdrop { background: rgba(2,16,38,.8); backdrop-filter: blur(4px); }
.mobile-player-dialog h2 { max-width: calc(100% - 10px); margin: 8px 0 0; color: white; font-size: 2.7rem; line-height: .92; text-transform: none; }
.mobile-player-dialog .eyebrow { margin: 0; color: var(--sky-bright); }
.mobile-player-dialog__top { position: absolute; left: 22px; right: 70px; top: 19px; display: flex; align-items: center; justify-content: space-between; }
.mobile-player-dialog__top strong { color: var(--sky-bright); font: 800 2.25rem/1 "Barlow Condensed", sans-serif; }
.mobile-player-dialog__top span { padding: 6px 8px; border: 1px solid rgba(255,255,255,.22); border-radius: 5px; background: rgba(255,255,255,.1); font-size: .7rem; font-weight: 900; }
.mobile-player-dialog__scope { margin: 10px 0 0; color: #aac9db; font-size: .72rem; font-weight: 700; }
.mobile-player-dialog__close { position: absolute; right: 15px; top: 15px; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; color: white; background: rgba(255,255,255,.12); display: grid; place-items: center; font-size: 1.55rem; line-height: 1; }

.schedule-status { margin-bottom: 18px; }
.next-fixture { position: relative; overflow: hidden; min-height: 150px; margin-bottom: 24px; padding: 22px 24px; border-radius: 13px; display: grid; grid-template-columns: 145px minmax(0, 1fr) auto; gap: 24px; align-items: center; color: white; background: linear-gradient(125deg, #0b417d, var(--navy) 60%, #04152f); box-shadow: var(--shadow); }
.next-fixture::after { content: "NEXT"; position: absolute; right: 220px; bottom: -35px; color: rgba(99,200,244,.09); font: 800 8rem/1 "Barlow Condensed", sans-serif; letter-spacing: -.05em; }
.next-fixture__date { align-self: stretch; padding-right: 22px; border-right: 1px solid rgba(255,255,255,.16); display: grid; align-content: center; }
.next-fixture__date span { color: var(--sky-bright); font-size: .65rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.next-fixture__date strong { max-width: 120px; margin-top: 7px; font: 800 1.75rem/.95 "Barlow Condensed", sans-serif; text-transform: uppercase; }
.next-fixture__main { position: relative; z-index: 1; min-width: 0; }
.next-fixture__main .eyebrow { color: var(--sky-bright); }
.next-fixture__main h2 { overflow: hidden; margin: 0; color: white; font-size: clamp(1.8rem, 3.4vw, 2.8rem); line-height: 1; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.next-fixture__main > p:last-child { margin: 10px 0 0; color: #bcd7e6; font-size: .76rem; }
.next-fixture__main > p strong { color: white; }
.next-fixture__source { position: relative; z-index: 1; min-width: 145px; display: grid; gap: 11px; justify-items: end; }
.next-fixture__source a { color: #c8e8f6; font-size: .7rem; font-weight: 800; text-underline-offset: 3px; }
.schedule-controls { grid-template-columns: 230px auto 1fr; }
.fixtures-panel, .league-panel { overflow: hidden; }
.fixtures-panel { width: 100%; }
.fixture-month { margin: 0; padding: 10px 18px; border-bottom: 1px solid #d7e6ed; color: var(--navy); background: #eaf7fc; font: 800 .78rem/1 "Barlow Condensed", sans-serif; letter-spacing: .09em; text-transform: uppercase; }
.fixture-row { min-height: 88px; padding: 15px 18px; border-bottom: 1px solid #e2edf2; display: grid; grid-template-columns: 105px minmax(0, 1fr); gap: 16px; align-items: center; }
.fixture-row:last-child { border-bottom: 0; }
.fixture-date time { display: block; color: var(--navy); font-size: .7rem; font-weight: 800; }
.fixture-date strong { display: block; margin-top: 5px; color: #234d6d; font: 800 1.2rem/1 "Barlow Condensed", sans-serif; }
.fixture-date strong span { color: var(--muted); font: 700 .57rem/1 Inter, sans-serif; }
.fixture-teams { min-width: 0; }
.fixture-teams > strong { display: block; overflow: hidden; color: var(--navy); font-size: .82rem; text-overflow: ellipsis; white-space: nowrap; }
.fixture-teams p { margin: 5px 0 0; color: var(--muted); font-size: .64rem; line-height: 1.4; }
.league-panel .panel__head { min-height: 88px; }
.league-panel .panel__head > a { color: #285d83; font-size: .66rem; font-weight: 800; text-underline-offset: 3px; }
.league-table th, .league-table td { padding: 10px 8px; font-size: .67rem; }
.league-table th:nth-child(2), .league-table td:nth-child(2) { min-width: 165px; text-align: left; }
.league-table td:first-child { min-width: 36px; text-align: center; }
.league-table tbody tr:nth-child(even) { background: #f8fcfe; }
.league-table tbody tr.is-coventry { color: var(--navy); background: #dff5fe; box-shadow: inset 4px 0 var(--sky-dark); }
.league-table tbody tr.is-coventry td { border-color: #bce5f6; }
.team-name--mobile { display: none; }
.sky-dot { width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; display: inline-block; background: var(--sky-dark); box-shadow: 0 0 0 3px rgba(7,141,204,.12); }
.table-note { margin: 0; padding: 13px 16px; border-top: 1px solid var(--line); color: var(--muted); background: #f4fafc; font-size: .62rem; line-height: 1.5; }

.empty-state { padding: 35px; color: var(--muted); text-align: center; font-size: .85rem; }
footer { min-height: 126px; padding: 24px max(20px, calc((100% - 1220px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 24px; color: white; background: var(--navy); }
footer strong { color: var(--sky-bright); font-family: "Barlow Condensed", sans-serif; font-size: 1.15rem; text-transform: uppercase; }
footer p { margin: 7px 0 0; color: #a9c8da; font-size: .72rem; line-height: 1.5; }
footer button { min-height: 42px; padding: 0 15px; border: 1px solid rgba(255,255,255,.25); border-radius: 7px; color: white; background: rgba(255,255,255,.08); font-size: .73rem; font-weight: 800; }

dialog { width: min(780px, calc(100% - 30px)); max-height: min(760px, calc(100vh - 32px)); padding: 30px; border: 0; border-top: 8px solid var(--sky); border-radius: 12px; color: var(--ink); background: white; box-shadow: 0 35px 100px rgba(0,0,0,.32); }
dialog::backdrop { background: rgba(2,16,38,.72); backdrop-filter: blur(4px); }
dialog h2 { margin: 0 0 23px; color: var(--navy); font-size: 2.6rem; line-height: 1; text-transform: uppercase; }
.dialog-close { position: absolute; right: 16px; top: 14px; width: 36px; height: 36px; border: 0; border-radius: 50%; color: var(--navy); background: #eaf5fa; font-size: 1.45rem; }
.method-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.method-grid article { padding: 15px; border: 1px solid #dce8ee; border-radius: 8px; display: flex; gap: 11px; background: #f8fcfe; }
.method-grid strong { color: var(--navy); font-size: .78rem; }
.method-grid p, .method-boundary p { margin: 4px 0 0; color: var(--muted); font-size: .7rem; line-height: 1.5; }
.method-boundary { margin-top: 15px; padding: 15px; border-left: 4px solid var(--yellow); background: #fff8df; }
.method-boundary strong { color: var(--navy); font-size: .76rem; }
.source-links { margin-top: 19px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.source-links a { padding: 12px 13px; border: 1px solid #bcd5e1; border-radius: 7px; color: #154e75; background: #f3fafe; font-size: .7rem; font-weight: 750; text-decoration: none; }
.source-links a:hover { background: #e4f5fc; }

@media (max-width: 900px) {
  .scoreboard__intro { grid-template-columns: 1fr; }
  .record-grid { grid-template-columns: repeat(3, 1fr); }
  .record-grid article:nth-child(3) { border-right: 0; }
  .record-grid article:nth-child(-n+3) { border-bottom: 1px solid rgba(255,255,255,.13); }
  .team-grid, .players-grid { grid-template-columns: 1fr; }
  .content-panel { position: static; }
  .player-card { display: none; }
  .player-card::after { content: none; display: none; }
  .control-bar, .player-controls { grid-template-columns: 1fr 1fr; }
  .control-note { grid-column: 1 / -1; justify-self: start; margin-top: 0; }
}

@media (max-width: 640px) {
  .masthead__inner { width: min(100% - 28px, 1220px); min-height: 72px; padding: 6px 0; }
  .brand { width: 70vw; }
  .masthead__inner { flex-wrap: wrap; gap: 8px; }
  .masthead .masthead-title { width: 100%; padding-bottom: 8px; font-size: 1.45rem; text-align: left; white-space: normal; }
  .private-pill { padding: 0 10px; font-size: .64rem; }
  .last-ribbon > div { width: min(100% - 28px, 1220px); min-height: 46px; }
  .last-ribbon b { font-size: .9rem; }
  .scoreboard { padding-top: 10px; }
  .scoreboard::after { font-size: 9rem; bottom: -42px; }
  h1 { font-size: clamp(3rem, 16vw, 4.5rem); }
  h1 { white-space: normal; }
  .view-tabs { width: 100%; margin-top: 0; gap: 4px; overflow: visible; }
  .view-tabs button { min-width: 0; flex: 1 1 0; padding: 0 5px; font-size: .72rem; }
  .view-tabs span { display: none; }
  .workspace { width: min(100% - 24px, 1220px); padding-top: 20px; }
  .control-bar, .player-controls { grid-template-columns: 1fr; }
  .record-grid { grid-template-columns: repeat(2, 1fr); }
  .record-grid article { min-height: 102px; }
  .record-grid article:nth-child(3) { border-right: 1px solid rgba(255,255,255,.13); }
  .record-grid article:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.13); }
  .record-grid article:nth-child(even) { border-right: 0; }
  .record-grid article:nth-child(-n+4) { border-bottom: 1px solid rgba(255,255,255,.13); }
  .panel__head { align-items: flex-start; flex-direction: column; }
  .match-row { grid-template-columns: 76px minmax(0, 1fr) 62px; gap: 10px; padding: 14px; }
  .match-row > .source-mark { display: none; }
  .match-teams strong { font-size: .8rem; }
  .match-teams p { display: block; line-height: 1.5; }
  .form-strip { padding-left: 14px; }
  .source-status { align-items: flex-start; flex-direction: column; gap: 10px; }
  .source-status button { margin-left: 0; }
  .next-fixture { grid-template-columns: 94px minmax(0, 1fr); gap: 16px; padding: 18px; }
  .next-fixture__date { padding-right: 14px; }
  .next-fixture__date strong { font-size: 1.35rem; }
  .next-fixture__main h2 { white-space: normal; }
  .next-fixture__source { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; }
  .fixture-row { grid-template-columns: 82px minmax(0, 1fr); padding: 13px; }
  td, th { padding-left: 10px; padding-right: 10px; }
  .league-scroll { overflow-x: visible; }
  .league-table { width: 100%; table-layout: fixed; }
  .league-table th, .league-table td { min-width: 0; padding: 8px 2px; font-size: .54rem; }
  .league-table th:first-child, .league-table td:first-child { width: 22px; min-width: 0; }
  .league-table th:nth-child(2), .league-table td:nth-child(2) { width: 88px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .league-table th:nth-child(n+3), .league-table td:nth-child(n+3) { width: 27px; }
  .team-name--full { display: none; }
  .team-name--mobile { display: inline; }
  .league-table .sky-dot { display: none; }
  .player-card { min-height: 390px; }
  footer { align-items: flex-start; flex-direction: column; }
  .method-grid, .source-links { grid-template-columns: 1fr; }
  dialog { padding: 25px 20px; }
}

@media (prefers-reduced-motion: no-preference) {
  .record-grid strong, .player-card__stats strong { transition: transform .18s ease; }
  .record-grid article:hover strong, .player-card__stats div:hover strong { transform: translateY(-2px); }
}

.table-view-switch { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.table-view-switch button { padding: 10px 18px; border: 1px solid #c8dce6; border-radius: 7px; color: var(--navy); background: white; font: 800 .78rem Inter, sans-serif; cursor: pointer; }
.table-view-switch button.is-active { border-color: var(--navy); color: white; background: var(--navy); }
.table-view-switch button:focus-visible { outline: 3px solid #ffcf33; outline-offset: 2px; }
.form-sequence { display: inline-flex; gap: 2px; white-space: nowrap; }
.form-sequence i { width: 15px; height: 15px; border-radius: 3px; display: inline-grid; place-items: center; color: white; font: normal 800 .55rem Inter, sans-serif; }
.form-sequence .form-pill--W { background: var(--win); }
.form-sequence .form-pill--D { background: var(--draw); }
.form-sequence .form-pill--L { background: var(--loss); }
.league-table .form-column[hidden] { display: none; }
@media (max-width: 640px) {
  .table-view-switch { gap: 5px; }
  .table-view-switch button { flex: 1 1 0; padding: 9px 3px; font-size: .7rem; }
  .league-table.has-form { min-width: 510px; table-layout: auto; }
  .league-scroll:has(.has-form) { overflow-x: auto; }
  .league-table.has-form th:nth-child(2), .league-table.has-form td:nth-child(2) { min-width: 88px; }
  .league-table.has-form .form-column { min-width: 82px; }
}

/* Match-log scorers: follow the existing compact match metadata typography. */
.match-scorers { margin-top: 5px; color: var(--muted); font-size: .72rem; line-height: 1.55; font-weight: 400; }
.match-scorers-team { margin: 1px 0; overflow-wrap: anywhere; }
.match-scorers-team strong { display: inline; color: var(--navy); font-size: inherit; font-weight: 700; white-space: normal; overflow: visible; text-overflow: clip; }

/* Readable, compact league tables on desktop: reserve space for names, not empty columns. */
@media (min-width: 641px) {
  .league-table { width: 100%; table-layout: fixed; }
  .league-table th, .league-table td { font-size: .88rem; padding: 11px 7px; }
  .league-table th:first-child, .league-table td:first-child { width: 5%; }
  .league-table th:nth-child(2), .league-table td:nth-child(2) { width: 18%; min-width: 0; text-align: left; }
  .league-table th:nth-child(n+3):nth-child(-n+10),
  .league-table td:nth-child(n+3):nth-child(-n+10) { width: 8.375%; }
  .league-table th:nth-child(11), .league-table td:nth-child(11) { width: 10%; }
  .league-table.has-form { table-layout: auto; }
  .league-table.has-form th:nth-child(2), .league-table.has-form td:nth-child(2) { min-width: 190px; }
  .league-table.has-form th.form-column, .league-table.has-form td.form-column { min-width: 175px; }
}

/* Compact football-style standings with five-result form at the right. */
@media (min-width: 641px) {
  .league-table.has-form { width: 100%; table-layout: fixed; }
  .league-table.has-form th:first-child, .league-table.has-form td:first-child { width: 4%; }
  .league-table.has-form th:nth-child(2), .league-table.has-form td:nth-child(2) { width: 19%; min-width: 0; }
  .league-table.has-form th:nth-child(n+3):nth-child(-n+10),
  .league-table.has-form td:nth-child(n+3):nth-child(-n+10) { width: 7.5%; }
  .league-table.has-form th.form-column, .league-table.has-form td.form-column { width: 17%; min-width: 0; text-align: center; }
  .league-table.has-form th, .league-table.has-form td { padding: 10px 4px; font-size: .91rem; }
  .league-table.has-form td:nth-child(2) { font-weight: 750; }
  .league-table.has-form .form-sequence { gap: 4px; justify-content: center; }
  .league-table.has-form .form-sequence i { width: 23px; height: 23px; border-radius: 2px; font-size: .73rem; }
}
@media (max-width: 640px) {
  .league-scroll:has(.has-form) { overflow-x: auto; }
  .league-table.has-form { min-width: 730px; table-layout: fixed; }
  .league-table.has-form th:first-child, .league-table.has-form td:first-child { width: 30px; }
  .league-table.has-form th:nth-child(2), .league-table.has-form td:nth-child(2) { width: 100px; min-width: 100px; }
  .league-table.has-form th:nth-child(n+3):nth-child(-n+10),
  .league-table.has-form td:nth-child(n+3):nth-child(-n+10) { width: 42px; }
  .league-table.has-form th.form-column, .league-table.has-form td.form-column { width: 155px; min-width: 155px; }
  .league-table.has-form .form-sequence { gap: 3px; }
  .league-table.has-form .form-sequence i { width: 23px; height: 23px; font-size: .7rem; }
}
