/* Match page presentation; results and their order stay in the HTML. */
main .inner-hero {
  height: auto;
  min-height: 0;
  padding: 38px 0;
  background-image: linear-gradient(110deg, #071c3cef, #094ba2c9), url('../img/hero.png');
  border: 0;
}
main .inner-hero h1 { font-size: clamp(1.9rem, 4vw, 3.25rem) !important; line-height: 1.15; }
main .inner-hero .text-primary { color: #aad2ff !important; }
main .section-header { margin-bottom: 28px !important; }
main .section-header h2 { font-family: var(--font-title); font-size: clamp(1.9rem, 4vw, 2.7rem); }
main .section-header .surtitle { color: #094ba2; font-weight: 600; justify-content: center; font-size: .78rem; }
main .section-header .surtitle::before { background: #094ba2; width: 28px; }
main .section-padding { padding: 48px 0; }
.chart-container-card {
  position: relative;
  border: 1px solid #e2e9f3;
  border-radius: 20px;
  background: linear-gradient(180deg, #f7faff, #fff 45%);
  box-shadow: 0 10px 30px #163c7010 !important;
}
.chart-container-card h5 { color: #163454 !important; text-align: left; border-bottom: 1px solid #e2e9f3; padding-bottom: 16px; }
.chart-container-card h5::before { content: ''; display: inline-block; width: 8px; height: 18px; background: #094ba2; border-radius: 4px; margin-right: 10px; vertical-align: middle; }
.match-filters { padding: 6px; background: #e9eff8; border: 1px solid #dce6f3; border-radius: 16px; width: fit-content; margin-inline: auto; }
.filter-btn { border: 0; border-radius: 11px; background: transparent; color: #53647b; min-height: 44px; padding: 10px 24px; font-size: 1.05rem; }
.filter-btn.active { background: #094ba2; color: #fff; box-shadow: 0 4px 12px #094ba225; }
.filter-btn:focus-visible { outline: 3px solid #72aaf2; outline-offset: 3px; }
#matches-container { --bs-gutter-x: 24px; --bs-gutter-y: 24px; }
.match-item { --result-color: #475569; --result-surface: #edf1f6; }
.match-item.fitore { --result-color: #14653e; --result-surface: #dcf5e8; }
.match-item.humbje { --result-color: #a52828; --result-surface: #fee7e7; }
.match-item .match-card {
  padding: 24px;
  height: 100%;
  border: 1px solid #e0e8f3;
  border-top: 3px solid var(--result-color);
  border-radius: 20px;
  box-shadow: 0 8px 24px #163c7009;
  background: #fff;
}
.match-card > .d-flex { gap: 10px; flex-wrap: wrap; margin-bottom: 16px !important; }
.match-card .badge { background: var(--result-surface) !important; color: var(--result-color); border-radius: 8px !important; padding: 8px 12px; font-size: .7rem; letter-spacing: 1px; }
.match-card > .d-flex > .font-bebas { font-family: var(--font-body); font-size: .82rem; font-weight: 600; color: #64748b; opacity: 1 !important; font-variant-numeric: tabular-nums; }
.match-item .match-teams { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 14px; align-items: start; }
.match-teams > .text-center { min-width: 0; }
.match-item .team-logo { width: 60px; height: 60px; object-fit: contain; border-radius: 12px; padding: 4px; background: #f4f7fc; }
.match-item .match-teams .bg-light { background: #f0f4fa !important; border: 1px solid #e2e9f3; }
.match-item .match-teams .fs-5 { font-family: var(--font-body); font-size: .92rem !important; line-height: 1.4; font-weight: 700; color: #233a57; overflow-wrap: anywhere; margin-top: 6px; }
.match-item .score-box {
  min-width: 90px;
  margin: 4px 0 0;
  padding: 10px 14px;
  border-radius: 14px;
  background: #eef4ff;
  color: #094ba2;
  border: 1px solid #dbe7fa;
  box-shadow: none;
  font-size: 2rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.match-item .result-detail { margin: 18px -24px -24px; padding: 14px 20px; border-top: 1px solid #e8eef6; border-radius: 0 0 19px 19px; background: #f8fafd; color: #64748b; font-size: .73rem; letter-spacing: .5px; font-style: normal; }
.match-item .result-detail::before { content: '\F3E8'; font-family: 'bootstrap-icons'; margin-right: 8px; color: #094ba2; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .match-item .match-card { transition: transform .2s ease, box-shadow .2s ease; }
  .match-item .match-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px #163c7014; }
}
@media (max-width: 767.98px) {
  main .inner-hero { padding: 26px 0; }
  main .section-padding { padding: 36px 0; }
  .chart-container-card { padding: 20px !important; }
  .match-filters { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; max-width: 440px; }
  .filter-btn { padding: 10px 12px; }
  .match-item .match-card { padding: 18px 14px; border-radius: 16px; }
  .match-item .match-teams { gap: 8px; }
  .match-item .score-box { min-width: 66px !important; padding: 9px 10px !important; font-size: 1.65rem; border-radius: 11px; }
  .match-item .match-teams .fs-5 { font-size: .8rem !important; }
  .match-item .result-detail { margin: 16px -14px -18px; padding: 12px; border-radius: 0 0 15px 15px; }
}
