:root {
  --bg: #0b1020;
  --bg-2: #121a30;
  --card: #161f38;
  --card-2: #1c2745;
  --line: #28324f;
  --txt: #e8ecf6;
  --muted: #94a0bf;
  --accent: #18c07a;
  --accent-2: #38bdf8;
  --warn: #ffb020;
  --live: #ff4d5e;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background:
    radial-gradient(1200px 600px at 80% -10%, #1a2547 0%, transparent 60%),
    radial-gradient(1000px 500px at 0% 0%, #122b22 0%, transparent 55%),
    var(--bg);
  color: var(--txt);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  line-height: 1.45;
  min-height: 100vh;
}

a { color: var(--accent-2); text-decoration: none; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px 60px; }

/* ---------- header ---------- */
header.top {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(11, 16, 32, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-inner { max-width: 1080px; margin: 0 auto; padding: 12px 16px; }
.brand { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.brand h1 { font-size: 20px; margin: 0; letter-spacing: .2px; }
.brand .sub { color: var(--muted); font-size: 13px; }
.hosts { margin-left: auto; font-size: 13px; color: var(--muted); display: flex; gap: 6px; align-items: center; }

.tabs { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.tab {
  border: 1px solid var(--line); background: var(--card); color: var(--txt);
  padding: 8px 14px; border-radius: 999px; cursor: pointer; font-size: 14px;
  transition: .15s;
}
.tab:hover { border-color: var(--accent); }
.tab.active { background: var(--accent); color: #042417; border-color: var(--accent); font-weight: 600; }

/* ---------- tz bar ---------- */
.tzbar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: 16px 0; padding: 12px 14px;
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line); border-radius: var(--radius);
}
.tzbar .note { font-size: 14px; color: var(--muted); }
.tzbar .note b { color: var(--txt); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; margin-left: auto; }
.seg button {
  background: transparent; color: var(--muted); border: 0; padding: 7px 14px;
  cursor: pointer; font-size: 13px;
}
.seg button.active { background: var(--accent-2); color: #04212e; font-weight: 600; }

/* ---------- filters ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.filters select, .filters input {
  background: var(--card); color: var(--txt); border: 1px solid var(--line);
  border-radius: 10px; padding: 8px 10px; font-size: 14px; min-width: 130px;
}
.filters input { flex: 1; min-width: 180px; }

/* ---------- schedule ---------- */
.daygroup { margin-bottom: 22px; }
.dayhead {
  position: sticky; top: 0; /* within scroll context */
  font-size: 14px; color: var(--muted); text-transform: capitalize;
  padding: 6px 2px; border-bottom: 1px dashed var(--line); margin-bottom: 10px;
}
.dayhead.today { color: var(--accent); font-weight: 700; }

.match {
  display: grid;
  grid-template-columns: 86px 1fr auto;
  align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px 14px; margin-bottom: 10px;
  transition: .15s;
}
.match:hover { border-color: var(--accent); }
.match.live { border-color: var(--live); box-shadow: 0 0 0 1px var(--live) inset; }

.m-time { text-align: center; }
.m-time .hh { font-size: 18px; font-weight: 700; }
.m-time .off { font-size: 11px; color: var(--muted); }

.m-core { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.m-teams { display: flex; align-items: center; gap: 10px; }
.side { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; }
.side.away { flex-direction: row-reverse; text-align: right; }
.side .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.side .cd { color: var(--muted); font-size: 12px; }
.flag { width: 26px; height: 18px; border-radius: 3px; object-fit: cover; flex: 0 0 auto; background: var(--card-2); box-shadow: 0 0 0 1px var(--line); }
.score { font-weight: 800; font-size: 17px; min-width: 46px; text-align: center; }
.score.vs { color: var(--muted); font-weight: 600; font-size: 14px; }
.m-meta { font-size: 12px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.m-scorers { display: flex; flex-direction: column; gap: 3px; margin-top: -2px; padding-left: 34px; font-size: 12px; line-height: 1.45; color: var(--muted); }
.m-scorers.chrono { max-width: 620px; }
.goal-line { display: flex; align-items: center; gap: 6px; min-width: 0; }
.goal-line.away { padding-left: 18px; }
.goal-min { width: 34px; flex: 0 0 34px; text-align: right; font-variant-numeric: tabular-nums; color: var(--accent-2); }
.goal-line .sc-flag { width: 18px; height: 12px; border-radius: 2px; }
.goal-line span:last-child { overflow-wrap: anywhere; }

.badge { font-size: 11px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.badge.grp { color: var(--accent); border-color: rgba(24,192,122,.4); }
.badge.ko { color: var(--accent-2); border-color: rgba(56,189,248,.4); }

.m-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.status { font-size: 11px; padding: 3px 9px; border-radius: 999px; font-weight: 600; }
.status.up { background: rgba(56,189,248,.14); color: var(--accent-2); }
.status.live { background: rgba(255,77,94,.16); color: var(--live); }
.status.live::before { content: "● "; }
.status.done { background: rgba(148,160,191,.14); color: var(--muted); }
.icsbtn { background: transparent; border: 1px solid var(--line); color: var(--muted); border-radius: 8px; padding: 4px 8px; font-size: 11px; cursor: pointer; }
.icsbtn:hover { border-color: var(--accent); color: var(--txt); }

/* ---------- standings ---------- */
.groups-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.gcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.gcard h3 { margin: 0; padding: 10px 14px; background: var(--card-2); font-size: 15px; border-bottom: 1px solid var(--line); }
table.stand { width: 100%; border-collapse: collapse; font-size: 13px; }
table.stand th, table.stand td { padding: 7px 8px; text-align: center; border-bottom: 1px solid var(--line); }
table.stand th { color: var(--muted); font-weight: 600; font-size: 11px; }
table.stand td.team { text-align: left; white-space: nowrap; }
table.stand td.team .flag { width: 22px; height: 15px; margin-right: 7px; vertical-align: middle; }
table.stand tr:last-child td { border-bottom: 0; }
table.stand td.pts { font-weight: 800; }
table.stand tr.qual td.pos { color: var(--accent); font-weight: 700; }
.legend { font-size: 12px; color: var(--muted); margin: 4px 0 14px; }

/* ---------- teams / stadiums grid ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.tcard {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; cursor: pointer; transition: .15s; display: flex; align-items: center; gap: 12px;
}
.tcard:hover { border-color: var(--accent); transform: translateY(-2px); }
.tcard .flag { width: 40px; height: 28px; }
.tcard .nm { font-weight: 600; }
.tcard .gp { font-size: 12px; color: var(--muted); }

.scard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.scard h3 { margin: 0 0 4px; font-size: 16px; }
.scard .meta { font-size: 13px; color: var(--muted); }
.scard .cap { margin-top: 8px; font-size: 13px; }
.scard .cap b { color: var(--accent); }

/* ---------- modal ---------- */
.modal-bg {
  position: fixed; inset: 0; background: rgba(4,7,16,.7); backdrop-filter: blur(3px);
  display: none; align-items: flex-start; justify-content: center; z-index: 500; padding: 30px 14px; overflow: auto;
}
.modal-bg.open { display: flex; }
.modal {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px;
  width: 100%; max-width: 960px; box-shadow: var(--shadow); overflow: hidden;
}
.modal .mhead { display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: var(--card-2); border-bottom: 1px solid var(--line); }
.modal .mhead .flag { width: 48px; height: 34px; }
.modal .mhead h2 { margin: 0; font-size: 22px; }
.modal .mhead .sub { color: var(--muted); font-size: 13px; }
.modal .close { margin-left: auto; background: transparent; border: 1px solid var(--line); color: var(--txt); width: 34px; height: 34px; border-radius: 9px; cursor: pointer; font-size: 18px; }
.modal .mbody { padding: 18px 20px; }
.modal h4 { margin: 18px 0 8px; font-size: 14px; color: var(--accent); text-transform: uppercase; letter-spacing: .5px; }
.modal h4:first-child { margin-top: 0; }

.section-note { font-weight: 400; color: var(--muted); text-transform: none; letter-spacing: 0; }
.squad-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.squad-group { min-width: 0; border: 1px solid var(--line); background: var(--card-2); }
.squad-group .lbl {
  display: flex; justify-content: space-between; gap: 8px; margin: 0; padding: 6px 8px;
  color: var(--txt); background: var(--card-2); border-bottom: 1px solid var(--line);
  font-size: 12px; font-weight: 700;
}
.squad-group .lbl span:last-child { color: var(--muted); font-weight: 400; }
.players { display: block; }
.player {
  display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 8px;
  min-height: 46px; padding: 6px 8px; background: var(--card); border: 0; border-bottom: 1px solid var(--line);
}
.player:last-child { border-bottom: 0; }
.player .num { width: auto; text-align: center; font-weight: 700; color: var(--accent-2); }
.player-info { min-width: 0; }
.player .pn { font-size: 13px; font-weight: 700; white-space: normal; overflow: visible; }
.player .club { margin-top: 2px; color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-stats { display: flex; flex-direction: column; align-items: flex-end; color: var(--muted); font-size: 11px; white-space: nowrap; }
.captain-badge { display: inline-block; padding: 0 3px; border: 1px solid var(--line); background: var(--card-2); color: var(--txt); font-size: 10px; font-weight: 400; vertical-align: 1px; }
.squad-source { margin-top: 12px; padding-top: 8px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }

@media (max-width: 760px) {
  .squad-columns { grid-template-columns: 1fr; gap: 10px; }
  .player { grid-template-columns: 34px minmax(0, 1fr) auto; }
  .section-note { display: block; margin-top: 2px; }
}

.team-matches .mini { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.team-matches .mini .d { color: var(--muted); width: 120px; flex: 0 0 auto; }

.loading { color: var(--muted); font-size: 14px; padding: 8px 0; }
.error-note { color: var(--warn); font-size: 13px; padding: 8px 10px; background: rgba(255,176,32,.08); border: 1px solid rgba(255,176,32,.3); border-radius: 10px; }

.empty { color: var(--muted); text-align: center; padding: 40px; }
footer.foot { color: var(--muted); font-size: 12px; text-align: center; margin-top: 30px; padding-top: 16px; border-top: 1px solid var(--line); }

@media (max-width: 560px) {
  .m-scorers { padding-left: 0; gap: 4px; }
  .goal-line.away { padding-left: 0; }

  .match { grid-template-columns: 64px 1fr; }
  .m-right { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; }
  .side .cd { display: none; }
  .hosts { display: none; }
}

/* ---------- bracket (public playoff grid) ---------- */
.bracket-view .wrap,
.bracket-view .top-inner {
  max-width: min(1600px, 100%);
}

.ko-page {
  --ko-soft: rgba(232, 236, 246, .72);
  --ko-glass: rgba(22, 31, 56, .74);
}

.ko-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
  margin: 8px 0 16px;
  padding: 20px;
  border: 1px solid rgba(56, 189, 248, .24);
  border-radius: 22px;
  background:
    radial-gradient(700px 240px at 12% 0%, rgba(56, 189, 248, .18), transparent 65%),
    radial-gradient(480px 220px at 100% 0%, rgba(24, 192, 122, .16), transparent 70%),
    linear-gradient(180deg, rgba(28, 39, 69, .86), rgba(16, 24, 44, .88));
  box-shadow: var(--shadow);
}
.ko-kicker {
  margin: 0 0 5px;
  color: var(--accent-2);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 800;
}
.ko-hero h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.05;
  letter-spacing: -.04em;
}
.ko-hero p:not(.ko-kicker) {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--ko-soft);
  font-size: 14px;
}
.ko-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, 1fr));
  gap: 8px;
  min-width: min(560px, 100%);
}
.ko-stat {
  padding: 12px;
  border: 1px solid rgba(148, 160, 191, .22);
  border-radius: 16px;
  background: rgba(11, 16, 32, .36);
}
.ko-stat span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.ko-stat b {
  display: block;
  margin-top: 5px;
  color: var(--txt);
  font-size: 15px;
}



.ko-scroll {
  overflow-x: auto;
  padding: 2px 2px 12px;
  scrollbar-color: var(--line) transparent;
}
.ko-scroll:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 4px;
  border-radius: 18px;
}
.ko-board {
  min-width: 1500px;
  display: grid;
  grid-template-columns: repeat(4, minmax(244px, 1fr)) minmax(292px, 1.1fr);
  grid-template-rows: 44px repeat(16, minmax(112px, auto));
  gap: 10px 18px;
  align-items: stretch;
}
.ko-stage-head {
  align-self: end;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  padding: 0 3px 8px;
  color: var(--muted);
  border-bottom: 1px solid rgba(148, 160, 191, .22);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 800;
}
.ko-stage-head b {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(56, 189, 248, .13);
  color: var(--accent-2);
  letter-spacing: 0;
}
.ko-stage-head.final {
  width: 100%;
  margin-bottom: 8px;
}
.ko-slot {
  min-width: 0;
  display: flex;
  align-items: center;
  position: relative;
}
.ko-final-lane {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding-left: 4px;
}

.ko-match {
  width: 100%;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(148, 160, 191, .24);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(28, 39, 69, .90), rgba(18, 27, 50, .96));
  box-shadow: 0 12px 28px rgba(0, 0, 0, .20);
}
.ko-match.pending {
  border-style: dashed;
  background:
    linear-gradient(180deg, rgba(28, 39, 69, .72), rgba(18, 27, 50, .86));
}
.ko-match.featured {
  padding: 14px;
  border-color: rgba(24, 192, 122, .48);
  background:
    radial-gradient(260px 110px at 50% 0%, rgba(24, 192, 122, .20), transparent 70%),
    linear-gradient(180deg, rgba(28, 39, 69, .96), rgba(14, 24, 43, .98));
}
.ko-card-top,
.ko-card-bottom,
.ko-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
}
.ko-card-top { margin-bottom: 6px; }
.ko-mid {
  color: var(--muted);
  font-family: ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
}
.ko-card-meta {
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ko-card-bottom {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  justify-content: flex-end;
}
.ko-teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 4px;
}
.ko-side {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
}
.ko-side.away {
  flex-direction: row-reverse;
  text-align: right;
}
.ko-team-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.ko-side.away .ko-team-text { align-items: flex-end; }
.ko-name {
  min-width: 0;
  color: var(--txt);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.16;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}
.ko-side.pending .ko-name {
  color: var(--warn);
  font-style: italic;
  font-weight: 650;
  font-size: 12px;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.ko-code {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}
.ko-score {
  justify-self: center;
  min-width: 30px;
  margin: 1px 0;
  padding: 3px 6px;
  border-radius: 9px;
  text-align: center;
  color: var(--muted);
  background: rgba(148, 160, 191, .10);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.ko-score.done {
  color: var(--accent);
  background: rgba(24, 192, 122, .14);
}
.ko-match.home-wins .ko-side.home .ko-name,
.ko-match.away-wins .ko-side.away .ko-name,
.ko-match.home-wins .ko-side.home .ko-code,
.ko-match.away-wins .ko-side.away .ko-code {
  color: var(--accent);
}
.ko-side .flag.ko-tbd {
  width: 24px;
  height: 17px;
  background: linear-gradient(135deg, rgba(148, 160, 191, .20), rgba(148, 160, 191, .08));
  box-shadow: inset 0 0 0 1px rgba(148, 160, 191, .26);
  opacity: 1;
}
.ko-third {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px dashed rgba(148, 160, 191, .24);
}
.ko-third-label {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  text-align: center;
}

@media (max-width: 1180px) {
  .bracket-view .wrap { padding-left: 10px; padding-right: 10px; }
  .ko-hero { grid-template-columns: 1fr; align-items: start; }
  .ko-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); min-width: 0; }
  .ko-board { min-width: 1420px; }
}

@media (max-width: 640px) {
  .ko-hero { padding: 16px; border-radius: 18px; }
  .ko-stats { grid-template-columns: 1fr; }
  .ko-scroll { margin-left: -10px; margin-right: -10px; padding-left: 10px; padding-right: 10px; }
}

/* ---------- Windows 2000 skin override ---------- */
:root {
  --bg: #008080;
  --bg-2: #c0c0c0;
  --card: #c0c0c0;
  --card-2: #d4d0c8;
  --line: #808080;
  --txt: #000000;
  --muted: #404040;
  --accent: #008000;
  --accent-2: #000080;
  --warn: #800000;
  --live: #800000;
  --radius: 0;
  --shadow: none;
}
html, body { background:#008080; }
body {
  background:#008080 !important;
  color:#000;
  font-family: Tahoma, Verdana, "MS Sans Serif", Arial, sans-serif;
  font-size: 12px;
  line-height: 1.35;
}
a { color:#000080; text-decoration: underline; }
.win-window {
  width:min(1640px, calc(100vw - 18px));
  margin:9px auto 18px;
  background:#c0c0c0;
  border-width:2px;
  border-style:solid;
  border-color:#ffffff #404040 #404040 #ffffff;
  box-shadow:1px 1px 0 #000;
}
.win-titlebar {
  min-height:24px;
  margin:2px;
  padding:2px 2px 2px 6px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  background:linear-gradient(90deg,#000080 0%,#1084d0 100%);
  color:#fff;
  font-weight:700;
  font-size:12px;
}
.win-title { display:flex; align-items:center; gap:6px; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.next-match {
  flex:0 1 auto;
  min-width:0;
  margin-left:auto;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  text-align:right;
  font-weight:700;
}
header.top {
  position:sticky;
  top:0;
  z-index:100;
  background:#c0c0c0;
  border:0;
  border-bottom:2px solid #808080;
  backdrop-filter:none;
}
.top-inner, .wrap { max-width:min(1600px,100%); }
.top-inner { padding:10px 12px 8px; }
.wrap { padding:10px 12px 18px; }
.brand h1 { font-size:18px; color:#000; }
.brand .sub, .hosts { color:#404040; }
.tabs { gap:4px; margin-top:10px; }
.tabs {
  position:relative;
  z-index:101;
}
header.top::after {
  content:"";
  position:absolute;
  left:0; right:0; bottom:-3px;
  height:1px;
  background:#404040;
}
.tab,
.seg button,
.icsbtn,
.modal .close,
.filters select,
.filters input,
button, select, input {
  border-width:2px !important;
  border-style:solid !important;
  border-color:#ffffff #404040 #404040 #ffffff !important;
  border-radius:0 !important;
  background:#c0c0c0 !important;
  color:#000 !important;
  box-shadow:none !important;
  font-family:Tahoma,Verdana,"MS Sans Serif",Arial,sans-serif !important;
}
.tab { padding:5px 12px; transition:none; }
.tab.active,
.seg button.active {
  background:#000080 !important;
  color:#fff !important;
  border-color:#404040 #ffffff #ffffff #404040 !important;
  font-weight:700;
}
.filters input, .filters select { background:#fff !important; padding:5px 7px; }
.tzbar,
.match,
.gcard,
.tcard,
.scard,
.modal,
.player,
.error-note,
.ko-hero,
.ko-stat,
.ko-match,
.ko-stage-head,
.ko-final-lane,
footer.foot {
  background:#c0c0c0 !important;
  color:#000 !important;
  border-width:2px !important;
  border-style:solid !important;
  border-color:#ffffff #404040 #404040 #ffffff !important;
  border-radius:0 !important;
  box-shadow:none !important;
}
.tzbar { padding:8px; }
.tzbar .note, .sub, .m-time .off, .m-meta, .status, .legend, .loading,
.ko-card-meta, .ko-card-bottom, .ko-stat span, .ko-mid, .ko-stage-head,
.gcard h3, table.stand th, .scard .meta, .player .pos, .team-matches .mini .d,
.m-scorers, .foot, .ko-kicker { color:#404040 !important; }
.badge,
.status,
.ko-score,
.ko-stage-head b,
.ko-code {
  border:1px solid #808080 !important;
  border-radius:0 !important;
  background:#d4d0c8 !important;
  color:#000 !important;
}
.status.done { background:#d4d0c8 !important; color:#404040 !important; }
.status.live, .status.up { color:#800000 !important; }
.score, .pts, .dayhead.today, table.stand tr.qual td.pos,
.ko-match.home-wins .ko-side.home .ko-name,
.ko-match.away-wins .ko-side.away .ko-name,
.ko-match.home-wins .ko-side.home .ko-code,
.ko-match.away-wins .ko-side.away .ko-code { color:#008000 !important; }
.dayhead, table.stand th, table.stand td, footer.foot, .team-matches .mini { border-color:#808080 !important; }
.gcard h3, .modal .mhead { background:#000080 !important; color:#fff !important; border-radius:0 !important; }
.modal-bg { background:rgba(0,0,0,.35); backdrop-filter:none; }
.flag { border-radius:0; box-shadow:0 0 0 1px #808080; background:#d4d0c8; }
.match:hover, .tcard:hover { transform:none; border-color:#000080 !important; }
.ko-page { --ko-soft:#404040; --ko-glass:#c0c0c0; }
.ko-hero { padding:12px; margin:6px 0 10px; }
.ko-hero h2 { font-size:22px; letter-spacing:0; }
.ko-stats { gap:6px; }
.ko-scroll { padding:2px 2px 10px; scrollbar-color:#808080 #c0c0c0; }
.ko-board { gap:8px 12px; }
.ko-match { padding:8px; }
.ko-match.pending { border-style:dashed !important; }
.ko-card-top { margin-bottom:4px; }
.ko-card-bottom { margin-top:5px; }
.ko-name { color:#000; font-size:12px; }
.ko-side.pending .ko-name { color:#800000; font-style:normal; }
.ko-score.done { color:#008000 !important; }
.ko-tbd { background:#d4d0c8 !important; border:1px solid #808080; }
.empty { color:#404040; }
@media (max-width: 560px) {
  .win-window { width:calc(100vw - 8px); margin:4px; }
  .win-titlebar { font-size:11px; align-items:flex-start; flex-direction:column; gap:2px; }
  .next-match { width:100%; margin-left:0; white-space:normal; text-align:left; line-height:1.3; }
  .top-inner, .wrap { padding-left:8px; padding-right:8px; }
  .ko-stats { grid-template-columns:1fr; }
}

