:root {
  color-scheme: light;
--bg: #fafafa;
--paper: #ffffff;
  --ink: #19191d;
  --muted: #71747b;
  --line: #d8d5cf;
  --line-soft: #e8e5df;
  --accent: #77364d;
  --accent-dark: #4a2d43;
  --sand: #dfc094;
  --live: #d73745;
  --winner: #28513d;
  --champions: #7a3148;
  --star: #8b6840;
  --contender: #4f6972;
  --youth-contender: #8a5a46;
  --feeder: #68725c;
  --smash: #5e3f58;
  --other: #6b6870;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% -2%, rgba(119, 54, 77, 0.025), transparent 27rem),
    radial-gradient(circle at 96% 18%, rgba(79, 105, 114, 0.025), transparent 25rem),
    linear-gradient(180deg, #ffffff 0%, #fbfbfa 57%, #f8f9f8 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  min-height: 100vh;
}

button,
input,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button:focus-visible,
select:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.page-shell {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 22px 22px 48px;
}

/* Header */
.site-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.mark {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  object-fit: contain;
}

.brand-copy {
  display: block;
  min-width: 0;
}

.brand-copy strong {
  display: block;
  font-size: 22px;
  letter-spacing: -0.04em;
  line-height: normal;
}

.brand-copy > span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.utilities {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  flex-wrap: wrap;
}

.utility {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}

.utility-label {
  color: var(--ink);
  font-weight: 800;
}

.utility-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.utility select {
  max-width: 235px;
  padding: 6px 22px 5px 2px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid #bbb7b0;
}

.clock-toggle {
  display: flex;
  gap: 10px;
}

.clock-toggle button {
  padding: 5px 0;
  color: #878990;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  font-size: 12px;
  font-weight: 750;
}

.clock-toggle button.active {
  color: var(--ink);
  border-color: var(--accent);
}

.auto-refresh-control {
  cursor: pointer;
  white-space: nowrap;
}

.auto-refresh-icon {
  width: 15px;
  height: 15px;
}

.auto-refresh-control input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.auto-refresh-switch {
  position: relative;
  width: 27px;
  height: 15px;
  flex: 0 0 auto;
  background: #c9c7c3;
  border-radius: 999px;
  transition: background-color 0.18s ease;
}

.auto-refresh-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 11px;
  height: 11px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(33, 28, 31, 0.25);
  transition: transform 0.18s ease;
}

.auto-refresh-control input:checked + .auto-refresh-switch {
  background: var(--accent);
}

.auto-refresh-control input:checked + .auto-refresh-switch::after {
  transform: translateX(12px);
}

.auto-refresh-control input:focus-visible + .auto-refresh-switch {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.language-control {
  gap: 8px;
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.language-icon {
  width: 15px;
  height: 15px;
}

.language-switch {
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-switch button {
  padding: 5px 0 4px;
  color: #878990;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  font-size: 12px;
  font-weight: 750;
  line-height: 1;
}

.language-switch button.active {
  color: var(--ink);
  border-color: var(--accent);
}

/* Rankings */
.rank-strip {
  --rank-bg-1: #3d2a3b;
  --rank-bg-2: #54384f;
  --rank-bg-3: #352f37;
  --rank-text: #fffdfb;
  --rank-muted: #ded4dc;
  margin-top: 18px;
  overflow: hidden;
  color: var(--rank-text);
  background:
    radial-gradient(circle at 28% 35%, rgba(223, 192, 148, 0.14), transparent 28%),
    linear-gradient(105deg, var(--rank-bg-1), var(--rank-bg-2) 52%, var(--rank-bg-3));
  border-top: 1px solid #674b61;
  border-bottom: 1px solid #674b61;
  transition: box-shadow 0.3s ease, background 0.35s ease;
}

.rank-strip.open {
  background:
    radial-gradient(circle at 50% 10%, rgba(223, 192, 148, 0.18), transparent 31%),
    radial-gradient(circle at 10% 92%, rgba(255, 255, 255, 0.045), transparent 24%),
    linear-gradient(105deg, var(--rank-bg-1), var(--rank-bg-2) 48%, var(--rank-bg-3));
  box-shadow: 0 18px 38px rgba(47, 31, 44, 0.15);
}

.rank-header {
  width: 100%;
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 13px 8px 15px;
  color: inherit;
  text-align: left;
  background: transparent;
  border: 0;
}

.rank-header:focus-visible {
  outline-color: var(--sand);
  outline-offset: -4px;
}

.rank-heading {
  position: relative;
  min-width: 0;
  flex: 0 0 auto;
}

.rank-title {
  display: block;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.13em;
  line-height: 1.1;
  text-transform: uppercase;
}

.rank-updated {
  position: absolute;
  top: 100%;
  left: 0;
  width: max-content;
  display: block;
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  color: var(--rank-muted);
  font-size: 9px;
  letter-spacing: 0.03em;
  opacity: 0;
  transform: translateY(-4px);
  transition: max-height 0.28s ease, margin-top 0.28s ease, opacity 0.22s ease, transform 0.28s ease;
}

.rank-strip.open .rank-updated {
  max-height: 30px;
  margin-top: 5px;
  opacity: 1;
  transform: translateY(0);
}

.collapsed-faces {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  transition: opacity 0.18s ease, transform 0.28s ease, visibility 0s linear 0.22s;
}

.rank-strip.open .collapsed-faces {
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.94) translateY(4px);
}

.face-photo {
  position: relative;
  width: 45px;
  height: 45px;
  margin-left: -18px;
  overflow: hidden;
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.46);
  background: #5a4556;
  border: 2px solid #4c3448;
  border-radius: 50%;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.23);
}

