html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* ===== Predict-o-ball 2026 theme ===== */
:root {
  --pob-pitch: #0b6b3a;
  --pob-pitch-dark: #064c28;
  --pob-accent: #f5b301;
  --pob-accent-dark: #d99a00;
  --pob-ink: #11221a;
  --pob-card-shadow: 0 4px 14px rgba(6, 76, 40, .12);
}

body {
  background: #f3f6f4;
  color: var(--pob-ink);
}

/* Navbar */
.pob-navbar {
  background: linear-gradient(90deg, var(--pob-pitch-dark), var(--pob-pitch));
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
}
.pob-navbar .nav-link { color: rgba(255,255,255,.85) !important; font-weight: 500; }
.pob-navbar .nav-link:hover { color: #fff !important; }
.pob-brand { font-weight: 800; font-size: 1.35rem; color: #fff !important; letter-spacing: -.5px; }
.pob-brand-year { color: var(--pob-accent); }
.pob-brand-ball { filter: drop-shadow(0 1px 2px rgba(0,0,0,.4)); }

/* Hero */
.pob-hero {
  background: radial-gradient(circle at 50% -20%, #0e7d44, var(--pob-pitch-dark) 70%);
  color: #fff;
  border-radius: 1rem;
  padding: 3rem 1rem 3.25rem;
  margin-top: .5rem;
  box-shadow: var(--pob-card-shadow);
  position: relative;
  overflow: hidden;
}
.pob-hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 60px, transparent 60px 120px);
  pointer-events: none;
}
.pob-hero-inner { position: relative; z-index: 1; }
.pob-hero-badge {
  display: inline-block; background: rgba(255,255,255,.15); color: #fff;
  padding: .3rem .9rem; border-radius: 2rem; font-size: .85rem; margin-bottom: 1rem;
}
.pob-hero-title { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 900; letter-spacing: -1.5px; margin: 0; }
.pob-hero-title span { color: var(--pob-accent); }
.pob-hero-tag { font-size: 1.15rem; opacity: .92; max-width: 36rem; margin: .5rem auto 1.5rem; }
.pob-hero-cta .btn { margin: .25rem; font-weight: 600; }

/* Countdown */
.pob-countdown { display: flex; justify-content: center; gap: 1rem; margin: 1rem 0 .5rem; }
.pob-count {
  background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.2);
  border-radius: .75rem; padding: .6rem 1rem; min-width: 4.25rem;
}
.pob-count span { display: block; font-size: 2rem; font-weight: 800; line-height: 1; color: var(--pob-accent); }
.pob-count label { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: 1px; opacity: .8; }
.pob-countdown-label { font-size: .9rem; opacity: .85; }

/* Section + page titles */
.pob-page-title { font-weight: 800; letter-spacing: -.5px; margin: 1rem 0 1.25rem; }
.pob-section-title { font-weight: 700; font-size: 1.4rem; margin-bottom: 1rem; border-left: 4px solid var(--pob-accent); padding-left: .6rem; }

