:root {
  --banana: #ffd000;
  --banana-deep: #f5b700;
  --ink: #1c1a12;
  --ink-soft: #4a4636;
  --cream: #fffbe9;
  --paper: #ffffff;
  --line: #ece4c4;
  --pink: #ff5ea8;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(40, 33, 0, 0.08);
  --team-color: var(--banana);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 80% -10%, #fff3b0 0%, transparent 60%),
    var(--cream);
  line-height: 1.55;
}

h1, h2, h3, h4, .brand__name { font-family: "Fredoka", sans-serif; }

a { color: inherit; text-decoration: none; }

.container { width: min(1100px, 92vw); margin: 0 auto; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 251, 233, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 1.35rem; font-weight: 700; }
.brand__peel { font-size: 1.6rem; }
.brand__name span { color: var(--banana-deep); }
.nav { display: flex; gap: 22px; font-weight: 600; }
.nav a:hover { color: var(--banana-deep); }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.4fr 0.6fr; align-items: center; gap: 24px;
  padding: 64px 0 40px;
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 0 0 14px; line-height: 1.05; }
.hero .hl { color: var(--banana-deep); }
.hero p { font-size: 1.15rem; color: var(--ink-soft); max-width: 46ch; }
.hero__cta { display: flex; gap: 12px; margin-top: 22px; }
.hero__art { font-size: clamp(7rem, 16vw, 12rem); text-align: center; filter: drop-shadow(0 18px 24px rgba(0,0,0,.12)); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font-weight: 700; border: 2px solid transparent; transition: transform .08s ease, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--banana); color: var(--ink); box-shadow: var(--shadow); }
.btn--ghost { border-color: var(--ink); }
.btn--small { padding: 8px 14px; font-size: .9rem; }

/* Blocks */
.block { padding: 38px 0; }
.block__title { font-size: 1.7rem; margin: 0 0 18px; position: relative; padding-left: 14px; }
.block__title::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 6px; border-radius: 6px; background: var(--banana); }
.empty { color: var(--ink-soft); background: var(--paper); border: 1px dashed var(--line); border-radius: var(--radius); padding: 18px; }