.face-photo:first-child {
  margin-left: 0;
}

.face-photo img,
.face-photo .player-silhouette {
  width: 100%;
  height: 100%;
}

.face-photo img {
  object-fit: cover;
  object-position: 50% 18%;
  transform: scale(1.14);
}

.expand-symbol {
  margin-left: auto;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--sand);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
}

.expand-symbol svg,
.rank-arrow svg,
.mobile-filter-toggle svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.expand-symbol svg {
  transition: transform 0.36s cubic-bezier(0.2, 0.75, 0.25, 1);
}

.rank-strip.open .expand-symbol svg {
  transform: rotate(180deg);
}

.rank-expansion {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.42s cubic-bezier(0.2, 0.75, 0.25, 1), opacity 0.24s ease;
}

.rank-strip.open .rank-expansion {
  grid-template-rows: 1fr;
  opacity: 1;
}

.rank-expansion-inner {
  min-height: 0;
  overflow: hidden;
}

.rank-expanded-toolbar {
  display: flex;
  justify-content: flex-end;
  padding: 0 14px 3px;
  opacity: 0;
  transform: translateY(-5px);
  transition: opacity 0.22s ease, transform 0.3s ease;
}

.rank-strip.open .rank-expanded-toolbar {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}

.rank-switch {
  display: flex;
  gap: 16px;
}

.rank-switch button {
  padding: 4px 0;
  color: var(--rank-muted);
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  font-size: 12px;
  font-weight: 850;
}

.rank-switch button.active {
  color: #fff;
  border-color: var(--sand);
}

.ranking-podium {
  max-width: 920px;
  min-height: 220px;
  display: grid;
  grid-template-columns: 0.82fr 1.36fr 0.82fr;
  align-items: end;
  margin: 0 auto;
  padding: 0 14px 4px;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.28s ease, transform 0.36s ease;
}

.rank-strip.open .ranking-podium {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.12s;
}

.podium-player {
  position: relative;
  min-height: 142px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.podium-player.rank-1 {
  min-height: 218px;
  transform: translateY(-4px);
}

.podium-player + .podium-player::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 14px;
  left: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.11);
}

.podium-number {
  position: absolute;
  top: 8px;
  left: 10px;
  z-index: 2;
  color: rgba(255, 255, 255, 0.19);
  font-size: 31px;
  font-weight: 950;
  line-height: 1;
}

.rank-1 .podium-number {
  top: 5px;
  font-size: 66px;
  color: rgba(223, 192, 148, 0.26);
}

.podium-art {
  position: absolute;
  right: 0;
  bottom: -2px;
  width: 60%;
  height: 116px;
  color: rgba(255, 255, 255, 0.25);
  filter: drop-shadow(0 14px 20px rgba(0, 0, 0, 0.3));
}

.rank-1 .podium-art {
  width: 67%;
  height: 195px;
}

.podium-art img,
.podium-art .player-silhouette {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}

