/* /mapa/ - concert map. Same colour tokens and fonts as index.html, so the
   map reads as part of the site in both themes. Nothing here is shared with
   other pages. */
:root {
  --bg: #F2F0EA;
  --surface: #FFFFFF;
  --surface-2: #E9E6DE;
  --text: #18161A;
  --text-dim: #5C5650;
  --accent: #C81E3A;
  --accent-ink: #FFFFFF;
  --accent2: #2B5D6B;
  --amber: #A85A17;
  --border: #D8D5CD;
  --shadow: rgba(24, 22, 26, 0.12);
  /* map */
  --land: #FFFFFF;
  --land-line: #D3CFC5;
  --coast: #8F887F;
  --grille: rgba(24, 22, 26, 0.10);
  --halo: #F2F0EA;
  /* genres: the same colours as the tags on the main page */
  --g-metal: #8A2BE2;
  --g-rock: #2B5D6B;
  --g-punk: #C46A1C;
  --g-goth: #6B6BD6;
  --g-tribute: #5C5650;
  --mk-ink: #FFFFFF;
  --mk-ring: #FFFFFF;
  /* as on the main page (strona.css): faces, side gutters, hover timing */
  --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));
  --hv: .22s cubic-bezier(.2, .7, .3, 1);
  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; --amber: #E4A05F;
    --border: #322F33; --shadow: rgba(0, 0, 0, 0.45);
    --land: #1F1E22; --land-line: #36333A; --coast: #6E6870; --grille: rgba(237, 233, 227, 0.07);
    --halo: #131214;
    --g-metal: #C99CF2; --g-rock: #5FADC0; --g-punk: #E4A05F; --g-goth: #A9A9F0; --g-tribute: #A29CA0;
    --mk-ink: #141215; --mk-ring: #131214;
    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; --amber: #E4A05F;
  --border: #322F33; --shadow: rgba(0, 0, 0, 0.45);
  --land: #1F1E22; --land-line: #36333A; --coast: #6E6870; --grille: rgba(237, 233, 227, 0.07);
  --halo: #131214;
  --g-metal: #C99CF2; --g-rock: #5FADC0; --g-punk: #E4A05F; --g-goth: #A9A9F0; --g-tribute: #A29CA0;
  --mk-ink: #141215; --mk-ring: #131214;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Libre Franklin", system-ui, sans-serif;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; }

.app { position: fixed; inset: 0; }

/* ---------- Map stage ---------- */
/* The sea and the neighbours are the page itself, dotted like a speaker
   grille. The dots stay put while the map moves over them. */
.stage {
  position: absolute; inset: 0;
  background-color: var(--bg);
  background-image: radial-gradient(circle, var(--grille) 1px, transparent 1.3px);
  background-size: 10px 10px;
}
.map {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none;
}
.map.dragging { cursor: grabbing; }
/* The country layer is larger than the screen (mapa.js sets its box) so a
   drag or zoom-out shows land, not an empty edge, until it is redrawn. */
.base { position: absolute; display: block; pointer-events: none; will-change: transform; }
/* The one entrance: the country fades in, then the dots pop (mapa.js). */
.map, .base { opacity: 0; transition: opacity .6s ease; }
.map.ready, .base.ready { opacity: 1; }
.base path { vector-effect: non-scaling-stroke; }
.land { fill: var(--land); stroke: none; transition: opacity .35s ease; }
.land.gone { opacity: 0; }
.borders { fill: none; stroke: var(--land-line); stroke-width: 1; stroke-dasharray: 3 3; transition: opacity .35s ease; }
.outline { fill: none; stroke: var(--coast); stroke-width: 1.2; stroke-linejoin: round; transition: opacity .35s ease; }
.detail-land { fill: var(--land); stroke: var(--coast); stroke-width: 1.2; stroke-linejoin: round; opacity: 0; transition: opacity .35s ease; }
.detail-borders { fill: none; stroke: var(--land-line); stroke-width: 1; opacity: 0; transition: opacity .35s ease; }
.detail-on .detail-land, .detail-on .detail-borders { opacity: 1; }
.fade { opacity: 0; }

