/* sport.css — «Спорт» (sport.html + sport/_entry.html), built to her mockups 22-sport / 22-match / 22-tournament /
   22-race on the Expato design board (gen-sport.py, styles g-lenta + s-shows + e-types + sp-sport). Her 16.11 word:
   «макеты некорректно и неполностью перенёс» — so this file is those styles, ported to the site's own tokens (light and
   dark, :root.dark), not the afisha template the first build borrowed. Prefixes: spl- the list, et- / sp- as on the
   board. Big light type is for numbers only (her rule of 08.11). */
.spl, .spe { --ln: #DAD6CD; --pic: #E6E2D8; color: var(--txt); }
:root.dark .spl, :root.dark .spe { --ln: #2A2927; --pic: #1C1B1A; }
.spl :where(h1, h2, h3, h4, p, ol, ul, dl, dd, figure), .spe :where(h1, h2, h3, h4, p, ol, ul, dl, dd, figure) { margin: 0; padding: 0; }
.spl a:hover, .spe a:hover { color: inherit; }
.spl-in, .spe-in { max-width: 1440px; margin: 0 auto; padding: 0 40px 72px; }

/* ── the list ─────────────────────────────────────────────────────────── */
.spl-top { display: grid; grid-template-columns: 1fr 380px; align-items: end; gap: 40px; padding-top: 28px; }
.spl-top h1 { font: 300 104px/.86 Geologica, system-ui, sans-serif; letter-spacing: -.05em; margin-left: -6px; white-space: nowrap; }
.spl-find { display: flex; align-items: center; gap: 12px; border-bottom: 1.5px solid var(--txt); padding: 0 0 12px; }
.spl-find::before { content: ""; width: 15px; height: 15px; border: 1.5px solid var(--txt); border-radius: 50%; flex: none; box-shadow: 5px 5px 0 -4px var(--txt); }
.spl-find input { flex: 1; min-width: 0; border: 0; background: none; font: 400 17px/1.3 Geologica, system-ui, sans-serif; color: var(--txt); outline: 0; padding: 0; }
.spl-find input::placeholder { color: var(--mut); }

.sp-mode { display: flex; margin-top: 22px; border-bottom: 1px solid var(--ln); }
.sp-mode button { font: 400 28px/1 Geologica, system-ui, sans-serif; letter-spacing: -.02em; padding: 0 28px 16px 0; color: var(--mut); }
.sp-mode small { font-size: 15px; letter-spacing: 0; margin-left: 8px; color: var(--faint); font-variant-numeric: tabular-nums; }
.sp-mode button[aria-pressed="true"] { color: var(--txt); box-shadow: inset 0 -2px 0 var(--txt); }
.sp-mode button:hover { color: var(--txt); }
.sp-kinds { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 16px 0 4px; font-size: 15px; }
.sp-kinds button { color: var(--mut); font-size: 15px; }
.sp-kinds small { color: var(--faint); margin-left: 5px; font-variant-numeric: tabular-nums; font-size: 13px; }
.sp-kinds button[aria-pressed="true"] { color: var(--txt); font-weight: 500; }
.sp-kinds button:hover { color: var(--txt); }
.sp-kinds button[data-gally-none] { display: none; }
.sp-kinds button[data-gally-value=""] [data-gally-total]:empty, .sp-mode [data-gally-total]:empty { display: none; }

.sp-months { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); margin-top: 20px; border-top: 1.5px solid var(--txt); border-bottom: 1px solid var(--ln); }
.sp-months a { position: relative; padding: 22px 0 14px 14px; border-left: 1px solid var(--ln); }
.sp-months a:first-child, .sp-months a.sp-m1 { border-left: 0; padding-left: 0; }
.sp-months a[hidden] { display: none; }
.sp-months i { position: absolute; top: 5px; font-style: normal; font-size: 12px; color: var(--faint); }
.sp-months b { display: block; font: 300 30px/1 Geologica, system-ui, sans-serif; letter-spacing: -.02em; }
.sp-months small { font-size: 13px; color: var(--mut); }
.sp-months small:empty::before { content: "—"; }
.sp-months a.sp-zero b, .sp-months a.sp-zero small { color: var(--faint); }
.sp-months a[aria-current] b { font-weight: 500; }
.sp-months a:hover b { color: var(--acc); }

.sp-big { padding: 40px 0 44px; border-bottom: 1px solid var(--ln); }
.sp-big h2 { font: 400 15px/1 Geologica, system-ui, sans-serif; color: var(--mut); margin-bottom: 18px; }
.sp-bigs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1.5px solid var(--txt); }
.sp-bg { display: flex; flex-direction: column; gap: 6px; padding: 20px 20px 4px 0; min-width: 0; }
.sp-bg + .sp-bg { padding-left: 20px; border-left: 1px solid var(--ln); }
.sp-bg b { font: 200 64px/.85 Geologica, system-ui, sans-serif; letter-spacing: -.05em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sp-bg b small { font: 400 15px/1 Geologica, system-ui, sans-serif; letter-spacing: 0; color: var(--mut); margin-left: 6px; }
.sp-bg h4 { font: 500 17px/1.25 Geologica, system-ui, sans-serif; margin-top: 8px; }
.sp-bg p { font-size: 14px; color: var(--mut); line-height: 1.35; }
.sp-bg em { font-style: normal; font-size: 14px; font-weight: 500; }
.sp-bg:hover h4 { text-decoration: underline; text-underline-offset: 3px; }

/* pictures: an event's own official photo; a match — its two clubs' colours (no badges); else the sport in words */
.sp-pic { position: relative; display: block; width: 120px; height: 72px; border-radius: 6px; overflow: hidden; background: var(--pic); }
.sp-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sp-two { display: grid; grid-template-columns: 1fr 1fr; height: 100%; }
.sp-two b { display: block; }
.sp-vs { display: grid; grid-template-rows: 1fr 1fr; gap: 2px; height: 100%; font-style: normal; background: var(--bg); }
.sp-vs b { display: flex; align-items: center; min-width: 0; padding: 0 7px; font: 600 11px/1.05 Geologica, system-ui, sans-serif; letter-spacing: -.01em; color: #F2F0EB; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-vs b.sp-light { color: #121211; }
.sp-pic img ~ .sp-two { position: absolute; left: 0; right: 0; bottom: 0; height: 8px; }
.sp-mono { display: flex; align-items: flex-end; height: 100%; padding: 8px; font: 500 11px/1.1 Geologica, system-ui, sans-serif; font-style: normal; color: #F2F0EB; background: #2b2a27; text-transform: lowercase; }
.sp-bgi { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; margin-bottom: 12px; background: var(--pic); }
.sp-hall { margin: 0 0 20px; }
.sp-hall img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: var(--pic); }
.sp-hall figcaption { margin-top: 8px; font-size: 12px; color: var(--mut); }

/* the feed: a month, then days — a big light day number, the day's rows beside it */
.sp-mon[hidden], .sp-row[hidden], .sp-row.sp-later { display: none; }
.sp-mh { display: flex; align-items: baseline; gap: 20px; padding: 56px 0 8px; }
.sp-mh h2 { font: 200 104px/.85 Geologica, system-ui, sans-serif; letter-spacing: -.05em; margin-left: -5px; }
.sp-mh p { font-size: 16px; color: var(--mut); }
.sp-row { position: relative; display: grid; grid-template-columns: 120px 60px 120px 150px minmax(0, 1fr) 200px 160px; column-gap: 20px; align-items: center; padding: 18px 0; border-top: 1px solid var(--ln); }
.sp-row.sp-cont { border-top: 0; }
.sp-row.sp-cont::before { content: ""; position: absolute; top: 0; left: 140px; right: 0; border-top: 1px solid var(--ln); }
.sp-dd { align-self: start; }
.sp-dd b { display: block; font: 200 56px/.9 Geologica, system-ui, sans-serif; letter-spacing: -.04em; }
.sp-dd small { font-size: 15px; color: var(--mut); text-transform: lowercase; }
.sp-cont .sp-dd { visibility: hidden; }
.sp-row time { font-size: 16px; font-variant-numeric: tabular-nums; }
.sp-row time.sp-tbc { color: var(--mut); font-size: 14px; line-height: 1.2; }
.sp-k { font-size: 14px; color: var(--mut); line-height: 1.3; }
.sp-k b { display: block; font-weight: 500; color: var(--txt); font-size: 15px; }
.sp-t { min-width: 0; }
.sp-t h3 { font: 500 20px/1.25 Geologica, system-ui, sans-serif; letter-spacing: -.01em; }
.sp-t h3 i { font-style: normal; color: var(--faint); font-weight: 300; margin: 0 .25em; }
.sp-t p { font-size: 15px; color: var(--mut); margin-top: 3px; }
.sp-t p.sp-moved { color: var(--txt); }
.sp-w b { display: block; font-weight: 500; font-size: 15px; }
.sp-w span { font-size: 14px; color: var(--mut); }
.sp-p { text-align: right; font-size: 16px; }
.sp-p em { display: block; font-style: normal; font-size: 14px; margin-top: 3px; color: var(--mut); }
.sp-p em.sp-rule { color: var(--txt); }
.sp-p i { font-style: normal; }
.sp-row:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
.sp-next { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 36px 0; border-top: 1px solid var(--ln); border-bottom: 1px solid var(--ln); }
.sp-next[hidden] { display: none; }
.sp-next button:first-child { font-size: 17px; color: var(--mut); }
.sp-next button:last-child { font: 300 48px/1 Geologica, system-ui, sans-serif; letter-spacing: -.03em; }
.sp-next button:hover { color: var(--acc); }
.sp-empty { padding: 56px 0 24px; font-size: 17px; color: var(--mut); }
.sp-empty a { color: var(--txt); text-decoration: underline; text-underline-offset: 3px; }
.sp-src { font-size: 13px; color: var(--faint); margin-top: 12px; white-space: normal; overflow-wrap: anywhere; }
.sp-src a { border-bottom: 1px solid var(--ln); }
.sp-src a:hover { color: var(--txt); }
.sp-lic { margin: 28px 0 0; }

@media (min-width: 601px) and (max-width: 1100px) {
  .spl-top { grid-template-columns: 1fr 300px; }
  .sp-row { grid-template-columns: 96px 56px minmax(0, 1fr) 150px 100px; row-gap: 6px; }
  .sp-pic { grid-column: 5; grid-row: 1 / 4; width: 100px; height: 64px; }
  .sp-row.sp-cont::before { left: 116px; }
  .sp-dd { grid-row: 1 / 4; }
  .sp-row time { grid-column: 2; grid-row: 1 / 4; align-self: start; }
  .sp-k { grid-column: 3; grid-row: 1; }
  .sp-t { grid-column: 3; }
  .sp-w { grid-column: 3; }
  .sp-p { grid-column: 4; grid-row: 1 / 4; }
  .sp-bigs { grid-template-columns: 1fr 1fr; }
  .sp-bg:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 600px) {
  .spl-in, .spe-in { padding: 0 20px 56px; }
  .spl-top { grid-template-columns: 1fr; gap: 24px; padding-top: 20px; }
  .spl-top h1 { font-size: 64px; white-space: normal; margin-left: -3px; }
  .sp-mode button { font-size: 22px; padding-right: 20px; }
  .sp-kinds { gap: 6px 16px; }
  .sp-kinds button { font-size: 14px; }
  .sp-months { grid-template-columns: repeat(8, 64px); overflow-x: auto; margin-right: -20px; scrollbar-width: none; }
  .sp-months a { padding: 20px 0 10px 10px; }
  .sp-months b { font-size: 22px; }
  .sp-bigs { grid-template-columns: 1fr 1fr; }
  .sp-bg { padding: 16px 12px 8px 0; }
  .sp-bg + .sp-bg { padding-left: 12px; }
  .sp-bg:nth-child(3) { padding-left: 0; border-left: 0; }
  .sp-bg b { font-size: 44px; }
  .sp-mh h2 { font-size: 64px; }
  .sp-mh { padding-top: 40px; }
  .sp-row { grid-template-columns: 52px minmax(0, 1fr) 84px; gap: 2px 12px; align-items: start; padding: 14px 0; }
  .sp-pic { grid-column: 3; grid-row: 1 / 5; width: 84px; height: 64px; }
  .sp-vs b { font-size: 10px; padding: 0 5px; }
  .sp-row.sp-cont::before { left: 64px; }
  .sp-dd { grid-row: 1 / 6; }
  .sp-dd b { font-size: 40px; }
  .sp-row time, .sp-k, .sp-t, .sp-w, .sp-p { grid-column: 2; }
  .sp-row time { font-size: 14px; }
  .sp-k b { display: inline; font-size: 14px; }
  .sp-k b::after { content: " · "; font-weight: 400; color: var(--mut); }
  .sp-t h3 { font-size: 18px; }
  .sp-w b, .sp-w span { display: inline; font-size: 14px; }
  .sp-w span::before { content: ", "; }
  .sp-p { text-align: left; font-size: 15px; }
  .sp-p em { display: inline; }
  .sp-p i + em { margin-left: 8px; }
  .sp-p > span:empty { display: none; }
  .sp-next { flex-direction: column; gap: 6px; }
  .sp-next button:last-child { font-size: 32px; }
}

/* ── one event: the evening on the left, a sticky ticket on the right ──── */
.et-back { display: inline-block; margin-top: 18px; font-size: 15px; color: var(--mut); }
.et-back:hover { color: var(--txt) !important; }
.et-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 64px; margin-top: 14px; align-items: start; }
.et-main { min-width: 0; }
.et-kind { font-size: 15px; color: var(--mut); }
.et-main h1 { font: 400 52px/1.04 Geologica, system-ui, sans-serif; letter-spacing: -.035em; margin-top: 6px; max-width: 820px; }
.et-vs { font-weight: 200; color: var(--faint); margin: 0 .15em; }
.et-sub { font-size: 19px; line-height: 1.3; color: var(--mut); margin-top: 8px; max-width: 760px; }
.et-when { display: flex; align-items: flex-end; gap: 18px; margin-top: 20px; flex-wrap: wrap; }
.et-when > b { font: 200 112px/.78 Geologica, system-ui, sans-serif; letter-spacing: -.06em; margin-left: -5px; white-space: nowrap; }
.et-when > b i { font-style: normal; }
.et-when p { display: flex; flex-direction: column; gap: 4px; padding-bottom: 4px; min-width: 0; }
.et-when p > span:first-child { font-size: 20px; font-weight: 500; }
.et-when p > span + span { font-size: 17px; color: var(--mut); }
.et-facts { display: flex; flex-wrap: wrap; gap: 6px 28px; margin-top: 20px; }
.et-facts div { display: flex; gap: 8px; font-size: 16px; }
.et-facts dt { color: var(--mut); }
.et-facts dt::after { content: ":"; }
.et-facts dd { margin: 0; }
.et-facts .sp-moved dt { color: var(--txt); font-weight: 500; }

.et-s { margin-top: 64px; }
.et-l { font: 400 15px/1 Geologica, system-ui, sans-serif; color: var(--mut); margin-bottom: 18px; }
.et-sig { margin-top: 40px; }
.et-sig .et-l { font: 500 22px/1.1 Geologica, system-ui, sans-serif; color: var(--txt); letter-spacing: -.01em; padding-bottom: 14px; margin-bottom: 0; border-bottom: 1px solid var(--txt); }
.et-here { box-shadow: inset 0 2px 0 var(--acc); }

.et-rows { border-top: 1px solid var(--ln); }
.et-row { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto 16px; gap: 20px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--ln); }
.et-row:hover h4 { text-decoration: underline; text-underline-offset: 3px; }
.et-rd { display: flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.et-rd b { font: 300 32px/1 Geologica, system-ui, sans-serif; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.et-rd small { font-size: 14px; color: var(--mut); }
.et-rt { min-width: 0; }
.et-rt h4 { font-size: 17px; font-weight: 500; line-height: 1.3; }
.et-rt small { display: block; font-size: 14px; color: var(--mut); margin-top: 3px; }
.et-rt small .sp-wd { text-transform: lowercase; }
.et-rx { font-size: 15px; color: var(--mut); white-space: nowrap; }
.et-row > i { font-style: normal; color: var(--faint); }
.et-rd b i { font-style: normal; }
.sp-lc { text-transform: lowercase; }

.et-city { display: inline-block; margin-top: 56px; font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.et-city span { margin-left: 4px; }

.et-ticket { position: sticky; top: 84px; padding-top: 4px; }
.et-art { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #151515; display: flex; align-items: center; justify-content: center; }
.et-art .glow { position: absolute; inset: -10%; width: 120%; height: 120%; object-fit: cover; filter: blur(36px) saturate(1.3); opacity: .55; }
.et-art .pst { position: relative; width: 100%; height: 100%; max-height: none; object-fit: cover; object-position: 50% 25%; }
.sp-cr { margin-top: 8px; font-size: 12px; color: var(--mut); }
.et-tk { margin-top: 20px; }
.et-price { font: 300 48px/1 Geologica, system-ui, sans-serif; letter-spacing: -.03em; overflow-wrap: anywhere; }
.et-price.sp-word { font-size: 40px; }
.et-st { font-size: 14px; color: var(--mut); margin-top: 8px; }
.et-btn { display: flex; align-items: center; justify-content: center; height: 52px; margin-top: 16px; padding: 0 20px; border-radius: 999px; background: var(--txt); color: var(--bg) !important; font-size: 17px; font-weight: 600; text-align: center; }
.et-btn:hover { background: var(--acc); color: #fff !important; }
.et-acts { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 16px; font-size: 14px; }
/* ряд действий — 14px, как на всех видах записи (сердце, календарь, отправить) */
.et-acts button, .et-acts a { font-size: 14px; color: var(--txt); }
.et-acts button:hover, .et-acts a:hover { color: var(--acc); }
.et-acts [aria-pressed="true"] { color: var(--acc); }
.et-mbar { display: none; }

/* a match has no poster: the two names on the clubs' colours, no badges (they are the clubs' marks) */
.sp-art { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; background: #2b2a27; }
.sp-half { position: relative; display: flex; min-width: 0; }
.sp-half > span, .sp-paint > span { flex: 1; display: flex; align-items: flex-end; padding: 18px 18px 16px; font: 600 30px/1 Geologica, system-ui, sans-serif; letter-spacing: -.03em; overflow-wrap: anywhere; background: #2b2a27; color: #F2F0EB; }
.sp-g > span { background: #3a3934; }
.sp-g > span, .sp-g .sp-paint > span { justify-content: flex-end; text-align: right; }
.sp-paint { position: absolute; inset: 0; display: flex; }
.sp-paint:empty { display: none; }
.sp-half > .sp-paint { padding: 0; background: none; align-items: stretch; }
/* цвет клуба — фон, буквы на тёмном фоне белые: второй цвет клуба буквами (зелёный N.E.C. на красном) не читался;
   светлый фон (sport.js ставит .sp-light) оставляет буквы второго цвета клуба */
.sp-paint > span:not(.sp-light) { color: #FFFFFF !important; }
.sp-art.sp-solo { grid-template-columns: minmax(0, 1fr); background: #1d1d1b; }
.sp-solo > span { display: block; align-self: end; padding: 18px; font: 600 34px/1.05 Geologica, system-ui, sans-serif; letter-spacing: -.03em; color: #fff; overflow-wrap: anywhere; }
.sp-solo small { display: block; font: 400 15px/1.3 Geologica, system-ui, sans-serif; letter-spacing: 0; color: rgba(255, 255, 255, .7); margin-top: 8px; }

/* «Что за матч» — for someone who has never watched Dutch football */
.sp-hook { font: 400 26px/1.3 Geologica, system-ui, sans-serif; letter-spacing: -.015em; margin-top: 22px; max-width: 760px; }
.sp-strip { display: grid; grid-template-columns: repeat(18, minmax(0, 1fr)); gap: 3px; margin-top: 28px; }
.sp-strip > i { grid-row: 1; height: 34px; border-radius: 3px; background: var(--ln); }
.sp-strip > span { display: contents; }
.sp-strip b { grid-row: 1; height: 34px; border-radius: 3px; background: var(--txt); color: var(--bg); display: flex; align-items: center; justify-content: center; font: 500 15px/1 Geologica, system-ui, sans-serif; }
.sp-strip-l { display: flex; justify-content: space-between; font-size: 13px; color: var(--mut); margin-top: 6px; }
.sp-clubs { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 28px; }
.sp-clubs > div { min-width: 0; }
.sp-club h3 { font: 500 24px/1.1 Geologica, system-ui, sans-serif; letter-spacing: -.02em; }
.sp-cc { font-size: 15px; color: var(--mut); margin: 6px 0 10px; }
.sp-cc b { color: var(--txt); font-weight: 500; }
.sp-cf { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--ln); }
.sp-cf > * { min-width: 0; }
.sp-cf b { font: 200 34px/1 Geologica, system-ui, sans-serif; letter-spacing: -.03em; white-space: nowrap; }
.sp-cf span { font-size: 15px; line-height: 1.35; }
.sp-first { margin-top: 28px; border-top: 1px solid var(--ln); }
.sp-first div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--ln); font-size: 16px; }
.sp-first dt { color: var(--mut); }
.sp-first dd { margin: 0; }

/* «Как купить билет» — the home club's steps, numbered; the last one is now (the row's sale state) */
.sp-buy { counter-reset: sp-step; }
.sp-steps { list-style: none; }
.sp-steps li { counter-increment: sp-step; display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--ln); }
.sp-steps li::before { content: counter(sp-step); grid-row: 1 / 3; font: 200 52px/.85 Geologica, system-ui, sans-serif; color: var(--faint); letter-spacing: -.04em; }
.sp-steps li > b, .sp-steps li > h4 { grid-column: 2; font: 500 19px/1.3 Geologica, system-ui, sans-serif; }
.sp-steps li > span, .sp-steps li > p { grid-column: 2; font-size: 16px; line-height: 1.5; color: var(--mut); margin-top: 4px; max-width: 640px; }
.sp-steps li.sp-now::before { color: var(--acc); }
.sp-steps li > * { min-width: 0; overflow-wrap: anywhere; }

/* «На стадионе», a tournament's «Что важно знать» — short facts in two columns */
.sp-facts { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; border-top: 1px solid var(--ln); }
.sp-facts > div, .sp-facts > p { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--ln); font-size: 16px; line-height: 1.45; }
.sp-facts > div > *, .sp-facts > p > * { min-width: 0; overflow-wrap: anywhere; }
.sp-facts b, .sp-facts dt { color: var(--mut); font-weight: 400; }
.sp-facts span, .sp-facts dd { margin: 0; }
.sp-facts > span { display: contents; }

/* a tournament's days: phases as a bar over the days, the day picks the ticket */
.sp-ph { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); margin-top: 20px; }
.sp-ph p { display: flex; flex-direction: column; gap: 3px; padding: 0 12px 12px 0; border-bottom: 2px solid var(--txt); margin-right: 6px; min-width: 0; }
.sp-ph b { font-size: 16px; font-weight: 500; white-space: nowrap; }
.sp-ph small { font-size: 13px; color: var(--mut); }
.sp-days { list-style: none; display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); }
.sp-day { display: flex; flex-direction: column; gap: 6px; padding: 16px 12px 18px 0; border-bottom: 1px solid var(--ln); min-width: 0; }
.sp-day + .sp-day { padding-left: 12px; border-left: 1px solid var(--ln); }
.sp-day > b { font: 200 44px/.85 Geologica, system-ui, sans-serif; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.sp-day > small { font-size: 13px; color: var(--mut); }
.sp-day > p { font-size: 13px; color: var(--txt); font-weight: 500; line-height: 1.3; }
.sp-day > em { font-style: normal; font-size: 13px; color: var(--acc); font-weight: 500; }
.sp-day > i { font-style: normal; font-size: 13px; color: var(--mut); line-height: 1.3; }
.sp-day.sp-raw { flex-direction: row; flex-wrap: wrap; gap: 4px 8px; }

/* a race's distances */
.sp-dist { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sp-d { display: flex; flex-direction: column; gap: 6px; padding: 22px 12px 20px 0; min-width: 0; }
.sp-d + .sp-d { padding-left: 16px; border-left: 1px solid var(--ln); }
.sp-d > b { font: 200 52px/.8 Geologica, system-ui, sans-serif; letter-spacing: -.05em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sp-d > b small { font: 400 16px/1 Geologica, system-ui, sans-serif; letter-spacing: 0; color: var(--mut); margin-left: 4px; }
.sp-d > span { font-size: 15px; color: var(--mut); }
.sp-d > em { font-style: normal; font-size: 18px; font-weight: 500; }
.sp-dl { margin-top: 6px; padding: 16px 0; border-top: 1px solid var(--ln); border-bottom: 1px solid var(--ln); font-size: 16px; }

@media (min-width: 601px) and (max-width: 1100px) {
  .et-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; }
  .sp-days { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .sp-ph { display: none; }
  .sp-dist { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .et-back { display: none; }
  .et-grid { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 12px; }
  .et-ticket { position: static; order: -1; padding-top: 0; margin-bottom: 16px; }
  .et-tk { display: none; }
  .et-art, .sp-art { aspect-ratio: auto; height: 170px; }
  .sp-half > span, .sp-paint > span { font-size: 22px; padding: 14px; }
  .et-main h1 { font-size: 30px; }
  .et-sub { font-size: 16px; margin-top: 4px; }
  .et-when { margin-top: 12px; gap: 12px; }
  .et-when > b { font-size: 64px; }
  .et-when p > span:first-child { font-size: 16px; }
  .et-when p > span + span { font-size: 15px; }
  .et-facts { margin-top: 10px; flex-direction: column; gap: 2px; }
  .et-facts div { font-size: 15px; }
  .et-sig { margin-top: 24px; }
  .et-sig .et-l { font-size: 20px; padding-bottom: 12px; }
  .et-s { margin-top: 48px; }
  .et-row { grid-template-columns: 84px minmax(0, 1fr); gap: 4px 12px; }
  .et-rd { grid-row: 1 / 3; flex-direction: column; align-items: flex-start; gap: 2px; }
  .et-rx { grid-column: 2; font-size: 13px; white-space: normal; }
  /* только стрелка строки; «–10» в дате диапазона остаётся (раньше прятался конец «9–10 янв») */
  .et-row > i { display: none; }
  .et-rd b { font-size: 26px; }
  .et-rd small { font-size: 13px; }
  .sp-hook { font-size: 20px; }
  .sp-strip { gap: 2px; }
  .sp-strip > i, .sp-strip b { height: 26px; }
  .sp-strip b { font-size: 12px; }
  .sp-clubs { grid-template-columns: 1fr; gap: 24px; }
  .sp-cf { grid-template-columns: 96px minmax(0, 1fr); }
  .sp-cf b { font-size: 28px; }
  .sp-first div { grid-template-columns: 110px minmax(0, 1fr); font-size: 15px; }
  .sp-steps li { grid-template-columns: 40px minmax(0, 1fr); column-gap: 10px; padding: 16px 0; }
  .sp-steps li::before { font-size: 36px; }
  .sp-steps li > b { font-size: 17px; }
  .sp-steps li > span { font-size: 15px; }
  .sp-facts { grid-template-columns: 1fr; }
  .sp-facts > div, .sp-facts > p { grid-template-columns: 110px minmax(0, 1fr); font-size: 15px; }
  .sp-ph { display: none; }
  .sp-days { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sp-day, .sp-day + .sp-day { padding: 12px 8px 12px 0; border-left: 0; }
  .sp-day > b { font-size: 34px; }
  .sp-dist { grid-template-columns: 1fr; }
  .sp-d, .sp-d + .sp-d { padding: 14px 0; border-left: 0; border-top: 1px solid var(--ln); }
  .sp-d > b { font-size: 44px; }
  .et-city { margin-top: 40px; }
  .spe-in { padding-bottom: 96px; }
  .et-mbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 20px 16px; background: var(--bg); border-top: 1px solid var(--ln); }
  .et-mbar > span { display: flex; flex-direction: column; min-width: 0; }
  .et-mbar .sp-wd { text-transform: lowercase; }
  .et-mbar small { font-size: 13px; color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .et-mbar b { font-size: 20px; font-weight: 500; }
  .et-mbar .et-btn { margin: 0; height: 48px; padding: 0 24px; font-size: 16px; flex: none; }
}

/* ── «Спорт» on the afisha template (main.a2p.sp2, 17.11): only what a sport row has and a festival's has not ── */
/* the kick-off under the date words */
.sp2 .sp-tm { display: block; color: var(--txt2); font-variant-numeric: tabular-nums; }
.sp2 .sp-tbc { color: var(--mut); }
/* a match's picture: the two clubs in their colours, one above the other (never their badges) */
.sp2 .a2-ph.sp-vs { display: grid; grid-template-rows: 1fr 1fr; gap: 2px; padding: 0; background: var(--bg); }
.sp2 .a2-ph.sp-vs b { display: flex; align-items: center; min-width: 0; padding: 0 9px; border-radius: 0; font: 600 12px/1.1 Geologica, system-ui, sans-serif; color: #F2F0EB; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp2 .a2-ph.sp-vs b.sp-light { color: #121211; box-shadow: inset 0 0 0 1px var(--aline); }
.sp2 .a2-ph.sp-vs b:first-child { border-radius: 8px 8px 0 0; }
.sp2 .a2-ph.sp-vs b:last-child { border-radius: 0 0 8px 8px; }
/* an event without its own picture: its sport, on the site's dark ground */
.sp2 .a2-ph.sp-mono { display: flex; align-items: flex-end; padding: 10px; background: #2b2a27; color: #F2F0EB; font-size: 12px; font-weight: 500; text-transform: lowercase; }
.sp2 .sp-moved { color: var(--txt); }
.sp2 .sp-off { color: #C4302B; }
/* the rail's «Главное в сезоне»: name, dates, the one fact about tickets */
.sp-rail-big > p { margin-bottom: 4px; }
.sp-rail-big li a { display: block; padding: 8px 0; }
.sp-rail-big li a > span > b { display: block; font-size: 15px; font-weight: 500; line-height: 21px; }
.sp-rail-big .sp-rd { display: block; font-size: 14px; font-weight: 400; color: var(--txt2); }
.sp-rail-big em { display: block; font-size: 13px; font-style: normal; font-weight: 400; color: var(--mut); }
.sp-rail-big li + li { border-top: 1px solid var(--aline); }
/* «Дни турнира» на телефоне: sport.js ставит все дни в одну строку (repeat(N) инлайном) — на 390 это 39 px на день, и
   числа слипаются («1011121314»). Здесь дни — лентой по 96 px с прокруткой внутри ленты; страница не шире экрана. */
@media (max-width: 600px) {
  .sp-days { grid-template-columns: none !important; grid-auto-flow: column; grid-auto-columns: 96px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; overscroll-behavior-x: contain; }
  .sp-days::-webkit-scrollbar { display: none; }
  .sp-day, .sp-day + .sp-day { padding: 12px 10px 14px 0; scroll-snap-align: start; }
  .sp-day + .sp-day { padding-left: 10px; border-left: 1px solid var(--ln); }
}
