/* Loud Nearby - strona główna (index.html, skrypt strona.js).
   Lista jak tabela na dawnej stronie (czerwony pasek, wiersze, plakietki, „Informacje”),
   z lepkim miesiącem i lepką datą dnia; nazwy zespołów wykuwane w dymku z opisem.
   Afisz: front wzmacniacza (siatka głośnika, okucia na rogach) i logo z pinezką. */

:root {
  --bg: #F2F0EA;
  --surface: #FFFFFF;
  --surface-2: #E9E6DE;
  --text: #18161A;
  --text-dim: #5C5650;
  --accent: #C81E3A;
  --accent-ink: #FFFFFF;
  --accent2: #2B5D6B;
  --border: #D8D5CD;
  --amber: #A85A17;
  --fresh: #167C48;
  --fav: #E31E2D;
  --metal: #8A2BE2;
  --punk: #C46A1C;
  --goth: #6B6BD6;
  --grille: rgba(24, 22, 26, .13);
  --shadow: 0 12px 34px rgba(24, 22, 26, .18);
  --display: "Grenze Gotisch", Georgia, serif;
  --body: "Libre Franklin", system-ui, sans-serif;
  --gl: max(16px, env(safe-area-inset-left, 0px));
  --gr: max(16px, env(safe-area-inset-right, 0px));
  --month-h: 44px;
  /* Najechanie: kolor, obramowanie i poświata zmieniają się razem, w tym samym czasie */
  --hv: .22s cubic-bezier(.2, .7, .3, 1);
  --date-col: 3.7rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #131214; --surface: #1C1B1E; --surface-2: #242327;
    --text: #EDE9E3; --text-dim: #A29CA0;
    --accent: #E4415C; --accent-ink: #1A0A0D; --accent2: #5FADC0;
    --border: #322F33; --amber: #E4A05F; --fresh: #5FD18C;
    --metal: #C99CF2; --punk: #E4A05F; --goth: #A9A9F0;
    --grille: rgba(237, 233, 227, .075);
    --shadow: 0 14px 40px rgba(0, 0, 0, .55);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #131214; --surface: #1C1B1E; --surface-2: #242327;
  --text: #EDE9E3; --text-dim: #A29CA0;
  --accent: #E4415C; --accent-ink: #1A0A0D; --accent2: #5FADC0;
  --border: #322F33; --amber: #E4A05F; --fresh: #5FD18C;
  --metal: #C99CF2; --punk: #E4A05F; --goth: #A9A9F0;
  --grille: rgba(237, 233, 227, .075);
  --shadow: 0 14px 40px rgba(0, 0, 0, .55);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
/* Pasek przewijania zawsze na miejscu: pasek u góry stoi tak samo jak na podstronach
   (pasek.css) i na mapie (mapa.js dolicza jego szerokość) */
html { -webkit-text-size-adjust: 100%; overflow-y: scroll; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1rem/1.5 var(--body);
  /* clip, nie hidden: przy overflow na html „hidden” robi z body osobny obszar
     przewijania i lepki pasek filtrów, miesiąc i data przestają się trzymać */
  overflow-x: clip;
}
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
a, button, select, [role="button"] { -webkit-tap-highlight-color: transparent; }
:focus:not(:focus-visible) { outline: none; }
:focus-visible { outline: 2px solid var(--accent2); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 20; background: var(--text); color: var(--bg); padding: .6em 1em; }
.skip:focus { left: 8px; }
.wrap { max-width: 1080px; margin: 0 auto; }

/* ---------- Nagłówek ---------- */
.top {
  display: flex; align-items: center; gap: .9rem;
  max-width: 1080px; margin: 0 auto;
  padding: max(8px, env(safe-area-inset-top, 0px)) var(--gr) 8px var(--gl);
}
.mark { display: inline-flex; align-items: center; min-height: 44px; font: 700 1.55rem/1 var(--display); text-decoration: none; }
.top-nav { display: flex; align-items: center; gap: .15rem; }
.top-nav a, .theme {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 .65rem;
  font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-dim); text-decoration: none; background: none; border: 0; cursor: pointer;
}
.top-nav a:hover { color: var(--text); }
.nav-add { display: none !important; }
.theme { position: relative; isolation: isolate; overflow: hidden; min-height: 40px; color: var(--text); border: 1px solid var(--text-dim); border-radius: 999px; padding: 0 1rem; gap: .45rem; }
/* Komputer: przycisk w kolorze bieżącego motywu (Mrock czarny, Świt biały). Najechanie wsuwa
   zasłonę w kolorze drugiego motywu na 1/4 przycisku (Mrock: biała z prawej, Świt: czarna z lewej),
   zjechanie ją cofa. Kliknięcie zasuwa ją do końca, dopiero potem zmienia się motyw i napis. */
