/* Lectura pública: búsqueda, filtros activos y tarjetas compactas. */

.match-search {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0 0 0.75rem;
}

.match-search-label,
.filter-field-label,
.sport-explorer-kicker,
.explain-easy-kicker,
.explain-easy-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.match-search-input,
.filter-league-inline select {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm, 8px);
  border: 1px solid var(--stroke);
  background: var(--card, #12121a);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
}

.match-search-input:focus-visible,
.filter-league-inline select:focus-visible,
.filter-chip:focus-visible,
.match-card .explain-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.match-search-status {
  margin: 0.35rem 0 0;
  color: var(--text);
  font-size: 0.9375rem;
  line-height: 1.4;
}

.match-search-status[data-state="searching"] {
  color: var(--muted);
}

.match-search-results {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.45rem;
  width: 100%;
}

.match-search-hit {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-sm, 8px);
  background: var(--card, #12121a);
}

.match-search-hit-title,
.match-search-hit-meta {
  margin: 0;
}

a.match-search-hit-title {
  color: inherit;
  text-decoration: none;
}

a.match-search-hit-title:hover {
  text-decoration: underline;
}

.match-search-hit-title {
  font-weight: 700;
  line-height: 1.3;
}

.match-search-hit-meta {
  color: var(--muted);
  font-size: 0.875rem;
}

.match-search-hit-public,
.match-search-hit-analysis {
  margin-top: 0.25rem;
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  min-height: 2.25rem;
  display: inline-flex;
  align-items: center;
}

@media (max-width: 720px) {
  .match-search-hit-title {
    font-size: 1rem;
  }
}

.filter-form-visible {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
}

.filter-league-inline {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.filter-chip-row {
  gap: 0.45rem;
}

.page-predictions-feed .filter-chip,
.page-predictions-feed .jornada-chip,
.page-predictions-feed .sport-explorer-pill,
.page-predictions-feed .sport-explorer-all {
  color: var(--muted);
  background: transparent;
  border-color: var(--stroke);
  min-height: 2.25rem;
}

.page-predictions-feed .filter-chip:not(.is-active),
.page-predictions-feed .jornada-chip:not(.is-active) {
  color: #8e8e98;
  border-color: rgba(255, 255, 255, 0.28);
}

.page-predictions-feed .filter-chip.is-active,
.page-predictions-feed .jornada-chip.is-active,
.page-predictions-feed .sport-explorer-pill.is-active,
.page-predictions-feed .sport-explorer-all.is-active,
.page-predictions-feed .sport-explorer-group.is-active .sport-explorer-trigger {
  color: var(--primary-ink, #fff);
  background: var(--primary);
  border-color: var(--primary);
  font-weight: 700;
}

.page-predictions-feed .filter-chip.is-active .filter-chip-count,
.page-predictions-feed .jornada-chip.is-active .jornada-chip-count {
  color: inherit;
  opacity: 0.9;
}

.sport-explorer-kicker {
  margin: 0 0.75rem 0.35rem;
}

.match-readout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.1rem 0.75rem;
  align-items: baseline;
  padding: 0.15rem 0 0.35rem;
}

.match-readout-kicker,
.match-readout-gap {
  grid-column: 1 / -1;
  margin: 0;
}

.match-readout-who {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
}

.match-readout-pct {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  color: var(--text);
}

.match-readout-gap {
  font-size: 0.8125rem;
  color: var(--muted);
}

.match-reco {
  margin: 0.15rem 0 0.35rem;
  font-size: 0.8125rem;
}

.match-card-more {
  margin-top: 0.15rem;
}

.match-card-more > summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
  min-height: 2.25rem;
  display: flex;
  align-items: center;
}

.match-card-more > summary:hover {
  color: var(--text);
}

.match-card-foot .explain-link.btn-primary {
  flex: 1 1 12rem;
  min-height: 2.75rem;
  justify-content: center;
  font-size: 0.9375rem;
}

