/* Catalogue pages: all sports, discipline, competition, live, results, favourites.
 * New sections designed in the mockup's language: photo cards (sports slider),
 * duotone band (hero photo treatment), pill filters, dense grouped rows. */

.crumbs { margin: 4px 0 14px; }

/* ── all sports grid ──────────────────────────────────────────────────── */
.sgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.sport { scroll-snap-align: start; position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; height: 240px; padding: 16px; border-radius: var(--radius-l); border: 1px solid var(--color-border-soft); overflow: hidden; color: var(--color-text); text-decoration: none; }
.sport picture { position: absolute; inset: 0; z-index: -2; }
.sport img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1) brightness(.72); transition: transform .8s var(--ease), filter .6s; }
.sport::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 25%, rgb(11 20 18 / .95)), linear-gradient(0deg, rgb(31 107 82 / .5), rgb(31 107 82 / .5)); }
.sport::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--color-brand); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.sport:hover img { transform: scale(1.08); filter: grayscale(.2) contrast(1.05) brightness(.75); }
.sport:hover::after, .sport:focus-visible::after { transform: none; }
.sport h2, .sport h3 { font: 800 1.25rem/1.2 var(--font-display); }
.sport p { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 6px; font: 600 var(--fs-xs)/1.3 var(--font-mono); color: var(--color-text-2); }
.sport p > span { display: flex; align-items: center; gap: 6px; color: var(--color-live-text); }
.sport .code { position: absolute; top: 14px; left: 14px; background: rgb(11 20 18 / .6); color: var(--color-text-2); border-color: var(--color-border); backdrop-filter: blur(6px); }
.sport__go { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgb(11 20 18 / .6); backdrop-filter: blur(6px); opacity: 0; transform: rotate(-45deg) scale(.8); transition: all .4s var(--spring); }
.sport__go .icon { width: 16px; height: 16px; }
.sport:hover .sport__go { opacity: 1; transform: none; }

.az { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.az__col { padding: 16px; border-radius: var(--radius-l); background: var(--color-surface-1); border: 1px solid var(--color-border-soft); }
.az__col h3 { margin-bottom: 8px; font: 800 var(--fs-h3)/1.2 var(--font-display); }
.az__col h3 a { text-decoration: none; }
.az__col h3 a:hover { color: var(--color-brand); }
.az__col li a { display: flex; align-items: center; gap: 10px; min-height: 36px; font-size: var(--fs-sm); color: var(--color-text-2); text-decoration: none; }
.az__col li a span { flex: 1; min-width: 0; line-height: 1.3; padding-block: 4px; }
.az__col li a small { font: 600 var(--fs-xs)/1 var(--font-mono); color: var(--color-text-3); }
.az__col li a:hover { color: var(--color-text); }
.chips--wrap { flex-wrap: wrap; overflow: visible; }

/* ── discipline band (hero photo treatment) ───────────────────────────── */
.sband { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: 220px; padding: 24px; border-radius: var(--radius-l); overflow: hidden; border: 1px solid var(--color-border-soft); }
.sband__ph { position: absolute; inset: 0; z-index: -2; }
.sband__ph img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.15) brightness(.5); }
.sband::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(11 20 18 / .94) 20%, rgb(11 20 18 / .35)), linear-gradient(0deg, rgb(31 107 82 / .45), rgb(31 107 82 / .45)); }
.sband h1, .lhead h1 { margin: 8px 0 10px; font: 800 var(--fs-h1)/1.05 var(--font-display); letter-spacing: -.03em; }
.sband__stats, .lhead__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: var(--fs-sm); color: var(--color-text-2); }
.sband__stats b, .lhead__meta b { font-family: var(--font-mono); color: var(--color-text); }
.sband .lv { font-size: var(--fs-sm); }

