/* ==========================================================================
   Super Puper Masters Open — World-Class Editorial Minimalism
   Aesthetic: Heritage French Clay × Swiss Typography & Architectural Restraint
   ========================================================================== */

:root {
  /* Core Tonal Palette */
  --c-bg: #F8F5EE;           /* Warm clay paper canvas */
  --c-card: #FFFFFF;         /* Crisp white cards */
  --c-surface: #F2ECE0;      /* Subtle tint for inputs/pills */
  --c-clay: #B34720;         /* Roland-Garros Terre Battue */
  --c-clay-dark: #8C3312;
  --c-forest: #0D4837;       /* French tennis forest green */
  --c-forest-dark: #072B21;         

  /* Text & Ink */
  --c-ink: #1B1816;          /* Deep warm charcoal/black */
  --c-ink-muted: #6B635B;    /* Medium quiet text */
  --c-ink-subtle: #9E958C;   /* Light metadata text */
  --c-border: #E8E2D6;       

  /* Typography */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Shadows: Soft, natural diffuse shadows */
  --shadow-card: 0 2px 8px rgba(27, 24, 22, 0.04), 0 1px 2px rgba(27, 24, 22, 0.03);
  --shadow-card-hover: 0 8px 24px rgba(27, 24, 22, 0.08), 0 2px 6px rgba(27, 24, 22, 0.04);
  --shadow-modal: 0 20px 48px rgba(27, 24, 22, 0.16);

  /* Radius */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-full: 9999px;
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--c-bg);
  color: var(--c-ink);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

:focus-visible {
  outline: 2px solid var(--c-clay);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: 1020px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ==========================================================================
   Header (Quiet & Elegant)
   ========================================================================== */
.site-header {
  background: var(--c-forest);
  color: #FFFFFF;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: var(--r-full);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.brand-sub {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.04em;
  margin-top: 2px;
}

/* ==========================================================================
   Navigation (Minimal Segmented Tabs)
   ========================================================================== */
.nav-bar {
  background: var(--c-card);
  border-bottom: 1px solid var(--c-border);
  position: relative;
  z-index: 40;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nav-tabs {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  gap: 4px;
  padding: 8px 0;
}

.nav-tabs::-webkit-scrollbar {
  display: none;
}

.nav-tab {
  background: transparent;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--c-ink-muted);
  padding: 7px 16px;
  border-radius: var(--r-full);
  cursor: pointer;
  white-space: nowrap;
  transition: all 160ms ease;
}

.nav-tab:hover {
  color: var(--c-ink);
  background: var(--c-surface);
}

.nav-tab.active {
  background: var(--c-forest);
  color: #FFFFFF;
}

/* ==========================================================================
   Main Stage Content
   ========================================================================== */
.site-main {
  flex: 1;
  padding-top: 10px;
  padding-bottom: 48px;
}

/* Matches Grid */
.matches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

@media (max-width: 960px) {
  .nav-container {
    padding-left: 0;
    padding-right: 0;
  }
  .nav-tabs {
    padding: 8px 16px;
  }
  .site-main.container {
    padding-top: 12px;
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 32px;
  }
}

/* ==========================================================================
   Match Card (Compact Grid View)
   ========================================================================== */
.match-card {
  background: var(--c-card);
  border-radius: var(--r-sm);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-card);
  padding: 10px 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.match-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--c-clay);
}

.player-name {
  font-size: 0.88rem;
  color: var(--c-ink);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-score {
  font-size: 0.98rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--c-ink);
  display: flex;
  align-items: baseline;
  gap: 2px;
  padding-left: 8px;
}

/* ==========================================================================
   Roland-Garros Volt Scoreboard Inside Match Modal
   ========================================================================== */
:root {
  --sb-chassis-bg: linear-gradient(165deg, #0A2E20 0%, #061F15 100%);
  --sb-chassis-trim: #B34720;
  --sb-row-bg: rgba(6, 26, 18, 0.88);
  --sb-row-winner: rgba(14, 52, 37, 0.96);
  --sb-divider: #103B2A;
  --led-bg-dot: rgba(255, 255, 255, 0.04);
  --led-color: #E2FF4D;
  --led-dim: rgba(226, 255, 77, 0.18);
}

.led-text {
  font-family: 'Handjet', monospace;
  font-variation-settings: 'ELSH' 2, 'ELGR' 2;
  letter-spacing: 0.05em;
}

.modal-scoreboard-card {
  width: 100%;
  max-width: 500px;
  max-height: 92vh;
  overflow-y: auto;
}

.scoreboard-chassis {
  background: var(--sb-chassis-bg);
  border: none;
  border-radius: 20px;
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.85);
  position: relative;
  overflow: hidden;
  padding: 24px 20px 22px;
}