.podium-copy {
  position: absolute;
  bottom: 14px;
  left: 11px;
  z-index: 3;
  max-width: 48%;
}

.podium-copy small {
  display: block;
  color: var(--sand);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.podium-copy strong {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.05;
}

.rank-1 .podium-copy strong {
  font-size: 24px;
}

.podium-copy span {
  display: block;
  margin-top: 5px;
  color: var(--rank-muted);
  font-size: 9px;
}

.ranking-rail-wrap {
  position: relative;
  padding: 6px 40px 13px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.rank-strip.open .ranking-rail-wrap {
  opacity: 1;
  transition-delay: 0.18s;
}

.ranking-rail {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}

.ranking-rail::-webkit-scrollbar {
  display: none;
}

.rank-card {
  min-width: 164px;
  min-height: 48px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  scroll-snap-align: start;
  background: rgba(255, 255, 255, 0.055);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.rank-card-number {
  color: var(--sand);
  font-size: 14px;
  font-weight: 950;
}

.rank-card-copy {
  min-width: 0;
}

.rank-card-copy strong {
  display: block;
  font-size: 11px;
  line-height: 1.1;
}

.rank-card-copy span {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: var(--rank-muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--sand);
  background: rgba(54, 39, 52, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.21);
  border-radius: 50%;
  transform: translateY(-64%);
}

.rank-arrow.previous {
  left: 5px;
}

.rank-arrow.next {
  right: 5px;
}

.rank-arrow:disabled {
  cursor: default;
  opacity: 0.26;
}

.player-silhouette {
  display: block;
  width: 100%;
  height: 100%;
}

.player-silhouette svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: currentColor;
}

.player-silhouette .silhouette-racket-handle {
  fill: none;
  stroke: currentColor;
  stroke-width: 11;
  stroke-linecap: round;
}

.player-silhouette .silhouette-racket {
  fill: none;
  stroke: currentColor;
  stroke-width: 10;
}

/* Navigation and filters */
.match-controls {
  margin-bottom: 24px;
  padding-top: 17px;
  border-bottom: 1px solid var(--line);
}

.control-row {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

.view-tabs {
  display: flex;
  gap: 29px;
}

.view-tab {
  position: relative;
  padding: 0 0 12px;
  color: #7c7e84;
  background: transparent;
  border: 0;
  font-size: 15px;
  font-weight: 820;
}

.view-tab.active {
  color: var(--ink);
}

.view-tab.active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: var(--accent);
}

.count {
  margin-left: 5px;
  color: #9a9ca1;
  font-size: 11px;
  font-weight: 700;
}

.control-spacer {
  flex: 1;
}

.results-toggle {
  position: relative;
  padding-bottom: 11px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.results-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.results-toggle:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.filter-zone,
.secondary-filter-zone {
  padding: 12px 0 14px;
  border-top: 1px solid var(--line-soft);
}

.secondary-filter-zone {
  position: relative;
  min-width: 0;
}

.filter-label {
  margin-bottom: 8px;
  color: #8c8e93;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.event-toggle-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.event-toggle {
  padding: 7px 10px;
  color: var(--series-color);
  background: color-mix(in srgb, var(--series-color) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--series-color) 45%, white);
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.event-toggle.active {
  color: #fff;
  background: var(--series-color);
  border-color: var(--series-color);
}

[data-series="champions"] { --series-color: var(--champions); }
[data-series="star"] { --series-color: var(--star); }
[data-series="contender"] { --series-color: var(--contender); }
[data-series="youth-contender"] { --series-color: var(--youth-contender); }
[data-series="feeder"] { --series-color: var(--feeder); }
[data-series="smash"] { --series-color: var(--smash); }
[data-series="other"] { --series-color: var(--other); }

.filter-selects {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hide-upcoming-button {
  position: absolute;
  top: 8px;
  right: 0;
  min-height: 31px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 9px;
  color: var(--accent);
  background: transparent;
  border: 1px solid rgba(119, 54, 77, 0.48);
  border-radius: 3px;
  font-size: 11px;
  font-weight: 800;
}

.hide-upcoming-button > svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.hide-upcoming-button:hover,
.hide-upcoming-button.active {
  background: rgba(119, 54, 77, 0.07);
}

.hide-upcoming-count {
  min-width: 18px;
  padding: 1px 5px;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  font-size: 9px;
  line-height: 16px;
  text-align: center;
}

.hide-upcoming-button:not([hidden]) + .filter-selects {
  padding-right: 150px;
}

.hide-upcoming-panel {
  position: absolute;
  z-index: 30;
  top: 49px;
  right: 0;
  width: min(380px, 100%);
  max-width: 100%;
  min-width: 0;
  padding: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 13px 32px rgba(42, 31, 39, 0.17);
}

.hide-upcoming-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 11px;
}

.hide-upcoming-panel-head strong {
  font-size: 13px;
}

.hide-upcoming-panel-head button {
  padding: 2px 0;
  color: var(--accent);
  background: transparent;
  border: 0;
  font-size: 10px;
  font-weight: 800;
}

.hide-upcoming-panel-head button:disabled {
  cursor: default;
  opacity: 0.4;
}

.hide-upcoming-search {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 36px;
  padding: 7px 9px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  font-size: 12px;
}

.hide-upcoming-options {
  min-width: 0;
  max-height: 310px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
}

.hide-upcoming-group {
  padding: 11px 2px 5px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hide-upcoming-option {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 7px 2px;
  font-size: 11px;
  cursor: pointer;
  min-width: 0;
}

.hide-upcoming-option input {
  flex: 0 0 auto;
  margin: 0;
  accent-color: var(--accent);
}

.hide-upcoming-option > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.hide-upcoming-option small {
  min-width: 0;
  max-width: 42%;
  margin-left: auto;
  color: var(--muted);
  font-size: 9px;
  overflow-wrap: anywhere;
  text-align: right;
}

.hide-upcoming-empty {
  padding: 18px 2px 8px;
  color: var(--muted);
  font-size: 11px;
}

.hidden-competitor-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.hidden-competitor-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  color: var(--accent);
  background: rgba(119, 54, 77, 0.08);
  border: 0;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 750;
  max-width: 100%;
}

.hidden-competitor-chip span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.hidden-competitor-chip span:last-child {
  font-size: 12px;
  line-height: 0.8;
}

.field {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
}

.field b {
  color: var(--ink);
}

.field select {
  min-width: 130px;
  max-width: 260px;
  padding: 6px 20px 5px 1px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid #bdb9b2;
}

.mobile-filter-toggle {
  display: none;
  align-items: center;
  padding: 6px 0;
  color: var(--accent);
  background: transparent;
  border: 0;
  font-size: 12px;
  font-weight: 850;
}

.mobile-filter-toggle svg {
  margin-left: 5px;
  transition: transform 0.18s ease;
}

.filters-open .mobile-filter-toggle svg {
  transform: rotate(180deg);
}

.active-filter-chips,
.filter-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.active-filter-chips {
  margin-top: 9px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  color: #5f5058;
  background: rgba(119, 54, 77, 0.07);
  border: 1px solid rgba(119, 54, 77, 0.2);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 750;
}

.chip-flag,
.event-country-flag,
.flag {
  width: 1.25em;
  height: 0.84em;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: 1px;
  box-shadow: 0 0 0 1px rgba(43, 37, 41, 0.14);
  vertical-align: -0.08em;
}

.chip-flag {
  width: 14px;
  height: 10px;
}

.event-country-flag {
  width: 15px;
  height: 11px;
  margin-right: 5px;
}

.country-with-flag {
  align-items: center;
  gap: 5px;
}

.podium-copy .country-with-flag,
.rank-card-copy .country-with-flag,
.duel-copy > .country-with-flag {
  display: flex;
}

.flag-code-fallback {
  width: auto;
  height: auto;
  padding: 1px 3px;
  color: currentColor;
  background: rgba(127, 127, 127, 0.12);
  border: 1px solid currentColor;
  border-radius: 2px;
  box-shadow: none;
  font-size: 0.62em;
  font-style: normal;
  font-weight: 850;
  line-height: 1.1;
}

.chip-remove {
  color: var(--accent);
  font-weight: 950;
}

/* Match timeline */
.section-heading {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.section-heading h1 {
  margin: 0;
  font-size: 27px;
  letter-spacing: -0.04em;
  line-height: normal;
}

.section-heading p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.day-group {
  max-width: 980px;
}

.day-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 24px 0 2px;
}

.day-head h2 {
  margin: 0;
  color: #85888e;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.day-head span {
  color: #9b9da2;
  font-size: 9px;
}

.timeline {
  position: relative;
  max-width: 960px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 5px;
  left: 91px;
  width: 1px;
  background: #cbc7bf;
}

.t-item {
  --series-color: var(--accent);
  display: grid;
  grid-template-columns: 74px 34px minmax(0, 1fr);
  padding: 9px 0 13px;
}

.t-time {
  padding-right: 12px;
  text-align: right;
}

.t-time strong {
  display: block;
  font-size: 18px;
  letter-spacing: -0.03em;
}

.t-time-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 4px;
}

.t-time .live-badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: 5px;
  padding: 3px 5px 2px;
  color: #fff;
  background: var(--live);
  border-radius: 3px;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.09em;
  line-height: 1;
  text-transform: uppercase;
}

.t-node {
  display: flex;
  justify-content: center;
}

.dot {
  position: relative;
  z-index: 1;
  width: 11px;
  height: 11px;
  margin-top: 6px;
  background: var(--series-color);
  border: 2px solid var(--bg);
  border-radius: 50%;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--series-color) 50%, #aaa);
}