/* Stat tiles */
.pob-stat {
  background: #fff; border-radius: .75rem; padding: 1rem; text-align: center;
  box-shadow: var(--pob-card-shadow); height: 100%;
}
.pob-stat span { display: block; font-size: 1.9rem; font-weight: 800; color: var(--pob-pitch); line-height: 1.1; }
.pob-stat label { font-size: .8rem; text-transform: uppercase; letter-spacing: .5px; color: #6c757d; }

/* Match cards */
.pob-match-card { border: none; border-radius: .85rem; box-shadow: var(--pob-card-shadow); transition: transform .12s ease; }
.pob-match-card:hover { transform: translateY(-2px); }
.pob-match-card .card-header { background: #fff; border-bottom: 1px solid #eef1ef; border-radius: .85rem .85rem 0 0; font-size: .8rem; }
.pob-stage { color: #6c757d; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; }
.pob-fixture { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .5rem; }
.pob-side { display: flex; align-items: center; }
.pob-side-away { justify-content: flex-end; text-align: right; }
.pob-side-away .pob-team { flex-direction: row-reverse; }
.pob-team { display: flex; align-items: center; gap: .5rem; font-weight: 600; }
.pob-team-name { line-height: 1.1; }
.pob-flag { width: 28px; height: 20px; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); background: #e9ecef; }
.pob-flag-lg { width: 56px; height: 40px; object-fit: cover; border-radius: 5px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.pob-flag-placeholder {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff; background: var(--pob-pitch); font-size: .8rem;
}
.pob-score { text-align: center; font-weight: 800; }
.pob-score-num { font-size: 1.6rem; }
.pob-score-sep { margin: 0 .2rem; color: #adb5bd; }
.pob-vs { color: #adb5bd; font-weight: 600; }
.pob-predict-inputs input { max-width: 3.5rem; }
.pob-your-pick { font-size: .9rem; }
.pob-detail-link { font-weight: 600; text-decoration: none; color: var(--pob-pitch); font-size: .85rem; }

/* Status badges */
.badge.pob-status-live { background: #e23b3b; }
.badge.pob-status-ft { background: #495057; }
.badge.pob-status-upcoming { background: var(--pob-pitch); }
.badge.pob-status-pst { background: #b08900; }
.pob-live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #fff; margin-right: 4px; animation: pob-pulse 1s infinite; }
@keyframes pob-pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

/* Match detail */
.pob-match-detail { border: none; border-radius: .85rem; box-shadow: var(--pob-card-shadow); }
.pob-detail-fixture { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; }
.pob-detail-side { font-size: 1.15rem; font-weight: 700; }
.pob-detail-side .pob-team { justify-content: center; }
.pob-detail-score { font-size: 2.4rem; font-weight: 900; color: var(--pob-pitch); }

/* Timeline */
.pob-timeline-item { display: flex; align-items: center; gap: .6rem; padding: .35rem 0; border-bottom: 1px dashed #e3e8e5; }
.pob-timeline-min { font-weight: 700; color: var(--pob-pitch); min-width: 2.75rem; }
.pob-timeline-icon { font-size: 1.05rem; }
.pob-timeline-text { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.pob-timeline-team { display: inline-flex; align-items: center; }
.pob-timeline-team .pob-flag { width: 22px; height: 15px; }
.pob-timeline-team .pob-team-name { font-weight: 600; }
.pob-tag { font-size: .65rem; font-weight: 800; letter-spacing: .5px; padding: .1rem .35rem; border-radius: .3rem; line-height: 1; }
.pob-tag-og { background: #c0392b; color: #fff; }
.pob-tag-pen { background: var(--pob-accent); color: var(--pob-ink); }

/* Groups + teams */
.pob-group-card { border: none; border-radius: .75rem; box-shadow: var(--pob-card-shadow); overflow: hidden; }
.pob-group-header { background: var(--pob-pitch); color: #fff; font-weight: 700; border-radius: .75rem .75rem 0 0; }
.pob-group-header a { color: #fff; text-decoration: none; }
.pob-group-header a:hover { text-decoration: underline; }
.pob-group-link { color: inherit; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 2px; }
.pob-group-link:hover { color: var(--pob-pitch); }

/* Group standings tables */
.pob-standings { font-size: .9rem; }
.pob-standings thead th { font-weight: 700; color: #6c757d; border-bottom: 2px solid #e3e8e5; white-space: nowrap; }
.pob-standings td { vertical-align: middle; }
.pob-standings .pob-st-pos { width: 1.5rem; color: #6c757d; font-weight: 700; text-align: center; }
.pob-standings .pob-st-pts { font-weight: 800; color: var(--pob-pitch); }
.pob-standings .pob-flag { width: 22px; height: 15px; }
.pob-standings .pob-team-name { font-weight: 600; }
.pob-standings tr.pob-pos-adv td.pob-st-pos { box-shadow: inset 3px 0 0 var(--pob-pitch); }
.pob-standings tr.pob-pos-play td.pob-st-pos { box-shadow: inset 3px 0 0 var(--pob-accent); }
.pob-standings-legend { font-size: .85rem; color: #495057; }
.pob-key { display: inline-block; width: .8rem; height: .8rem; border-radius: .2rem; vertical-align: -1px; margin-right: .25rem; }
.pob-key-adv { background: var(--pob-pitch); }
.pob-key-play { background: var(--pob-accent); }
.pob-team-link { text-decoration: none; color: var(--pob-ink); font-weight: 600; }
.pob-team-link:hover { color: var(--pob-pitch); }
.pob-team-chip {
  display: flex; align-items: center; gap: .25rem; background: #fff; border-radius: .6rem;
  padding: .6rem .75rem; box-shadow: var(--pob-card-shadow); text-decoration: none; color: var(--pob-ink); font-weight: 600;
}
.pob-team-chip:hover { color: var(--pob-pitch); }

/* Tables */
.pob-leaderboard-table tbody tr.pob-me { background: #fff8e1; }
.pob-rank { font-weight: 700; }
.pob-leaderboard-card { border: none; border-radius: .75rem; box-shadow: var(--pob-card-shadow); }

/* Buttons */
.btn-primary { background: var(--pob-pitch); border-color: var(--pob-pitch); }
.btn-primary:hover, .btn-primary:focus { background: var(--pob-pitch-dark); border-color: var(--pob-pitch-dark); }
.btn-outline-primary { color: var(--pob-pitch); border-color: var(--pob-pitch); }
.btn-outline-primary:hover { background: var(--pob-pitch); border-color: var(--pob-pitch); }
a { color: var(--pob-pitch); }

/* AJAX save feedback toast (fixed-position; never affects page layout) */
.pob-toast {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%) translateY(1rem);
  z-index: 1080;
  padding: .6rem 1.1rem;
  border-radius: .5rem;
  color: #fff;
  font-weight: 600;
  font-size: .9rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  max-width: 90vw;
}
.pob-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.pob-toast.ok { background: var(--pob-pitch); }
.pob-toast.err { background: #c0392b; }

/* Footer */
.pob-footer { background: #fff; }