/* Team grid */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.team-card { display: flex; gap: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); border-top: 5px solid var(--team-color); transition: transform .1s; }
.team-card:hover { transform: translateY(-3px); }
.team-card__badge { flex: 0 0 52px; height: 52px; border-radius: 14px; background: var(--team-color); color: #fff; display: grid; place-items: center; font-family: "Fredoka"; font-size: 1.5rem; font-weight: 700; }
.team-card__body h3 { margin: 0 0 4px; }
.team-card__body p { margin: 0; color: var(--ink-soft); font-size: .92rem; }

/* Schedule */
.schedule { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.schedule__row a, .schedule__row { display: grid; grid-template-columns: 180px 1fr auto; gap: 14px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.schedule--detailed .schedule__row { grid-template-columns: 220px 1fr 1fr auto; }
.schedule__row.is-past { opacity: .8; }
.schedule__date { font-weight: 700; color: var(--banana-deep); font-size: .95rem; }
.schedule__match em { color: var(--ink-soft); font-style: normal; padding: 0 4px; }
.schedule__loc { color: var(--ink-soft); font-size: .9rem; }
.pill { background: var(--cream); border: 1px solid var(--line); padding: 4px 12px; border-radius: 999px; font-size: .8rem; font-weight: 600; }

/* Videos */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.video-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .1s; }
.video-card:hover { transform: translateY(-3px); }
.video-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.video-card__body { padding: 12px 14px; }
.video-card__body h4 { margin: 0 0 8px; font-size: 1rem; }

.badge { display: inline-block; font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .03em; }
.badge--captions { background: #d8f5e3; color: #137a47; }
.badge--whisper { background: #dce9ff; color: #2456b8; }
.badge--pending { background: #f3edd0; color: #8a7a1f; }
.badge--failed { background: #ffdede; color: #b32424; }

/* Team hero */
.team-hero { display: flex; gap: 20px; align-items: center; padding: 40px 0 12px; }
.team-hero__badge { width: 84px; height: 84px; border-radius: 22px; background: var(--team-color); color: #fff; display: grid; place-items: center; font-family: "Fredoka"; font-size: 2.4rem; box-shadow: var(--shadow); }
.team-hero h1 { margin: 0; }
.team-hero__bio { margin: 6px 0; color: var(--ink-soft); }
.team-hero__meta { margin: 0; color: var(--ink-soft); font-size: .9rem; }

/* Game page */
.crumbs { padding: 20px 0 0; color: var(--ink-soft); font-size: .9rem; }
.crumbs a:hover { color: var(--banana-deep); }
.game-head { padding: 12px 0 8px; }
.game-head h1 { margin: 6px 0; }
.game-head em { color: var(--ink-soft); font-style: normal; }
.game-head__meta { color: var(--ink-soft); margin: 0; }

.game-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 22px; padding: 18px 0; align-items: start; }
.player-wrap { position: relative; padding-top: 56.25%; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #000; }
.player-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.game-video__title { font-size: 1.2rem; margin: 14px 0 6px; }

.highlights { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); position: sticky; top: 80px; max-height: 80vh; overflow: auto; }
.highlights h3 { margin: 0 0 12px; }
.hl-edit-link { display: inline-block; margin: 0 0 12px; font-size: .82rem; font-weight: 600; color: var(--banana-deep); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.hl-edit-link:hover { background: var(--cream); }
.highlight-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.highlight a { display: grid; grid-template-columns: 56px auto; grid-template-areas: "time cat" "time quote"; gap: 2px 10px; padding: 10px; border-radius: 10px; border: 1px solid var(--line); transition: background .12s; }
.highlight a:hover { background: var(--cream); }
.highlight__time { grid-area: time; font-weight: 700; color: var(--banana-deep); align-self: center; }
.highlight__cat { grid-area: cat; font-weight: 700; font-size: .85rem; }
.highlight__quote { grid-area: quote; color: var(--ink-soft); font-size: .85rem; }
.highlight__cat--home_run, .highlight__cat--grand_slam { color: #c0392b; }
.highlight__cat--strikeout { color: #2456b8; }
.highlight__cat--dance, .highlight__cat--trick_play { color: var(--pink); }

/* Transcript */
.transcript { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 16px; }
.transcript summary { cursor: pointer; font-weight: 700; padding: 10px 0; }
.transcript__body { max-height: 420px; overflow: auto; padding: 8px 0; }
.transcript__line { display: grid; grid-template-columns: 64px 1fr; gap: 12px; margin: 4px 0; font-size: .92rem; }
.transcript__line a { color: var(--banana-deep); font-weight: 600; }

/* Footer */
.footer { margin-top: 50px; border-top: 1px solid var(--line); background: var(--paper); }
.footer p { color: var(--ink-soft); padding: 22px 0; margin: 0; font-size: .9rem; }

/* Error page */
.error-page { text-align: center; padding: 70px 0 50px; }
.error-page__art { font-size: clamp(4rem, 12vw, 7rem); filter: drop-shadow(0 14px 20px rgba(0,0,0,.12)); }
.error-page h1 { font-size: clamp(3rem, 9vw, 5rem); margin: 4px 0 6px; color: var(--banana-deep); }
.error-page__msg { color: var(--ink-soft); font-size: 1.1rem; max-width: 44ch; margin: 0 auto 22px; }
.error-page__cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Scores & results */
.score { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.score em { color: var(--ink-soft); font-style: normal; padding: 0 4px; }
.schedule__match .won { font-weight: 800; }
.see-all { margin: 14px 0 0; }
.see-all a { color: var(--banana-deep); font-weight: 700; }
.result-tag { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; font-size: .72rem; font-weight: 800; color: #fff; margin-right: 6px; }
.result-tag--w { background: #137a47; }
.result-tag--l { background: #b32424; }

/* Scoreboard (game page) */
.scoreboard { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 20px; margin-top: 12px; }
.scoreboard__side { display: flex; align-items: center; gap: 12px; }
.scoreboard__team { font-weight: 700; font-size: 1.05rem; }
.scoreboard__pts { font-family: "Fredoka", sans-serif; font-size: 2rem; font-weight: 700; min-width: 1.6ch; text-align: center; color: var(--ink-soft); }
.scoreboard__side.is-winner .scoreboard__pts { color: var(--ink); }
.scoreboard__side.is-winner .scoreboard__team { color: var(--ink); }
.scoreboard__at { color: var(--ink-soft); font-weight: 700; }
.scoreboard__final { margin-left: auto; background: var(--cream); border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }

/* Filters */
.filters { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-end; }
.filters label { display: grid; gap: 4px; font-size: .82rem; font-weight: 600; color: var(--ink-soft); }
.filters select { padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); font: inherit; font-weight: 600; min-width: 180px; }

/* Standings */
.table-wrap { overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
table.standings { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.standings th, table.standings td { padding: 11px 12px; text-align: center; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.standings thead th { background: var(--cream); font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); }
table.standings tbody tr:last-child td { border-bottom: 0; }
table.standings .t-left { text-align: left; }
.standings__team { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.standings__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--team-color); flex: 0 0 auto; }
table.standings td.pos { color: #137a47; font-weight: 700; }
table.standings td.neg { color: #b32424; font-weight: 700; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .hero__art { display: none; }
  .game-layout { grid-template-columns: 1fr; }
  .schedule__row a, .schedule__row,
  .schedule--detailed .schedule__row { grid-template-columns: 1fr; gap: 6px; }
  .highlights { position: static; max-height: none; }
}

/* Discovery: search + highlights hub */
.nav__search { font-size: 1.05rem; }
.block__lead { color: var(--ink-soft); max-width: 60ch; margin: -8px 0 18px; }
.block__meta { color: var(--ink-soft); font-size: .9rem; margin: 0 0 16px; }

/* Search box */
.search { display: flex; gap: 10px; max-width: 640px; }
.search__input { flex: 1; padding: 13px 16px; border-radius: 999px; border: 2px solid var(--line); background: var(--paper); font: inherit; }
.search__input:focus { outline: none; border-color: var(--banana-deep); }

/* Search results */
.results { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.result { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.result__jump { display: inline-block; font-weight: 700; color: var(--banana-deep); font-variant-numeric: tabular-nums; margin-bottom: 6px; }
.result__snippet { margin: 4px 0 8px; color: var(--ink); }
.result__snippet mark { background: var(--banana); color: var(--ink); padding: 0 2px; border-radius: 3px; }
.result__meta { font-size: .88rem; color: var(--ink-soft); font-weight: 600; }
.result__meta em { font-style: normal; color: var(--ink-soft); opacity: .7; }

/* Category chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-weight: 600; font-size: .88rem; }
.chip:hover { border-color: var(--banana-deep); }
.chip--on { background: var(--banana); border-color: var(--banana-deep); }
.chip__count { font-size: .72rem; color: var(--ink-soft); background: var(--cream); border-radius: 999px; padding: 1px 7px; }
.chip--on .chip__count { background: rgba(0,0,0,.12); color: var(--ink); }

/* Highlights grid */
.hl-grid { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.hl-card { background: var(--paper); border: 1px solid var(--line); border-left: 5px solid var(--banana); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; }
.hl-card__play { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 700; }
.hl-card__cat { color: var(--ink); }
.hl-card__time { color: var(--banana-deep); font-variant-numeric: tabular-nums; }
.hl-card__quote { margin: 0; color: var(--ink-soft); font-size: .92rem; font-style: italic; }
.hl-card__game { margin-top: auto; font-size: .85rem; font-weight: 600; color: var(--ink-soft); display: flex; flex-direction: column; gap: 2px; }
.hl-card__game em { font-style: normal; opacity: .6; }
.hl-card__date { font-weight: 500; opacity: .8; }

/* Players */
.player-grid { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.player-grid li { display: flex; }
.player-card { display: flex; flex-direction: column; width: 100%; background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--team-color, var(--banana)); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); transition: transform .1s; }
.player-card:hover { transform: translateY(-3px); }
.player-card__photo { position: relative; display: block; aspect-ratio: 4 / 5; flex-shrink: 0; background: var(--cream); }
.player-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.player-card__placeholder { display: grid; place-items: center; width: 100%; height: 100%; font-size: 3rem; opacity: .5; }
.player-card__num { position: absolute; top: 8px; right: 8px; background: var(--team-color, var(--banana)); color: #fff; font-family: "Fredoka"; font-weight: 700; font-size: .9rem; border-radius: 999px; padding: 2px 9px; }
.player-card__body { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px 12px; flex: 1; }
.player-card__name { font-size: 1rem; line-height: 1.2; }
.player-card__name strong { font-family: "Fredoka"; }
.player-card__meta { color: var(--ink-soft); font-size: .82rem; }
.player-card__hl { color: var(--banana-deep); font-size: .8rem; font-weight: 600; min-height: 1.2em; }

.player-hero { display: flex; gap: 22px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-left: 6px solid var(--team-color, var(--banana)); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin: 18px 0; }
.player-hero__photo { flex: 0 0 130px; width: 130px; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: var(--cream); }
.player-hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.player-hero__info h1 { margin: 0 0 6px; }
.player-hero__num { color: var(--team-color, var(--banana-deep)); margin-right: 6px; }
.player-hero__meta { margin: 0; color: var(--ink-soft); font-weight: 600; }
.player-hero__meta a { color: var(--banana-deep); }
.socials { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0 0; }
.socials a { font-size: .88rem; font-weight: 600; color: var(--banana-deep); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }
.socials a:hover { background: var(--cream); }

.stat-tables { display: flex; gap: 18px; flex-wrap: wrap; }
.stat-table { border-collapse: collapse; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.stat-table caption { caption-side: top; text-align: left; font-family: "Fredoka"; font-weight: 600; padding: 8px 12px 2px; }
.stat-table th, .stat-table td { padding: 7px 12px; text-align: center; font-variant-numeric: tabular-nums; }
.stat-table th { background: var(--cream); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); }

.banner { background: var(--cream); border: 1px solid var(--banana); border-radius: var(--radius); padding: 12px 16px; margin: 16px 0; font-weight: 600; }
.filters input[type="text"] { padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); font: inherit; min-width: 220px; }

/* Sign-in + highlight voting */
.nav__auth { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.nav__auth button { background: none; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; color: var(--ink-soft); }
.nav__auth button:hover { background: var(--cream); }
.nav__user { font-size: .85rem; font-weight: 600; color: var(--ink-soft); }
.nav__auth-link { font-weight: 600; }
.hl-vote { display: flex; gap: 8px; }
.hl-vote__btn { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; font: inherit; font-size: .85rem; cursor: pointer; color: var(--ink-soft); }
.hl-vote__btn:hover { background: var(--cream); }
.hl-vote__btn.is-on { background: var(--cream); border-color: var(--banana-deep); color: var(--ink); font-weight: 700; }

/* Highlight card thumbnails + sort toggle + downvote modal */
.hl-card__thumb { position: relative; display: block; margin: -14px -16px 0; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; aspect-ratio: 16 / 9; background: #000; }
.hl-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .15s; }
.hl-card__thumb:hover img { transform: scale(1.04); }
.hl-card__thumb-time { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.75); color: #fff; font-size: .8rem; font-weight: 700; font-variant-numeric: tabular-nums; border-radius: 6px; padding: 2px 8px; }
.hl-card__cat { font-weight: 700; }
.sort-toggle { display: flex; gap: 8px; align-items: flex-end; }
.down-modal { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; max-width: 340px; }
.down-modal::backdrop { background: rgba(20, 16, 4, .45); }
.down-modal h3 { margin: 0 0 4px; font-family: "Fredoka"; }

/* Homepage upcoming-games calendar */
.cal { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.cal__title { font-family: "Fredoka"; font-weight: 700; font-size: 1.1rem; margin: 0 0 10px; color: var(--banana-deep); }
.cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal__dow { text-align: center; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); padding: 4px 0; }
.cal__cell { position: relative; min-width: 0; min-height: 68px; border: 1px solid var(--line); border-radius: 10px; padding: 6px; display: flex; flex-direction: column; gap: 4px; background: var(--paper); }
.cal__cell.is-out { opacity: .35; }
.cal__cell.is-past { background: var(--cream); opacity: .7; }
.cal__cell.is-today { border-color: var(--banana-deep); box-shadow: inset 0 0 0 1px var(--banana-deep); }
.cal__cell.has-games { background: var(--cream); border-color: var(--banana); }
.cal__daynum { font-size: .8rem; font-weight: 700; color: var(--ink-soft); }
.cal__cell.is-today .cal__daynum { color: var(--banana-deep); }
.cal__chip { display: block; position: relative; font-size: .72rem; font-weight: 700; line-height: 1.25; color: var(--ink); background: var(--cream); border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px 2px 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal__chip::before { content: ""; position: absolute; left: 4px; top: 4px; bottom: 4px; width: 5px; border-radius: 3px; background: linear-gradient(180deg, var(--c1, #bbb) 0 50%, var(--c2, #bbb) 50% 100%); }
.cal__chip:hover { filter: brightness(.95); }
.cal__pop { display: none; position: absolute; z-index: 30; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); min-width: 230px; max-width: 300px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 10px 12px; }
.cal__cell:hover .cal__pop, .cal__cell:focus-within .cal__pop, .cal__cell:focus .cal__pop { display: block; }
.cal__grid .cal__cell:nth-child(7n + 8) .cal__pop { left: 0; transform: none; }
.cal__grid .cal__cell:nth-child(7n + 7) .cal__pop { left: auto; right: 0; transform: none; }
.cal__pop-game { display: block; padding: 6px 4px; border-radius: 8px; }
.cal__pop-game:hover { background: var(--cream); }
.cal__pop-game strong { display: block; font-size: .88rem; }
.cal__pop-game strong em { color: var(--ink-soft); font-style: normal; padding: 0 3px; }
.cal__pop-game span { display: block; font-size: .8rem; color: var(--ink-soft); }
.cal__pop-game + .cal__pop-game { border-top: 1px solid var(--line); }
@media (max-width: 640px) {
  .cal__cell { min-height: 44px; padding: 4px; }
  .cal__chip { font-size: 0; padding: 0; height: 9px; width: 9px; border: 0; border-radius: 50%; background: linear-gradient(135deg, var(--c1, #bbb) 50%, var(--c2, #bbb) 50%); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
  .cal__chip::before { display: none; }
  .cal__pop { display: none !important; }
}

/* Game color coding: first team color (--c1) / second team color (--c2) */
.duo { display: inline-block; flex: none; width: 11px; height: 11px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; background: linear-gradient(135deg, var(--c1, #bbb) 50%, var(--c2, #bbb) 50%); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.team-bar { height: 6px; max-width: 340px; border-radius: 3px; margin: 8px 0 2px; background: linear-gradient(90deg, var(--c1, #bbb) 0 50%, var(--c2, #bbb) 50% 100%); }
.scoreboard__team .teamdot { display: inline-block; vertical-align: 0; margin-right: 6px; }
.down-modal__hint { margin: 0 0 12px; color: var(--ink-soft); font-size: .88rem; }
.down-modal__opt { display: flex; gap: 8px; align-items: center; padding: 5px 0; font-size: .95rem; cursor: pointer; }
.down-modal__actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.hl-more { text-align: center; padding: 24px 0; color: var(--ink-soft); font-size: .9rem; }
.filters input[type="date"] { padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); font: inherit; }

/* Schedule: day-grouped game rows */
.block__count { font-size: .8rem; font-weight: 600; color: var(--ink-soft); background: var(--cream); border-radius: 999px; padding: 2px 10px; vertical-align: middle; margin-left: 6px; }
.gameday { margin: 0 0 18px; }
.gameday__date { margin: 0 0 6px; font-family: "Fredoka"; font-size: .95rem; color: var(--ink-soft); position: sticky; top: 0; background: var(--cream); padding: 6px 0 4px; z-index: 1; }
.gameday__list { list-style: none; margin: 0; padding: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.gamerow + .gamerow { border-top: 1px solid var(--line); }
.gamerow a { display: grid; grid-template-columns: 76px 1fr auto minmax(70px, auto); align-items: center; gap: 12px; padding: 10px 14px; text-decoration: none; color: var(--ink); }
.gamerow--dated a { grid-template-columns: 165px 1fr auto minmax(70px, auto); }
.gamerow a:hover { background: var(--cream); }
.gamerow__time { color: var(--ink-soft); font-size: .85rem; font-variant-numeric: tabular-nums; }
.gamerow__match { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 600; }
.gamerow__match em { font-style: normal; opacity: .5; font-weight: 400; }
.gamerow__team { display: inline-flex; align-items: center; gap: 6px; }
.gamerow.is-past .gamerow__team:not(.is-winner) { color: var(--ink-soft); font-weight: 500; }
.gamerow__team.is-winner::after { content: "✓"; color: #0a7a3d; font-size: .8rem; }
.teamdot { width: 10px; height: 10px; border-radius: 50%; background: var(--team-color, var(--banana)); flex: none; }
.gamerow__score { font-weight: 700; font-variant-numeric: tabular-nums; }
.gamerow__score em { font-style: normal; opacity: .5; padding: 0 2px; }
.gamerow__score--tbd { color: var(--ink-soft); font-weight: 600; font-size: .85rem; }
.gamerow__loc { color: var(--ink-soft); font-size: .82rem; text-align: right; }
.gamerow__tags { text-align: right; }
.tag--replay { background: #e6f7ec; color: #0a7a3d; border-radius: 999px; font-size: .75rem; font-weight: 700; padding: 2px 9px; white-space: nowrap; }
.standings-fold summary { cursor: pointer; list-style: none; }
.standings-fold summary::-webkit-details-marker { display: none; }
.standings-fold summary::after { content: " ▾"; color: var(--ink-soft); }
.standings-fold[open] summary::after { content: " ▴"; }
.sameday { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sameday__label { font-size: .88rem; font-weight: 600; color: var(--ink-soft); }
@media (max-width: 640px) {
  .gamerow a, .gamerow--dated a { grid-template-columns: 60px 1fr auto; }
  .gamerow--dated a { grid-template-columns: 1fr auto; }
  .gamerow--dated .gamerow__time { grid-column: 1 / -1; }
  .gamerow__tags, .gamerow__loc { display: none; }
}


