:root {
  --bg: #0a0a0a;
  --ink: #f2efe9;
  --ink-dim: #9a968d;
  --line: rgba(242,239,233,0.14);
  --accent: #c9a769;
  --serif: 'Fraunces', serif;
  --sans: 'Inter', sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  height: 100vh;
}

h1 { font-family: var(--serif); font-weight: 500; margin: 0; }

p { line-height: 1.75; color: var(--ink-dim); margin: 0; }

a { color: inherit; text-decoration: none; }
button { font: inherit; }

.center { text-align: center; }

.kicker {
  font-family: var(--mono);
  color: var(--accent);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 0.72rem;
  margin: 0 0 24px;
}
.kicker.center { text-align: center; }

.booking-line {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--ink);
  text-align: center;
  margin: -14px 0 22px;
}

/* Hero — the whole visible app; everything happens inside this single 100vh screen */
/* Language toggle — appears once the visitor enters the site */
.lang-toggle {
  position: fixed;
  top: 78px; right: 22px;
  z-index: 300;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-dim);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 1px;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, border-color 0.2s, color 0.2s;
}
body.entered .lang-toggle { opacity: 1; pointer-events: auto; }
body.panel-open .lang-toggle { opacity: 0; pointer-events: none; }
.lang-toggle:hover { border-color: var(--accent); color: var(--ink); }

.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 25%;
  filter: contrast(1.1) brightness(0.6) saturate(1.05);
  transition: filter 0.8s ease;
  z-index: 0;
}
.hero.hub-active .hero-bg { filter: contrast(1.1) brightness(0.32) saturate(0.9); }
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(10,10,10,0.2) 0%, rgba(10,10,10,0.88) 75%);
  z-index: 1;
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: opacity 0.5s ease;
}
.hero.hub-active .hero-content { opacity: 0; pointer-events: none; }

.hero-title {
  font-size: clamp(4.2rem, 15vw, 10.5rem);
  line-height: 0.88;
  letter-spacing: -2px;
  color: var(--ink);
  font-weight: 400;
}
.hero-title-inner {
  position: relative;
  display: inline-block;
  cursor: pointer;
  outline: none;
  transform: scale(1);
  transition: transform 0.6s cubic-bezier(.2,.8,.2,1);
}
.hero-title-inner:hover,
.hero-title-inner:focus-visible { transform: scale(1.08); }
/* A thin ring that expands outward right as the big pulse hits, like a tap
   ripple — a second, more universally-read "this is tappable" cue, timed
   to the same beat as luxPulse so the two never fight each other. */
.hero-title-inner::before {
  content: '';
  position: absolute;
  inset: -20% -12%;
  border: 1px solid rgba(201,167,105,0.55);
  border-radius: 999px;
  opacity: 0;
  transform: scale(0.85);
  pointer-events: none;
  animation: tapRing 4s ease-out infinite;
}
.hero-title-inner.entering::before { animation: none; opacity: 0; }
@keyframes tapRing {
  0%, 68% { opacity: 0; transform: scale(0.85); }
  75% { opacity: 0.85; transform: scale(0.95); }
  100% { opacity: 0; transform: scale(1.3); }
}
.hero-title-pulse {
  display: inline-block;
  animation: luxPulse 4s ease-in-out infinite;
  transform-origin: center;
}
.hero-title-inner.entering {
  transform: scale(1.35);
  opacity: 0;
  transition: transform 0.9s cubic-bezier(.4,0,.2,1), opacity 0.7s ease 0.2s;
}
.hero-title-inner.entering .hero-title-pulse { animation: none; }
/* Two quick little breaths, then one big one right after — a wordless nudge
   that this is tappable, with no new text or icons added. */
@keyframes luxPulse {
  0%, 25%, 50%, 100% { transform: scale(1); text-shadow: 0 0 36px rgba(201,167,105,0.12), 0 0 2px rgba(242,239,233,0.2); }
  12.5%, 37.5% { transform: scale(1.035); text-shadow: 0 0 64px rgba(201,167,105,0.32), 0 0 2px rgba(242,239,233,0.3); }
  75% { transform: scale(1.11); text-shadow: 0 0 100px rgba(201,167,105,0.55), 0 0 3px rgba(242,239,233,0.45); }
}

/* Hub — 4 cards that burst outward from the exact center + quick contact. Overlays the hero, no scrolling to reach it. */
.hub {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 40px;
  padding: 118px 28px 28px;
  opacity: 0;
  pointer-events: none;
  overflow-y: auto;
  transition: opacity 0.4s ease;
}
.hero.hub-active .hub { opacity: 1; pointer-events: auto; }

