/* Home — hero "Mecz dnia" and the "Następne na torze" column of mockup B2,
 * plus the tabs row and the all-disciplines grid (added). */

.hero { position: relative; overflow: hidden; isolation: isolate; background: var(--surface-night); color: var(--color-on-night); min-height: clamp(600px, 88vh, 820px); display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: end; padding: 48px 48px 64px 56px; }
.hero__pic { position: absolute; inset: 0; z-index: -3; }
.hero__pic picture, .hero__pic img { width: 100%; height: 100%; }
.hero__pic img { object-fit: cover; object-position: 60% 40%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background:
  linear-gradient(90deg, rgba(12, 14, 20, .94) 0%, rgba(12, 14, 20, .78) 34%, rgba(12, 14, 20, .25) 64%, rgba(12, 14, 20, .55) 100%),
  linear-gradient(0deg, rgba(12, 14, 20, .92) 0%, rgba(12, 14, 20, 0) 52%); }
.hero .speed span { transform-origin: 50% 100%; animation: swish 900ms var(--ease) both; }
.hero .speed span:nth-child(2) { animation-delay: 80ms; }
.hero .speed span:nth-child(3) { animation-delay: 140ms; }
.hero .speed span:nth-child(4) { animation-delay: 200ms; }
.hero .speed span:nth-child(5) { animation-delay: 40ms; }
@keyframes swish { from { transform: skewX(-24deg) translateX(-60px); opacity: 0; } }
.hero__body { position: relative; max-width: 760px; display: flex; flex-direction: column; gap: 18px; }
.hero h1 { display: inline-flex; align-items: center; gap: 10px; font: 700 14px/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--color-on-night-muted); }
.hero h1::before { content: ""; width: 22px; height: 4px; background: var(--color-brand); transform: skewX(-24deg); }
.hero__claim { margin-top: -8px; font-size: 15px; color: var(--color-on-night-muted); max-width: 29.4em; }
.kicker { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 14px 0 10px; border-radius: var(--radius-pill); background: var(--color-brand); font: 700 14px/1 var(--font-body); color: #fff; }
.kicker .icon { width: 16px; height: 16px; }
.match { font: italic 800 var(--fs-display)/.9 var(--font-display); text-transform: uppercase; letter-spacing: -.005em; text-wrap: balance; overflow-wrap: anywhere; }
.match a { color: #fff; transition: color var(--dur-base); }
.match a:hover { color: var(--color-pick); }
.match span { display: block; }
.match em { display: block; font: italic 600 .3em/1.2 var(--font-display); letter-spacing: .2em; color: var(--color-pick); margin: .12em 0 .06em; }
.when { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; font-weight: 600; color: var(--color-on-night-muted); }
.when__t { display: inline-flex; align-items: center; gap: 8px; }
.when b { color: #fff; font-weight: 700; }
.count { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 14px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px var(--surface-night-line); color: #fff; }
.count .icon { color: var(--color-pick); }
.count b { font: italic 700 24px/1 var(--font-display); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.hero__oddsrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.hero__odds { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.hero__odds .odd { flex: 0 0 132px; flex-direction: row; justify-content: space-between; min-height: 64px; padding: 0 18px; gap: 14px; }
.hero__odds .odd .k { font-size: 14px; }
.hero__odds .odd .v { font-size: 28px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; }

.next { position: relative; align-self: center; display: flex; flex-direction: column; gap: 12px; }
.next__h { font: 700 12px/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--color-on-night-muted); display: flex; justify-content: space-between; align-items: center; }
.next__list { display: flex; flex-direction: column; gap: 12px; }
.nx { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 4px 12px; padding: 14px 14px 14px 10px; border-radius: var(--radius-md); background: var(--surface-night-card); box-shadow: inset 0 0 0 1px var(--surface-night-line), 0 20px 40px -24px rgba(0, 0, 0, .8); transition: transform 240ms var(--ease); }
.nx:hover { transform: translateY(-3px); }
.nx__lane { grid-row: 1 / 4; align-self: start; font: italic 800 64px/.8 var(--font-display); color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .6); text-align: center; padding-top: 4px; }
.nx__meta { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 600; color: var(--color-on-night-muted); min-width: 0; }
.nx__meta span { min-width: 0; }
.nx__meta time { color: #fff; font-variant-numeric: tabular-nums; flex: none; }
.nx__teams { font: italic 700 19px/1.1 var(--font-display); text-wrap: balance; }
.nx__teams a { color: #fff; }
.nx__teams a:hover { color: var(--color-pick); }
.nx__odds { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 6px; margin-top: 6px; }
.nx .odd { min-height: 40px; flex-direction: row; gap: 6px; }
.nx .odd .v { font-size: 17px; }

.board { padding-top: 36px; padding-bottom: 24px; }
.tabs-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 18px; }
.tabs-row .seg [role="tab"][aria-selected="true"] { background: var(--color-text); color: #fff; }
.tabs-row .chips { margin: 0; flex: 1 1 300px; min-width: 0; }
#panel-live .live { margin-top: 0; }

.disc { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 10px; }
.disc a { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 14px 10px 10px; border-radius: var(--radius-md); background: var(--surface-card); box-shadow: var(--shadow-1); font-weight: 700; transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base); }
.disc a:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.disc a:hover .disc__n { color: var(--color-brand-text); }
.disc__ic { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; background: var(--color-brand-tint); color: var(--color-brand-text); flex: none; }
.disc__n { min-width: 0; line-height: 1.15; overflow-wrap: anywhere; }
.disc__c { margin-left: auto; font: italic 800 22px/1 var(--font-display); font-variant-numeric: tabular-nums; color: var(--color-muted); }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

@media (max-width: 1199px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 56px 32px 40px 36px; min-height: 0; }
  .next { align-self: stretch; }
  .next__list { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
  .next__list::-webkit-scrollbar { display: none; }
  .next__list .nx { flex: 0 0 300px; scroll-snap-align: start; }
  .hero .speed span:nth-child(1) { left: 64%; }
}
@media (max-width: 767px) {
  .hero { padding: 32px 16px 28px; gap: 24px; }
  .hero::before { background: linear-gradient(0deg, rgba(12, 14, 20, .96) 0%, rgba(12, 14, 20, .82) 50%, rgba(12, 14, 20, .45) 100%); }
  .hero .speed span:nth-child(1) { left: auto; right: -10px; width: 60px; opacity: .75; }
  .hero .speed span:nth-child(2) { left: auto; right: 70px; width: 16px; opacity: .65; }
  .hero .speed span:nth-child(3) { left: auto; right: 100px; width: 6px; opacity: .6; }
  .hero .speed span:nth-child(4) { left: auto; right: 118px; }
  .hero .speed span:nth-child(5) { display: none; }
  .hero__body { gap: 14px; }
  .hero__oddsrow { flex-direction: column; align-items: stretch; }
  .hero__odds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .hero__oddsrow .more { align-self: flex-start; }
  .hero__odds .odd { flex: none; min-height: 58px; padding: 0 12px; }
  .hero__odds .odd .v { font-size: 24px; }
  .hero__cta .btn { width: 100%; }
  .next__list .nx { flex-basis: 272px; }
  .board { padding-top: 24px; }
  .tabs-row .seg { width: 100%; }
  .tabs-row .seg button { flex: 1; }
  .disc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .disc a { min-height: 56px; padding: 8px 10px 8px 8px; gap: 8px; font-size: 14px; }
  .disc__ic { width: 34px; height: 34px; }
  .disc__c { font-size: 19px; }
  .cta-row .btn { flex: 1 1 100%; }
}
@media (max-width: 359px) { .disc { grid-template-columns: 1fr; } }
