/* BossEdge — Prediction feed (layout denso, tema oscuro global) */

.page-predictions-feed .section-title,
.page-predictions-feed .sport-section-title,
.page-predictions-feed .league-block-title,
.page-predictions-feed .jornada-block-title {
  color: var(--text);
}

.page-predictions-feed .section-meta,
.page-predictions-feed .sport-section-sub,
.page-predictions-feed .muted,
.page-predictions-feed .filter-status {
  color: var(--muted);
}

/* —— Compact filter chip bar —— */
.filter-chip-bar {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 100%;
}

.filter-chip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--card);
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 550;
  text-decoration: none;
  line-height: 1.2;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}

.filter-chip:hover {
  border-color: rgba(var(--primary-rgb), 0.35);
  background: rgba(var(--primary-rgb), 0.06);
}

.filter-chip.is-active {
  border-color: rgba(var(--primary-rgb), 0.45);
  background: rgba(var(--primary-rgb), 0.12);
  color: var(--primary);
}

.filter-chip-count {
  font-variant-numeric: tabular-nums;
  opacity: 0.7;
  font-size: 0.6875rem;
}

.filter-more {
  position: relative;
}

.filter-more > summary {
  list-style: none;
}

.filter-more > summary::-webkit-details-marker {
  display: none;
}

.filter-more-panel {
  position: absolute;
  z-index: 20;
  top: calc(100% + 0.35rem);
  right: 0;
  min-width: min(92vw, 18rem);
  padding: 0.75rem;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-md);
  background: var(--card);
  box-shadow: var(--shadow-md);
}

.filter-more-panel .field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin: 0;
}

.filter-more-panel select {
  width: 100%;
}

.page-predictions-feed .filter-status {
  margin: 0;
  font-size: 0.6875rem;
}

/* —— Feed header —— */
.predictions-feed-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 0.35rem;
}

.predictions-feed-head-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.85rem;
}

.predictions-feed {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.predictions-feed-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 960px) {
  .page-predictions-feed .predictions-feed-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 0.75rem;
    align-items: stretch;
  }
}

/* —— Soften grouping chrome (avoid accordion hell) —— */
.page-predictions-feed .sport-section-head {
  padding: 0.35rem 0;
  border: none;
  background: transparent;
}

.page-predictions-feed .league-block {
  border: none;
  background: transparent;
}

.page-predictions-feed .league-block > summary.league-block-head {
  padding: 0.45rem 0;
  margin: 0.25rem 0 0.55rem;
  border-bottom: 1px solid var(--stroke);
  background: transparent;
  list-style: none;
}

.page-predictions-feed .league-block > summary.league-block-head::-webkit-details-marker {
  display: none;
}

/* —— Freemium chip —— */
.page-predictions-feed .freemium-sidebar-chip {
  background: rgba(var(--primary-rgb), 0.08);
  border-color: rgba(var(--primary-rgb), 0.2);
}

/* —— Explain sticky —— */
.page-predictions-feed .explain-sticky-summary,
.explain-page .explain-sticky-summary {
  background: rgba(19, 21, 28, 0.94);
  color: var(--text);
}

.explain-page.page-predictions-feed .explain-main {
  max-width: min(100% - 2rem, 52rem);
}

.explain-page.page-predictions-feed .explain-article,
.explain-page.page-predictions-feed .explain-sticky-summary {
  background: var(--card);
  border-color: var(--stroke);
  color: var(--text);
}

.explain-page.page-predictions-feed .explain-sticky-summary {
  background: rgba(19, 21, 28, 0.95);
}

.explain-page.page-predictions-feed .explain-tabs {
  background: var(--bg2);
}

/* Keep legacy compact/split CSS inert if referenced elsewhere */
.predictions-view-toolbar,
.predictions-global-split,
.match-compact-table-wrap {
  display: none !important;
}