.hub-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
  max-width: 620px;
}
.hub-title-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 26px 24px 22px;
  background: linear-gradient(to bottom, rgba(10,10,10,0.6), transparent);
  border-bottom: 1px solid var(--line);
}
.hub-title {
  grid-column: 2;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.6rem, 5.4vw, 2.6rem);
  letter-spacing: 16px;
  color: var(--ink);
  text-align: center;
  white-space: nowrap;
}
/* Inside the hub masthead bar it's a normal grid item, vertically centered
   with the wordmark rather than a free-floating fixed button. */
.hub-title-bar .lang-toggle {
  position: static;
  grid-column: 3;
  justify-self: end;
}

.hub-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: transparent;
  padding: 22px 8px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.25s, transform 0.25s, background 0.25s;
  opacity: 0;
  transform: scale(0.2);
}
.hero.hub-active .hub-card {
  animation: hubBurst 0.7s cubic-bezier(.2,.8,.2,1) forwards;
  animation-delay: calc(var(--i) * 0.08s);
}
@keyframes hubBurst {
  0% { opacity: 0; transform: scale(0.2); }
  100% { opacity: 1; transform: scale(1); }
}
.hub-card:hover { border-color: var(--accent); background: rgba(201,167,105,0.06); transform: translateY(-3px); }

/* A slim light sweep that passes over each tile every few seconds, staggered
   left to right — quiet most of the time, no constant scrolling motion. */
.hub-card::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 55%;
  background: linear-gradient(100deg, transparent, rgba(201,167,105,0.32) 45%, rgba(242,239,233,0.5) 50%, rgba(201,167,105,0.32) 55%, transparent);
  transform: translateX(-180%);
  animation: cardShimmer 3.2s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.18s + 0.4s);
  pointer-events: none;
}
@keyframes cardShimmer {
  0% { transform: translateX(-180%); }
  26% { transform: translateX(260%); }
  100% { transform: translateX(260%); }
}
@media (prefers-reduced-motion: reduce) {
  .hub-card::after { animation: none; display: none; }
}

.quick-form { display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 620px; }
.quick-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.quick-form input,
.quick-form textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px; /* iOS Safari zooms the page in on focus for anything smaller */
  text-align: center;
  resize: none;
}
.quick-form input:focus,
.quick-form textarea:focus { outline: none; border-color: var(--accent); }

