/* Explore (Teams + Stadiums) — mirrors the app's Browse Teams screen */
.sp-explore {
  --ex-panel: #22426b;
  --ex-row: #182f4f;
  --ex-row-hover: #1d3a60;
  --ex-line: rgba(211, 223, 239, 0.12);
  --ex-gold: #f2be3a;
  --ex-gold-d: #c78e1e;
  --ex-text: #f5f8fc;
  --ex-muted: #a9bad3;
  max-width: 760px;
  margin: 0 auto;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ex-text);
  letter-spacing: normal;
  word-spacing: normal;
  text-transform: none;
}
.sp-explore a, .sp-explore button { letter-spacing: normal; word-spacing: normal; }
.sp-explore .ex-row .ex-meta { color: var(--ex-muted); }
.sp-explore .ex-row .ex-name { color: var(--ex-gold); }
.sp-explore a.ex-tab { color: var(--ex-muted); }
.sp-explore a.ex-tab[aria-selected="true"] { color: #fff; }
.sp-explore .ex-crumbs strong { color: #fff; }
.sp-explore * { box-sizing: border-box; }
.ex-card {
  background: var(--ex-panel);
  border-radius: 22px;
  padding: 18px 16px 22px;
  box-shadow: 0 0 0 2px rgba(199, 142, 30, 0.55), 0 20px 50px rgba(0, 0, 0, 0.35);
}
.ex-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 4px 4px 14px; border-bottom: 1px solid var(--ex-line); }
.ex-kicker { font-size: 11px; font-weight: 800; letter-spacing: 0.16em; color: var(--ex-gold); text-transform: uppercase; }
.ex-title { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin: 2px 0 2px; color: #fff; }
.ex-sub { font-size: 14px; color: var(--ex-muted); }
.ex-head img { width: 64px; height: 64px; border-radius: 14px; flex: none; }

.ex-tabs { display: flex; gap: 4px; margin: 14px 0 12px; padding: 4px; border-radius: 14px; background: rgba(10, 26, 48, 0.55); border: 1px solid var(--ex-line); }
.ex-tab {
  flex: 1; border: 0; background: none; color: var(--ex-muted); font: inherit; font-size: 14px; font-weight: 700;
  padding: 9px 6px; border-radius: 10px; cursor: pointer; text-decoration: none; text-align: center;
}
.ex-tab:hover { color: #fff; }
.ex-tab[aria-selected="true"] { background: #2d5385; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12); }

.ex-search { position: relative; margin-bottom: 14px; }
.ex-search input {
  width: 100%; padding: 13px 14px 13px 40px; border-radius: 12px; border: 1px solid var(--ex-line);
  background: #1a3354; color: #fff; font: inherit; font-size: 15px; outline: none;
}
.ex-search input:focus { border-color: var(--ex-gold); }
.ex-search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; fill: var(--ex-muted); }

.ex-crumbs { font-size: 13px; color: var(--ex-muted); margin: 2px 4px 10px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ex-crumbs button { background: none; border: 0; padding: 0; font: inherit; color: var(--ex-gold); cursor: pointer; text-transform: none; }
.ex-crumbs button.up { text-transform: uppercase; letter-spacing: 0.04em; font-weight: 700; }
.ex-crumbs strong { color: #fff; }

.ex-h { font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ex-gold); margin: 18px 4px 8px; }
.ex-h2 { font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ex-gold-d); margin: 10px 8px 6px; }

.ex-list { display: flex; flex-direction: column; gap: 8px; }
.ex-row {
  display: flex; align-items: center; gap: 14px; padding: 9px 12px; border-radius: 12px;
  background: var(--ex-row); border: 1px solid var(--ex-line); color: inherit; text-decoration: none;
  cursor: pointer; width: 100%; text-align: left; font: inherit; transition: background .12s ease, border-color .12s ease;
}
.ex-row:hover { background: var(--ex-row-hover); border-color: rgba(242, 190, 58, 0.45); }
.ex-logo {
  width: 46px; height: 46px; flex: none; border-radius: 10px; background: #fff; display: grid; place-items: center; overflow: hidden;
  box-shadow: 0 0 0 2px var(--ex-gold-d);
}
.ex-logo img { width: 84%; height: 84%; object-fit: contain; }
.ex-logo.photo img { width: 100%; height: 100%; object-fit: cover; }
.ex-logo .ex-fallback { font-size: 22px; }
.ex-logo .ex-abbr { font-size: 13px; font-weight: 800; color: #132b4c; }
.ex-main { flex: 1; min-width: 0; }
.ex-name { display: block; font-size: 15.5px; font-weight: 800; color: var(--ex-gold); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ex-meta { font-size: 12.5px; color: var(--ex-muted); margin-top: 2px; display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ex-meta .ex-pin { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 4px; background: var(--ex-gold-d); color: #132b4c; font-size: 10px; font-weight: 900; flex: none; }
.ex-chev { color: var(--ex-muted); font-size: 22px; line-height: 1; flex: none; }
.ex-score { flex: none; min-width: 42px; padding: 5px 8px; border-radius: 8px; background: #0f2440; color: var(--ex-gold); font-weight: 800; font-size: 14px; text-align: center; border: 1px solid rgba(242, 190, 58, 0.4); }
.ex-empty { padding: 26px 8px; text-align: center; color: var(--ex-muted); }
.ex-more { margin: 10px auto 0; display: block; background: none; border: 1px solid var(--ex-line); color: var(--ex-gold); border-radius: 999px; padding: 8px 16px; font: inherit; font-weight: 700; cursor: pointer; }
.ex-loading { padding: 40px 0; text-align: center; color: var(--ex-muted); }

.ex-app-cta { margin: 18px auto 0; max-width: 760px; text-align: center; color: var(--ex-muted); font-size: 14px; }
.ex-app-cta a { color: var(--ex-gold); font-weight: 700; }

@media (max-width: 520px) {
  .ex-card { padding: 14px 10px 18px; border-radius: 18px; }
  .ex-title { font-size: 22px; }
  .ex-head img { width: 52px; height: 52px; }
  .ex-tab { font-size: 13px; padding: 8px 4px; }
}

/* Beat the site-wide style.css (word spacing, button/link colors). */
.sp-explore, .sp-explore * { word-spacing: normal !important; }
.sp-explore .ex-list .ex-row { background: var(--ex-row); color: var(--ex-text); }
.sp-explore .ex-list .ex-row:hover { background: var(--ex-row-hover); }
.sp-explore .ex-list .ex-row .ex-name { color: var(--ex-gold); }
.sp-explore .ex-list .ex-row .ex-meta { color: var(--ex-muted); }
.sp-explore .ex-card { background: var(--ex-panel); }

/* ---- closer to the app ---- */
.sp-explore .ex-logo { width: 54px; height: 54px; border-radius: 12px; box-shadow: 0 0 0 2.5px var(--ex-gold-d), 0 2px 6px rgba(0,0,0,.35); }
.sp-explore .ex-list .ex-row { padding: 10px 14px; border-radius: 14px; }
.sp-explore .ex-name { font-size: 17px; }
.sp-explore .ex-meta { font-size: 14px; }
.sp-explore .ex-meta .ex-pin { width: 18px; height: 18px; border-radius: 5px; }
.sp-explore .ex-crumbs { font-size: 15px; }
.sp-explore .ex-crumbs button.up { color: var(--ex-gold); }
.ex-detail .ex-h { background: rgba(10, 26, 48, 0.32); margin: 14px -16px 10px; padding: 12px 20px; }
.ex-detail .ex-h:first-of-type { margin-top: 8px; }
.sp-explore .ex-list .ex-row.is-selected { border-color: var(--ex-gold); box-shadow: inset 4px 0 0 var(--ex-gold); background: #213f66; }

/* Desktop split view */
@media (min-width: 960px) {
  .sp-explore { max-width: 1180px; }
  .ex-split { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 18px; align-items: start; }
  .ex-side, .ex-detail { max-height: calc(100vh - 140px); overflow-y: auto; padding-right: 6px; position: sticky; top: 90px; }
  .ex-side .ex-h:first-child, .ex-detail > :first-child { margin-top: 4px; }
  .ex-detail { background: rgba(10, 26, 48, 0.18); border-radius: 16px; padding: 10px 16px 16px; }
  .ex-detail .ex-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ex-side::-webkit-scrollbar, .ex-detail::-webkit-scrollbar { width: 8px; }
  .ex-side::-webkit-scrollbar-thumb, .ex-detail::-webkit-scrollbar-thumb { background: rgba(211,223,239,.18); border-radius: 8px; }
  .ex-side .ex-crumbs, .ex-split [data-home] { }
}