/* Roland-Garros Clay Orange Accent Bars (Top and Bottom) */
.chassis-clay-bar {
  position: absolute;
  left: 0;
  right: 0;
  height: 8px;
  background: var(--sb-chassis-trim);
  z-index: 5;
  pointer-events: none;
}

.chassis-clay-bar.top {
  top: 0;
}

.chassis-clay-bar.bottom {
  bottom: 0;
}

.scoreboard-chassis::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--led-bg-dot) 1.2px, transparent 1.2px);
  background-size: 6px 6px;
  pointer-events: none;
  opacity: 0.85;
  z-index: 1;
}

.scoreboard-inner {
  position: relative;
  z-index: 2;
}

.scoreboard-top-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--sb-divider);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.stage-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.stage-badge-led {
  font-size: 1.15rem;
  color: #E2FF4D;
  text-shadow: 0 0 1px rgba(255, 255, 255, 0.4), 0 0 3px rgba(226, 255, 77, 0.35);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
  white-space: nowrap;
}

.court-date-meta {
  font-size: 0.67rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #9DB4A7;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.court-date-meta .dot-live {
  width: 5px;
  height: 5px;
  background: #2ECC71;
  border-radius: 50%;
  box-shadow: 0 0 5px #2ECC71;
  flex-shrink: 0;
}

.top-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-top: -2px;
}

.modal-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #DDE5E0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 160ms ease;
  outline: none;
}

.modal-icon-btn:hover {
  background: rgba(226, 255, 77, 0.18);
  border-color: rgba(226, 255, 77, 0.4);
  color: #E2FF4D;
  transform: scale(1.06);
}

.modal-icon-btn:active {
  transform: scale(0.96);
}

.modal-icon-btn svg {
  width: 15px;
  height: 15px;
}

.scoreboard-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
  table-layout: auto;
}

.scoreboard-table th {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #728B7E;
  font-weight: 700;
  padding-bottom: 6px;
  text-align: center;
}

.scoreboard-table th.col-player {
  text-align: left;
  padding-left: 14px;
}

.scoreboard-row {
  border-radius: 10px;
  transition: all 180ms ease;
}

.scoreboard-row td {
  padding: 13px 14px;
  vertical-align: middle;
  border-top: 1px solid var(--sb-divider);
  border-bottom: 1px solid var(--sb-divider);
  background: var(--sb-row-bg);
  overflow: visible;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.45);
}

.scoreboard-row.is-clickable {
  cursor: pointer;
}

.scoreboard-row.is-clickable:hover td {
  background: rgba(18, 56, 40, 0.95);
}

.scoreboard-row.winner td {
  background: var(--sb-row-winner);
  border-color: #1A543B;
}

.scoreboard-row td:first-child {
  border-left: 1px solid var(--sb-divider);
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

.scoreboard-row.winner td:first-child {
  border-left-color: #1A543B;
}

.scoreboard-row td:last-child {
  border-right: 1px solid var(--sb-divider);
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

.scoreboard-row.winner td:last-child {
  border-right-color: #1A543B;
}

.player-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: visible;
}

.serve-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--led-dim);
  border: 1px solid rgba(226, 255, 77, 0.2);
  flex-shrink: 0;
  transition: all 200ms ease;
}

.serve-indicator.active {
  background: var(--led-color);
  box-shadow: 0 0 8px var(--led-color);
}

.player-name-led {
  font-size: 1.45rem;
  color: #E2FF4D;
  text-shadow: 0 0 1px rgba(255, 255, 255, 0.5), 0 0 3px rgba(226, 255, 77, 0.4);
  line-height: 1.35;
  letter-spacing: 0.06em;
  white-space: nowrap;
  overflow: visible;
  padding: 2px 4px;
  display: inline-block;
  vertical-align: middle;
  font-weight: 600;
}

.scoreboard-row.winner .player-name-led {
  color: #F8FF9E;
  text-shadow: 0 0 1px #FFFFFF, 0 0 3.5px rgba(226, 255, 77, 0.55);
  font-weight: 700;
}

.scoreboard-row.dimmed .player-name-led {
  color: #7E9E8D;
  text-shadow: none;
  font-weight: 500;
}

.score-cell {
  text-align: center;
  width: 58px;
  font-size: 1.65rem;
  color: #E2FF4D;
  text-shadow: 0 0 1px rgba(255, 255, 255, 0.5), 0 0 3px rgba(226, 255, 77, 0.4);
  font-weight: 700;
  line-height: 1.2;
  overflow: visible;
}

