/* AmsalFC Astro additions: only what the old stylesheet does not cover.
   Hard rules: no page-level horizontal overflow, and no overrides of the
   old navbar, hero-content, section, grid or card styles in style.css. */
*, *::before, *::after { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; }
img, video, iframe { max-width: 100%; height: auto; }
/* Two-section hero inside the old #hero-match-display. Each panel keeps
   the old .hero-match-minimal look from style.css. */
.hero-two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; width: 100%; }
.hero-panel-label { font-size: 0.8rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin: 0 0 0.5rem; color: #fff; text-align: center; }
.hero-two .hero-match-minimal { width: 100%; }
/* Cup bracket (new Events section only). */
.badge-live { background: #dc2626; color: #fff; padding: 2px 8px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; }
.badge-upcoming { background: #007ea7; color: #fff; padding: 2px 8px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; }
.badge-finished { background: #334155; color: #fff; padding: 2px 8px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; }
/* Centre-final bracket: 7 columns, R1 | QF | SF | Final | SF | QF | R1,
   both sides progressing inward to the Final in the centre. On narrow
   screens the bracket scrolls horizontally inside its container, so the
   page itself never overflows. */
.bracket-scroll { overflow-x: auto; padding-bottom: 0.5rem; }
.bracket { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.75rem; min-width: 0; }
.event-bracket-block { margin-bottom: 2rem; }
.bracket-col h4 { margin: 0 0 0.5rem; }
.cup-card { background: var(--surface, #fff); color: var(--text, #00171f); border: 1px solid var(--border, #e2e8f0); border-radius: 0.75rem; padding: 0.75rem; margin-bottom: 0.75rem; min-width: 0; }
.cup-card .cup-teams { display: flex; flex-direction: column; gap: 0.25rem; overflow-wrap: anywhere; color: var(--text, #00171f); }
.cup-card .cup-meta { font-size: 0.85rem; color: var(--text-3, #506875); }
/* Admin page only (not homepage layout). */
.admin-wrap { max-width: 1100px; margin: 0 auto; padding: 1rem; }
.admin-wrap input, .admin-wrap select, .admin-wrap textarea { width: 100%; max-width: 100%; padding: 0.5rem; margin: 0.25rem 0 0.75rem; }
.admin-wrap button { padding: 0.5rem 1rem; margin-right: 0.5rem; }
.clock-presets button { margin: 0 0.25rem 0.25rem 0; }
@media (max-width: 900px) {
  .hero-two { grid-template-columns: 1fr; }
  .bracket { min-width: 1050px; }
}
