@font-face {
  font-family: Rajdhani;
  src: url("/assets/fonts/rajdhani-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: Rajdhani;
  src: url("/assets/fonts/rajdhani-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
:root {
  --red: #c2030d;
  --ink: #131519;
  --paper: #f5f3ee;
  --muted: #626570;
  --line: #dededc;
  --radius: 12px;
  --shadow: 0 12px 35px #14151a08;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font:
    500 17px/1.45 Rajdhani,
    Arial,
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
a {
  color: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
input,
select,
textarea {
  width: 100%;
  background: #fff;
  color: var(--ink);
  border: 1px solid #a8aab0;
  border-radius: 5px;
  padding: 10px 12px;
  min-height: 44px;
}
textarea {
  resize: vertical;
  min-height: 110px;
}
#team-form input[name="name"] {
  text-transform: uppercase;
}
label {
  display: grid;
  gap: 5px;
  font-weight: 700;
}
input[type="checkbox"] {
  width: 22px;
  min-height: 22px;
  accent-color: var(--red);
}
:focus-visible {
  outline: 3px solid #bd8300;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.03;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}
h2 {
  font-size: 30px;
  line-height: 1.1;
}
h3 {
  font-size: 22px;
  margin-bottom: 10px;
}
p {
  margin-bottom: 16px;
}
.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}
.muted {
  color: var(--muted);
}
.skip {
  position: fixed;
  top: -100px;
  background: white;
  padding: 15px;
  z-index: 100;
}
.skip:focus {
  top: 5px;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  min-height: 46px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-decoration: none;
  transition:
    background 0.18s,
    transform 0.18s;
}
.button:hover {
  transform: translateY(-1px);
}
.primary {
  background: var(--red);
  color: white;
}
.primary:hover {
  background: #a2020b;
}
.secondary {
  background: white;
  border-color: #c4c5c7;
  color: var(--ink);
}
.text-button {
  border: 0;
  background: none;
  padding: 12px 0;
  text-align: left;
  text-decoration: underline;
  font-weight: 700;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}
.login-story {
  background:
    radial-gradient(ellipse at 5% 100%, #b3001255, transparent 65%),
    linear-gradient(135deg, #111417 65%, #76020b);
  color: #fff;
  padding: clamp(32px, 6vw, 96px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.login-story img {
  margin-bottom: 50px;
}
.login-story h1 {
  font-size: clamp(44px, 5vw, 80px);
  max-width: 650px;
}
.login-story p:not(.eyebrow) {
  color: #d3d5db;
  font-size: 20px;
}
.season-tag {
  margin-top: 70px;
  border-top: 1px solid #ffffff30;
  padding-top: 20px;
  letter-spacing: 0.15em;
}
.login-card {
  width: min(420px, calc(100% - 48px));
  margin: auto;
  padding: 40px 0;
}
.login-card label {
  margin: 20px 0;
}
.login-card > .button {
  width: 100%;
  margin-top: 8px;
}
.login-card > p {
  color: var(--muted);
}
#login-message {
  color: #a0000b;
  font-weight: 700;
  min-height: 24px;
}
.app {
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: #121518;
  color: white;
  padding: 26px 20px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  text-decoration: none;
  font-size: 16px;
  line-height: 1.1;
  margin-bottom: 42px;
}
.brand small {
  display: block;
  color: #aeb2ba;
  font-size: 10px;
  letter-spacing: 0.16em;
  margin-top: 7px;
}
nav {
  display: grid;
  gap: 7px;
}
nav button {
  color: #cad0d4;
  background: none;
  border: 0;
  border-radius: 6px;
  text-align: left;
  padding: 13px 15px;
  font-weight: 700;
  display: flex;
  gap: 14px;
  align-items: center;
}
nav button span {
  font-size: 12px;
  color: #9b9fa7;
}
nav button[aria-current="page"] {
  background: var(--red);
  color: #fff;
}
nav button[aria-current="page"] span {
  color: #fff;
}
nav button:hover {
  background: #ffffff15;
}
nav button[aria-current="page"]:hover {
  background: #a9030b;
}
.panel-nav-toggle {
  display: none;
}
.sidebar-bottom {
  margin-top: auto;
  display: grid;
  font-size: 15px;
}
.sidebar-bottom button {
  color: #c5c7cd;
}
main {
  padding: 0 clamp(20px, 3.2vw, 54px) 55px;
  min-width: 0;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 34px;
}
.topbar p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 15px;
}
.topbar .eyebrow {
  color: #8e0710;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 26px;
}
.page-heading p {
  margin-bottom: 0;
  color: var(--muted);
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 26px;
}
.metric {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.metric > span {
  font-size: 14px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.metric strong {
  display: block;
  font-size: 38px;
  line-height: 1.25;
}
.metric small {
  color: var(--muted);
}
.panel-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 22px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.two-columns {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 22px;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}
.section-title h2 {
  margin: 0;
  font-size: 24px;
}
.badge {
  display: inline-block;
  background: #eceef0;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 8px;
  white-space: nowrap;
}
.badge.red {
  background: #fae7e9;
  color: #a0000b;
}
.badge.green {
  background: #e6f1e9;
  color: #225b34;
}
.empty {
  padding: 32px 20px;
  text-align: center;
  border: 1px dashed #bbbfc4;
  border-radius: 8px;
  color: var(--muted);
}
.empty h3 {
  color: var(--ink);
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}
.filters label {
  min-width: 150px;
  flex: 1;
  font-size: 14px;
}
.table-wrap {
  overflow: auto;
  max-width: 100%;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 16px;
}
th {
  text-align: left;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
}
td,
th {
  padding: 12px 9px;
  border-bottom: 1px solid #ececef;
}
tr.club {
  background: #fff0f1;
  color: #94010a;
}
td strong {
  font-weight: 700;
}
td.num {
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.fixture-line {
  display: grid;
  grid-template-columns: minmax(80px, 1fr) 100px minmax(80px, 1fr);
  gap: 8px;
  align-items: center;
}
.fixture-line > span:first-child {
  text-align: right;
}
.fixture-line > strong {
  text-align: center;
  font-size: 24px;
}
.fixture-card {
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  padding: 18px;
  border-radius: 5px;
  margin-bottom: 12px;
}
.fixture-card .meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}
.fixture-card .actions {
  margin-top: 15px;
  justify-content: center;
}
.result-inputs {
  display: flex;
  gap: 5px;
  align-items: center;
  width: 120px;
}
.result-inputs input {
  width: 52px;
  text-align: center;
  padding: 5px;
}
.calendar-table {
  min-width: 680px;
}
.player-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
  gap: 16px;
}
.player-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
}
.player-head {
  background: linear-gradient(145deg, #1b1f24, #292e34);
  color: white;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 13px;
  position: relative;
}
.player-avatar {
  width: 56px;
  height: 66px;
  object-fit: contain;
  flex-shrink: 0;
}
.player-initials {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #ffffff12;
  color: white;
  font-size: 25px;
  font-weight: 700;
  flex-shrink: 0;
}
.player-head h3 {
  font-size: 21px;
  margin-bottom: 3px;
}
.player-head small {
  color: #c7cbd3;
}
.player-body {
  padding: 16px;
}
.player-checks {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 12px;
}
.player-checks label {
  font-size: 13px;
  justify-items: center;
}
.coach-attendance {
  margin: 22px 0 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.coach-attendance legend { padding: 0 8px; font-weight: 700; }
.coach-attendance label { display: inline-flex; align-items: center; gap: 8px; margin: 6px 20px 6px 0; }
.stats-inputs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.stats-inputs label {
  font-size: 12px;
}
.stats-inputs input {
  padding: 5px;
  text-align: center;
}
.player-details > summary {
  display: none;
}
.roster-bar {
  position: sticky;
  bottom: 12px;
  background: #14171b;
  color: white;
  padding: 15px 20px;
  border-radius: 8px;
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  z-index: 2;
  box-shadow: 0 8px 30px #0003;
}
.roster-bar label {
  display: flex;
  align-items: center;
  font-size: 15px;
  gap: 8px;
}
.roster-summary {
  margin: 16px 0;
  font-size: 16px;
}
.notice {
  padding: 13px 17px;
  border-radius: 6px;
  margin-bottom: 20px;
  background: #e7eee8;
  color: #275133;
  border: 1px solid #aac4b1;
}
.notice.error {
  background: #fff0f0;
  color: #8a0912;
  border-color: #d4a4a8;
}
.sync-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.sync-notice strong,
.sync-notice span {
  display: block;
}
.sync-notice span {
  margin-top: 3px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.form-grid .full {
  grid-column: 1/-1;
}
.help {
  font-size: 14px;
  color: var(--muted);
  margin-top: 8px;
}
.form-grid label {
  font-size: 15px;
}
.compact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.compact-list li {
  padding: 12px 0;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 30px;
  max-width: 720px;
  width: calc(100% - 30px);
  max-height: 90vh;
  color: var(--ink);
  background: var(--paper);
}
dialog::backdrop {
  background: #0a111bbb;
  backdrop-filter: blur(4px);
}
.modal-close {
  position: absolute;
  right: 14px;
  top: 12px;
  border: 0;
  background: none;
  font-size: 29px;
  width: 38px;
  height: 38px;
}
dialog h2 {
  padding-right: 24px;
}
.file-zone {
  background: #f5f3ee;
  padding: 20px;
  border: 1px dashed #a9acb1;
  border-radius: 8px;
}
.file-zone input {
  background: white;
}
.audit {
  font-size: 14px;
}
.inline-label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.chart {
  display: grid;
  gap: 12px;
}
.bar-row {
  display: grid;
  grid-template-columns: 130px 1fr 35px;
  gap: 12px;
  align-items: center;
  font-size: 15px;
}
.bar-track {
  height: 10px;
  border-radius: 3px;
  background: #e7e7e6;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  background: var(--red);
  border-radius: 3px;
}
.public-header {
  background: #14171a;
  color: white;
  padding: 22px max(22px, calc((100vw - 1200px) / 2));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.public-header a {
  font-weight: 700;
  text-decoration: none;
}
.public-main {
  max-width: 1280px;
  margin: auto;
  padding: 44px 24px;
}
.public-main .metric-grid {
  margin-top: 28px;
}
.public-hero {
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
}
.public-hero .eyebrow {
  color: var(--red);
}
.rating {
  font-size: 30px;
  font-weight: 700;
  color: var(--red);
}
.score-history {
  display: flex;
  gap: 6px;
  align-items: flex-end;
  min-height: 110px;
  padding-top: 20px;
}
.score-column {
  flex: 1;
  max-width: 55px;
  text-align: center;
  font-size: 13px;
}
.score-column > div {
  background: var(--red);
  min-height: 2px;
}
.score-column span {
  display: block;
}
details summary {
  cursor: pointer;
  font-weight: 700;
  padding: 10px 0;
}
.checklist {
  padding-left: 20px;
}
.checklist li {
  margin-bottom: 8px;
}
@media (max-width: 1050px) {
  .app {
    grid-template-columns: 195px minmax(0, 1fr);
  }
  .sidebar {
    padding: 24px 12px;
  }
  .brand {
    font-size: 13px;
  }
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .two-columns {
    grid-template-columns: 1fr;
  }
  .login-page {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 720px) {
  .app {
    display: block;
  }
  .sidebar {
    height: auto;
    position: relative;
    padding: 15px;
  }
  .brand {
    margin-bottom: 15px;
  }
  .brand img {
    width: 38px;
    height: 38px;
  }
  .panel-nav-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    position: absolute;
    top: 17px;
    right: 15px;
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid #ffffff35;
    border-radius: 5px;
    background: #ffffff0b;
    color: #fff;
    font-weight: 700;
  }
  .panel-nav-icon {
    display: grid;
    gap: 4px;
    width: 18px;
  }
  .panel-nav-icon i {
    display: block;
    height: 2px;
    background: currentColor;
  }
  .sidebar nav {
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 8px 0 5px;
    border-top: 1px solid #ffffff20;
  }
  .sidebar nav[data-open="true"] {
    display: grid;
  }
  .sidebar nav button {
    width: 100%;
    padding: 10px 13px;
  }
  .sidebar nav button span {
    display: none;
  }
  .sidebar-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
  }
  .sidebar-bottom .text-button {
    padding: 0;
  }
  main {
    padding: 0 16px 25px;
  }
  .topbar {
    padding: 17px 0;
    margin-bottom: 23px;
    gap: 10px;
  }
  .topbar .button {
    font-size: 12px;
    padding: 9px;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
  .metric-grid {
    gap: 10px;
  }
  .metric {
    padding: 15px;
  }
  .metric strong {
    font-size: 32px;
  }
  .panel-card {
    padding: 17px;
  }
  .sync-notice {
    align-items: stretch;
    flex-direction: column;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .full {
    grid-column: auto;
  }
  .roster-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .roster-bar .button {
    width: 100%;
  }
  .login-page {
    display: block;
  }
  .login-story {
    padding: 30px 25px;
  }
  .login-story img {
    width: 56px;
    height: 56px;
    margin-bottom: 22px;
  }
  .login-story h1 {
    font-size: 42px;
  }
  .login-story .season-tag {
    display: none;
  }
  .login-card {
    padding: 30px 0;
  }
  .login-story > p:not(.eyebrow) {
    font-size: 17px;
    margin-bottom: 0;
  }
  .player-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .player-head {
    padding: 11px 13px;
  }
  .player-avatar {
    width: 42px;
    height: 48px;
  }
  .player-body {
    padding: 12px 13px;
  }
  .player-checks {
    margin-bottom: 0;
  }
  .player-details {
    margin-top: 11px;
    border-top: 1px solid var(--line);
  }
  .player-details > summary {
    display: block;
    padding: 11px 0 0;
    color: var(--red);
    font-weight: 700;
    cursor: pointer;
  }
  .player-details[open] > summary {
    margin-bottom: 12px;
  }
  .public-header {
    padding: 18px;
  }
  .public-main {
    padding: 28px 16px;
  }
  .bar-row {
    grid-template-columns: 100px 1fr 28px;
  }
  .public-header span {
    font-size: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

.mini-photo{display:grid;place-items:center;width:52px;height:58px;flex:none;background:#eee;color:#555;font-size:11px;border-radius:4px;overflow:hidden}.mini-photo img{width:100%;height:100%;object-fit:contain}.photo-label{display:flex;align-items:center;gap:12px}
.team-crest{width:38px;height:38px;object-fit:contain;vertical-align:middle}