.consent-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: left;
  cursor: pointer;
}
.consent-field input[type="checkbox"] {
  flex: 0 0 auto;
  width: 17px; height: 17px;
  margin-top: 2px;
  accent-color: var(--accent);
  cursor: pointer;
}
.consent-field span { color: var(--ink-dim); font-size: 0.8rem; line-height: 1.5; }
.consent-field a { color: var(--accent); }
@keyframes consentFlash {
  0%, 100% { border-color: var(--line); background: transparent; }
  25%, 75% { border-color: #d16a6a; background: rgba(209,106,106,0.1); }
}
.consent-field.flash-error { animation: consentFlash 0.6s ease-in-out 2; }

.date-field { position: relative; }
#eventDateDisplay { width: 100%; cursor: pointer; }
.date-picker {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  z-index: 320;
  width: 280px;
  max-width: calc(100vw - 40px);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.55);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.date-picker.open { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.date-picker.above { top: auto; bottom: calc(100% + 10px); }
.date-picker.above.open { transform: translate(-50%, 0); }
.date-picker-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
  font-family: var(--serif); font-size: 0.95rem; color: var(--ink);
}
.date-picker-nav {
  background: none; border: 1px solid var(--line); border-radius: 6px;
  color: var(--ink-dim); width: 26px; height: 26px; cursor: pointer; font-size: 1rem; line-height: 1;
}
.date-picker-nav:hover { color: var(--ink); border-color: var(--accent); }
.date-picker-weekdays, .date-picker-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.date-picker-weekdays span {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 1px; text-transform: uppercase;
  color: var(--ink-dim); text-align: center;
}
.date-picker-grid button {
  aspect-ratio: 1; background: none; border: 1px solid transparent; border-radius: 8px;
  color: var(--ink); font-family: var(--sans); font-size: 0.82rem; cursor: pointer;
}
.date-picker-grid button:hover:not(:disabled) { border-color: var(--accent); }
.date-picker-grid button.today { border-color: var(--line); }
.date-picker-grid button.selected { background: var(--accent); color: var(--bg); font-weight: 600; }
.date-picker-grid button:disabled { color: var(--ink-dim); opacity: 0.35; cursor: default; }
.date-picker-grid button.empty { visibility: hidden; cursor: default; }

.hub-footer {
  position: absolute;
  left: 0; right: 0;
  bottom: 22px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 1px;
  color: var(--ink-dim);
  text-align: center;
}
.hub-footer a { color: var(--ink-dim); text-decoration: underline; text-underline-offset: 2px; }
.hub-footer a:hover { color: var(--accent); }

.btn {
  display: inline-block;
  padding: 15px 30px;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--ink);
  transition: background 0.25s, color 0.25s;
}
.btn:hover { background: var(--accent); color: #0a0a0a; }
.btn-block { width: 100%; text-align: center; }
.offer-cta { margin-top: 20px; }

.form-status { min-height: 20px; font-size: 0.85rem; margin: 0; font-family: var(--mono); }
.form-status.ok { color: #8fbc8f; }
.form-status.err { color: #d98a8a; }

/* Panels — full-screen overlays for Fotky/Videa/Akce/Bio, opened from hub cards */
.panel {
  position: fixed;
  inset: 0;
  height: 100vh;
  height: 100dvh; /* tracks the real visible area as iOS Safari's toolbar shows/hides — inset:0 alone leaves a dead zone at the bottom */
  z-index: 150;
  background: var(--bg);
  overflow: hidden; /* scrolling happens on .panel-scroll — see note there */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  /* No transform here (even scale(1) at rest) — WebKit visibly degrades touch-scroll
     responsiveness for a scrollable descendant sitting inside a transformed ancestor,
     even when the scroll container itself is untransformed. Opacity-only fade instead. */
}
.panel.open { opacity: 1; pointer-events: auto; }
.panel-scroll {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  touch-action: pan-y;
  /* No -webkit-overflow-scrolling:touch — that legacy property forces the old
     UIScrollView-style scrolling mode, which on modern iOS can itself cause
     intermittent "needs a few tries" scroll misfires. Plain overflow-y:auto
     already gets native momentum scrolling since iOS 13. */
  /* This element (not .panel) does the actual scrolling — full-width so a
     mouse wheel or swipe works anywhere in the panel, not just over the
     centered content column. iOS Safari also has a long-standing bug where
     the first swipe is ignored on a scroll container that also has
     `transform` applied, even scale(1); .panel carries the open/close
     transform, so this layer stays untransformed and scrolls normally from
     the very first touch. touch-action:pan-y forces vertical swipes to
     always scroll even when the finger lands on a clickable gallery item
     (Safari otherwise sometimes hesitates between tap and pan there). */
}
.panel-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 90px 28px 90px;
}
.panel-close {
  position: fixed;
  top: 24px; right: 28px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  width: 40px; height: 40px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  z-index: 151;
}
.panel-close:hover { border-color: var(--accent); }
.bio-layout { display: flex; gap: 48px; align-items: flex-start; }
.bio-layout--alt { flex-direction: row-reverse; }
.bio-portrait { flex: 0 0 260px; }
.bio-portrait img { width: 100%; aspect-ratio: 4/5; object-fit: cover; filter: grayscale(0.5) contrast(1.05); }
.bio-text { flex: 1; min-width: 0; }
.bio-line { font-family: var(--serif); font-size: 1.15rem; color: var(--ink); max-width: 640px; }
.bio-line + .bio-line { margin-top: 20px; }
.bio-divider { border-top: 1px solid var(--line); margin: 56px 0; }

@media (max-width: 640px) {
  .bio-layout, .bio-layout--alt { flex-direction: column; gap: 28px; }
  .bio-portrait { flex-basis: auto; max-width: 220px; }
  .bio-divider { margin: 40px 0; }
}
.panel-note { margin-top: 20px; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 1px; color: var(--ink-dim); }

.testimonial-card {
  margin-top: 32px;
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: 4px;
  text-align: left;
}
.testimonial-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
}
.testimonial-author {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
}
.testimonial-place { color: var(--ink-dim); }

/* Cookie consent banner — shown before any non-essential (ad) cookie is
   set; the Meta Pixel itself only loads after "Přijmout" is clicked. */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1000;
  display: none;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 16px 24px;
  background: var(--bg);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 40px rgba(0,0,0,0.4);
}
.cookie-banner.visible { display: flex; }
.cookie-text {
  flex: 1 1 420px;
  max-width: 640px;
  color: var(--ink-dim);
  font-family: var(--sans);
  font-size: 0.85rem;
  line-height: 1.5;
}
.cookie-text a { color: var(--accent); }
.cookie-actions { display: flex; gap: 10px; flex: 0 0 auto; }
.btn-cookie-decline, .btn-cookie-accept {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}
.btn-cookie-decline { background: transparent; border: 1px solid var(--line); color: var(--ink-dim); }
.btn-cookie-decline:hover { border-color: var(--ink); color: var(--ink); }
.btn-cookie-accept { background: var(--accent); border: 1px solid var(--accent); color: var(--bg); font-weight: 600; }
.btn-cookie-accept:hover { opacity: 0.88; }
@media (max-width: 560px) {
  .cookie-banner { justify-content: flex-start; padding: 14px 18px; }
  .cookie-actions { width: 100%; }
  .btn-cookie-decline, .btn-cookie-accept { flex: 1; }
}