/* Labels live in screen space: the same size at every zoom. */
#labels text { paint-order: stroke; stroke: var(--halo); stroke-width: 3.5px; stroke-linejoin: round; pointer-events: none; }
.lbl-city { fill: var(--text-dim); font-size: 12.5px; font-weight: 500; }
.lbl-city.big { fill: var(--text); font-weight: 600; }
.lbl-dot { fill: var(--text-dim); stroke: none !important; }

/* ---------- Markers ---------- */
.mk { cursor: pointer; outline: none; }
.spokes { pointer-events: none; }
.spokes .spoke { stroke: var(--text); stroke-width: 1.3; stroke-dasharray: 2 3; }
.spokes .hub { fill: var(--text); }
.mk .ring { fill: var(--mk-ring); }
.mk .core { stroke: none; }
.mk .seg { fill: none; stroke-width: 3.5; }
.mk .n { fill: var(--mk-ink); font-weight: 700; font-size: 12.5px; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.mk .club { fill: var(--text); font-weight: 600; font-size: 13px; paint-order: stroke; stroke: var(--halo); stroke-width: 4px; stroke-linejoin: round; pointer-events: none; }
.mk .hit { fill: transparent; }
.mk:focus-visible .ring { stroke: var(--text); stroke-width: 2; }
.mk.sel .ring { stroke: var(--accent); stroke-width: 3; }
.mk .ping {
  fill: none; stroke: var(--accent); stroke-width: 2; opacity: 0;
  transform-box: fill-box; transform-origin: center;
}
.mk .ping.go { animation: ping .9s cubic-bezier(.2,.7,.3,1) 1; }
@keyframes ping {
  0% { opacity: .85; transform: scale(1); }
  100% { opacity: 0; transform: scale(2.3); }
}
.METAL { fill: var(--g-metal); stroke: var(--g-metal); }
.ROCK { fill: var(--g-rock); stroke: var(--g-rock); }
.PUNK { fill: var(--g-punk); stroke: var(--g-punk); }
.GOTH { fill: var(--g-goth); stroke: var(--g-goth); }
.TRIBUTE { fill: var(--g-tribute); stroke: var(--g-tribute); }
.mk .seg.METAL, .mk .seg.ROCK, .mk .seg.PUNK, .mk .seg.GOTH, .mk .seg.TRIBUTE { fill: none; }

/* ---------- A band's tour ---------- */
/* In band mode the week dots and the dock step aside; pins with dates and
   the route (mapa.js, drawTour) take over the map. */
#marks { transition: opacity .3s ease; }
.dock { transition: opacity .3s ease, transform .35s cubic-bezier(.2,.8,.2,1), width .3s ease, left .3s ease; }
.app.band-mode #marks { opacity: 0; pointer-events: none; }
.app.band-mode .dock { opacity: 0; pointer-events: none; transform: translate(-50%, 130%); }
.app.band-mode .hint, .app.band-mode .scale { display: none; }
#tour { display: none; }
.app.band-mode #tour { display: inline; }
.route-base { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 1 7; stroke-linecap: round; opacity: .55; }
.route { fill: none; stroke: var(--accent); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.route-head { fill: var(--accent); stroke: var(--halo); stroke-width: 3; display: none; }
.pin { cursor: pointer; }
.pin .drop { fill: var(--accent); stroke: var(--mk-ring); stroke-width: 1.5; }
.pin .eye { fill: var(--mk-ring); }
.pin text { paint-order: stroke; stroke: var(--halo); stroke-width: 4px; stroke-linejoin: round; pointer-events: none; }
.pin .d { fill: var(--text); font-weight: 700; font-size: 13.5px; }
.pin .c { fill: var(--text-dim); font-size: 11.5px; }
.pin .body { transform-box: fill-box; transform-origin: 50% 100%; }
.pin.pop .body { animation: pin-pop .45s cubic-bezier(.3,1.6,.5,1) 1; }
.pin.hot .drop { stroke: var(--text); stroke-width: 2.5; }
@keyframes pin-pop { 0% { transform: scale(0); } 100% { transform: scale(1); } }

.sheet-back { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); background: none; font-size: 18px; line-height: 1; cursor: pointer; margin-right: -2px; }
.sheet-back[hidden] { display: none; }
.sheet-back:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sheet-extra { padding: 0 18px 14px; border-bottom: 1px solid var(--border); }
.sheet-extra[hidden] { display: none; }
.sheet-hint { margin: 0; padding: 8px 18px 9px; font-size: 12.5px; line-height: 1.4; color: var(--text-dim); border-bottom: 1px solid var(--border); }
.sheet-hint[hidden] { display: none; }
.sheet-hint.has-tour::before {
  content: ""; display: inline-block; width: 17px; height: 12px; margin-right: 6px; vertical-align: -1px;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 14'%3E%3Cpath d='M3 11C6 11 6 3 10 3s4 8 7 8' fill='none' stroke='%23000' stroke-width='1.8' stroke-dasharray='2.4 2'/%3E%3Ccircle cx='3' cy='11' r='2'/%3E%3Ccircle cx='17' cy='11' r='2'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 14'%3E%3Cpath d='M3 11C6 11 6 3 10 3s4 8 7 8' fill='none' stroke='%23000' stroke-width='1.8' stroke-dasharray='2.4 2'/%3E%3Ccircle cx='3' cy='11' r='2'/%3E%3Ccircle cx='17' cy='11' r='2'/%3E%3C/svg%3E") center / contain no-repeat;
}
.band-desc { margin: 0 0 4px; font-size: 13.5px; line-height: 1.5; color: var(--text-dim); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.band-desc.open { -webkit-line-clamp: unset; display: block; }
.band-src { font-size: 12px; }
.band-src a { color: var(--accent); text-decoration: none; }
.band-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; padding: 8px 14px;
  font-size: 13.5px; font-weight: 600; cursor: pointer; text-decoration: none;
  background: none; color: var(--text); border: 1px solid var(--border);
}
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn svg { width: 15px; height: 15px; fill: currentColor; }
.gig.band-row { cursor: pointer; }
.gig.band-row:hover { background: var(--surface-2); }
.gig.band-row.hot { box-shadow: inset 3px 0 0 var(--accent); }
.gig-place { font-weight: 600; line-height: 1.3; }
.gig-city { display: block; font-weight: 400; font-size: 13px; color: var(--text-dim); margin-top: 2px; }

.share {
  position: fixed; inset: 0; z-index: 30; background: rgba(0, 0, 0, .72);
  display: grid; place-items: center; padding: 16px;
}
.share[hidden] { display: none; }
.share-card { display: flex; flex-direction: column; align-items: center; gap: 14px; max-height: 100%; }
.share-card img { display: block; max-width: min(420px, 100%); max-height: calc(100vh - 120px); border-radius: 12px; box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.share-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.share .btn { background: var(--surface); }
.share .btn.primary { background: var(--accent); }

/* ---------- Band description (as on the main page) ---------- */
.bn { border-bottom: 1.5px dotted var(--text-dim); cursor: pointer; }
.bn:hover, .bn.on, .bn:focus-visible { color: var(--accent); border-bottom-color: var(--accent); outline: none; }
.bn .nw { white-space: nowrap; }
.bn .tour-ic { width: 17px; height: 12px; margin-left: 5px; vertical-align: -1px; overflow: visible; }
.bn .tour-ic path { fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-dasharray: 2.4 2; stroke-linecap: round; }
.bn .tour-ic circle { fill: var(--accent); }
.gig-lineup { display: block; margin-top: 3px; font-weight: 400; font-size: 12.5px; line-height: 1.45; color: var(--text-dim); }
#band-tip {
  position: fixed; z-index: 20; width: 340px; max-width: calc(100vw - 16px);
  background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 14px;
  padding: 16px; box-shadow: 0 18px 40px -14px rgba(0, 0, 0, 0.6);
}
#band-tip[hidden] { display: none; }
.tip-title { margin: 0 0 8px; padding-right: 32px; font-size: 1.05rem; line-height: 1.2; font-weight: 700; }
.tip-desc { margin: 0; font-size: 13.5px; line-height: 1.5; }
.tip-foot { display: flex; justify-content: flex-end; margin-top: 11px; padding-top: 9px; border-top: 1px solid var(--border); font-size: 11.5px; }
.tip-foot a { color: var(--accent); text-decoration: none; white-space: nowrap; }
.tip-x { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); font-size: 16px; line-height: 1; cursor: pointer; }
.tip-x:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 760px) {
  #band-tip { left: 10px !important; right: 10px; top: auto !important; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); width: auto; max-width: none; max-height: 55vh; overflow-y: auto; }
  .tip-desc { font-size: 14px; }
}

