.rebot-common .head-controls {
  display: flex;
  gap: 10px;
  align-items: stretch;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.rebot-common .top-selector {
  position: relative;
  display: inline-block;
  min-width: 220px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
  color: var(--ink);
}

.rebot-common .top-selector summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 14px;
  padding-right: 32px;
}

.rebot-common .top-selector summary::-webkit-details-marker {
  display: none;
}

.rebot-common .top-selector summary::after {
  content: '▾';
  position: absolute;
  right: 12px;
  top: 12px;
  font-size: 12px;
  opacity: 0.7;
  transition: transform 0.12s ease;
}

.rebot-common .top-selector[open] summary::after {
  transform: rotate(180deg);
}

.rebot-common .summary-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.rebot-common .summary-meta {
  font-size: 12px;
  color: rgba(15, 23, 42, 0.6);
}

.rebot-common .selector-list {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 260px;
  overflow: hidden;
  z-index: 10;
  background: var(--card);
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.12);
}

.rebot-common .top-selector[open] .selector-list {
  display: block;
}

.rebot-common .selector-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  color: inherit;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.12s ease, transform 0.12s ease;
}

.rebot-common .selector-link:hover {
  background: rgba(15, 23, 42, 0.05);
  transform: translateX(2px);
}

.rebot-common .selector-link.active {
  background: var(--pill-info-bg);
  border-left: 3px solid var(--pill-info-text);
  padding-left: 14px;
}

.rebot-common .badge-row {
  display: flex;
  gap: 6px;
  align-items: center;
}

.rebot-common .badge {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.05);
  font-size: 12px;
}

.rebot-common .badge.accent {
  background: var(--pill-info-bg);
  color: var(--pill-info-text);
  border: 1px solid var(--pill-info-border);
  font-weight: 700;
}

.rebot-common .panel {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: var(--panel-radius);
  padding: 22px;
  margin-bottom: 18px;
  box-shadow: 0 16px 45px rgba(15, 23, 42, 0.15);
  backdrop-filter: blur(6px);
}

.rebot-common .panel h2 {
  margin: 0 0 12px;
  font-size: 20px;
  letter-spacing: -0.2px;
}

.rebot-common .lead {
  margin: 0;
  color: rgba(15, 23, 42, 0.74);
}

.rebot-common .club-box {
  display: flex;
  align-items: stretch;
  gap: 14px;
}

.rebot-common .club-logo-wrap {
  width: 72px;
  min-height: 72px;
  flex: 0 0 72px;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: var(--card);
}

.rebot-common .club-box .club-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rebot-common .club-box-copy {
  min-width: 0;
}

.rebot-common .club-box-copy h2 {
  margin: 0 0 6px;
}

.rebot-common .club-box-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.rebot-common .club-link-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: 1px solid transparent;
  background: rgba(15, 23, 42, 0.08);
  color: var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.rebot-common .club-link-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  background: rgba(15, 23, 42, 0.12);
}

.rebot-common .club-link-pill.accent {
  border-color: rgba(240, 138, 25, 0.45);
  background: rgba(240, 138, 25, 0.14);
  color: #b45309;
}

.rebot-common .search-row {
  display: flex;
  gap: 10px;
}

.rebot-common .search-row input {
  flex: 1;
  min-width: 0;
  height: 48px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 12px;
  padding: 0 14px;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
}

.rebot-common .search-row button {
  width: 48px;
  height: 48px;
  padding: 0;
  border: none;
  border-radius: 12px;
  background: var(--cta-bg);
  color: var(--cta-text);
  font-size: 22px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.rebot-common .search-row button:hover {
  background: var(--cta-bg-hover);
}

.rebot-common ul.results {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.rebot-common ul.results li + li {
  margin-top: 8px;
}

.rebot-common ul.results a {
  display: block;
  padding: 11px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(15, 23, 42, 0.04);
}

.rebot-common ul.results a:hover {
  border-color: rgba(15, 23, 42, 0.14);
  background: rgba(15, 23, 42, 0.07);
}

.rebot-common .day-block {
  margin-top: 14px;
}

.rebot-common .day-block h3 {
  margin: 0 0 10px;
  color: var(--ink);
}

.rebot-common .grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.rebot-common .card {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--card);
  backdrop-filter: blur(2px);
  display: grid;
  gap: 8px;
  color: var(--ink);
}

.rebot-common .matchup {
  display: block;
}

.rebot-common .matchup-main {
  min-width: 0;
  width: 100%;
}

.rebot-common .teams-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: start;
}

.rebot-common .team-name {
  font-weight: 700;
  font-size: var(--team-name-size, 13px);
  color: var(--ink);
  line-height: 1.15;
  word-break: break-word;
  text-align: center;
}

.rebot-common .team-home {
  grid-column: 1;
}

.rebot-common .team-away {
  grid-column: 2;
}

.rebot-common .final-score {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  text-align: center;
}

.rebot-common .final-score-missing {
  margin-top: 6px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  color: rgba(15, 23, 42, 0.72);
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  padding: 6px 10px;
}

.rebot-common .final-static-score {
  margin: 8px 0;
  padding: 12px 10px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.84));
  display: grid;
  grid-template-columns: 1fr 0 1fr;
  gap: 8px;
  align-items: center;
  position: relative;
  overflow: visible;
}

.rebot-common .final-static-score .final-static-team.home {
  grid-column: 1;
  justify-self: start;
  justify-content: flex-start;
}

.rebot-common .final-static-score .final-static-team.away {
  grid-column: 3;
  justify-self: end;
  justify-content: flex-end;
}

.rebot-common .final-static-score.is-upcoming {
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.rebot-common .final-static-team {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}

.rebot-common .final-static-team.home {
  justify-content: flex-start;
}

.rebot-common .final-static-team.away {
  justify-content: flex-end;
}

.rebot-common .final-static-team .crest {
  width: clamp(44px, 5.4vw, 56px);
  height: clamp(44px, 5.4vw, 56px);
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.88);
  flex: 0 0 auto;
}

.rebot-common .final-static-center {
  display: grid;
  gap: 5px;
  text-align: center;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
}

.rebot-common .final-static-points {
  font-weight: 900;
  color: #111827;
  font-size: clamp(22px, 2.8vw, 34px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0.62) 20%, rgba(255, 255, 255, 0.62) 80%, rgba(255, 255, 255, 0.34) 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.12);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

.rebot-common .live-score iframe {
  width: 100%;
  min-height: 92px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.98);
}

.rebot-common .category {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.3);
  color: #0369a1;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  font-weight: 700;
  text-align: center;
  line-height: 1.15;
}

.rebot-common .meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: rgba(15, 23, 42, 0.64);
}

.rebot-common .meta-final {
  align-items: center;
}

.rebot-common .chronicle-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid transparent;
  background: rgba(15, 23, 42, 0.08);
  color: var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.rebot-common .chronicle-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  background: rgba(15, 23, 42, 0.12);
}

.rebot-common .error {
  color: #7f1d1d;
  font-weight: 700;
}

@media (max-width: 700px) {
  .rebot-common .head-controls {
    width: 100%;
    justify-content: flex-start;
  }

  .rebot-common .top-selector {
    min-width: min(92vw, 340px);
  }

  .rebot-common .selector-list {
    left: 0;
    right: auto;
    max-width: 92vw;
    min-width: min(92vw, 340px);
  }

  .rebot-common .teams-split {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .rebot-common .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