/* Chat button — opens the custom chat panel below */
.chat-fab {
  position: fixed;
  right: 22px; bottom: 24px;
  z-index: 300;
  width: 54px; height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--ink);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, border-color 0.2s, transform 0.2s;
  animation: fabBreathe 5s ease-in-out infinite;
}
body.entered .chat-fab { opacity: 1; pointer-events: auto; }
.chat-fab:hover { border-color: var(--ink); transform: translateY(-2px); }
@keyframes fabBreathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,167,105,0.35); }
  50% { box-shadow: 0 0 0 8px rgba(201,167,105,0); }
}
@media (prefers-reduced-motion: reduce) {
  .chat-fab { animation: none; }
}
.chat-fab-label {
  position: fixed;
  right: 86px; bottom: 24px;
  z-index: 300;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-dim);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, border-color 0.2s, color 0.2s;
}
body.entered .chat-fab-label { opacity: 1; }
.chat-fab-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--ink-dim); flex: 0 0 auto; }
.chat-fab-label.online { color: #7fc98a; border-color: rgba(127,201,138,0.35); }
.chat-fab-label.online .chat-fab-dot { background: #7fc98a; }
.chat-fab-label.offline { color: #d16a6a; border-color: rgba(209,106,106,0.35); }
.chat-fab-label.offline .chat-fab-dot { background: #d16a6a; }
@media (max-width: 480px) {
  .chat-fab-label { right: 80px; height: 36px; padding: 0 10px; font-size: 0.6rem; letter-spacing: 1px; gap: 5px; }
}

/* Custom chat panel — anchored above the chat button */
.chat-panel {
  position: fixed;
  right: 22px; bottom: 90px;
  z-index: 301;
  width: min(360px, calc(100vw - 44px));
  height: min(480px, 68vh);
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  opacity: 0;
  transform: scale(0.92) translateY(12px);
  transform-origin: bottom right;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  overflow: hidden;
}
.chat-panel.open { opacity: 1; transform: scale(1) translateY(0); pointer-events: auto; }
.chat-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink);
}
.chat-panel-close { background: none; border: none; color: var(--ink-dim); cursor: pointer; font-size: 1rem; line-height: 1; padding: 4px; }
.chat-panel-close:hover { color: var(--ink); }
.chat-panel-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chat-panel-hint { color: var(--ink-dim); font-size: 0.85rem; line-height: 1.5; }
.chat-msg {
  max-width: 82%;
  padding: 9px 13px;
  border-radius: 12px;
  font-family: var(--sans);
  font-size: 0.88rem;
  line-height: 1.45;
  word-wrap: break-word;
  white-space: pre-wrap;
}
.chat-msg--visitor { align-self: flex-end; background: rgba(201,167,105,0.14); border: 1px solid rgba(201,167,105,0.3); color: var(--ink); }
.chat-msg--admin { align-self: flex-start; background: rgba(242,239,233,0.06); border: 1px solid var(--line); color: var(--ink); }
.chat-msg--typing { display: flex; gap: 4px; align-items: center; padding: 12px 14px; }
.chat-msg--typing span { width: 6px; height: 6px; border-radius: 999px; background: var(--ink-dim); animation: typingBounce 1.2s infinite ease-in-out; }
.chat-msg--typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-msg--typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typingBounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-3px); opacity: 1; } }
.chat-panel-form { padding: 14px 18px 16px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.chat-panel-form input {
  background: transparent; border: none; border-bottom: 1px solid var(--line);
  padding: 6px 0; color: var(--ink); font-family: var(--sans); font-size: 16px;
}
.chat-panel-form input:focus { outline: none; border-color: var(--accent); }
.chat-panel-row { display: flex; align-items: flex-end; gap: 10px; }
.chat-panel-row textarea {
  flex: 1; resize: none; max-height: 90px;
  background: rgba(242,239,233,0.04); border: 1px solid var(--line); border-radius: 10px;
  padding: 9px 11px; color: var(--ink); font-family: var(--sans); font-size: 16px;
}
.chat-panel-row textarea:focus { outline: none; border-color: var(--accent); }
.chat-panel-send {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 999px;
  background: var(--accent); border: none; color: var(--bg);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: opacity 0.2s;
}
.chat-panel-send:hover { opacity: 0.85; }
@media (max-width: 480px) {
  .chat-panel { right: 12px; bottom: 84px; width: calc(100vw - 24px); }
}

/* Persistent player bar — floats over the whole site, survives panel switches */
.player-bar {
  position: fixed;
  left: 50%; bottom: 58px;
  transform: translateX(-50%);
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(10,10,10,0.94);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px 18px 12px 10px;
  width: 300px;
  max-width: calc(100vw - 40px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.player-bar[hidden] { display: flex; opacity: 0; pointer-events: none; transform: translateX(-50%) translateY(10px); }
.player-toggle, .player-next {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.2s;
}
.player-toggle:hover, .player-next:hover { border-color: var(--accent); }
.player-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.player-track {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 1px;
  color: var(--ink-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-seek {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: var(--line);
  cursor: pointer;
  margin: 0;
}
.player-seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  margin-top: -4px;
}
.player-seek::-webkit-slider-runnable-track { height: 3px; border-radius: 999px; background: var(--line); }
.player-seek::-moz-range-thumb {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: pointer;
}
.player-seek::-moz-range-track { height: 3px; border-radius: 999px; background: var(--line); }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/5;
  background: #111;
  touch-action: pan-y;
}
.gallery-item img, .gallery-item video {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(0.7);
  transition: transform 0.6s ease, filter 0.4s ease;
}
/* hover:hover excludes touchscreens — iOS simulates :hover on tap, and a
   transform change on the touched element mid-gesture breaks scroll recognition. */
@media (hover: hover) and (pointer: fine) {
  .gallery-item:hover img, .gallery-item:hover video { transform: scale(1.04); filter: grayscale(0); }
}
.gallery-item .play-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--ink);
  background: rgba(0,0,0,0.6);
  border-radius: 50%;
}
.gallery-loading { color: var(--ink-dim); grid-column: 1/-1; padding: 20px 0; }

/* Lightbox — enlarges a single photo/video from inside a panel */
.lightbox {
  position: fixed;
  inset: 0;
  height: 100vh;
  height: 100dvh;
  background: rgba(5,5,5,0.96);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox-inner { max-width: 880px; width: 100%; }
.lightbox-inner img, .lightbox-inner video { width: 100%; max-height: 82vh; object-fit: contain; }
.lightbox-close {
  position: absolute;
  top: 24px; right: 28px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  width: 40px; height: 40px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
}
.lightbox-close:hover { border-color: var(--accent); }

/* Shows (Akce panel) */
.shows-list { border-top: 1px solid var(--line); }
.show-card {
  padding: 24px 16px;
  margin: 0 -16px;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s, padding-left 0.3s;
}
.show-card:hover { background: rgba(201,167,105,0.06); padding-left: 24px; }
.show-row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 24px;
  align-items: baseline;
}
.show-date { font-family: var(--mono); color: var(--accent); font-size: 0.85rem; }
.show-name { color: var(--ink); font-family: var(--serif); font-size: 1.15rem; }
.show-name a { color: inherit; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.show-name a:hover { color: var(--accent); text-decoration-color: var(--accent); }
.show-place { color: var(--ink-dim); font-size: 0.85rem; text-align: right; }

.show-row--past { opacity: 0.55; }
.show-row--past .show-date { color: var(--ink-dim); }
.badge-past {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-dim);
  border: 1px solid var(--line);
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 6px;
}

.show-media {
  display: grid;
  grid-template-columns: repeat(auto-fill, 66px);
  gap: 6px;
  margin-top: 16px;
}
.show-media .gallery-item { border-radius: 6px; }
.show-media .play-badge { width: 20px; height: 20px; top: 6px; right: 6px; font-size: 0.65rem; }
.show-web {
  display: inline-block;
  margin-top: 14px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  text-decoration: none;
}
.show-web:hover { text-decoration: underline; }

/* Nabídka (offer) panel */
.offer-grid { margin-top: 40px; border-top: 1px solid var(--line); }
.offer-grid + .kicker { margin-top: 40px; }
.offer-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.offer-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
}
.offer-value { color: var(--ink); font-size: 1rem; }