/* ---------- Header ---------- */
/* The main page's header bar 1:1 (rules copied from strona.css, keep both in
   step), on a solid strip over the map. Under it: back to the list and the
   band search, always open. mapa.js measures the strip (--head-h). */
.head {
  position: absolute; z-index: 8; top: 0; left: 0; right: 0;
  line-height: 1.5; /* as body on the main page */
  background: var(--bg); border-bottom: 1px solid var(--border);
  /* The main page and the subpages always keep room for a scrollbar; the map has
     none, so it leaves the same room (mapa.js measures it) and the bar's icons
     stand exactly where they stand there. */
  padding-right: var(--sbw, 0px);
}
.top {
  position: relative;
  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);
}
/* No menu here (it stays on the main page); its 44 px links set the bar's height
   there, so the channels keep that height and the bar matches the main page. */
.head .social { min-height: 44px; align-items: center; }
/* Logo of the main page (index.html, strona.css .logo-lock), as on the subpages
   (pasek.css): in the middle of the bar on a computer, in the free space between
   the channels and the language on a phone. mapa.js puts the glow line under
   the pin's tip. */
.brand {
  display: inline-flex; flex-direction: column; align-items: stretch; flex: none;
  color: var(--text); text-decoration: none;
  font: 800 2.15rem/.86 var(--display);
}
.brand .word { display: inline-flex; align-items: baseline; white-space: nowrap; }
.brand .pin { display: inline-block; height: .689em; aspect-ratio: 345 / 438; margin: 0 .01em 0 .02em; position: relative; top: .169em; cursor: inherit; }
.brand .pin svg { display: block; width: 100%; height: 100%; }
.brand .h-near { color: var(--accent); }
@property --heat { syntax: "<percentage>"; inherits: false; initial-value: 20%; }
.brand .flame {
  display: block; height: 3px;
  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%; } }