.match {
  max-width: 850px;
  padding: 1px 0 14px;
  border-bottom: 1px solid var(--line-soft);
}

.match-top {
  display: flex;
  align-items: center;
  gap: 7px 11px;
  flex-wrap: wrap;
}

.series {
  color: var(--series-color);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.series:hover {
  text-decoration: underline;
}

.youtube-link {
  display: inline-flex;
  width: 23px;
  height: 18px;
  align-items: center;
  justify-content: center;
  color: var(--accent-dark);
  border-radius: 5px;
  opacity: 0.88;
  transition: opacity 140ms ease, transform 140ms ease;
}

.youtube-link:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.youtube-link svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.youtube-link .youtube-play {
  fill: var(--paper);
}

.event-meta {
  color: var(--muted);
  font-size: 12px;
}

.opponents,
.result-line {
  display: flex;
  align-items: baseline;
  gap: 8px 10px;
  flex-wrap: wrap;
  margin-top: 7px;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.competitor {
  display: inline-flex;
  align-items: baseline;
  min-width: 0;
  font-weight: 740;
}

.competitor.winner {
  color: var(--winner);
  font-weight: 820;
}

.is-completed .competitor:not(.winner) {
  color: #53585f;
  font-weight: 620;
}

.vs {
  color: #85878c;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.final-score {
  min-width: 48px;
  text-align: center;
  font-size: 18px;
  font-weight: 900;
}

.match-meta,
.live-score,
.set-scores {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 8px;
  color: #6a6d73;
  font-size: 12px;
}

.match-meta span + span,
.match-meta a + span {
  position: relative;
}

.match-meta span + span::before,
.match-meta a + span::before {
  content: "·";
  position: absolute;
  left: -10px;
  color: #aaa69f;
}

.set-scores {
  color: #81838a;
}

.flags {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-right: 5px;
}

.flag {
  display: block;
}

.player-name {
  min-width: 0;
}

.player-rank {
  position: relative;
  display: inline-block;
  margin-left: 4px;
  color: var(--accent);
  font-size: 0.72em;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  vertical-align: 0.4em;
}

.player-rank::before {
  content: "(";
}

.player-rank::after {
  content: ")";
}

.ranking-popover {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  z-index: 30;
  width: 260px;
  max-width: calc(100vw - 28px);
  display: block;
  padding: 9px 10px;
  color: #f8f7f4;
  background: #1d1d21;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 9px 26px rgba(0, 0, 0, 0.2);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.35;
  text-align: left;
  white-space: normal;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(3px);
  visibility: hidden;
}

.player-rank:hover .ranking-popover,
.player-rank:focus-visible .ranking-popover,
.player-rank:focus-within .ranking-popover {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.ranking-popover-title,
.ranking-popover-row {
  display: block;
}

.ranking-popover-title {
  margin-bottom: 5px;
  color: var(--sand);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ranking-popover-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  justify-content: space-between;
  gap: 16px;
  margin-top: 5px;
}

.ranking-popover-label {
  color: #aaa7ac;
}

.ranking-popover-value {
  color: #f8f7f4;
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
}

.is-live .dot {
  background: var(--live);
  box-shadow: 0 0 0 1px rgba(215, 55, 69, 0.3), 0 0 0 4px rgba(215, 55, 69, 0.09);
  animation: timeline-live-pulse 1.7s ease-in-out infinite;
}

.live-score strong {
  color: var(--live);
  font-size: 12px;
}

@keyframes timeline-live-pulse {
  0%, 100% {
    opacity: 0.62;
    box-shadow: 0 0 0 1px rgba(215, 55, 69, 0.26), 0 0 0 3px rgba(215, 55, 69, 0.06);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 0 1px rgba(215, 55, 69, 0.36), 0 0 0 7px rgba(215, 55, 69, 0.12);
  }
}

/* Featured match */
.featured {
  position: relative;
  max-width: 900px;
  margin: 3px 0 7px;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 80%, color-mix(in srgb, var(--series-color) 9%, transparent), transparent 28%),
    radial-gradient(circle at 93% 80%, rgba(79, 105, 114, 0.06), transparent 27%),
    linear-gradient(100deg, rgba(255, 255, 255, 0.9), #faf7f3 48%, rgba(255, 255, 255, 0.9));
  border-top: 1px solid var(--series-color);
  border-bottom: 1px solid #dcd7d0;
  box-shadow: 0 10px 27px rgba(37, 30, 31, 0.055);
}

.featured::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: var(--series-color);
}

.feature-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 18px 4px 20px;
}

.duel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px minmax(0, 1fr);
  align-items: end;
  gap: 10px;
  padding: 4px 20px 11px;
}