/* ── filter bar ───────────────────────────────────────────────────────── */
.fbar { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: minmax(200px, 1fr) auto auto; gap: 10px 12px; align-items: center; margin: 16px 0 4px; padding: 12px 0; background: color-mix(in oklab, var(--color-bg) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.fbar__q { position: relative; display: block; }
.fbar__q .icon { position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--color-text-3); pointer-events: none; }
.fbar__q input { width: 100%; height: 44px; padding: 0 14px 0 42px; border-radius: var(--radius-pill); border: 1px solid var(--color-border); background: var(--color-surface-1); color: var(--color-text); transition: border-color var(--dur-base), box-shadow var(--dur-base); }
.fbar__q input:focus { outline: none; border-color: var(--color-brand); box-shadow: var(--focus-ring); }
.fbar__when { margin: 0; }
.fbar__when button { height: 36px; }
.fbar__when [aria-checked="true"] { background: var(--color-surface-3); color: var(--color-text); }
.fbar__sort { display: flex; align-items: center; gap: 8px; font-size: var(--fs-xs); color: var(--color-text-3); }
.fbar__sort select { height: 44px; padding: 0 34px 0 14px; border-radius: var(--radius-m); border: 1px solid var(--color-border); background: var(--color-surface-1) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A3B5AE' stroke-width='2'><path d='m6 9 6 6 6-6'/></svg>") right 10px center/16px no-repeat; color: var(--color-text); appearance: none; cursor: pointer; font-weight: 600; }
.fbar__comps { grid-column: 1 / -1; }
.fbar__comps .chip[aria-pressed="true"] { background: var(--color-text); color: var(--color-bg); border-color: var(--color-text); }
.elist { min-height: 200px; }
.elist .empty { margin-top: 12px; }

/* ── league head ──────────────────────────────────────────────────────── */
.lhead { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; padding: 20px 20px 20px 24px; border-radius: var(--radius-l); background: radial-gradient(80% 140% at 100% 0%, rgb(216 243 92 / .07), transparent 60%), var(--color-surface-1); border: 1px solid var(--color-border-soft); }
.lhead__flag .flag { width: 54px; height: 36px; border-radius: 6px; }
.lhead h1 { margin: 6px 0 8px; }
.lhead .fav { width: 44px; height: 44px; border: 1px solid var(--color-border); }

/* live page */
.live-list .erow__when .lv { font-size: var(--fs-sm); }
.conn { display: inline-flex; align-items: center; gap: 8px; font: 500 var(--fs-xs)/1 var(--font-mono); color: var(--color-text-2); }
.conn i { width: 8px; height: 8px; border-radius: 50%; background: var(--color-success); animation: pulse-ok 2s infinite; }
.conn[data-conn="lost"] i { background: var(--color-warm); animation: none; }
.conn[data-conn="lost"] .conn__ok, .conn:not([data-conn="lost"]) .conn__lost { display: none; }

/* results */
.rrow { display: grid; grid-template-columns: 90px minmax(0, 1fr) 90px; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--color-border-soft); }
.rrow:last-child { border-bottom: 0; }
.rrow time { font: 600 var(--fs-xs)/1.3 var(--font-mono); color: var(--color-text-3); }
.rrow__t { display: grid; gap: 4px; font-size: var(--fs-sm); font-weight: 600; min-width: 0; }
.rrow__t span { display: flex; justify-content: space-between; gap: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rrow__t .is-win { color: var(--color-text); }
.rrow__t .is-lose { color: var(--color-text-3); font-weight: 500; }
.rrow__t b { font-family: var(--font-mono); }
.rrow__sets { justify-self: end; font: 500 var(--fs-xs)/1.4 var(--font-mono); color: var(--color-text-3); text-align: right; }

.fbar-comps { margin: 0 0 4px; }
@media (max-width: 1023px) {
  .fbar { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "q q" "w s"; }
  .fbar__q { grid-area: q; } .fbar__when { grid-area: w; overflow-x: auto; } .fbar__sort { grid-area: s; }
}
@media (max-width: 767px) {
  .sgrid { grid-template-columns: 1fr 1fr; }
  .sport { height: 200px; padding: 14px; }
  .sport h2 { font-size: 1.0625rem; }
  .sband { min-height: 190px; padding: 18px; }
  .fbar { top: 60px; margin: 12px -16px 4px; padding: 10px 16px; grid-template-areas: "q q" "w w" "s s"; }
  .fbar__sort { justify-content: space-between; }
  .fbar__sort select { flex: 1; }
  .fbar-comps .fbar__comps { margin: 0 -16px; padding: 2px 16px; }
  .lhead { grid-template-columns: 1fr auto; padding: 18px; }
  .lhead__flag { display: none; }
  .rrow { grid-template-columns: 1fr; gap: 6px; }
  .rrow__sets { justify-self: start; text-align: left; }
}
@media (min-width: 768px) and (max-width: 1279px) { .fbar { top: 60px; } }

/* results & favourites */
.rday { margin-top: 24px; }
.rday__h { margin: 24px 0 4px; font: 700 var(--fs-xs)/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--color-text-3); }
.rday .egroup { margin-top: 10px; }
.rrow { color: var(--color-text-2); text-decoration: none; transition: background var(--dur-base); }
.rrow:hover { background: var(--color-surface-2); }
.page-h h1 small { margin-left: 8px; font: 700 .5em/1 var(--font-mono); color: var(--color-error); vertical-align: middle; }
[data-fav-comp-list] { gap: 6px 4px; align-items: center; }
@media (min-width: 1024px) { .fbar { grid-template-columns: minmax(140px, 1fr) auto auto; } .fbar__when button { padding: 0 10px; } }
@media (min-width: 1024px) and (max-width: 1599px) { .fbar__sort > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } }
