:root {
  --navy: #13233a;
  --navy-2: #1d3352;
  --teal: #0e8a7e;
  --teal-soft: #e3f4f1;
  --ball: #c8e632;
  --bg: #f3f5f8;
  --card: #ffffff;
  --line: #e3e8ef;
  --text: #15202e;
  --muted: #64748b;
  --win: #0e8a7e;
  --loss: #c2410c;
  --live: #e11d48;
  --warn-bg: #fff7e0;
  --warn: #8a5a00;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
  --num: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
h2.section { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); margin: 28px 0 12px; font-weight: 700; }
h2.section:first-child { margin-top: 8px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.num { font-family: var(--num); font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 20; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.topbar-inner { max-width: 1120px; margin: 0 auto; padding: 10px 16px 6px; display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; flex: 1; min-width: 0; }
.brand:hover { text-decoration: none; }
.brand span { display: flex; flex-direction: column; min-width: 0; }
.brand b { font-family: var(--num); font-size: 22px; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand small { font-size: 11px; color: #9fb3cc; text-transform: uppercase; letter-spacing: .08em; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #64748b; flex: none; }
.live-dot.on { background: #34d399; box-shadow: 0 0 0 3px rgba(52, 211, 153, .25); }
#account-slot .btn { padding: 6px 12px; font-size: 13px; }
.tabs { max-width: 1120px; margin: 0 auto; display: flex; gap: 2px; padding: 0 10px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { color: #b8c7da; padding: 10px 12px 11px; font-weight: 600; font-size: 14px; white-space: nowrap; border-bottom: 3px solid transparent; }
.tabs a:hover { color: #fff; text-decoration: none; }
.tabs a.active { color: #fff; border-bottom-color: var(--ball); }
body:not(.editor) .editor-only { display: none !important; }
body:not(.admin) .admin-only { display: none !important; }

.container { max-width: 1120px; margin: 0 auto; padding: 18px 16px 60px; }
.loading { padding: 60px 0; text-align: center; color: var(--muted); }

/* ---------- Generic UI ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 16px; }
.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spacer { flex: 1; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--line); background: #fff; color: var(--text); border-radius: 10px;
  padding: 9px 14px; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none !important;
}
.btn:hover { border-color: #c5cfdb; background: #f8fafc; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn-primary:hover { background: #0b766c; border-color: #0b766c; }
.btn-dark { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.btn-ghost-light:hover { background: rgba(255,255,255,.1); }
.btn-danger { color: #b42318; border-color: #f3c7c2; }
.btn-danger:hover { background: #fef3f2; }
.btn-sm { padding: 5px 10px; font-size: 13px; border-radius: 8px; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 3px 8px; border-radius: 99px; background: #eef2f6; color: var(--muted); white-space: nowrap; }
.badge.live { background: #ffe4e8; color: var(--live); }
.badge.live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--live); animation: pulse 1.2s infinite; }
.badge.final { background: var(--teal-soft); color: var(--teal); }
.badge.prov { background: var(--warn-bg); color: var(--warn); }
@keyframes pulse { 50% { opacity: .25; } }
.chip { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex: none; }
.notice { background: var(--warn-bg); color: var(--warn); border: 1px solid #f5dc9a; padding: 10px 14px; border-radius: 10px; font-size: 14px; }
.notice.info { background: var(--teal-soft); color: #075e56; border-color: #b7e3dc; }
.empty { padding: 28px; text-align: center; color: var(--muted); }

input, select, textarea {
  font: inherit; padding: 9px 11px; border: 1px solid #cfd8e3; border-radius: 9px; background: #fff; color: var(--text); width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(14, 138, 126, .35); border-color: var(--teal); }
label.field { display: block; margin-bottom: 12px; }
label.field > span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; color: #334155; }
.form-narrow { max-width: 420px; margin: 30px auto; }

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(1200px 300px at 90% -40%, rgba(200,230,50,.35), transparent 60%), linear-gradient(135deg, var(--navy), #0f3b4a);
  color: #fff; border-radius: 18px; padding: 22px; position: relative; overflow: hidden;
}
.hero h1 { font-family: var(--num); font-size: 40px; text-transform: uppercase; letter-spacing: .01em; }
.hero .facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 8px; color: #c9d6e6; font-size: 14px; }
.hero .facts b { color: #fff; }
.progress { height: 8px; background: rgba(255,255,255,.15); border-radius: 99px; overflow: hidden; margin-top: 16px; }
.progress > div { height: 100%; background: var(--ball); border-radius: 99px; transition: width .6s; }
.hero .progress-label { font-size: 12px; color: #c9d6e6; margin-top: 6px; }
.announce { margin-top: 14px; background: rgba(200,230,50,.15); border: 1px solid rgba(200,230,50,.4); padding: 10px 12px; border-radius: 10px; font-size: 14px; }

/* ---------- Scoreboards ---------- */
.court-card { overflow: hidden; }
.court-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: #f8fafc; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.board { padding: 6px 14px 12px; }
.board-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.board-row + .board-row { border-top: 1px dashed var(--line); }
.board-team { flex: 1; min-width: 0; }
.board-team b { display: block; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board-team small { color: var(--muted); font-size: 12px; }
.board-games { display: flex; gap: 4px; }
.board-games span { font-family: var(--num); font-size: 18px; width: 28px; text-align: center; color: var(--muted); }
.board-games span.won { color: var(--text); font-weight: 700; }
.board-score { font-family: var(--num); font-size: 40px; font-weight: 800; min-width: 54px; text-align: right; line-height: 1; }
.serve-ball { width: 12px; height: 12px; border-radius: 50%; background: var(--ball); border: 2px solid #9db51f; flex: none; visibility: hidden; }
.serve-ball.on { visibility: visible; }
.call { text-align: center; font-family: var(--num); font-size: 15px; letter-spacing: .08em; color: var(--muted); padding: 2px 14px 12px; }
.call b { color: var(--text); font-size: 18px; }

/* ---------- Match lists ---------- */
.mlist { display: flex; flex-direction: column; }
.mitem { display: grid; grid-template-columns: 78px 1fr auto; gap: 10px; align-items: center; padding: 11px 14px; color: inherit; border-top: 1px solid var(--line); }
.mitem:first-child { border-top: 0; }
.mitem:hover { background: #f8fafc; text-decoration: none; }
.mitem .when { font-size: 12px; color: var(--muted); line-height: 1.3; }
.mitem .when b { color: var(--text); display: block; font-size: 13px; }
.vs { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.vs .t { display: flex; align-items: center; gap: 8px; min-width: 0; }
.vs .t span.name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vs .t.win span.name { font-weight: 700; }
.vs .t.lose { color: var(--muted); }
.vs .t .sc { margin-left: auto; font-family: var(--num); font-size: 19px; font-weight: 700; padding-left: 8px; }
.vs .t.lose .sc { font-weight: 600; }
.mitem .side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }

/* Schedule / tie sheet */
.slot-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.slot-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; background: var(--navy); color: #fff; padding: 10px 12px; }
.slot-table th:first-child { border-top-left-radius: var(--radius); width: 92px; }
.slot-table th:last-child { border-top-right-radius: var(--radius); }
.slot-table td { padding: 8px; border-top: 1px solid var(--line); vertical-align: top; background: #fff; }
.slot-table tr:last-child td:first-child { border-bottom-left-radius: var(--radius); }
.slot-table tr:last-child td:last-child { border-bottom-right-radius: var(--radius); }
.slot-table td.time { font-weight: 700; font-size: 14px; padding-top: 18px; white-space: nowrap; }
.slot-wrap { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.mcard { display: block; border: 1px solid var(--line); border-radius: 11px; padding: 9px 11px; color: inherit; transition: border-color .15s, box-shadow .15s; }
.mcard:hover { border-color: #b9c6d6; box-shadow: var(--shadow); text-decoration: none; }
.mcard.is-live { border-color: #fbb6c3; background: #fffafb; }
.mcard.dim { opacity: .35; }
.mcard .top { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--muted); font-weight: 700; letter-spacing: .05em; margin-bottom: 5px; }
.free { color: #9aa8b8; font-size: 13px; padding: 10px; font-style: italic; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 4px; }
.filters select { width: auto; min-width: 200px; }

/* Standings */
.table-wrap { overflow-x: auto; }
table.std { width: 100%; border-collapse: collapse; font-size: 14px; }
table.std th { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); text-align: right; padding: 10px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.std th.l, table.std td.l { text-align: left; }
table.std td { padding: 11px 8px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
table.std td.n { font-family: var(--num); font-size: 18px; font-weight: 600; }
table.std tr.cut td { border-bottom: 2px dashed var(--teal); }
table.std tr:last-child td { border-bottom: 0; }
.rank { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: #eef2f6; font-weight: 700; font-size: 13px; }
.rank.q { background: var(--navy); color: #fff; }
.tname { display: flex; align-items: center; gap: 9px; }
.tname b { display: block; }
.tname small { color: var(--muted); font-size: 12px; }
.form { display: inline-flex; gap: 3px; }
.form i { font-style: normal; width: 19px; height: 19px; border-radius: 5px; display: inline-grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; }
.form i.W { background: var(--win); }
.form i.L { background: #cbd5e1; color: #475569; }
.pos { color: var(--win); }
.neg { color: var(--loss); }

.matrix { border-collapse: collapse; font-size: 13px; }
.matrix th, .matrix td { border: 1px solid var(--line); padding: 7px 6px; text-align: center; min-width: 64px; }
.matrix th { background: #f8fafc; font-size: 12px; }
.matrix th.rowh { text-align: left; white-space: nowrap; }
.matrix td.self { background: repeating-linear-gradient(45deg, #f1f4f8, #f1f4f8 6px, #e8edf3 6px, #e8edf3 12px); }
.matrix td.W { background: #e3f4f1; color: #075e56; font-weight: 700; }
.matrix td.L { background: #fdf0ea; color: #9a3412; }
.matrix td a { color: inherit; display: block; }
.matrix td.pending { color: #9aa8b8; font-size: 11px; }

.stat { padding: 14px 16px; }
.stat .k { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.stat .v { font-family: var(--num); font-size: 28px; font-weight: 700; margin-top: 2px; }
.stat .d { font-size: 13px; color: var(--muted); }

/* Bracket */
.bracket { display: grid; grid-template-columns: 1fr 60px 1fr 60px 1fr; align-items: center; gap: 0; }
.bracket .col { display: flex; flex-direction: column; gap: 26px; }
.bracket .connector { height: 100%; position: relative; }
.bracket .connector::before { content: ''; position: absolute; left: 0; right: 50%; top: 25%; bottom: 25%; border: 2px solid #cbd5e1; border-left: 0; border-radius: 0 10px 10px 0; }
.bracket .connector::after { content: ''; position: absolute; left: 50%; right: 0; top: 50%; border-top: 2px solid #cbd5e1; }
.bracket .connector.straight::before { display: none; }
.bracket .connector.straight::after { left: 0; }
.bmatch { overflow: hidden; }
.bmatch .bhead { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; background: var(--navy); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.bmatch .bhead span { color: #9fb3cc; font-weight: 500; letter-spacing: 0; text-transform: none; }
.bteam { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
.bteam .seed { font-size: 11px; color: var(--muted); width: 44px; flex: none; }
.bteam .name { flex: 1; min-width: 0; }
.bteam .name small { display: block; color: var(--muted); font-size: 12px; }
.bteam .g { font-family: var(--num); font-size: 18px; width: 24px; text-align: center; color: var(--muted); }
.bteam .g.won { color: var(--text); font-weight: 700; }
.bteam.win .name b { color: var(--teal); }
.bteam.lose { opacity: .6; }
.champ { text-align: center; padding: 22px 14px; background: linear-gradient(160deg, #fffbe6, #f4fbd3); border-color: #e7ef9c; }
.champ .trophy { font-size: 40px; }
.champ h3 { font-family: var(--num); font-size: 26px; text-transform: uppercase; margin-top: 6px; }

/* Teams */
.team-card { padding: 16px; border-top: 5px solid var(--c, var(--teal)); }
.team-card h3 { font-size: 18px; }
.team-card .players { color: var(--muted); margin-top: 2px; }
.team-card .rec { display: flex; gap: 16px; margin: 12px 0; }
.team-card .rec div { font-size: 12px; color: var(--muted); }
.team-card .rec b { display: block; font-family: var(--num); font-size: 24px; color: var(--text); }
.team-card .results { font-size: 13px; display: flex; flex-direction: column; gap: 4px; }
.team-card .results a { color: inherit; display: flex; justify-content: space-between; gap: 8px; }

/* Match page */
.match-hero { background: var(--navy); color: #fff; border-radius: 18px; padding: 18px; }
.match-hero .meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 13px; color: #b8c7da; }
.mh-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin: 18px 0 8px; }
.mh-team { text-align: center; }
.mh-team b { font-size: 18px; display: block; }
.mh-team small { color: #9fb3cc; }
.mh-team.win b { color: var(--ball); }
.mh-score { font-family: var(--num); font-size: 56px; font-weight: 800; line-height: 1; text-align: center; white-space: nowrap; }
.mh-score small { display: block; font-size: 13px; font-weight: 600; color: #9fb3cc; letter-spacing: .08em; }
.games-table { width: 100%; border-collapse: collapse; }
.games-table th, .games-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: center; }
.games-table th:first-child, .games-table td:first-child { text-align: left; }
.games-table td.w { font-weight: 800; color: var(--teal); }
.rally-log { max-height: 360px; overflow: auto; font-size: 13px; }
.rally-log div { display: grid; grid-template-columns: 34px 1fr auto; gap: 8px; padding: 6px 12px; border-top: 1px solid var(--line); }
.rally-log .o-point { color: var(--teal); font-weight: 600; }
.rally-log .o-side-out { color: var(--loss); }

/* ---------- Scoring console ---------- */
.scorer { max-width: 760px; margin: 0 auto; }
.scorer-top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.scorer-top h1 { font-size: 18px; flex: 1; }
.callbar { background: var(--navy); color: #fff; border-radius: 16px; padding: 14px; text-align: center; margin-bottom: 12px; }
.callbar .label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #9fb3cc; }
.callbar .bigcall { font-family: var(--num); font-size: 54px; font-weight: 800; line-height: 1.05; letter-spacing: .04em; }
.callbar .who { font-size: 15px; color: #e2e8f0; }
.callbar .who b { color: var(--ball); }
.pads { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pad {
  border: 0; border-radius: 18px; padding: 16px 12px 18px; color: #fff; cursor: pointer; text-align: center;
  background: var(--c); box-shadow: 0 6px 0 rgba(0,0,0,.18); transition: transform .06s, box-shadow .06s; font: inherit;
  display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 250px; position: relative; touch-action: manipulation;
}
.pad::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(0,0,0,.12)); pointer-events: none; }
.pad:active { transform: translateY(4px); box-shadow: 0 2px 0 rgba(0,0,0,.18); }
.pad:disabled { opacity: .55; cursor: default; }
.pad .pname { font-weight: 700; font-size: 17px; position: relative; }
.pad .pscore { font-family: var(--num); font-size: 92px; font-weight: 800; line-height: 1; position: relative; }
.pad .ppl { display: flex; gap: 6px; position: relative; flex-wrap: wrap; justify-content: center; }
.pad .ppl span { font-size: 12px; background: rgba(0,0,0,.2); padding: 3px 8px; border-radius: 99px; }
.pad .ppl span.srv { background: var(--ball); color: var(--navy); font-weight: 700; }
.pad .hint { font-size: 12px; opacity: .85; position: relative; margin-top: auto; }
.pad.serving { outline: 4px solid var(--ball); outline-offset: 3px; }
.scorer-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.scorer-actions .btn { flex: 1; padding: 13px; }
.games-strip { display: flex; gap: 8px; justify-content: center; margin-bottom: 10px; flex-wrap: wrap; }
.games-strip span { background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 4px 12px; font-size: 13px; font-weight: 600; }
.setup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.choice { display: flex; gap: 8px; flex-wrap: wrap; }
.choice label { flex: 1; min-width: 120px; }
.choice input { display: none; }
.choice span { display: block; text-align: center; padding: 10px; border: 2px solid var(--line); border-radius: 10px; cursor: pointer; font-weight: 600; }
.choice input:checked + span { border-color: var(--teal); background: var(--teal-soft); color: #075e56; }

/* Admin */
.subtabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.subtabs a { padding: 7px 13px; border-radius: 99px; background: #fff; border: 1px solid var(--line); color: var(--text); font-weight: 600; font-size: 14px; }
.subtabs a.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.subtabs a:hover { text-decoration: none; }
table.admin { width: 100%; border-collapse: collapse; font-size: 14px; }
table.admin th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 8px; border-bottom: 1px solid var(--line); }
table.admin td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.admin input, table.admin select { padding: 6px 8px; font-size: 13px; }
.score-inputs { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.score-inputs input { width: 54px; text-align: center; }
.copybox { display: flex; gap: 8px; }
.copybox input { font-family: ui-monospace, Consolas, monospace; font-size: 13px; }

/* Modal + toast */
.modal-back { position: fixed; inset: 0; background: rgba(15, 23, 42, .5); display: grid; place-items: center; padding: 16px; z-index: 50; }
.modal { background: #fff; border-radius: 16px; max-width: 520px; width: 100%; max-height: 90vh; overflow: auto; padding: 20px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.modal h3 { margin-bottom: 14px; font-size: 18px; }
.modal .actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--navy); color: #fff; padding: 11px 18px; border-radius: 12px; opacity: 0; transition: .2s; pointer-events: none; z-index: 60; font-size: 14px; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { background: #b42318; }

footer.foot { text-align: center; color: var(--muted); font-size: 12px; margin-top: 40px; }

@media (max-width: 760px) {
  .bracket { grid-template-columns: 1fr; gap: 14px; }
  .bracket .connector { display: none; }
  .slot-table th:first-child { width: 64px; }
  .slot-table td { padding: 6px 4px; }
  .slot-table td.time { font-size: 12px; padding-left: 8px; }
  .hero h1 { font-size: 32px; }
  .mh-score { font-size: 44px; }
  .pad { min-height: 220px; }
  .pad .pscore { font-size: 76px; }
  .callbar .bigcall { font-size: 46px; }
  .setup-grid { grid-template-columns: 1fr; }
  .hide-sm { display: none; }
}
@media (max-width: 520px) {
  .slot-table, .slot-table tbody, .slot-table tr, .slot-table td { display: block; width: 100%; }
  .slot-table thead { display: none; }
  .slot-table tr { border-top: 1px solid var(--line); padding: 4px 0; }
  .slot-table tr:first-child { border-top: 0; }
  .slot-table td { border: 0; padding: 4px 10px; }
  .slot-table td.time { padding: 10px 10px 2px; }
  .slot-table td.freecell { display: none; }
  .slot-table td .court-label { display: inline; }
}
.court-label { display: none; font-size: 11px; color: var(--muted); font-weight: 700; }