.brand:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; border-radius: 4px; }
@media (min-width: 761px) {
  .brand { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
}
@media (max-width: 760px) {
  .brand { margin: 0 auto; font-size: clamp(1.15rem, 5.4vw, 1.75rem); }
  .head .social { margin-right: 0; }
}
.sparks { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 35; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.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; }
}

.top-nav a[aria-current="page"] { color: var(--text); }
:focus:not(:focus-visible) { outline: none; }
a, button { -webkit-tap-highlight-color: transparent; }
@media (min-width: 760px) { .nav-add { display: inline-flex !important; } }
/* 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; }
}

@media (prefers-reduced-motion: reduce) { .lang-thumb, .curtain { transition: none !important; } .brand .flame { animation: none; } }

.sub {
  display: flex; align-items: center; gap: .75rem;
  max-width: 1080px; margin: 0 auto; padding: 0 var(--gr) 10px var(--gl);
}
.back {
  flex: none; display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 0 .9rem 0 .55rem;
  border: 1px solid color-mix(in oklab, var(--text) 30%, transparent); border-radius: 999px;
  font-size: .82rem; font-weight: 700; color: var(--text); text-decoration: none; white-space: nowrap;
  transition: color var(--hv), border-color var(--hv), background-color var(--hv);
}
.back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.back:hover, .back:focus-visible { color: var(--accent); border-color: var(--accent); outline: none; }
/* Band search: a field like the main page's search, suggestions drop under it. */
.search { position: relative; flex: 1 1 auto; min-width: 0; }
.search-box {
  display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 6px 0 14px;
  background: var(--surface-2); border: 1px solid var(--text-dim); border-radius: 10px; color: var(--text-dim);
}
.search-box:focus-within { border-color: var(--text); }
.search-box svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.search-box input {
  flex: 1; min-width: 0; border: 0; outline: none; background: none; color: var(--text);
  font: inherit; font-size: 16px; padding: 8px 0;
}
.search-box input::placeholder { color: var(--text-dim); }
.search-box input::-webkit-search-cancel-button { display: none; }
.search-x { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 0; background: none; font-size: 22px; line-height: 1; cursor: pointer; color: var(--text-dim); }
.search-x[hidden] { display: none; }
.search-x:hover { color: var(--text); }
.search-list {
  position: absolute; z-index: 12; top: calc(100% + 6px); left: 0; right: 0;
  list-style: none; margin: 0; padding: 0; max-height: min(60vh, 420px); overflow-y: auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 20px 50px -12px var(--shadow), 0 2px 8px var(--shadow);
}
.search-list:empty { display: none; }
.search-list li { padding: 10px 16px; cursor: pointer; border-bottom: 1px solid var(--border); }
.search-list li:last-child { border-bottom: 0; }
.search-list li[aria-selected="true"], .search-list li:hover { background: var(--surface-2); }
.search-list .s-name { display: block; font-weight: 700; }
.search-list .s-name mark { background: none; color: var(--accent); }
.search-list .s-meta { display: block; margin-top: 2px; font-size: 12.5px; color: var(--text-dim); }
.search-list .s-none { cursor: default; color: var(--text-dim); font-size: 14px; }
.search-list .s-none:hover { background: none; }
@media (max-width: 560px) { .back { padding: 0 .75rem 0 .45rem; font-size: .78rem; } }