.explain-easy {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.explain-easy-kicker,
.explain-plain-headline,
.explain-uncertainty,
.explain-reco p {
  margin: 0;
}

.explain-plain-headline {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
}

.explain-uncertainty {
  font-size: 0.9375rem;
}

.explain-factor.is-conflict {
  border-left: 3px solid var(--primary);
  padding-left: 0.65rem;
}

.explain-advanced {
  margin-top: 1.25rem;
  border-top: 1px solid var(--stroke);
  padding-top: 0.85rem;
}

.explain-advanced > summary {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-height: 2.75rem;
  font-weight: 700;
}

.explain-advanced-hint {
  font-weight: 500;
  font-size: 0.8125rem;
}

.public-glossary {
  margin-top: 1rem;
}

.public-glossary-list {
  display: grid;
  gap: 0.75rem;
  margin: 0.75rem 0 0;
}

.public-glossary-list dt {
  font-weight: 700;
}

.public-glossary-list dd {
  margin: 0.15rem 0 0;
  color: var(--muted);
}

.page-predictions-feed .sport-explorer,
.page-predictions-feed .page-intro,
.page-predictions-feed .breadcrumbs,
.page-predictions-feed .subtitle-header {
  display: none;
}

.page-predictions-feed .app-header .topbar {
  padding-top: 0.3rem;
  padding-bottom: 0.15rem;
}

.page-predictions-feed .predictions-home {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.page-predictions-feed .predictions-search-slot .match-search-label {
  font-size: 0.8125rem;
}

.page-predictions-feed .predictions-search-slot .match-search-input {
  width: 100%;
  min-height: 2.75rem;
  font-size: 1rem;
}

.predictions-advanced {
  border: 1px solid var(--stroke);
  border-radius: var(--radius-sm, 8px);
}

.predictions-advanced > summary {
  cursor: pointer;
  min-height: 2.25rem;
  padding: 0.35rem 0.7rem;
  font-size: 0.8125rem;
  font-weight: 650;
}

.predictions-advanced-body {
  padding: 0 0.7rem 0.7rem;
}

.predictions-advanced-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin: 0.45rem 0 0;
}

.predictions-home-count {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.3;
}

.predictions-guest-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.75rem;
  margin: 0;
  max-width: 40rem;
  color: var(--muted);
  font-size: 0.8125rem;
}

.match-card-why,
.match-card-live,
.match-card-status,
.match-card-access {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.4;
}

.match-card-why,
.match-card-status,
.match-card-access {
  color: var(--muted);
}

.match-card-access {
  color: var(--text);
  font-weight: 650;
}

.match-card-locked {
  min-height: 0;
  overflow: visible;
}

.match-card-locked .match-head,
.match-card-locked .match-card-body {
  filter: none;
  opacity: 1;
  user-select: auto;
  pointer-events: auto;
}

.page-predictions-feed .predictions-feed-list.predictions-chrono {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 40rem;
}

.page-predictions-feed .predictions-chrono .match-card {
  gap: 0.45rem;
  padding: 0.6rem 0.7rem 0.65rem;
  scroll-margin-top: 4.5rem;
  scroll-margin-bottom: 5.5rem;
}

.predictions-below {
  max-width: 40rem;
  margin-top: 0.75rem;
}

.public-match {
  max-width: 40rem;
  margin: 0 auto;
  padding: 1rem var(--page-gutter-wide, 1rem) 2.5rem;
}

.public-match-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.85rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-sm, 8px);
  background: var(--card, #12121a);
}

.public-match-card h1 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.25;
}

.public-match-meta,
.public-match-note {
  margin: 0;
  color: var(--muted);
}

.page-predictions-feed .match-card {
  scroll-margin-top: 4.5rem;
  scroll-margin-bottom: 5.5rem;
}

@media (max-width: 720px) {
  .match-search-input,
  .filter-league-inline select,
  .match-card-foot .explain-link.btn-primary,
  .explain-advanced > summary {
    min-height: 2.75rem;
  }

  .filter-chip-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
  }

  .page-predictions-feed .filter-chip,
  .page-predictions-feed .jornada-chip {
    flex: 0 0 auto;
  }

  .match-readout-pct {
    font-size: 1.5rem;
  }

  .explain-plain-headline {
    font-size: 1.125rem;
  }
}