.scoreboard-row.winner .score-cell {
  color: #F8FF9E;
  text-shadow: 0 0 1px #FFFFFF, 0 0 3.5px rgba(226, 255, 77, 0.55);
}

.scoreboard-row.dimmed .score-cell {
  color: #7E9E8D;
  text-shadow: none;
}

.score-cell.dim {
  color: var(--led-dim);
  text-shadow: none;
}

.score-cell.tb {
  width: 72px;
  font-size: 1.4rem;
  color: #FFFFFF;
  text-shadow: 0 0 1px #FFFFFF, 0 0 3px rgba(255, 255, 255, 0.4);
}

.scoreboard-row.dimmed .score-cell.tb {
  color: #7E9E8D;
  text-shadow: none;
}

.scoreboard-note {
  font-size: 0.78rem;
  color: #9DB4A7;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 6px;
  margin-top: 8px;
}

.scoreboard-footer {
  padding-top: 6px;
  margin-top: 14px;
}

.match-winner-note {
  color: #E2FF4D;
  text-shadow: 0 0 2px rgba(226, 255, 77, 0.4);
  font-weight: 700;
  font-size: 0.78rem;
}

@media (max-width: 480px) {
  .scoreboard-chassis {
    padding: 20px 14px 18px;
  }
  .chassis-clay-bar {
    height: 7px;
  }
  .court-date-meta {
    font-size: 0.62rem;
    letter-spacing: 0.02em;
    gap: 5px;
  }
  .stage-badge-led {
    font-size: 1.05rem;
  }
  .player-name-led {
    font-size: 1.25rem;
    padding: 2px 3px;
    letter-spacing: 0.04em;
  }
  .score-cell {
    width: 46px;
    font-size: 1.45rem;
  }
  .score-cell.tb {
    width: 58px;
    font-size: 1.25rem;
  }
  .scoreboard-row td {
    padding: 10px 8px;
  }
}

/* ==========================================================================
   Modals
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 12, 10, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 200;
}

.modal-backdrop.hidden {
  display: none;
}

.modal-card {
  background: var(--c-card);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-modal);
  width: 100%;
  max-width: 480px;
  padding: 24px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: var(--r-full);
  border: none;
  background: var(--c-surface);
  color: var(--c-ink-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close svg {
  width: 16px;
  height: 16px;
}

.modal-head {
  margin-bottom: 16px;
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--c-ink);
  line-height: 1.15;
}

/* Player Modal */
.player-modal-head {
  margin-bottom: 16px;
}

.player-title {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  color: var(--c-ink);
}

.player-subtitle {
  font-size: 0.78rem;
  color: var(--c-clay);
  font-weight: 600;
}

.player-rounds-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 18px;
}

.p-round-box {
  background: var(--c-surface);
  border-radius: var(--r-sm);
  padding: 8px 4px;
  text-align: center;
}

.p-round-name {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--c-ink-subtle);
}

.p-round-stat {
  font-size: 0.82rem;
  font-weight: 700;
  margin-top: 2px;
}

.p-round-stat.win { color: var(--c-forest); }
.p-round-stat.loss { color: var(--c-clay); }
.p-round-stat.wait { color: var(--c-ink-subtle); }

.player-matches-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.p-match-row {
  background: var(--c-surface);
  border-radius: var(--r-sm);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 0.88rem;
  border: 1px solid transparent;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}

.p-match-row:hover {
  background: #EAE2D2;
  transform: translateY(-1px);
  border-color: var(--c-border);
}

/* Rules Modal Content */
.rules-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rule-entry > strong:first-child {
  display: block;
  font-size: 0.9rem;
  color: var(--c-clay-dark);
  margin-bottom: 2px;
}

.rule-entry p {
  font-size: 0.84rem;
  color: var(--c-ink-muted);
  line-height: 1.45;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--r-full);
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 140ms ease;
}

.btn-link {
  background: transparent;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--c-clay);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn-link:hover {
  color: var(--c-clay-dark);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--c-forest-dark);
  color: #FFFFFF;
  padding: 8px 18px;
  border-radius: var(--r-full);
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: var(--shadow-modal);
  z-index: 300;
}

.toast.hidden { display: none; }

/* Loader */
.spinner {
  width: 28px;
  height: 28px;
  border: 2px solid var(--c-border);
  border-top-color: var(--c-clay);
  border-radius: 50%;
  animation: spin 600ms linear infinite;
  margin: 40px auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--c-border);
  padding: 18px 0;
  background: var(--c-bg);
  font-size: 0.78rem;
  color: var(--c-ink-subtle);
  margin-top: auto;
}

.footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--c-ink);
  font-weight: 500;
}