.duel-player {
  min-height: 146px;
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  align-items: end;
  gap: 14px;
}

.duel-player.right {
  grid-template-columns: minmax(0, 1fr) 118px;
}

.duel-art {
  height: 150px;
  color: #a2a0a3;
  filter: drop-shadow(0 15px 23px rgba(0, 0, 0, 0.15));
}

.duel-art img,
.duel-art .player-silhouette {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}

.duel-copy {
  padding-bottom: 17px;
}

.duel-player.right .duel-copy {
  order: 1;
  text-align: right;
}

.duel-player.right .duel-copy > .country-with-flag {
  justify-content: flex-end;
}

.duel-player.right .duel-art {
  order: 2;
}

.duel-copy > strong {
  display: block;
  font-size: 27px;
  letter-spacing: -0.052em;
  line-height: 1;
}

.duel-copy > span {
  display: block;
  margin-top: 7px;
  color: #55585e;
  font-size: 11px;
}

.duel-center {
  position: relative;
  min-height: 145px;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.duel-center::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 50%;
  width: 1px;
  background: linear-gradient(180deg, transparent, #d8d0c7 25%, #d8d0c7 75%, transparent);
}

.duel-center strong {
  position: relative;
  z-index: 1;
  padding: 0 8px;
  background: #faf8f5;
}

.duel-table {
  position: relative;
  z-index: 1;
  margin-top: 7px;
  padding: 2px 7px;
  color: #73757b;
  background: #faf8f5;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.01em;
  line-height: 1.2;
  white-space: nowrap;
}

.duel-center strong {
  color: var(--series-color);
  font-size: 27px;
  letter-spacing: 0.08em;
}

.feature-foot {
  display: flex;
  justify-content: flex-start;
  margin: 0 18px 0 20px;
  padding: 9px 0 12px;
  color: #55585e;
  border-top: 1px solid rgba(215, 208, 197, 0.75);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

/* Spoiler mode */
body.hide-results .result-sensitive {
  filter: blur(6px);
  user-select: none;
}

body.hide-results .is-completed .competitor,
body.hide-results .is-completed .winner-name {
  color: inherit !important;
  font-weight: 740 !important;
}

/* TBD competitors */
.player-name-tbd {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
}

.tbd-badge {
  padding: 2px 5px;
  color: var(--accent);
  border: 1px solid rgba(119, 54, 77, 0.3);
  font-size: 8px;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.tbd-description,
.pending-opponents-label {
  color: #676970;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0;
}

.opponents-pending {
  margin-top: 8px;
}

/* Upcoming events */
.upcoming-events {
  margin-top: 35px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.upcoming-events-title {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.035em;
}

.upcoming-events-grid {
  margin-top: 12px;
  border-top: 1px solid var(--line-soft);
}

.upcoming-event-card {
  display: grid;
  grid-template-columns: 125px minmax(0, 1fr) minmax(220px, 0.65fr) 85px;
  align-items: center;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
}

.upcoming-event-top {
  min-width: 0;
}

.upcoming-event-date {
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
}

.upcoming-event-countdown {
  color: #7c7f85;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-align: right;
  text-transform: uppercase;
}

.upcoming-event-title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
}

.upcoming-event-name {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: inherit;
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
}

.tournament-external-link {
  color: var(--accent);
}

a.upcoming-event-name:hover {
  color: var(--accent);
  text-decoration: underline;
}

.external-link-icon {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.upcoming-event-facts {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #666970;
  font-size: 12px;
}

.upcoming-event-fact {
  display: flex;
  align-items: center;
  gap: 6px;
}

.upcoming-event-fact-icon {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.load-more-wrap {
  max-width: 960px;
  padding: 20px 0 0 108px;
}

.load-more-button {
  padding: 8px 13px;
  color: var(--accent);
  background: transparent;
  border: 1px solid rgba(119, 54, 77, 0.35);
  font-size: 11px;
  font-weight: 850;
}

.empty,
.error {
  max-width: 960px;
  margin-top: 22px;
  padding: 28px 0;
  color: var(--muted);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
}

.error {
  color: #9a2935;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  margin-top: 33px;
  padding-top: 15px;
  color: #82848a;
  border-top: 1px solid var(--line);
  font-size: 11px;
}

.footer-source {
  display: inline-flex;
  gap: 4px;
}

.footer-links {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 9px;
}

.footer-made {
  display: inline-flex;
  align-items: center;
  justify-self: center;
  gap: 4px;
  color: #77757a;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.015em;
  white-space: nowrap;
}

.footer-made-logo {
  width: 96px;
  height: 20px;
  flex: 0 0 auto;
  color: var(--accent-dark);
  background-color: currentColor;
  -webkit-mask: url("hellodatapoint-logo-monochrome.svg") center / contain no-repeat;
  mask: url("hellodatapoint-logo-monochrome.svg") center / contain no-repeat;
}

.footer-made-heart {
  width: 11px;
  height: 11px;
  fill: var(--accent);
}

.footer-made-racket {
  width: 16px;
  height: 16px;
  overflow: visible;
}

.footer-made-racket-shape {
  fill: #302e32;
}

.footer-made-ball {
  fill: #d96b38;
}

.footer-separator {
  color: #b4b1b4;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.site-footer .footer-support,
.site-footer .footer-support:visited {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  justify-self: start;
  padding: 8px 13px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: #ffffff;
  background: var(--accent);
  box-shadow: 0 2px 8px rgba(74, 45, 67, 0.16);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}

.footer-support-icon {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-footer .footer-support:hover {
  color: #ffffff;
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  box-shadow: 0 3px 10px rgba(74, 45, 67, 0.22);
  text-decoration: none;
  transform: translateY(-1px);
}

.site-footer .footer-support:active {
  transform: translateY(0);
}

.site-footer .footer-support:focus-visible {
  color: #ffffff;
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .site-footer .footer-support {
    transition: none;
  }

  .site-footer .footer-support:hover,
  .site-footer .footer-support:active {
    transform: none;
  }
}

.footer-link-icon {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.35;
}

.site-footer a:hover {
  text-decoration: underline;
}


@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr;
  }

  .utilities {
    justify-content: flex-start;
  }
}

@media (max-width: 700px) {
  .site-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 11px;
  }

  .site-footer .footer-support,
  .footer-made,
  .footer-links {
    justify-self: center;
  }

  .page-shell {
    padding: 16px 14px 38px;
  }

  .site-header {
    gap: 10px;
    padding-bottom: 12px;
  }

  .brand {
    gap: 10px;
  }

  .mark {
    width: 40px;
    height: 40px;
  }

  .brand-copy strong {
    font-size: 20px;
  }

  .brand-copy > span {
    display: none;
  }

  .utilities {
    display: grid;
    width: 100%;
    grid-template-areas:
      "timezone language"
      "time refresh";
    grid-template-columns: minmax(0, 1fr) auto;
    justify-content: stretch;
    gap: 5px 12px;
    padding-right: 0;
  }

  .utilities > .utility:first-child {
    grid-area: timezone;
    min-width: 0;
  }

  .utilities > .utility:nth-child(2) {
    grid-area: time;
  }

  .auto-refresh-control {
    grid-area: refresh;
    justify-self: end;
    margin-left: 0;
  }

  .language-control {
    grid-area: language;
    justify-self: end;
    padding-left: 12px;
  }

  .utility-label {
    display: none;
  }

  .utility select {
    width: 100%;
    min-width: 0;
    max-width: none;
    font-size: 12px;
  }

  .rank-header {
    min-height: 62px;
    gap: 9px;
    padding-right: 9px;
    padding-left: 10px;
  }

  .rank-heading {
    min-width: auto;
  }

  .rank-title {
    font-size: 11px;
  }

  .rank-updated {
    font-size: 8px;
  }

  .face-photo {
    width: 27px;
    height: 27px;
    margin-left: -11px;
    border-width: 1px;
  }

  .expand-symbol {
    width: 29px;
    height: 29px;
  }

  .ranking-podium {
    min-height: 157px;
    grid-template-columns: 0.9fr 1.1fr 0.9fr;
    padding-right: 7px;
    padding-left: 7px;
  }

  .podium-player {
    min-height: 106px;
  }

  .podium-player.rank-1 {
    min-height: 154px;
  }

  .podium-number {
    font-size: 27px;
  }

  .rank-1 .podium-number {
    font-size: 34px;
  }

  .podium-art {
    height: 80px;
  }

  .rank-1 .podium-art {
    height: 130px;
  }

  .podium-copy {
    bottom: 8px;
    left: 7px;
    max-width: 58%;
  }

  .podium-copy strong {
    font-size: 10px;
  }

  .rank-1 .podium-copy strong {
    font-size: 12px;
  }

  .podium-copy small,
  .podium-copy span {
    font-size: 7px;
  }

  .ranking-rail-wrap {
    padding-right: 31px;
    padding-left: 31px;
  }

  .rank-card {
    min-width: 148px;
  }

  .control-row {
    gap: 17px;
  }

  .event-toggle-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .event-toggle-row::-webkit-scrollbar {
    display: none;
  }

  .mobile-filter-toggle {
    display: inline-flex;
    min-width: 0;
  }

  .mobile-filter-toggle > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .secondary-filter-zone {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 8px;
  }

  .hide-upcoming-button {
    position: static;
    grid-column: 2;
    grid-row: 1;
  }

  .hide-upcoming-button:not([hidden]) + .filter-selects {
    padding-right: 0;
  }

  .hide-upcoming-panel {
    position: static;
    grid-column: 1 / -1;
    width: 100%;
    max-width: calc(100vw - 28px);
    margin-top: 4px;
    overflow: hidden;
  }

  .filter-selects {
    grid-column: 1 / -1;
    display: none;
    margin-top: 2px;
  }

  .filters-open .filter-selects {
    display: grid;
    grid-template-columns: 1fr;
    gap: 11px;
  }

  .field {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 8px;
  }

  .field select {
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  .timeline::before {
    left: 69px;
  }

  .t-item {
    grid-template-columns: 56px 27px minmax(0, 1fr);
  }

  .t-time {
    padding-right: 8px;
  }

  .t-time strong {
    font-size: 16px;
  }

  .opponents,
  .result-line {
    gap: 6px 8px;
    font-size: 18px;
  }

  .ranking-popover {
    right: -10px;
    left: auto;
    max-width: 230px;
    transform: translateY(3px);
  }

  .player-rank:hover .ranking-popover,
  .player-rank:focus-visible .ranking-popover,
  .player-rank:focus-within .ranking-popover {
    transform: translateY(0);
  }

  .duel {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .duel-player,
  .duel-player.right {
    min-height: 112px;
    grid-template-columns: 100px minmax(0, 1fr);
  }

  .duel-player.right {
    grid-template-columns: minmax(0, 1fr) 100px;
  }

  .duel-art {
    height: 112px;
  }

  .duel-copy > strong {
    font-size: 22px;
  }

  .duel-center {
    min-height: 40px;
    flex-direction: column;
  }

  .duel-table {
    margin-top: 4px;
  }

  .duel-center::before {
    top: 50%;
    right: 10%;
    bottom: auto;
    left: 10%;
    width: auto;
    height: 1px;
  }

  .feature-foot {
    flex-direction: column;
  }

  .upcoming-event-card {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .load-more-wrap {
    padding-left: 83px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}