.crumbs {
  position: absolute; z-index: 5; right: 16px; top: calc(var(--head-h, 112px) + 10px);
  display: flex; align-items: center; gap: 6px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  padding: 4px; box-shadow: 0 6px 18px var(--shadow);
}
.crumb { border: 0; background: none; padding: 6px 12px; border-radius: 999px; cursor: pointer; font-size: 13.5px; font-weight: 600; }
.crumb:hover { background: var(--surface-2); }
.crumb:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.crumb-here { padding: 6px 12px 6px 2px; font-size: 13.5px; color: var(--text-dim); }
.crumb-here::before { content: "›"; margin-right: 8px; color: var(--text-dim); }
.crumbs.at-home .crumb { color: var(--text-dim); cursor: default; }
.crumbs.at-home .crumb:hover { background: none; }

.zoom {
  position: absolute; z-index: 4; right: 16px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; border-radius: 12px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); box-shadow: 0 6px 18px var(--shadow);
}
.zoom button { width: 40px; height: 40px; border: 0; background: none; font-size: 20px; cursor: pointer; line-height: 1; }
.zoom button + button { border-top: 1px solid var(--border); }
.zoom button:hover { background: var(--surface-2); }
.zoom button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

.hint {
  position: absolute; z-index: 4; left: 50%; bottom: calc(var(--dock-h, 150px) + 24px);
  transform: translateX(-50%); margin: 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  padding: 8px 14px; font-size: 13px; color: var(--text-dim); white-space: nowrap;
  box-shadow: 0 6px 18px var(--shadow);
}

.scale {
  position: absolute; z-index: 4; left: 16px; bottom: calc(var(--dock-h, 150px) + 30px);
  height: 15px; border: 1.5px solid var(--text-dim); border-top: 0; border-radius: 0 0 2px 2px;
  font-size: 11px; line-height: 12px; color: var(--text-dim); padding-left: 5px; white-space: nowrap;
  text-shadow: 0 0 4px var(--bg); pointer-events: none;
}
@media (max-width: 760px) { .scale { left: 14px; bottom: calc(var(--dock-h, 150px) + 24px); } }

