/* Barra de dias y filtros compartida. Mismo aspecto que la de la home. */
#bhAgendaBar:has(+ #matches-list .match-card),
#bhAgendaBar:has(+ #fem-matches-container .match-card),
#bhAgendaBar:has(+ #us-list .match-card) { min-height: 130px; }
#bhAgendaBar.bh-bar-ready { min-height: 0; }

.date-scroller { background: var(--bg-card); padding: 10px 0; border-bottom: 1px solid var(--border); border-radius: 8px; margin-bottom: 25px; position: relative; }
.date-scroller::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 40px; background: linear-gradient(to right, transparent, var(--bg-card)); pointer-events: none; z-index: 2; }
.scroller-track { max-width: 100%; margin: 0 auto; display: flex; gap: 10px; overflow-x: auto; overflow-y: hidden; padding: 4px 10px 8px 10px; touch-action: pan-x pan-y; cursor: grab; }
.scroller-track:active { cursor: grabbing; }
.scroller-track::-webkit-scrollbar { display: none; }

.date-pill { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); border-radius: 6px; min-width: 70px; padding: 8px; text-align: center; cursor: pointer; transition: 0.2s; flex-shrink: 0; color: var(--text-main); }
.date-pill:hover { background: rgba(255, 255, 255, 0.1); }
.date-pill.active { background: var(--accent); border-color: var(--accent); color: #fff; transform: scale(1.05); }
.dp-day { font-size: 0.7rem; text-transform: uppercase; display: block; opacity: 0.8; }
.dp-num { font-size: 1.2rem; font-weight: 600; font-family: "Teko"; line-height: 1; }
.dp-month { font-size: 0.6rem; opacity: 0.6; }

.filters-scroller { background: transparent; margin-bottom: 18px; position: relative; width: 100%; overflow: hidden; }
.filters-track { display: flex; gap: 4px; overflow-x: auto; overflow-y: hidden; padding: 4px 0 8px 0; scrollbar-width: thin; scrollbar-color: rgba(234, 88, 12, 0.5) rgba(125, 125, 125, 0.12); touch-action: pan-x pan-y; cursor: grab; }
.filters-track:active { cursor: grabbing; }
.filters-track::-webkit-scrollbar { display: none; }
.filter-pill { flex-shrink: 0; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); color: var(--text-dim); border-radius: 16px; padding: 4px 7px; font-size: 0.71rem; font-weight: 500; cursor: pointer; white-space: nowrap; transition: all 0.2s ease; display: inline-flex; align-items: center; gap: 3px; -webkit-user-select: none; user-select: none; }
.filter-pill:hover { background: rgba(255, 255, 255, 0.1); color: var(--text-main); border-color: rgba(125, 125, 125, 0.4); }
.filter-pill.active { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 2px 8px rgba(234, 88, 12, 0.35); }

.day-group { position: relative; margin-bottom: 35px; }
.day-sticky-bar { position: -webkit-sticky; position: sticky; top: 72px; z-index: 930; background: #485686; color: #fff; font-family: "Roboto", sans-serif; font-weight: 700; font-size: 1.15rem; text-align: center; padding: 12px 20px; border-radius: 6px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15); margin: 25px 0 14px; letter-spacing: 0.3px; text-transform: capitalize; }
body.light-mode .day-sticky-bar { background: #4a5d8f; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); }

@media (min-width: 768px) {
  .scroller-track { gap: 4px; padding: 4px 0 8px 0; scrollbar-width: thin; scrollbar-color: rgba(234, 88, 12, 0.5) rgba(125, 125, 125, 0.12); }
  .scroller-track::-webkit-scrollbar { display: block; height: 6px; }
  .scroller-track::-webkit-scrollbar-track { background: rgba(125, 125, 125, 0.12); border-radius: 4px; }
  .scroller-track::-webkit-scrollbar-thumb { background: rgba(234, 88, 12, 0.5); border-radius: 4px; }
}
@media (min-width: 900px) {
  .filters-track { flex-wrap: wrap; padding: 4px 0; scrollbar-width: none; }
}
@media (max-width: 600px) {
  .date-scroller { margin-bottom: 12px; padding: 6px 0; }
  .filters-scroller { margin-bottom: 10px; }
  .day-sticky-bar { top: 70px; font-size: 1.05rem; padding: 10px 12px; }
}
