/* Sports page. Builds on weather.css (page shell, header, glass panel). */
.sports-main { align-items: start; }
.sports-panel { width: min(1080px, 100%); }
.sports-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 14px; margin-bottom: 14px; }
.sports-heading h1 { margin: 0; }
.date-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.date-nav button { border: 1px solid var(--line); background: var(--glass-strong); color: var(--ink); border-radius: 999px; padding: 8px 14px; font-weight: 700; cursor: pointer; }
.date-nav button:hover { border-color: var(--gold); }
.day-label { font-weight: 700; color: var(--ink-soft); min-width: 150px; }

.tabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px; scrollbar-width: thin; }
.tab { flex: none; border: 1px solid var(--line); background: var(--glass-strong); color: var(--ink); border-radius: 999px; padding: 8px 16px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.tab:hover { border-color: var(--gold); }
.tab[aria-selected="true"] { background: var(--gold-bright); border-color: var(--gold); color: #3a2600; }

.league-block { margin: 6px 0 22px; }
.league-block h2 { font-size: 1.1rem; margin: 10px 0; }
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.game { background: var(--glass-strong); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; }
.game-status { display: flex; justify-content: space-between; gap: 8px; font-size: .8rem; font-weight: 700; color: var(--ink-soft); margin-bottom: 8px; }
.live { background: #d92d20; color: #fff; border-radius: 6px; padding: 1px 7px; margin-right: 6px; font-size: .7rem; letter-spacing: .06em; }
.team { display: grid; grid-template-columns: 34px 1fr auto auto; align-items: center; gap: 10px; padding: 5px 0; }
.team img { width: 34px; height: 34px; object-fit: contain; }
.team .logo-fallback { width: 34px; height: 34px; border-radius: 50%; background: var(--line); display: grid; place-items: center; font-size: .7rem; font-weight: 800; }
.team-name { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.team-name small { display: block; font-weight: 500; color: var(--ink-soft); font-size: .72rem; }
.team .rank { font-size: .72rem; color: var(--ink-soft); margin-right: 4px; }
.team.winner .team-name, .team.winner .score { font-weight: 800; }
.team.loser .score, .team.loser .team-name { color: var(--ink-soft); }
.score { font-size: 1.35rem; font-weight: 700; min-width: 2ch; text-align: right; }
.star { border: 0; background: none; font-size: 1.15rem; cursor: pointer; color: #b08a2a; padding: 2px 4px; }
.star[aria-pressed="true"] { color: var(--gold); }
.game-meta { margin-top: 8px; font-size: .76rem; color: var(--ink-soft); }
.leaders { margin: 8px 0 0; padding: 8px 0 0; border-top: 1px solid var(--line); list-style: none; font-size: .78rem; color: var(--ink-soft); }
.leaders li { padding: 1px 0; }
.leaders .fav-player { color: var(--gold-dark); font-weight: 800; }
.empty { padding: 18px 4px; color: var(--ink-soft); }

.sponsor-strip { display: grid; grid-template-columns: auto repeat(3, minmax(0, 1fr)); gap: 12px; align-items: center; margin: 12px 0; padding: 10px 14px; background: linear-gradient(135deg, #f6f0df, #fff); border: 1px dashed #c98a4b; border-radius: 16px; }
.ad-label { font-size: .65rem; letter-spacing: .14em; text-transform: uppercase; color: #8a6a3c; }
.sponsor-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; border-radius: 14px; padding: 12px 14px; text-decoration: none; border: 1px solid rgba(0,0,0,.12); border-top: 4px solid var(--b-main, #c98a4b); background: var(--b-bg, #fff); color: var(--b-text, #102f24); }
.sponsor-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.sponsor-card .sp-tag { font: 600 .66rem/1 Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.sponsor-card .sp-logo { height: 40px; width: auto; max-width: 190px; object-fit: contain; }
.sponsor-card p { margin: 0; font-size: .88rem; }
.sponsor-card .sp-btn { font-weight: 700; font-size: .84rem; text-decoration: underline; }
.sponsor-card .age { font-size: .7rem; opacity: .8; }
.sponsor-card.open-slot { border-top-color: var(--gold); background: rgba(255,255,255,.7); color: var(--ink); }

.manage { margin-top: 18px; background: var(--glass-strong); border: 1px solid var(--line); border-radius: 18px; padding: 12px 16px; }
.manage summary { cursor: pointer; font-weight: 800; }
.manage h2 { font-size: 1rem; margin: 16px 0 4px; }
.hint { margin: 0 0 8px; color: var(--ink-soft); font-size: .85rem; }
.pick-group { margin: 8px 0; }
.pick-group strong { display: block; font-size: .8rem; color: var(--ink-soft); margin-bottom: 4px; }
.pick { display: inline-flex; align-items: center; gap: 6px; margin: 0 14px 6px 0; font-weight: 600; }
.inline-form { display: flex; gap: 8px; }
.inline-form input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; background: #fff; }
.inline-form button { border: 0; background: var(--gold-bright); border-radius: 12px; padding: 9px 16px; font-weight: 800; cursor: pointer; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 10px 0 0; }
.chips li { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 6px 4px 12px; font-weight: 600; font-size: .85rem; }
.chips button { border: 0; background: none; cursor: pointer; font-size: 1rem; line-height: 1; color: var(--ink-soft); }
.sports-footer { padding: 14px 4px 6px; font-size: .78rem; color: var(--ink-soft); }
.sports-footer p { margin: 4px 0; }

@media (max-width: 720px) {
  .sponsor-strip { grid-template-columns: 1fr; }
  .games-grid { grid-template-columns: 1fr; }
  .day-label { min-width: 0; width: 100%; }
}

/* Keep wide tab rows from stretching the page */
.sports-page .page-shell { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; }
.sports-main, .sports-panel { min-width: 0; }

.sports-title-wrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.sports-logo { height: clamp(110px, 16vw, 170px); width: auto; filter: drop-shadow(0 6px 14px rgba(60, 40, 0, .3)); }

/* Show / hide sports manager */
.league-list { list-style: none; margin: 6px 0 4px; padding: 0; display: grid; gap: 6px; }
.lp-row { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px 10px; }
.lp-name { flex: 1; min-width: 0; font-weight: 700; }
.lp-name small { display: block; font-weight: 500; font-size: .74rem; color: var(--ink-soft); }
.lp-move { display: inline-flex; gap: 4px; }
.lp-btn { width: 32px; height: 32px; flex: none; border-radius: 50%; border: 1px solid var(--line); background: var(--glass-strong); color: var(--ink); font-size: 1.05rem; font-weight: 800; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.lp-btn:disabled { opacity: .35; cursor: default; }
.lp-btn:not(:disabled):hover { border-color: var(--gold); }
.lp-hide { background: #d92d20; border-color: #d92d20; color: #fff; }
.lp-show { background: #1f9d55; border-color: #1f9d55; color: #fff; }
.lp-group { font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); margin: 10px 0 0; }
.lp-empty { color: var(--ink-soft); padding: 4px 2px; }
.league-filter { width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; background: #fff; margin: 2px 0 4px; }

/* Individual sports: fights, tennis, golf, racing */
.event-name { font-size: .95rem; margin: 6px 0 8px; color: var(--ink-soft); }
.team .flag, .field .flag { width: 30px; height: 20px; object-fit: cover; border-radius: 3px; justify-self: center; }
.team.fav-athlete .team-name { color: var(--gold-dark); }
.game-status strong { color: var(--ink); }
.sets { display: inline-flex; gap: 8px; font-size: 1.05rem; }
.set { min-width: 1ch; text-align: center; color: var(--ink-soft); }
.set.won { color: var(--ink); font-weight: 800; }
.set sup { font-size: .6em; margin-left: 1px; }
.win-tag { font-size: .8rem; font-weight: 800; background: var(--gold-bright); color: #3a2600; border-radius: 6px; padding: 2px 7px; }
.field { list-style: none; margin: 0; padding: 0; }
.field-row { display: grid; grid-template-columns: 2.6em 24px 1fr auto auto; align-items: center; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.field-row:last-child { border-bottom: 0; }
.field-row .pos { font-weight: 800; color: var(--ink-soft); }
.field .flag { width: 22px; height: 15px; }
.field-name { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.field-score { font-weight: 800; min-width: 3ch; text-align: right; }
.field-row.fav-player .field-name { color: var(--gold-dark); font-weight: 800; }
.field-gap { text-align: center; color: var(--ink-soft); }
.field-empty { margin: 4px 0; color: var(--ink-soft); font-size: .88rem; }
.empty a { color: var(--gold-dark); font-weight: 700; }