.equipment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin: 20px 0 8px;
}
.equipment-block { border-top: 1px solid var(--line); padding-top: 16px; }
.equipment-label {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 8px;
}
.equipment-list { color: var(--ink-dim); font-size: 0.92rem; line-height: 1.6; }

@media (max-height: 700px) {
  .hub { gap: 22px; padding-top: 86px; }
  .hub-card { padding: 14px 8px; }
  .hub-title-bar { padding: 15px 16px 13px; }
  .hub-title { letter-spacing: 10px; }
}

/* Responsive */
@media (max-width: 640px) {
  .quick-row { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .show-row { grid-template-columns: 1fr; }
  .show-place { text-align: left; }
  .offer-row { grid-template-columns: 1fr; }
  .equipment-grid { grid-template-columns: 1fr; }
  /* Compact player bar on mobile — still shows track name + seek bar, just smaller.
     Left-anchored (not centered) here, specifically so it can't grow into the chat
     button + OFFLINE/ONLINE pill, which are anchored to the right edge — centering a
     ~220px-wide bar on a ~380-430px phone leaves too little room on the right for
     both to coexist without touching. bottom:24px matches .chat-fab/.chat-fab-label
     exactly, so the two sit on the same row instead of at two slightly different
     heights. */
  .player-bar { width: auto; max-width: calc(100vw - 180px); left: 16px; transform: none; bottom: 24px; padding: 8px 12px 8px 8px; gap: 8px; }
  .player-bar[hidden] { transform: translateY(10px); }
  .player-toggle, .player-next { width: 28px; height: 28px; }
  .player-track { font-size: 0.62rem; max-width: 100px; }
  /* On mobile the hub's content (6 cards + full booking form) is routinely taller
     than one screen, so .hub falls back to its own overflow-y:auto scroll. The
     footer's desktop position:absolute (pinned near the bottom of the .hub box,
     not of the scrolled content) then just sits on top of whatever happens to be
     scrolled into that spot — usually the consent checkbox / submit button. Put it
     back in normal flow here so it reliably lands after the form instead. */
  .hub-footer { position: static; margin-top: 18px; }
  /* Extra bottom padding so the (now in-flow) footer — and the end of the quick
     form above it — can clear the player bar + chat button, which stay fixed to
     the viewport regardless of how far .hub itself is scrolled. Extra top padding
     because .hub-title-bar is position:absolute (out of flow, so it can't push
     the cards down itself) — the desktop 118px assumes a title-bar height that's
     sometimes too tight on mobile (bigger relative letter-spacing, device text-size
     settings), letting its border-bottom land a few pixels into the card row below.
     Both paddings here are deliberately generous rather than pixel-matched, so small
     per-device rendering differences don't reopen either gap.
     justify-content switches from the desktop "center" to "flex-start": .hub's
     content (6 cards + full form) is now always taller than the screen on mobile,
     and centering an overflowing flex column makes the browser start the scroll
     range from an arbitrary point part-way through the content — not from its true
     top — so the gap this padding-top is meant to create was landing in the wrong
     place. flex-start makes "scrolled all the way up" mean exactly "top edge of
     the content, right after the padding," which is what the padding math above
     actually assumes. */
  .hub { padding-top: 150px; padding-bottom: 130px; justify-content: flex-start; }
  /* While a panel (Fotky/Videa/Akce/Bio/Info/Reference) is open on mobile, the player
     bar + chat button float over the panel's own scrollable content — on the booking
     form specifically this covers the submit button and footer links. There's no
     screen real estate to fit both the panel's content and these floating widgets at
     once on a phone, so hide the widgets for the duration; closing the panel brings
     them right back. */
  body.panel-open .player-bar,
  body.panel-open .chat-fab,
  body.panel-open .chat-fab-label { opacity: 0; pointer-events: none; }
  /* Keep the big, wide-tracked masthead from overflowing narrow screens. */
  .hub-title-bar { padding-left: 16px; padding-right: 16px; }
  .hub-title { font-size: clamp(1.2rem, 6.4vw, 1.7rem); letter-spacing: 8px; }
  .hub-title-bar .lang-toggle { padding: 6px 10px; font-size: 0.62rem; }
}
