/* Match Timelines — Figma dark theme (compact) */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #05070a;
  font-family: "Helvetica Neue", Arial, sans-serif;
}

.app-shell {
  background: #05070a;
  min-height: 100vh;
  padding: 20px 28px 32px;
}

.eyebrow {
  margin: 0 0 4px;
  color: #6b7280;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.title {
  margin: 0;
  color: #f5f7fa;
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.title-rule {
  margin: 12px 0 10px;
  border: none;
  border-top: 1px solid #2a3140;
}

.subtitle {
  margin: 8px 0 0;
  color: #8b95a5;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.stage-filter-wrap {
  margin-bottom: 12px;
}

.segmented-control {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 3px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
}

.segmented-control .segmented-input {
  display: none;
}

.segmented-control .segmented-label {
  display: inline-block;
  padding: 6px 14px;
  color: #8b95a5;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.segmented-control .segmented-input:checked + .segmented-label {
  background: rgba(255, 255, 255, 0.1);
  color: #f5f7fa;
}

.legend-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-bottom: 12px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  color: #8b95a5;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.legend-dot {
  display: inline-block;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-goal {
  width: 7px;
  height: 7px;
  background: #f5f7fa;
  box-shadow: 0 0 6px rgba(245, 247, 250, 0.35);
}

.dot-assist {
  width: 7px;
  height: 7px;
  background: #4dd0e1;
  box-shadow: 0 0 6px rgba(77, 208, 225, 0.35);
}

.dot-var {
  width: 7px;
  height: 7px;
  background: #b388ff;
  box-shadow: 0 0 6px rgba(179, 136, 255, 0.35);
}

.dot-yellow {
  width: 7px;
  height: 7px;
  background: #ffd54f;
  box-shadow: 0 0 6px rgba(255, 213, 79, 0.35);
}

.dot-red {
  width: 7px;
  height: 7px;
  background: #ff5252;
  box-shadow: 0 0 6px rgba(255, 82, 82, 0.35);
}

.dot-so-goal {
  width: 7px;
  height: 7px;
  background: #f5f7fa;
  box-shadow: 0 0 6px rgba(245, 247, 250, 0.35);
}

.dot-so-miss {
  width: 7px;
  height: 7px;
  background: #78909c;
  box-shadow: 0 0 6px rgba(120, 144, 156, 0.35);
}

.dot-cum-1 { width: 4px; height: 4px; background: #5c6675; }
.dot-cum-2 { width: 5px; height: 5px; background: #5c6675; }
.dot-cum-3 { width: 6px; height: 6px; background: #5c6675; }
.dot-cum-4 { width: 7px; height: 7px; background: #5c6675; }

.dot-cum-outline-1 { width: 4px; height: 4px; background: transparent; border: 1px solid #5c6675; }
.dot-cum-outline-2 { width: 5px; height: 5px; background: transparent; border: 1px solid #5c6675; }
.dot-cum-outline-3 { width: 6px; height: 6px; background: transparent; border: 1px solid #5c6675; }
.dot-cum-outline-4 { width: 7px; height: 7px; background: transparent; border: 1px solid #5c6675; }

.cum-group {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.dot-winner {
  width: 7px;
  height: 7px;
  background: transparent;
  border: 1.5px solid #f5f7fa;
}

.dot-loser {
  width: 7px;
  height: 7px;
  background: #4a5568;
}

.graph-wrap {
  width: 100%;
}

.graph-wrap .js-plotly-plot,
.graph-wrap .plot-container {
  width: 100% !important;
}

.country-cards-section {
  margin-top: 28px;
}

.cards-heading {
  margin: 0 0 14px;
  color: #f5f7fa;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cards-hint {
  margin: -8px 0 14px;
  color: #6b7280;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.country-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.country-card {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
  opacity: 0.72;
}

.country-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
  opacity: 1;
}

.country-card-selected {
  background: rgba(255, 255, 255, 0.08);
  opacity: 1;
}

.country-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  margin-bottom: 10px;
}

.country-card-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid;
  background: transparent;
  flex-shrink: 0;
}

.country-card-name {
  flex: 1;
  min-width: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.country-card-total {
  color: #f5f7fa;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  flex-shrink: 0;
  text-align: right;
  margin-right: 0;
  padding-right: 0;
}

.country-card-breakdown {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.country-card-opponent {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #8b95a5;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.country-card-opponent-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1px solid;
  background: transparent;
  flex-shrink: 0;
}

.country-card-opponent-name {
  flex: 1;
}

.country-card-opponent-count {
  color: #f5f7fa;
  font-size: 10px;
  font-weight: 700;
}