/* ---------- Dock: the week, as an equaliser ---------- */
.dock {
  position: absolute; z-index: 6; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  width: min(920px, calc(100% - 28px));
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  box-shadow: 0 14px 40px -12px var(--shadow), 0 2px 6px var(--shadow);
  padding: 14px 18px 12px;
  transition: width .3s ease, left .3s ease;
}
.when { display: flex; align-items: center; gap: 14px; }
.play {
  flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; box-shadow: 0 6px 16px -6px var(--accent);
  transition: transform .15s ease;
}
.play:active { transform: scale(.94); }
.play:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.play svg { width: 22px; height: 22px; fill: currentColor; }
.play .i-pause { display: none; }
.play[aria-pressed="true"] .i-play { display: none; }
.play[aria-pressed="true"] .i-pause { display: inline; }
.all-dates {
  flex: none; min-height: 36px; padding: 0 .9rem; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--accent); background: none; color: var(--accent);
  font: 700 12px var(--body); letter-spacing: .08em; text-transform: uppercase;
  transition: background-color var(--hv), color var(--hv), box-shadow var(--hv);
}
.all-dates[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 12px -2px var(--accent); }
.all-dates:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .all-dates:hover { box-shadow: 0 0 12px -2px var(--accent); } }
.when-text { min-width: 0; }
/* /hellshorde/ (build.js z mapa/index.html): pasek pod nagłówkiem z opisem strony,
   linkiem do HellsHorde i przyciskiem do pełnej mapy; plakietka w docku (mapa.js) */
.hh-bar {
  display: flex; align-items: center; gap: .75rem;
  max-width: 1080px; margin: 0 auto; padding: 0 var(--gr) 10px var(--gl);
}
.hh-intro { flex: 1 1 auto; min-width: 0; margin: 0; font-size: .86rem; line-height: 1.35; color: var(--text-dim); }
.hh-intro b { color: var(--text); font-weight: 700; margin-right: .35rem; }
.hh-intro a { color: var(--accent); text-decoration: none; }
.hh-intro a:hover, .hh-intro a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.hh-map svg { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linejoin: round; }
@media (max-width: 560px) { .hh-intro { font-size: .78rem; } .hh-intro b { display: block; margin: 0 0 1px; } }
.hh-tag {
  display: inline-block; margin-bottom: 3px; padding: 1px 8px; border-radius: 999px;
  border: 1px solid var(--accent); color: var(--accent);
  font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.week { margin: 0; font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.count { margin: 2px 0 0; font-size: 13px; color: var(--text-dim); }

/* Contact and legal links: the map has no page footer, so they sit in the dock. */
.legal { margin: 8px 0 0; font-size: 11px; line-height: 1.3; color: var(--text-dim); text-align: right; }
.legal a { color: inherit; text-decoration: none; }
.legal a:hover, .legal a:focus-visible { color: var(--accent); text-decoration: underline; }
/* Gatunki: pigułki ze strony głównej (strona.css, .chips), te same kolory i poświata
   zaznaczonej; zmiana tam = zmiana tutaj */
.chips { display: flex; gap: 5px; margin-top: 12px; }
.chip {
  flex: 1 1 0; min-width: 0; min-height: 36px; padding: 0 .2rem;
  background: transparent; border: 1px solid var(--text-dim); border-radius: 999px;
  font-size: .84rem; cursor: pointer; white-space: nowrap;
}
.chips .chip[data-g="METAL"] { --gc: var(--g-metal); }
.chips .chip[data-g="ROCK"] { --gc: var(--g-rock); }
.chips .chip[data-g="PUNK"] { --gc: var(--g-punk); --gi: #18161A; }
.chips .chip[data-g="GOTH"] { --gc: var(--g-goth); }
.chips .chip[data-g="TRIBUTE"] { --gc: var(--g-tribute); }
.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;
}
.chips .chip:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
@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; }
/* Komputer: gatunki w jednym rzędzie z terminem, po prawej; gdy dock jest za wąski
   (otwarty panel klubu), zawijają się pod spód */
@media (min-width: 761px) {
  .dock { display: flex; flex-wrap: wrap; align-items: center; column-gap: 18px; }
  .when { flex: 1 1 auto; min-width: 0; }
  .chips { flex: none; margin-top: 0; }
  .chips:has(+ .eq) { margin-left: auto; }
  .eq, .legal { flex: 0 0 100%; }
  .chip { flex: none; padding: 0 .95rem; font-size: .9rem; }
}
@media (prefers-reduced-motion: reduce) { .chips .chip[aria-pressed="true"] { animation: none; } }
.eq { position: relative; margin-top: 12px; cursor: pointer; touch-action: none; border-radius: 6px; }
/* Keyboard focus only: a finger on the slider must not leave a red frame. */
.eq:has(.week-range:focus-visible) { outline: 2px solid var(--accent); outline-offset: 4px; }
.bars { display: flex; align-items: flex-end; gap: 2px; height: 46px; }
.bar {
  flex: 1 1 0; min-width: 2px; border-radius: 2px 2px 0 0;
  background: var(--text-dim); opacity: .28;
  transform-origin: bottom; transition: opacity .25s ease, background-color .25s ease, transform .35s cubic-bezier(.2,.8,.2,1);
}
.bar.empty { height: 3px !important; opacity: .14; }
.bar.near { opacity: .5; }
.bar.on { background: var(--accent); opacity: 1; transform: scaleY(1.12); box-shadow: 0 0 12px -2px var(--accent); }
.eq.all .bar:not(.empty) { background: var(--accent); opacity: .55; }
.months { position: relative; height: 16px; margin-top: 5px; font-size: 11px; color: var(--text-dim); }
.months span { position: absolute; top: 0; white-space: nowrap; padding-left: 4px; border-left: 1px solid var(--border); line-height: 14px; }
.week-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }

/* ---------- Club sheet ---------- */
.sheet {
  position: absolute; z-index: 8;
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: 0 20px 50px -16px var(--shadow), 0 2px 8px var(--shadow);
  display: flex; flex-direction: column; overflow: hidden;
  transition: transform .32s cubic-bezier(.2,.8,.2,1), opacity .2s ease;
}
.sheet[hidden] { display: flex; visibility: hidden; pointer-events: none; }
.sheet-head { display: flex; align-items: flex-start; gap: 12px; padding: 18px 18px 12px; border-bottom: 1px solid var(--border); }
.sheet-head > div { flex: 1; min-width: 0; }
.sheet-title { margin: 0; font-size: 1.25rem; font-weight: 700; line-height: 1.2; }
.sheet-sub { margin: 4px 0 0; font-size: 13px; color: var(--text-dim); }
.sheet-sub a { color: inherit; text-underline-offset: 3px; }
.sheet-close { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); background: none; font-size: 22px; line-height: 1; cursor: pointer; }
.sheet-close:hover { border-color: var(--accent); }
.sheet-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.gigs { list-style: none; margin: 0; padding: 6px 0 10px; overflow-y: auto; overscroll-behavior: contain; }
.gig { display: grid; grid-template-columns: 70px 1fr; gap: 4px 12px; align-items: start; padding: 11px 18px; border-bottom: 1px solid var(--border); }
.gig:last-child { border-bottom: 0; }
.gig-none { padding: 16px 18px; color: var(--text-dim); font-size: 14px; }
.gig.this-week { background: color-mix(in srgb, var(--accent) 7%, transparent); box-shadow: inset 3px 0 0 var(--accent); }
.gig-date { font-size: 13px; color: var(--text-dim); line-height: 1.35; }
.gig-date b { display: block; color: var(--text); font-size: 15px; font-weight: 700; }
.gig-band { font-weight: 600; line-height: 1.3; font-size: .97rem; overflow-wrap: anywhere; }
.gig-club { display: block; font-weight: 400; font-size: 12.5px; color: var(--text-dim); margin-top: 2px; }
.gig-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 7px; }
.gig-tag {
  display: inline-block; font-size: 10.5px; font-weight: 600; letter-spacing: .05em;
  padding: 2px 8px; border-radius: 999px; border: 1px solid currentColor;
}
.gig-tag.METAL { color: var(--g-metal); } .gig-tag.ROCK { color: var(--g-rock); }
.gig-tag.PUNK { color: var(--g-punk); } .gig-tag.GOTH { color: var(--g-goth); } .gig-tag.TRIBUTE { color: var(--g-tribute); }
.gig-tag { fill: none; stroke: none; }
/* „Info” jak na stronie głównej (strona.css .tix): szara ramka, biała poświata */
.gig-info {
  display: inline-grid; place-items: center; height: 30px; padding: 0 10px; white-space: nowrap;
  font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim); text-decoration: none;
  border: 1px solid var(--border); border-radius: 8px;
  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);
  transition: color var(--hv), border-color var(--hv), box-shadow var(--hv);
}
.gig-info:hover, .gig-info:focus-visible { color: var(--text); border-color: var(--text-dim); outline: none; }
@media (hover: hover) and (pointer: fine) {
  .gig-info: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); text-shadow: 0 0 6px color-mix(in srgb, var(--text) 55%, transparent); }
}