.theme { --th-bg: #0A090B; --th-fg: #EDE9E3; --cu-bg: #FFFFFF; --cu-fg: #131214; background: var(--th-bg); color: var(--th-fg); }
:root[data-theme="light"] .theme { --th-bg: #FFFFFF; --th-fg: #18161A; --cu-bg: #131214; --cu-fg: #FFFFFF; }
.curtain {
  position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; padding: 0 1rem;
  background: var(--cu-bg); color: var(--cu-fg); pointer-events: none;
  clip-path: inset(0 0 0 100%); transition: clip-path .32s cubic-bezier(.3, .7, .2, 1);
}
:root[data-theme="light"] .curtain { clip-path: inset(0 100% 0 0); }
@media (hover: hover) and (pointer: fine) {
  .theme:not(.cool):hover .curtain { clip-path: inset(0 0 0 75%); }
  :root[data-theme="light"] .theme:not(.cool):hover .curtain { clip-path: inset(0 75% 0 0); }
}
.theme.wipe .curtain, :root[data-theme="light"] .theme.wipe .curtain { clip-path: inset(0 0 0 0); transition-duration: .42s; }
.theme.snap .curtain { transition: none; }
:root.no-tr *:not(#theme, #theme *) { transition: none !important; }
.theme svg { display: none; width: 20px; height: 20px; overflow: visible; }
/* Telefon: księżyc zamienia się w słońce. Wycięcie (maska) odjeżdża, tarcza maleje, promienie
   wyrastają z obrotem; przy powrocie to samo wstecz. */
.ic-tm .tm-core { fill: currentColor; transform-box: fill-box; transform-origin: center; }
.ic-tm .tm-bite { transform-box: fill-box; transform-origin: center; }
.ic-tm .tm-rays { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; transform-box: view-box; transform-origin: 12px 12px; }
.ic-tm .tm-core, .ic-tm .tm-bite, .ic-tm .tm-rays { transition: transform .5s cubic-bezier(.4, 1.5, .5, 1), opacity .3s ease; }
.ic-tm .tm-rays { transform: rotate(-70deg) scale(.4); opacity: 0; }
:root[data-theme="light"] .ic-tm .tm-core { transform: scale(.55); }
:root[data-theme="light"] .ic-tm .tm-bite { transform: translate(9px, -9px) scale(.6); }
:root[data-theme="light"] .ic-tm .tm-rays { transform: none; opacity: 1; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .ic-tm .tm-core { transform: scale(.55); }
  :root:not([data-theme="dark"]) .ic-tm .tm-bite { transform: translate(9px, -9px) scale(.6); }
  :root:not([data-theme="dark"]) .ic-tm .tm-rays { transform: none; opacity: 1; }
}
.theme:not(.armed) .ic-tm * { transition: none; }
.theme-light { display: none; }
:root[data-theme="light"] .theme-dark { display: none; }
:root[data-theme="light"] .theme-light { display: inline; }

/* Kanały Loud Nearby po lewej: okrągłe ikony jak przyciski w wierszach listy */
.social { display: flex; gap: 6px; margin-right: auto; }
.soc {
  position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid color-mix(in oklab, var(--text) 30%, transparent); color: var(--text-dim);
  box-shadow: 0 0 0 color-mix(in oklab, var(--accent) 0%, transparent), 0 0 0 color-mix(in oklab, var(--accent) 0%, transparent);
  transition: color var(--hv), border-color var(--hv), background-color var(--hv), box-shadow var(--hv);
}
.soc svg { width: 18px; height: 18px; }
.soc:focus-visible { color: var(--accent); border-color: var(--accent); }
@media (hover: hover) and (pointer: fine) {
  /* Jak „Informacje”: wypełnienie czerwienią i czerwona poświata */
  .soc:hover {
    background: var(--accent); border-color: var(--accent); color: var(--accent-ink);
    box-shadow: 0 0 9px color-mix(in oklab, var(--accent) 60%, transparent), 0 0 22px color-mix(in oklab, var(--accent) 30%, transparent);
  }
}
/* Język: jedna pigułka, aktywny język wypełniony kolorem tekstu (czerwień zostaje dla akcji) */
.lang { position: relative; display: inline-flex; gap: 2px; padding: 3px; border: 1px solid color-mix(in oklab, var(--text) 30%, transparent); border-radius: 999px; }
/* Wypełnienie-suwak: przejeżdża z lekkim dobiciem pod wybrany język */
.lang-thumb {
  position: absolute; top: 3px; bottom: 3px; left: 3px; width: 34px; border-radius: 999px;
  background: var(--text); pointer-events: none; will-change: transform;
  transition: transform .34s cubic-bezier(.45, 1.45, .5, 1), width .34s ease;
}
.lang button {
  min-width: 34px; height: 34px; padding: 0 .55rem; border: 0; border-radius: 999px; background: none; cursor: pointer;
  color: var(--text-dim); font: 700 .72rem var(--body); letter-spacing: .08em;
}
.lang button:hover { color: var(--text); }
.lang button { position: relative; z-index: 1; transition: color .2s ease .08s; }
.lang button[aria-pressed="true"] { color: var(--bg); }
/* Stałe szerokości napisów w nagłówku: wszystkie wersje w jednym miejscu, widać jedną */
.tx { display: inline-grid; justify-items: center; }
.tx > span { grid-area: 1 / 1; visibility: hidden; white-space: nowrap; }
.tx > span.on { visibility: visible; }
/* Menu: „Mapa” i „Dodaj koncert” stoją przy sobie, zapas na dłuższe tłumaczenia jest dopiero przed językiem */
.top-nav a:first-child .tx { justify-items: end; }
.top-nav .nav-add .tx { justify-items: start; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme-dark { display: none; }
  :root:not([data-theme="dark"]) .theme-light { display: inline; }
}

/* ---------- Afisz: front wzmacniacza ---------- */
.hero {
  position: relative; isolation: isolate;
  max-width: 1080px; margin: .25rem auto 1.5rem;
  border-block: 1px solid color-mix(in oklab, var(--text) 22%, transparent);
  overflow: hidden;
}
/* Siatka głośnika: gęste otwory, wygaszane winietą, żeby tekst był czytelny */
.amp {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 90% at 18% 30%, transparent 30%, var(--bg) 92%),
    radial-gradient(circle at center, var(--grille) 1.15px, transparent 1.6px) 0 0 / 7px 7px;
}
/* Okucia na rogach, jak na skrzyni wzmacniacza */
.hero::before, .hero::after, .hero-in::before, .hero-in::after {
  content: ""; position: absolute; width: 22px; height: 22px; pointer-events: none;
  border: 0 solid color-mix(in oklab, var(--text) 45%, transparent);
}
.hero::before { top: 8px; left: 8px; border-top-width: 2px; border-left-width: 2px; }
.hero::after { top: 8px; right: 8px; border-top-width: 2px; border-right-width: 2px; }
.hero-in::before { bottom: 8px; left: 8px; border-bottom-width: 2px; border-left-width: 2px; }
.hero-in::after { bottom: 8px; right: 8px; border-bottom-width: 2px; border-right-width: 2px; }

.hero-in {
  display: grid; gap: 1.25rem;
  padding: 2rem var(--gr) 2rem var(--gl);
}
.kicker { margin: 0; color: var(--text-dim); font-size: .64rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
@media (min-width: 480px) { .kicker { font-size: .72rem; letter-spacing: .16em; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Logo C: „L[pinezka]ud Nearby” w jednej linii. Wewnętrzne koło pinezki między wysokością „x”
   (0,47 em kroju) a linią bazową; grot dotyka linii żaru (jej położenie ustawia app.js). */
.logo-lock { position: relative; }
h1 { margin: 0; font: 800 clamp(2.6rem, 16.4vw, 7.4rem)/.86 var(--display); }
h1 .word { display: inline-flex; align-items: baseline; white-space: nowrap; }
h1 .pin { display: inline-block; height: .689em; aspect-ratio: 345 / 438; margin: 0 .01em 0 .02em; position: relative; top: .169em; }
h1 .pin svg { display: block; width: 100%; height: 100%; }
.h-near { color: var(--accent); }

@property --heat { syntax: "<percentage>"; inherits: false; initial-value: 20%; }
.flame {
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0, #FFFFFF var(--heat), transparent calc(var(--heat) + 45%));
  animation: heat 4s ease-in-out infinite alternate;
}
@keyframes heat { to { --heat: 55%; } }

.hero-body { display: grid; gap: 1.25rem; }
.lede { margin: 0; max-width: 36em; font-size: clamp(1.02rem, .96rem + .35vw, 1.22rem); line-height: 1.5; text-wrap: pretty; }
.stats { display: flex; margin: 0; border-top: 1px solid var(--text); }
.stats div { flex: 1; padding: .55rem .75rem 0 0; }
.stats div + div { border-left: 1px solid var(--border); padding-left: .75rem; }
.stats dt { color: var(--text-dim); font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.stats dd { margin: 0; font: 700 clamp(2.3rem, 7vw, 3.3rem)/1.05 var(--display); }
.stats a { display: block; min-height: 44px; text-decoration: none; }
.stats a:hover { color: var(--accent); }

.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; }
/* Poświata startuje z niewidocznego cienia tego samego kształtu, więc narasta płynnie od pierwszej klatki */
.ticket {
  display: inline-block; text-decoration: none;
  filter: drop-shadow(0 0 0 color-mix(in oklab, var(--accent) 0%, transparent)) drop-shadow(0 0 0 color-mix(in oklab, var(--accent) 0%, transparent));
  transition: filter var(--hv);
}
.ticket-in {
  --notch: 10px;
  display: inline-grid; padding: .8rem 1.5rem .75rem;
  background: var(--accent); color: var(--accent-ink); text-decoration: none;
  clip-path: polygon(var(--notch) 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% calc(100% - var(--notch)), calc(100% - var(--notch)) 100%, var(--notch) 100%, 0 calc(100% - var(--notch)), 0 var(--notch));
  transition: filter var(--hv), transform .12s;
}
.ticket span { font-weight: 700; font-size: 1.02rem; }
.ticket small { font-size: .8rem; opacity: .88; }
.ticket:hover .ticket-in { filter: brightness(1.08) saturate(1.1); }
.ticket:active .ticket-in { transform: translateY(1px); }
@media (hover: hover) and (pointer: fine) {
  .ticket:hover { filter: drop-shadow(0 0 7px color-mix(in oklab, var(--accent) 70%, transparent)) drop-shadow(0 0 18px color-mix(in oklab, var(--accent) 40%, transparent)); }
}
.map-link { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; color: var(--text); font-weight: 700; text-decoration: none; }
.map-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.asof { margin: 0; color: var(--text-dim); font-size: .82rem; }
.asof strong { color: var(--text); }
.tonight { display: none; }

/* ---------- Filtry (jak dziś: pole, pigułki gatunków, miasto) ---------- */
.controls {
  max-width: 1080px; margin: 0 auto 1rem;
  padding: .75rem var(--gr) .75rem var(--gl);
  display: grid; grid-template-columns: minmax(0, 1fr); gap: .6rem;
  background: var(--bg);
}
/* Pole szukania z lupą jak na mapie; zaznaczone: biała obwódka (na Świcie w kolorze tekstu) */
.q-box {
  display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 1rem 0 14px;
  background: var(--surface-2); border: 1px solid var(--text-dim); border-radius: 10px; color: var(--text-dim);
  cursor: text;
}
.q-box:focus-within { border-color: var(--text); }
:root[data-theme="dark"] .q-box:focus-within { border-color: #FFFFFF; }
.q-box svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.q-box input {
  flex: 1; min-width: 0; min-height: 44px; padding: 0; border: 0; outline: none; background: none;
  color: var(--text); font-size: 1rem;
}
.q-box input:focus-visible { outline: none; }
.q-box input::placeholder { color: var(--text-dim); }
/* Telefon: pięć gatunków w jednej linii, bez przewijania w bok */
.chips { display: flex; gap: 5px; }
.chip {
  flex: 1 1 0; min-width: 0; min-height: 40px; padding: 0 .2rem;
  background: transparent; border: 1px solid var(--text-dim); border-radius: 999px;
  font-size: .84rem; cursor: pointer; white-space: nowrap;
}
.chip:hover { background: var(--surface-2); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }

/* Gatunki w kolorach plakietek z listy. Zaznaczony: wypełnienie kolorem gatunku i poświata wokół */
.chips .chip[data-g="METAL"] { --gc: var(--metal); }
.chips .chip[data-g="ROCK"] { --gc: var(--accent2); }
.chips .chip[data-g="PUNK"] { --gc: var(--punk); --gi: #18161A; }
.chips .chip[data-g="GOTH"] { --gc: var(--goth); }
.chips .chip[data-g="TRIBUTE"] { --gc: var(--text-dim); }
.chips .chip {
  color: color-mix(in oklab, var(--gc) 78%, var(--text));
  border-color: color-mix(in oklab, var(--gc) 60%, transparent);
  background: color-mix(in oklab, var(--gc) 7%, transparent);
  transition: background-color .2s ease, color .2s ease, box-shadow .3s ease;
}
.chips .chip:hover { background: color-mix(in oklab, var(--gc) 16%, transparent); }
.chips .chip[aria-pressed="true"] {
  background: var(--gc); border-color: var(--gc); color: var(--gi, #FFFFFF); font-weight: 600;
  box-shadow: 0 0 10px 1px color-mix(in oklab, var(--gc) 55%, transparent), 0 0 26px 6px color-mix(in oklab, var(--gc) 22%, transparent);
  animation: glow 2.8s ease-in-out infinite alternate;
}
@keyframes glow {
  to { box-shadow: 0 0 14px 2px color-mix(in oklab, var(--gc) 65%, transparent), 0 0 34px 9px color-mix(in oklab, var(--gc) 30%, transparent); }
}
/* Mrock: kolory gatunków są jasne, więc napis na wypełnieniu ciemny */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chips .chip { --gi: #131214; } }
:root[data-theme="dark"] .chips .chip { --gi: #131214; }
/* Druga linia: miasto, Ten weekend, Moje. Ta sama czcionka co gatunki */
.ctl-row { display: flex; align-items: center; gap: 5px; }
.ctl-row .chip { flex: none; padding: 0 .6rem; }
.chip.mine { display: inline-flex; align-items: center; gap: .3rem; }
.chip.mine[hidden] { display: none; }
.mine-ic { width: 15px; height: 15px; flex: none; }
.mine-ic .hand { fill: var(--fav); }
.mine-ic .thumb { fill: none; stroke: var(--bg); stroke-width: 1.6; stroke-linecap: round; }
.chip.mine[aria-pressed="true"] { background: var(--fav); border-color: var(--fav); color: #fff; }
.chip.mine[aria-pressed="true"] .hand { fill: #fff; }
.chip.mine[aria-pressed="true"] .thumb { stroke: var(--fav); }
.ctl-row select {
  flex: 1 1 0; width: 0; min-width: 0; min-height: 40px; padding: 0 1.7rem 0 .7rem;
  font-size: .84rem; text-overflow: ellipsis;
  background: transparent; border: 1px solid var(--text-dim); border-radius: 999px;
  -webkit-appearance: none; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(-45deg, transparent 50%, currentColor 50%);
  background-size: 5px 5px; background-repeat: no-repeat; background-position: right .95rem center, right .65rem center;
}
.ctl-row select option { background: var(--surface); }
.ctl-row select:focus-visible { outline-color: var(--text); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ctl-row select:focus { outline: 2px solid #FFFFFF; outline-offset: 2px; } }
:root[data-theme="dark"] .ctl-row select:focus { outline: 2px solid #FFFFFF; outline-offset: 2px; }
/* Na telefonie liczba koncertów jest tylko przy miesiącu (przewija się z nim) */
.count { display: none; margin-left: auto; color: var(--text-dim); font-size: .85rem; white-space: nowrap; }

/* ---------- Nowe od ostatniej wizyty ---------- */
.since {
  max-width: 1080px; margin: 0 auto 1rem; padding: 0 var(--gr) 0 var(--gl);
}
.since[hidden] { display: none; }
.since-in {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem;
  padding: .6rem .6rem .6rem 1rem; border: 1px solid var(--border); border-left: 3px solid var(--fresh); border-radius: 8px;
  background: var(--surface); font-size: .92rem;
}
.since-text { flex: 1 1 14rem; }
.since-text strong { color: var(--fresh); }
.since-btn {
  min-height: 36px; padding: 0 .9rem; border: 1px solid var(--fresh); border-radius: 999px; background: none;
  color: var(--fresh); font-size: .85rem; font-weight: 600; cursor: pointer;
}
.since-btn[aria-pressed="true"] { background: var(--fresh); color: var(--surface); }
.since-x { width: 36px; height: 36px; border: 0; background: none; color: var(--text-dim); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.since-x:hover { color: var(--text); }
/* Koncerty dodane od ostatniej wizyty: zielona kreska z lewej */
.gig { position: relative; }
.gig.unseen::before { content: ""; position: absolute; left: -7px; top: 9px; bottom: 9px; width: 3px; border-radius: 2px; background: var(--fresh); }

/* ---------- Lista ---------- */
.region { max-width: 1080px; margin: 0 auto; padding: 0 var(--gr) 3rem var(--gl); outline: none; }
.region-head { padding: .55rem 1rem; border-radius: 8px 8px 0 0; background: var(--accent); color: var(--accent-ink); }
.region-head h2 { margin: 0; font: 700 2rem/1 var(--display); }
.thead { display: none; }
#body { background: var(--surface); border: 1px solid var(--border); border-top: 0; border-radius: 0 0 8px 8px; }

/* Miesiąc przyklejony u góry */
.month { content-visibility: auto; }
.mrow {
  position: sticky; top: var(--stick-m, 0px); z-index: 4;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--month-h); margin: 0; padding: 0 12px;
  background: var(--bg); border-bottom: 1px solid var(--border);
  font: 600 1.35rem/1 var(--display);
}
.mrow small { font: 500 .78rem var(--body); color: var(--text-dim); }
/* Uderzenie: nagłówek miesiąca drga i krótko żarzy się dolną krawędzią */
.mrow.hit { animation: mhit .32s ease-out; }
@keyframes mhit {
  0% { box-shadow: inset 0 -2px 0 var(--amber); transform: translateY(1px); }
  40% { box-shadow: inset 0 -2px 0 var(--accent); transform: translateY(-1px); }
  100% { box-shadow: inset 0 -2px 0 transparent; transform: none; }
}
.sparks { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 35; }

/* Dzień: data jedzie przyklejona obok jego koncertów, aż przyjdzie następna */
.dayg {
  display: grid; grid-template-columns: var(--date-col) minmax(0, 1fr); column-gap: 10px;
  padding-left: 10px; border-bottom: 1px solid color-mix(in oklab, var(--text) 25%, transparent);
}
.dayg:last-child { border-bottom: 0; }
.date {
  position: sticky; top: calc(var(--stick-m, 0px) + var(--month-h)); align-self: start; z-index: 1;
  display: grid; justify-items: start; padding: 12px 0;
  font-variant-numeric: tabular-nums;
}
.day { font: 700 2.4rem/.85 var(--display); }
.wd { margin-top: .3rem; font-size: .68rem; font-weight: 700; letter-spacing: .08em; color: var(--text-dim); }
.mo { display: none; }
/* Dziś / Jutro / Za N dni w kolumnie daty, do lewej, zwykłymi literami: wersalikami
   EN „TOMORROW” i DE „IN 2 TAGEN” były szersze niż kolumna daty na telefonie (59 px)
   i wchodziły na nazwę zespołu. Kolumna się nie poszerza; najdłuższy napis ma ok. 56 px */
.soon {
  display: inline-block; max-width: 100%; margin-top: .35rem; text-align: left;
  font-size: 9.5px; font-weight: 600; letter-spacing: 0; line-height: 1.3; white-space: nowrap;
  padding: 1px 4px; border-radius: 6px;
}
.soon.today { background: var(--accent); color: var(--accent-ink); }
.soon.tomorrow { border: 1px solid var(--accent); color: var(--accent); }
.soon.week { border: 1px solid var(--amber); color: var(--amber); }
.today .day { color: var(--accent); }

.gigs { list-style: none; margin: 0; padding: 0; }
.gig {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "band" "venue" "acts";
  column-gap: 8px; row-gap: 4px;
  padding: 11px 12px 11px 0;
}
.gig + .gig { border-top: 1px solid var(--border); }
.gig:hover { background: var(--surface-2); }

/* Dłoń w szarej ramce jak „Info” i ikony obok, to samo podświetlenie */
.fav { display: inline-grid; place-items: center; align-self: center; width: 34px; height: 34px; margin: 0; padding: 0; background: none; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; line-height: 0; }
.fav:hover { border-color: var(--text-dim); }
.fav svg { width: 21px; height: 21px; transition: transform .15s; }
.fav .hand { fill: var(--text-dim); opacity: .55; }
.fav .thumb { fill: none; stroke: var(--surface); stroke-width: 1.6; stroke-linecap: round; }
.gig:hover .fav .thumb { stroke: var(--surface-2); }
.fav:hover .hand { opacity: 1; }
.fav[aria-pressed="true"] .hand { fill: var(--fav); opacity: 1; }
.fav.pop svg { transform: scale(1.3); }

/* Nazwa: pełny skład po przecinku, równa wysokość wiersza (najwyżej 2 linie) */
.band { grid-area: band; min-width: 0; }
/* Pełne nazwy bez ucinania: dłuższy skład dostaje kolejną linię */
.bt { font-weight: 600; font-size: 1.02rem; line-height: 1.3; overflow-wrap: anywhere; }
.lu { color: var(--text-dim); font-size: .85rem; line-height: 1.4; margin-top: 2px; overflow-wrap: anywhere; }
/* Zespół z opisem: kropkowane podkreślenie jak na stronie */
.bn { cursor: pointer; border-radius: 2px; }
.bn:hover, .bn.on { color: var(--accent); }
.fest { display: inline-block; margin-left: .35rem; padding: 1px 6px; border: 1px solid var(--amber); border-radius: 999px; color: var(--amber); font-size: 9.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; vertical-align: 2px; }
.new { display: inline-block; margin-right: .35rem; padding: 1px 6px; border: 1px solid var(--fresh); border-radius: 999px; color: var(--fresh); font-size: 9.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; vertical-align: 2px; }
.venue { grid-area: venue; min-width: 0; overflow-wrap: anywhere; color: var(--text-dim); font-size: .9rem; line-height: 1.35; }
.venue b { color: var(--text); font-weight: 500; }
/* Klub prowadzi do Google Maps: w spoczynku zwykły tekst, po najechaniu podkreślenie i czerwone miasto */
.venue-link { color: inherit; text-decoration: none; border-radius: 3px; }
.venue-link:hover { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.venue-link:hover b { color: var(--accent); }
.venue-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Długi skład festiwalu zwinięty po 8 zespołach */
.lu-more { padding: 0; border: 0; background: none; cursor: pointer; font: inherit; color: var(--accent); font-weight: 600; white-space: nowrap; }
.lu-more:hover { text-decoration: underline; text-underline-offset: 3px; }
.lu-more[hidden] { display: none; }
/* Wiersze dla robotów (build.js) zwijają skład w details */
details.lu summary { display: inline; cursor: pointer; list-style: none; }
details.lu summary::-webkit-details-marker { display: none; }
details.lu[open] .lu-more { display: none; }
.genre { display: none; }
.tag-m { margin-left: 2px; }
.tag {
  display: inline-block; padding: 3px 8px; border-radius: 999px; line-height: 1.3;
  font-size: 10.5px; font-weight: 500; letter-spacing: .05em;
  border: 1px solid color-mix(in srgb, currentColor 45%, transparent);
  background: color-mix(in srgb, currentColor 10%, transparent);
}
.tag.METAL { color: var(--metal); } .tag.ROCK { color: var(--accent2); } .tag.PUNK { color: var(--punk); }
.tag.GOTH { color: var(--goth); } .tag.TRIBUTE { color: var(--text-dim); }
.acts { grid-area: acts; display: flex; align-items: center; gap: 8px; margin-top: 6px; }
/* „Info” wygląda jak ikony obok (kalendarz, udostępnianie): szara ramka, ta sama wysokość
   i to samo podświetlenie; na dotyku niewidoczny margines powiększa pole stuknięcia */
.tix {
  position: relative; display: inline-grid; place-items: center; height: 34px; padding: 0 10px;
  border: 1px solid var(--border); border-radius: 8px; color: var(--text-dim); text-decoration: none;
  font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
}
@media (pointer: coarse) { .tix::after { content: ""; position: absolute; inset: -6px -4px; } }
.tix:hover, .tix:focus-visible { color: var(--text); border-color: var(--text-dim); outline: none; }
.ib {
  display: inline-grid; place-items: center; width: 34px; height: 34px;
  border: 1px solid var(--border); border-radius: 8px; background: none; color: var(--text-dim); cursor: pointer; text-decoration: none;
}
/* Telefon: dłoń i gatunek z lewej, „Info” z ikonami z prawej */
.tix { margin-left: auto; }
.ib svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ib:hover { color: var(--text); border-color: var(--text-dim); }
.ib.ok { color: var(--fresh); border-color: var(--fresh); }
/* Przejścia tylko tam, gdzie jest najechanie myszą: na telefonie kilka tysięcy animowanych
   przycisków spowalniało zmianę motywu, a stuknięcie i tak nie pokazuje poświaty */
@media (hover: hover) and (pointer: fine) {
  .tix, .ib, .fav { transition: background-color var(--hv), color var(--hv), border-color var(--hv), box-shadow var(--hv); }
  .ib svg { transition: filter var(--hv); }
  .fav .hand { transition: opacity .15s, fill .15s; }
  .bn { transition: color .15s; }
}
/* Startowy cień w tym samym zapisie koloru co docelowy: inaczej przeglądarka nie przechodzi
   płynnie od „transparent” do color-mix() i kolor poświaty wskakuje dopiero na końcu */
.ib, .tix, .fav { box-shadow: 0 0 0 color-mix(in srgb, var(--text) 0%, transparent), inset 0 0 0 color-mix(in srgb, var(--text) 0%, transparent); }
.ib svg { filter: drop-shadow(0 0 0 color-mix(in srgb, var(--text) 0%, transparent)); }
@media (hover: hover) and (pointer: fine) {
  /* Ikony i „Info” świecą własnym kolorem (po najechaniu --text) */
  .ib:hover, .tix:hover, .fav:hover { box-shadow: 0 0 9px color-mix(in srgb, var(--text) 45%, transparent), inset 0 0 6px color-mix(in srgb, var(--text) 18%, transparent); }
  .ib:hover svg { filter: drop-shadow(0 0 3px color-mix(in srgb, var(--text) 70%, transparent)); }
  .tix:hover { text-shadow: 0 0 6px color-mix(in srgb, var(--text) 55%, transparent); }
}
.gig.cancelled .bn { text-decoration: line-through; color: var(--text-dim); }
.off { display: inline-block; margin-right: .35rem; padding: 1px 6px; border: 1px solid var(--text-dim); border-radius: 999px; color: var(--text-dim); font-size: 9.5px; font-weight: 600; text-transform: uppercase; vertical-align: 2px; }

.empty { padding: 3rem 1rem; text-align: center; color: var(--text-dim); }
.empty b { display: block; font: 700 2.4rem/1 var(--display); color: var(--text); margin-bottom: .4rem; }

/* ---------- Wykuwanie nazw (dymek) ---------- */
.plate {
  position: absolute; z-index: 30; left: 0; top: 0;
  width: max-content; max-width: min(34rem, calc(100vw - 32px));
  padding: 14px 16px 12px;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--accent); border-radius: 8px;
  box-shadow: var(--shadow);
}
.plate::before {
  /* iskra przebiegająca po krawędzi, gdy nazwa się wykuwa */
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--amber), var(--accent), transparent);
  transform-origin: left; animation: spark .55s ease-out both;
}
@keyframes spark { from { transform: scaleX(0); opacity: 1; } 70% { opacity: 1; } to { transform: scaleX(1); opacity: 0; } }
.plate-name { margin: 0; font-weight: 700; font-size: 1.12rem; line-height: 1.35; overflow-wrap: anywhere; }
.plate-name .w { display: inline-block; white-space: nowrap; }
.plate-name .c { display: inline-block; animation: forge .42s cubic-bezier(.2, .9, .25, 1.25) both; animation-delay: calc(var(--k) * var(--step)); }
.plate-name .sp { display: inline-block; width: .28em; }
@keyframes forge {
  0% { opacity: 0; transform: translateY(-.9em) scaleY(1.7) skewX(-12deg); filter: blur(3px); color: var(--amber); }
  55% { opacity: 1; transform: translateY(.08em) scaleY(.86); filter: blur(0); color: var(--accent); }
  100% { opacity: 1; transform: none; color: inherit; }
}
.plate.slam { animation: slam .16s ease-out both; animation-delay: var(--slam, .5s); }
@keyframes slam { 0% { transform: translate(0, 0); } 30% { transform: translate(-2px, 1px); } 60% { transform: translate(2px, -1px); } 100% { transform: none; } }
.plate { max-width: min(26rem, calc(100vw - 32px)); padding-right: 40px; }
.plate-x {
  position: absolute; top: 6px; right: 6px; width: 32px; height: 32px;
  background: none; border: 0; color: var(--text-dim); font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.plate-x:hover { color: var(--text); }
h3.plate-name { font-size: 1.25rem; }
.plate-desc { margin: .5rem 0 0; font-size: .9rem; line-height: 1.55; color: var(--text); animation: fadein .35s both; animation-delay: var(--slam, .5s); text-wrap: pretty; }
.plate-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1.1rem; margin: .6rem 0 0; font-size: .85rem; font-weight: 600; animation: fadein .35s both; animation-delay: var(--slam, .5s); }
.plate-foot a { display: inline-flex; align-items: center; min-height: 32px; color: var(--text); text-decoration: none; }
.plate-foot a.src { margin-left: auto; }
.plate-foot a:hover { text-decoration: underline; text-underline-offset: 3px; }
/* Zamknięcie krzyżykiem: szybkie wygaszenie (iskry rysuje canvas nad stroną) */
.plate.fading { opacity: 0; transform: scale(.97); pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
/* Telefon: dymek jako arkusz od dołu ekranu */
.plate.sheet {
  position: fixed; left: 0; right: 0; top: auto; bottom: 0; width: auto; max-width: none;
  padding: 18px max(20px, env(safe-area-inset-right, 0px)) max(20px, env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px));
  border-radius: 14px 14px 0 0; border-width: 1px 0 0;
}
.plate.sheet .plate-x { top: 10px; right: max(10px, env(safe-area-inset-right, 0px)); width: 44px; height: 44px; }
.plate-meta { margin: .5rem 0 0; color: var(--text-dim); font-size: .82rem; animation: fadein .3s both; animation-delay: var(--slam, .5s); }
.plate-lu { margin: .35rem 0 0; color: var(--text-dim); font-size: .82rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
@keyframes fadein { from { opacity: 0; } }

/* ---------- Instalacja aplikacji (jak na stronie głównej) ---------- */
#install-btn {
  display: none; align-items: center; gap: 8px; min-height: 40px;
  padding: 0 14px; border: 1.5px solid var(--accent); border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); cursor: pointer;
  font: 600 12px var(--body); letter-spacing: .05em; text-transform: uppercase;
}
#install-btn.visible { display: inline-flex; }
#install-btn .icon { display: inline-flex; line-height: 0; }
#install-btn .icon svg { width: 17px; height: 17px; }
@media (display-mode: standalone), (display-mode: fullscreen), (display-mode: minimal-ui) { #install-btn { display: none !important; } }
/* Telefon: okrągła ikona, podpis zostaje nazwą dla czytników */
@media (max-width: 560px) {
  #install-btn { width: 40px; padding: 0; justify-content: center; gap: 0; flex: none; }
  #install-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  #install-btn .icon svg { width: 22px; height: 22px; }
}
/* iPhone: jednorazowa wskazówka nad dolnym paskiem Safari */
.ios-hint {
  position: fixed; z-index: 30; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px;
  background: var(--surface); color: var(--text); border: 1.5px solid var(--accent); border-radius: 14px;
  box-shadow: var(--shadow); font-size: .9rem; line-height: 1.45;
}
.ios-hint .ic { width: 34px; height: 43px; flex: none; }
.ios-hint p { margin: 0; flex: 1 1 auto; }
.ios-hint p svg { width: 18px; height: 18px; vertical-align: -3px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ios-hint button { flex: none; width: 40px; height: 40px; border: 0; background: none; cursor: pointer; color: var(--text-dim); font-size: 22px; line-height: 1; }

/* ---------- Na górę (jak na stronie głównej) ---------- */
#to-top {
  position: fixed; z-index: 25;
  right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + var(--hint-gap, 0px) + env(safe-area-inset-bottom, 0px));
  width: 48px; height: 48px; border-radius: 50%; padding: 0;
  display: flex; align-items: center; justify-content: center;
  border: 0; background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow); cursor: pointer;
  opacity: 0; transform: translateY(12px) scale(.9); pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
#to-top.show { opacity: 1; transform: none; pointer-events: auto; }
#to-top:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
#to-top svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Suwak szybkiego przewijania (telefon), grubszy niż na stronie głównej ----------
   Tor kończy się nad przyciskiem „na górę” (48 + 16 + 14 px) i unosi się z nim przy
   wskazówce iPhone'a. Dotyk łapie tylko sam uchwyt, reszta toru przepuszcza dotyk. */
#scrubber { display: none; }
@media (max-width: 640px) and (pointer: coarse) {
  html { scrollbar-width: none; }
  html::-webkit-scrollbar { display: none; }
  #scrubber {
    display: block; position: fixed; z-index: 24; pointer-events: none;
    right: 0; width: 36px;
    top: calc(12px + env(safe-area-inset-top, 0px));
    bottom: calc(78px + var(--hint-gap, 0px) + env(safe-area-inset-bottom, 0px));
    opacity: 0; transition: opacity .2s ease;
  }
  #scrubber.show { opacity: .75; }
  #scrubber.show.active { opacity: 1; }
  #scrub-handle { position: absolute; top: 0; right: 0; width: 36px; height: 51px; pointer-events: none; touch-action: none; -webkit-tap-highlight-color: transparent; }
  #scrubber.show #scrub-handle { pointer-events: auto; }
  #scrub-handle::before {
    content: ""; position: absolute; top: 3px; bottom: 3px; right: 4px; width: 8.5px;
    border-radius: 5px; background: var(--accent);
    box-shadow: 0 0 0 1.5px var(--bg), 0 2px 8px rgba(0, 0, 0, .3);
    transition: background .15s ease, width .15s ease;
  }
  #scrubber.active #scrub-handle::before { background: var(--accent); width: 10.5px; right: 3px; }
  #scrub-bubble {
    position: absolute; right: 42px; top: 0; transform: translateY(-50%);
    padding: 7px 12px; border-radius: 999px; white-space: nowrap;
    background: var(--surface); color: var(--text); border: 1px solid var(--border); box-shadow: var(--shadow);
    font: 600 14px var(--body); opacity: 0; pointer-events: none; transition: opacity .12s ease;
  }
  #scrubber.active #scrub-bubble.has-text { opacity: 1; }
}

/* ---------- Pod listą: dodaj koncert i kawa ---------- */
.after {
  max-width: 1080px; margin: 0 auto 2.5rem; padding: 0 var(--gr) 0 var(--gl);
  display: grid; gap: 1.75rem; align-items: center;
}
.after-add {
  display: grid; gap: 1rem; justify-items: start;
  padding: 1.4rem 1.25rem; border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 8px;
  background: var(--surface);
}
.after-add p { margin: 0; font-size: 1.02rem; line-height: 1.5; max-width: 34em; text-wrap: pretty; }
button.ticket { padding: 0; border: 0; background: none; cursor: pointer; font: inherit; }
button.ticket .ticket-in { padding: .7rem 1.4rem .66rem; }
/* buycoffee.to: bilet narysowany na miejscu (bez obrazka z zewnątrz), jak na obecnej stronie */
.coffee-wrap { margin: 0; text-align: center; }
.coffee-ticket {
  --stub: 76px; --notch: 11px;
  display: inline-flex; align-items: stretch; max-width: 100%;
  text-decoration: none; color: var(--text); background: var(--surface);
  border-radius: 6px; transform: rotate(-2deg); transition: transform .2s ease, filter var(--hv);
  filter: drop-shadow(0 6px 14px color-mix(in oklab, #000 18%, transparent));
  -webkit-mask: radial-gradient(circle var(--notch) at var(--stub) 0, #0000 98%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle var(--notch) at var(--stub) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle var(--notch) at var(--stub) 0, #0000 98%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle var(--notch) at var(--stub) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
}
.coffee-stub {
  flex: none; width: var(--stub); display: grid; place-items: center;
  background: var(--accent); color: #fff;
  border-right: 2px dashed color-mix(in srgb, var(--surface) 85%, transparent);
}
.coffee-stub svg { width: 40px; height: 40px; }
.coffee-main {
  display: flex; flex-direction: column; align-items: flex-start; text-align: left;
  padding: 10px 22px 12px 18px;
  border: 2px solid var(--accent); border-left: 0; border-radius: 0 6px 6px 0;
}
.coffee-kicker { font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.coffee-title { font: 700 34px/1 var(--display); margin: 2px 0 3px; }
html[lang="de"] .coffee-title { font-size: 30px; }
.coffee-sub { font-size: 12px; color: var(--text-dim); letter-spacing: .02em; }
.coffee-sub b { color: var(--text); }
.coffee-ticket:hover, .coffee-ticket:focus-visible { transform: rotate(0) scale(1.04); }
.coffee-ticket:hover .steam { animation: coffee-zap .5s steps(2) 3; }
.coffee-ticket:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
@keyframes coffee-zap { 50% { opacity: .2; } }
@media (hover: hover) and (pointer: fine) {
  .coffee-ticket:hover { filter: drop-shadow(0 0 10px color-mix(in oklab, var(--accent) 45%, transparent)); }
}
@media (max-width: 380px) {
  .coffee-ticket { --stub: 60px; }
  .coffee-stub svg { width: 32px; height: 32px; }
  .coffee-main { padding: 9px 14px 10px 14px; }
  .coffee-title { font-size: 28px; }
  html[lang="de"] .coffee-title { font-size: 24px; }
}
@media (min-width: 760px) {
  .after { grid-template-columns: minmax(0, 1fr) auto; gap: 2.5rem; }
  .after-add { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 1.5rem 1.75rem; }
}

/* ---------- Linki do podstron ---------- */
.browse { max-width: 1080px; margin: 0 auto 2.5rem; padding: 0 var(--gr) 0 var(--gl); }
.browse h2 { margin: 0 0 .9rem; font: 700 2rem/1 var(--display); }
.foot a { color: var(--text); text-underline-offset: 3px; }
.browse-list { display: flex; flex-wrap: wrap; gap: 8px; }
.browse-list a {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 .85rem;
  border: 1px solid var(--border); border-radius: 999px; color: var(--text-dim); text-decoration: none; font-size: .88rem;
  transition: color .15s, border-color .15s;
}
.browse-list a:hover, .browse-list a:focus-visible { color: var(--text); border-color: var(--text-dim); }

/* ---------- Okno (kalendarz, udostępnianie, formularz) ---------- */
.dlg {
  position: fixed; inset: 0; z-index: 32;
  display: grid; place-items: center; padding: 16px;
  background: color-mix(in oklab, #000 62%, transparent);
  animation: fadein .18s ease both;
}
.dlg[hidden] { display: none; }
:root.dlg-open { overflow: hidden; }
.dlg-card {
  position: relative; width: min(30rem, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain;
  padding: 18px 20px 20px; outline: none;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--accent); border-radius: 10px; box-shadow: var(--shadow);
  animation: dlgin .22s cubic-bezier(.2, .9, .3, 1.15) both;
}
.dlg.strict .dlg-card { width: min(34rem, 100%); }
@keyframes dlgin { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.dlg-card.fading { opacity: 0; transform: scale(.97); transition: opacity .2s ease, transform .2s ease; }
.dlg-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--amber), var(--accent), transparent);
  transform-origin: left; animation: spark .55s ease-out both;
}
/* Krzyżyk: duży, okrągły, przyklejony u góry okna także przy przewijaniu długiego formularza */
.dlg-x {
  position: sticky; top: 0; float: right; z-index: 2; margin: -6px -8px 6px 12px;
  width: 44px; height: 44px; display: grid; place-items: center; padding: 0;
  border: 1.5px solid var(--text); border-radius: 50%; background: var(--surface); color: var(--text); cursor: pointer;
  transition: color .15s, border-color .15s, box-shadow .25s, transform .15s;
}
.dlg-x svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.dlg-x:hover, .dlg-x:focus-visible { color: var(--accent); border-color: var(--accent); box-shadow: 0 0 12px color-mix(in oklab, var(--accent) 45%, transparent); outline: none; }
.dlg-x:active { transform: scale(.94); }
.dlg-eyebrow { margin: 0 0 .25rem; color: var(--accent); font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.dlg-title { margin: 0 0 .9rem; font: 700 2.1rem/1.05 var(--display); overflow-wrap: anywhere; }
/* Nazwy zespołów nigdy gotykiem (bywają pisane wersalikami) */
.dlg-title.band { font: 700 1.35rem/1.3 var(--body); }
.dlg-hint { margin: .8rem 0 0; color: var(--text-dim); font-size: .86rem; line-height: 1.5; }
.dlg-hint.lead { margin: 0 0 1rem; font-size: .92rem; }
.dlg-hint.small { margin: .2rem 0 0; font-size: .74rem; }
.dlg-hint a { color: inherit; }
.dlg-btn {
  display: grid; gap: 2px; padding: .85rem 1rem; border: 1px solid var(--accent); border-radius: 8px;
  color: var(--text); text-decoration: none; font-weight: 600; transition: background-color .15s, box-shadow .25s;
}
.dlg-btn small { color: var(--text-dim); font-weight: 400; font-size: .8rem; }
.dlg-btn:hover { background: color-mix(in oklab, var(--accent) 10%, transparent); box-shadow: 0 0 12px color-mix(in oklab, var(--accent) 35%, transparent); }
.dlg-label { display: block; margin-top: 1rem; color: var(--text-dim); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
#share-text {
  width: 100%; min-height: 76px; resize: vertical; margin-top: 4px; padding: 10px;
  font: 400 .8rem/1.45 var(--body); color: var(--text);
  background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
}
#share-img { display: block; width: 100%; height: auto; margin-top: 12px; border-radius: 8px; border: 1px solid var(--border); }
#share-img[hidden] { display: none; }
.share-icons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 10px; margin: .4rem 0 .2rem; clear: both; }
.share-ico {
  flex: 0 0 56px; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 0; border: 0; background: none; cursor: pointer; text-decoration: none; color: var(--text-dim);
  font: 600 9.5px var(--body); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
}
.share-ico .ring {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid var(--border); background: var(--surface); transition: border-color .15s, transform .15s, box-shadow .25s;
}
.share-ico svg { width: 24px; height: 24px; fill: var(--brand); }
.share-ico svg.stroke { fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.share-ico:hover .ring, .share-ico:focus-visible .ring { border-color: var(--brand); transform: translateY(-1px); box-shadow: 0 0 12px color-mix(in srgb, var(--brand) 40%, transparent); }
.share-ico:focus-visible { outline: none; }

/* Formularz */
.sform { display: grid; gap: 12px; clear: both; }
.frow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
@media (max-width: 420px) { .frow { grid-template-columns: minmax(0, 1fr); } }
.f { display: grid; gap: 5px; min-width: 0; }
.f > span { color: var(--text-dim); font-size: .78rem; font-weight: 600; }
.f .req { color: var(--accent); }
.sform input, .sform select {
  width: 100%; min-height: 46px; padding: 0 .85rem; font-size: 1rem;
  background: var(--surface-2); color: var(--text); border: 1px solid var(--text-dim); border-radius: 8px;
}
.sform select { -webkit-appearance: none; appearance: none; padding-right: 2rem;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(-45deg, transparent 50%, currentColor 50%);
  background-size: 5px 5px; background-repeat: no-repeat; background-position: right 1rem center, right .7rem center; }
.sform input:focus-visible, .sform select:focus-visible { outline: 2px solid var(--text); outline-offset: 1px; }
.sform .invalid { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.bands { display: grid; gap: 10px; }
.band-f { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 6px; }
.band-f:first-child { grid-template-columns: minmax(0, 1fr); }
.band-f.enter { animation: bandin .22s cubic-bezier(.2, .8, .3, 1) both; }
@keyframes bandin { from { opacity: 0; transform: translateY(-6px); } }
.band-rm {
  width: 46px; height: 46px; border: 1px solid var(--border); border-radius: 8px; background: none;
  color: var(--text-dim); font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.band-rm:hover { color: var(--accent); border-color: var(--accent); }
.band-add {
  justify-self: start; min-height: 40px; padding: 0 1rem; margin-top: -2px;
  border: 1px dashed var(--text-dim); border-radius: 999px; background: none; color: var(--text);
  font-size: .88rem; font-weight: 600; cursor: pointer; transition: border-color .15s, color .15s;
}
.band-add:hover { border-color: var(--accent); color: var(--accent); border-style: solid; }
.band-add[hidden] { display: none; }
.sform .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sform .send { justify-self: start; margin-top: 4px; }
.sform .send[disabled] { opacity: .6; cursor: wait; }
.sstatus { margin: 0; min-height: 1.2em; font-size: .86rem; }
.sstatus.error { color: var(--accent); font-weight: 600; }
/* Telefon: okno jako arkusz od dołu ekranu, przewijany w środku */
@media (max-width: 640px) {
  .dlg { place-items: end stretch; padding: 0; }
  .dlg-card, .dlg.strict .dlg-card {
    width: 100%; max-height: calc(100dvh - 24px - env(safe-area-inset-top, 0px));
    padding: 16px max(18px, env(safe-area-inset-right, 0px)) max(22px, env(safe-area-inset-bottom, 0px)) max(18px, env(safe-area-inset-left, 0px));
    border-width: 1px 0 0; border-radius: 14px 14px 0 0;
  }
  @keyframes dlgin { from { transform: translateY(40px); opacity: 0; } }
}

/* Koncert otwarty z linku /k/: obramowanie na chwilę */
.gig.flash { box-shadow: inset 0 0 0 2px var(--accent); animation: flash 1.2s ease 2; }
@keyframes flash { 50% { background: color-mix(in oklab, var(--accent) 12%, transparent); } }

/* ---------- Stopka ---------- */
.foot { max-width: 1080px; margin: 0 auto; padding: 1.5rem var(--gr) max(2rem, env(safe-area-inset-bottom, 0px)) var(--gl); border-top: 1px solid var(--border); color: var(--text-dim); font-size: .85rem; }
.foot p { margin: 0 0 .6rem; line-height: 1.55; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 1.25rem; align-items: center; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; }

/* Bardzo wąski telefon: rząd dłoń, gatunek, Info i ikony mieści się w jednej linii */
.acts > * { flex: none; }
@media (max-width: 400px) {
  .gig { padding-right: 8px; column-gap: 4px; }
  .acts { gap: 4px; }
  .fav { width: 31px; height: 31px; }
  .fav svg { width: 19px; height: 19px; }
  .tag-m { padding: 3px 6px; letter-spacing: .01em; }
  .tix { height: 31px; padding: 0 7px; letter-spacing: .02em; }
  .ib { width: 31px; height: 31px; }
}

/* Telefon: nagłówek w jednej linii; motyw jako ikona słońca/księżyca, podpis zostaje nazwą przycisku */
@media (max-width: 560px) {
  .top { gap: 6px; }
  .social { gap: 5px; }
  .soc { width: 36px; height: 36px; }
  .soc svg { width: 17px; height: 17px; }
  .top-nav a { padding: 0 .4rem; }
  .lang button { min-width: 30px; height: 32px; padding: 0 .3rem; }
  .theme { width: 40px; height: 40px; padding: 0; justify-content: center; flex: none; }
  .theme .theme-tx { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .theme .ic-tm { display: block; }
  .theme .curtain { display: none; }
  .theme { background: none; color: var(--text); }
}
@media (max-width: 380px) {
  .top { gap: 4px; }
  .social { gap: 4px; }
  .top-nav a { padding: 0 .3rem; letter-spacing: .1em; }
  .lang { padding: 2px; }
  .lang button { min-width: 28px; padding: 0 .2rem; }
}

/* ---------- Szerszy ekran ---------- */
@media (min-width: 760px) {
  :root { --date-col: 4.4rem; }
  .day { font-size: 2.8rem; }
  .nav-add { display: inline-flex !important; }
  .hero { border: 1px solid color-mix(in oklab, var(--text) 22%, transparent); border-radius: 12px; width: min(1080px, 100% - 32px); }
  .hero-in { padding: 2.5rem 2.5rem 2.25rem; }
  .hero-body { grid-template-columns: minmax(0, 1.3fr) minmax(15rem, 1fr); align-items: end; gap: 2.5rem; }
  .controls {
    position: sticky; top: env(safe-area-inset-top, 0px); z-index: 6;
    grid-template-columns: minmax(0, 1fr); align-items: center; column-gap: .6rem;
    border-bottom: 1px solid var(--border);
  }
  .chip, .ctl-row .chip { flex: none; min-height: 40px; padding: 0 .95rem; font-size: .9rem; }
  .ctl-row select { flex: none; width: auto; max-width: 15rem; font-size: .9rem; padding: 0 2.2rem 0 1rem; background-position: right 1.1rem center, right .8rem center; }
  .count { display: inline; }
  .mrow { --stick-m: var(--bar-h, 0px); }
  .date { --stick-m: var(--bar-h, 0px); }

}
/* Komputer: wiersze jak w tabeli na obecnej stronie */
@media (min-width: 1000px) {
  /* Akcje: dłoń, Info, kalendarz, udostępnianie obok siebie; zwolnione miejsce bierze nazwa */
  :root { --date-col: 4.6rem; --acts-col: 10.8rem; }
  .thead {
    display: grid; grid-template-columns: var(--date-col) minmax(0, 1fr) 14rem 5rem var(--acts-col);
    column-gap: 10px; padding: 9px 12px 9px 10px;
    background: var(--surface-2); border-inline: 1px solid var(--border); border-bottom: 1px solid var(--border);
    font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim);
  }
  .date { grid-template-columns: auto 1fr; column-gap: .45rem; align-items: baseline; padding: 14px 0; }
  .day { font-size: 2.6rem; grid-row: span 2; }
  .wd { margin: 0; }
  .soon { grid-column: 1 / -1; justify-self: start; }

  /* Równe wiersze: jedna linia, pełne nazwy w dymku */
  .gig {
    grid-template-columns: minmax(0, 1fr) 14rem 5rem var(--acts-col);
    grid-template-areas: "band venue genre acts";
    grid-template-rows: 1fr;
    align-items: center; min-height: 3.6rem; padding: 9px 12px 9px 0; column-gap: 10px; row-gap: 0;
  }
  .genre { display: block; grid-area: genre; }
  .tag-m { display: none; }
  .acts { margin-top: 0; gap: 6px; }
  .acts .tix { margin-left: 0; }
  .bt { font-size: .96rem; line-height: 1.25; }
  .genre { align-self: center; }
  .acts { align-self: center; }
}
@media (min-width: 1100px) {
  /* Dwa rzędy: szukajka z gatunkami, pod nimi miasto, weekend, Moje i licznik */
  .controls { grid-template-columns: minmax(15rem, 1fr) auto; }
  .ctl-row { grid-column: 1 / -1; }
  .chips { margin: 0; padding: 0; overflow: visible; }
  .ctl-row { flex-wrap: nowrap; }
}
@media (min-width: 1000px) {
  .hero-in {
    grid-template-columns: minmax(0, 1fr) 20rem; column-gap: 3rem;
    grid-template-areas: "kicker tonight" "h1 tonight" "body tonight" "cta asof";
  }
  .kicker { grid-area: kicker; } .logo-lock { grid-area: h1; align-self: start; }
  h1 { font-size: clamp(4rem, 7.2vw, 6.6rem); }
  .hero-body { grid-area: body; grid-template-columns: 1fr; align-self: start; gap: 1.4rem; }
  .hero-body .stats { max-width: 30rem; }
  .hero-cta { grid-area: cta; } .asof { grid-area: asof; align-self: center; }
  .tonight:not([hidden]) { grid-area: tonight; align-self: start; display: block; }
  .tonight h2 { margin: 0 0 .4rem; font: 700 1.8rem/1 var(--display); }
  .tonight ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--text); }
  .tonight li { display: flex; justify-content: space-between; gap: 1rem; padding: .38rem 0; border-bottom: 1px solid var(--border); font-size: .92rem; }
  .tonight li b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tonight li span { color: var(--text-dim); font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; align-self: center; }
  .tonight-all { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); font-weight: 700; font-size: .9rem; text-decoration: none; }
  .tonight-all:hover { text-decoration: underline; text-underline-offset: 3px; }
}

@media (prefers-reduced-motion: reduce) {
  #to-top, #scrubber, #scrub-handle::before, #scrub-bubble, .lang-thumb { transition: none !important; }
  .theme svg *, .curtain, .dlg, .dlg-card, .dlg-card::before, .gig.flash, .coffee-ticket .steam,
  .chips .chip[aria-pressed="true"], .flame, .plate, .plate::before, .plate-name .c, .plate-meta { animation: none !important; }
  * { transition: none !important; }
}
@media (prefers-contrast: more) {
  :root { --border: var(--text-dim); --grille: transparent; }
}