.footer-mini-logo {
  border-radius: var(--r-full);
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-dot {
  color: var(--c-border);
}

/* Mobile Tweaks */
@media (max-width: 600px) {
  .matches-grid {
    grid-template-columns: 1fr;
  }
  .footer-container {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Minimalist Section Header */
.section-heading-clean {
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--c-ink);
  margin-bottom: 2px;
}

.section-sub {
  font-size: 0.8rem;
  color: var(--c-ink-muted);
}

/* Matches Grid (1 коло) */
.r1-matches-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}

.match-card-r1 {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 12px 14px;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: border-color 0.15s ease;
  display: flex;
  flex-direction: column;
}

.match-card-r1:hover {
  border-color: var(--c-clay);
}

.match-r1-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--c-ink-muted);
  border-bottom: 1px solid var(--c-surface);
  padding-bottom: 6px;
  margin-bottom: 6px;
}

.match-r1-meta {
  color: var(--c-ink-muted);
}

.match-r1-meta.announced {
  color: var(--c-clay);
  font-weight: 600;
}

.match-r1-status {
  font-size: 0.7rem;
  color: var(--c-ink-subtle);
}

.match-r1-players {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.match-r1-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 0;
  font-size: 0.92rem;
}

.match-r1-line .player-name {
  font-weight: 600;
  color: var(--c-ink);
}

.match-r1-line .player-score {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: 0.92rem;
}

.match-r1-line.winner .player-name {
  color: var(--c-forest);
  font-weight: 700;
}

.match-r1-line.winner .player-score {
  color: var(--c-forest);
}

/* Groups Layout (Calm, Minimal, No Nested Frames) */
.groups-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.group-card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-card);
}

.group-card-header {
  margin-bottom: 12px;
  border-bottom: 1px solid var(--c-surface);
  padding-bottom: 8px;
}

.group-card-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--c-forest);
}

/* Standings Table inside Group */
.group-table-wrap {
  overflow-x: auto;
  margin-bottom: 14px;
}

.group-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  text-align: left;
}

.group-table th {
  background: var(--c-bg);
  color: var(--c-ink-muted);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 6px 10px;
  border-bottom: 1px solid var(--c-border);
}

.group-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--c-surface);
  color: var(--c-ink);
  transition: background 0.15s ease;
}

.group-table tr:last-child td {
  border-bottom: none;
}

.group-table-row.is-clickable {
  cursor: pointer;
}

.group-table-row.is-clickable:hover td {
  background: rgba(179, 71, 32, 0.05);
}

.group-table-row.is-clickable:hover .player-col strong {
  color: var(--c-clay);
}

.group-table .pos-col {
  width: 30px;
  font-weight: 700;
  color: var(--c-clay);
  text-align: center;
}

.group-table .player-col {
  font-weight: 600;
}

.group-table .num-col {
  text-align: center;
  font-variant-numeric: tabular-nums;
  width: 38px;
}

.group-table .pts-col {
  text-align: center;
  font-weight: 700;
  color: var(--c-forest);
  width: 44px;
}

/* Group Matches List */
.group-matches-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--c-ink-muted);
  margin-bottom: 8px;
}

.group-matches-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.group-mini-match {
  background: var(--c-bg);
  border-radius: var(--r-sm);
  padding: 8px 10px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.group-mini-match:hover {
  background: #FFFFFF;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.g-match-tour {
  font-size: 0.65rem;
  color: var(--c-ink-muted);
  margin-bottom: 2px;
}

.g-match-pair {
  font-weight: 600;
  color: var(--c-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.g-match-score {
  font-weight: 700;
  color: var(--c-forest);
  margin-top: 2px;
}

/* Consolation View (Quiet, Clean) */
.consolation-card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 20px;
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
}

.consolation-desc {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--c-ink);
  margin-bottom: 16px;
}

.consolation-slots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.consolation-slot-item {
  background: var(--c-bg);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.c-slot-title {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--c-ink-muted);
  text-transform: uppercase;
}

.c-slot-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--c-ink);
}

/* Players Grid View (Clean, No Badges) */
.players-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 32px;
}

.player-tile-card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
}

.player-tile-card:hover {
  border-color: var(--c-clay);
  box-shadow: var(--shadow-card-hover);
}

.player-tile-name {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--c-ink);
}

/* Responsive Overrides (Mobile) */
@media (max-width: 768px) {
  .r1-matches-grid {
    grid-template-columns: 1fr;
  }
  .group-matches-grid {
    grid-template-columns: 1fr;
  }
  .consolation-slots-grid {
    grid-template-columns: 1fr;
  }
  .players-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* Порожній коментар до матчу не повинен показувати темну смугу */
.scoreboard-note.hidden { display: none; }