/* Desktop: the sheet sits on the right, the dock makes room for it. */
@media (min-width: 761px) {
  .sheet { top: calc(var(--head-h, 112px) + 12px); right: 16px; bottom: 16px; width: 380px; border-radius: 18px; }
  .sheet[hidden] { transform: translateX(24px); opacity: 0; }
  .app.sheet-open .dock { left: calc((100% - 412px) / 2); width: min(920px, calc(100% - 440px)); }
  .app.sheet-open .zoom { right: 412px; }
}
/* Phone: a bottom sheet over the dock. */
@media (max-width: 760px) {
  .crumbs { right: 12px; }
  .zoom { display: none; }
  /* Niższy dock: mniejsze odstępy, przyciski i słupki, więcej miejsca na mapę */
  .dock { width: calc(100% - 20px); bottom: calc(8px + env(safe-area-inset-bottom, 0px)); padding: 9px 12px 7px; border-radius: 16px; }
  .play { width: 38px; height: 38px; }
  .play svg { width: 19px; height: 19px; }
  .when { gap: 9px; }
  .all-dates { min-height: 32px; padding: 0 .65rem; font-size: 11px; }
  .week { font-size: .95rem; }
  .count { margin-top: 0; font-size: 12px; }
  .chips { margin-top: 8px; }
  .chip { min-height: 32px; font-size: .8rem; }
  .eq { margin-top: 8px; }
  .bars { height: 34px; }
  .months { height: 14px; margin-top: 3px; font-size: 10.5px; }
  .legal { margin-top: 4px; font-size: 10.5px; }
  .sheet { left: 0; right: 0; bottom: 0; max-height: 64vh; border-radius: 20px 20px 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
  /* Grab handle: the sheet follows the finger down and closes past ~90 px. */
  .sheet::before { content: ""; display: block; width: 38px; height: 4px; border-radius: 2px; background: var(--border); margin: 8px auto 0; }
  .sheet-head { touch-action: none; }
  .sheet.band { max-height: 52vh; }
  .band-desc { -webkit-line-clamp: 3; }
  .sheet.dragging { transition: none; }
  /* Band sheet folded to its title row (tour on the whole map). */
  .sheet.peek { transform: translateY(var(--peek-y, 0px)); cursor: pointer; }
  .sheet[hidden] { transform: translateY(105%); }
  .gig { grid-template-columns: 60px 1fr; padding: 11px 16px; }
  .hint { white-space: normal; text-align: center; width: max-content; max-width: calc(100% - 40px); }
}

.noscript { position: fixed; inset: auto 16px 16px; padding: 14px; background: var(--surface); border-radius: 12px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}
@media (max-width: 760px) { .hint:not([hidden]) ~ .scale { display: none; } }
