/* Koncept: letní pastely v barevných blocích (žlutá, růžová, modrá), černé písmo a linky,
   vlnky jako hladina bazénu mezi bloky, šachovnice a plameňák s brýlemi z festivalového merche. */
:root {
  color-scheme: light;
  --yellow: #fff1a8;
  --pink: #ffc7dd;
  --blue: #bfe3ff;
  --hot: #ff6fae;
  --paper: var(--yellow);
  --ink: #151515;
  --ink-soft: rgba(21, 21, 21, 0.68);
  --line: rgba(21, 21, 21, 0.2);
  --font: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --pad-l: max(20px, env(safe-area-inset-left, 0px));
  --pad-r: max(20px, env(safe-area-inset-right, 0px));
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --t-small: 0.875rem;
  --t-body: 1.0625rem;
  --t-lead: clamp(1.15rem, 1.6vw, 1.4rem);
  --t-h2: clamp(2.1rem, 6.4vw, 5.25rem);
  --t-hero: clamp(2.9rem, 12.4vw, 13rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.menu-open { overflow: hidden; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--hot); outline-offset: 3px; }
::selection { background: var(--pink); color: var(--ink); }

.wrap { max-width: 90rem; margin-inline: auto; padding-left: var(--pad-l); padding-right: var(--pad-r); }
.display { font-stretch: 125%; font-weight: 800; text-transform: uppercase; letter-spacing: -0.02em; line-height: 0.92; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; background: var(--paper); padding: .5rem 1rem; }

/* Tlačítka */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0 1.5rem; border-radius: 999px; border: 0; cursor: pointer;
  font-weight: 700; font-size: 1rem; text-decoration: none; white-space: nowrap;
  background: var(--pink); color: var(--ink);
  border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  transition: background-color .25s, color .25s, transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.btn-line { background: transparent; color: inherit; border-color: currentColor; box-shadow: none; }
.btn-line:hover { transform: none; background: var(--yellow); color: var(--ink); border-color: var(--ink); }
.btn-ink { background: var(--ink); color: #fff; box-shadow: 3px 3px 0 rgba(21, 21, 21, .25); }
.btn-ink:hover { background: var(--yellow); color: var(--ink); }
.btn-small { min-height: 2.5rem; padding: 0 1.1rem; font-size: var(--t-small); }

/* Navigace */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  color: #fff;
  transition: background-color .3s, color .3s, box-shadow .3s;
}
.nav.solid { background: var(--paper); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.nav-in { display: flex; align-items: center; gap: 1.5rem; min-height: 4.25rem; }
.brand { font-stretch: 125%; font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em; text-decoration: none; font-size: 1.05rem; white-space: nowrap; }
.nav-links { display: flex; gap: 1.75rem; list-style: none; margin: 0 0 0 auto; padding: 0; font-size: var(--t-small); font-weight: 500; }
.nav-links a { text-decoration: none; position: relative; padding: .35rem 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.burger { display: none; width: 3rem; height: 3rem; margin-right: -.6rem; border: 0; background: none; cursor: pointer; position: relative; }
.burger span { position: absolute; left: .7rem; right: .7rem; height: 2px; background: currentColor; transition: transform .35s var(--ease), top .35s var(--ease); }
.burger span:first-child { top: 1.2rem; }
.burger span:last-child { top: 1.7rem; }
.menu-open .burger span:first-child { top: 1.45rem; transform: rotate(45deg); }
.menu-open .burger span:last-child { top: 1.45rem; transform: rotate(-45deg); }
.menu-open .nav { color: var(--ink); background: transparent; box-shadow: none; }
.menu-open .nav-cta { background: var(--yellow); }
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
  .burger { display: block; }
}

/* Mobilní menu */
.menu {
  position: fixed; inset: 0; z-index: 40; background: var(--pink); color: var(--ink);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 6rem var(--pad-r) calc(2rem + env(safe-area-inset-bottom, 0px)) var(--pad-l);
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .55s var(--ease), visibility 0s .55s;
}
.menu-open .menu { clip-path: inset(0); visibility: visible; transition: clip-path .55s var(--ease); }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu li { overflow: hidden; border-bottom: 1.5px solid var(--ink); }
.menu a { display: block; padding: .5rem 0; font-size: clamp(1.9rem, 9vw, 3rem); text-decoration: none; transform: translateY(110%); transition: transform .6s var(--ease); }
.menu-open .menu a { transform: none; }
.menu li:nth-child(2) a { transition-delay: .04s; } .menu li:nth-child(3) a { transition-delay: .08s; }
.menu li:nth-child(4) a { transition-delay: .12s; } .menu li:nth-child(5) a { transition-delay: .16s; }
.menu li:nth-child(6) a { transition-delay: .2s; } .menu li:nth-child(7) a { transition-delay: .24s; }

/* Hero s videem */
.hero { position: relative; height: min(100svh, 62rem); min-height: 34rem; overflow: hidden; background: var(--ink); color: #fff; display: flex; align-items: flex-end; }
.hero-media { position: absolute; inset: -4% 0; will-change: transform; }
.hero-media video, .hero-media canvas, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 10, 14, .88), rgba(10, 10, 14, .28) 55%, rgba(10, 10, 14, .5)); pointer-events: none; }
.hero-in { position: relative; width: 100%; padding-bottom: calc(clamp(1.5rem, 4vw, 3rem) + 2.25rem); }
.hero h1 { margin: 0; font-size: var(--t-hero); line-height: 1.02; letter-spacing: -0.035em; }
.hero h1 .ln { display: block; overflow: hidden; padding-top: .2em; margin-top: -.2em; }
.hero h1 .ln > span { display: block; animation: rise 1.1s var(--ease) both; }
.hero h1 .ln:nth-child(2) > span { animation-delay: .12s; }
@keyframes rise { from { transform: translateY(115%); } }
.hero-foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem 3rem; margin-top: clamp(1.25rem, 3vw, 2.25rem); padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .35); animation: fade 1s .5s both; }
@keyframes fade { from { opacity: 0; } }
.hero-foot p { margin: 0; max-width: 36rem; text-wrap: pretty; font-size: var(--t-lead); line-height: 1.4; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Otočný odznak */
.badge { position: absolute; z-index: 2; right: var(--pad-r); top: calc(6rem + env(safe-area-inset-top, 0px)); width: clamp(6.5rem, 13vw, 10.5rem); aspect-ratio: 1; display: grid; place-items: center; border: 0; padding: 0; background: none; cursor: pointer; color: #fff; text-decoration: none; }
.badge svg.ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 22s linear infinite; }
.badge svg.ring text { font-family: var(--font); font-size: 15.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; fill: currentColor; }
.badge-core { position: relative; width: 46%; aspect-ratio: 1; color: var(--ink); display: grid; place-items: center; transition: transform .4s var(--ease); }
.badge-core .sun { position: absolute; inset: -22%; width: 144%; height: 144%; animation: spin 14s linear infinite reverse; }
.badge-core svg:not(.sun) { position: relative; }
.badge:hover .badge-core { transform: scale(1.14); }
.badge-core svg { width: 38%; height: 38%; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Pruh s fakty */
.facts { display: grid; grid-template-columns: repeat(2, 1fr); border-bottom: 1px solid var(--line); }
.facts > div { padding: 1.5rem 1.5rem 1.6rem 0; }
.facts > div + div { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.facts dt { font-size: var(--t-small); color: var(--ink-soft); margin-bottom: .2rem; }
.facts dd { margin: 0; font-weight: 600; font-size: var(--t-lead); line-height: 1.3; }
.facts dd small { display: block; font-size: var(--t-small); font-weight: 400; color: var(--ink-soft); margin-top: .2rem; }
.facts a { text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
@media (max-width: 760px) {
  .facts { grid-template-columns: 1fr; }
  .facts > div { padding: 1.1rem 0; }
  .facts > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}

/* Běžící pás se jmény */
.marquee { overflow: hidden; background: var(--pink); }
.marquee-track { padding-block: clamp(1rem, 2.2vw, 1.75rem); }
.checker { height: 20px; background: conic-gradient(var(--ink) 25%, transparent 0 50%, var(--ink) 0 75%, transparent 0) 0 0 / 20px 20px; }
.marquee-track { display: flex; width: max-content; animation: slide 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-set { display: flex; align-items: center; flex: none; }
.marquee-set span { font-size: clamp(1.6rem, 4.6vw, 3.75rem); white-space: nowrap; }
.marquee-set .sun { flex: none; width: clamp(1.5rem, 3.4vw, 2.75rem); aspect-ratio: 1; margin-inline: clamp(.9rem, 2vw, 2rem); animation: spin 9s linear infinite; }
@keyframes slide { to { transform: translateX(-50%); } }

/* Sekce */
.sec { padding-block: clamp(4rem, 10vw, 9rem); }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .75rem 2rem; margin-bottom: clamp(1.75rem, 4vw, 3.5rem); }
.sec-head h2 { margin: 0; font-size: var(--t-h2); overflow: hidden; padding-top: .2em; margin-top: -.2em; }
.sec-head h2 > span { display: block; }
.sec-head p { margin: 0 0 .5rem; color: var(--ink-soft); max-width: 24rem; }

/* O festivalu */
.about { display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); gap: 2rem; }
.about-label { color: var(--ink-soft); padding-top: .6rem; margin: 0 0 1.5rem; }
.about .flamingo { width: min(11rem, 100%); }
.statement { margin: 0; font-size: clamp(1.55rem, 3.7vw, 3.4rem); line-height: 1.16; font-weight: 500; letter-spacing: -0.02em; max-width: 62rem; }
.anim .statement .w { opacity: .18; transition: opacity .5s; }
.anim .statement .w.on { opacity: 1; }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; gap: 1.25rem; } .about-side { display: flex; align-items: flex-end; justify-content: space-between; } .about .flamingo { width: 6.5rem; } }

/* Řádky (lineup, ročníky) */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.rows > li { border-bottom: 1px solid var(--line); }
.row {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 1.5rem;
  padding: clamp(.8rem, 1.6vw, 1.35rem) 0; text-decoration: none; cursor: pointer; isolation: isolate;
  transition: color .3s, padding .45s var(--ease);
}
.row::before { content: ""; position: absolute; inset: 0 calc(var(--pad-l) * -1) 0 calc(var(--pad-l) * -1); background: var(--pink); z-index: -1; transform: scaleY(0); transform-origin: bottom; transition: transform .45s var(--ease); }
.row-name { font-size: clamp(1.75rem, 5.4vw, 4.6rem); min-width: 0; overflow-wrap: anywhere; }
.row-meta { color: var(--ink-soft); font-size: var(--t-small); transition: color .3s; }
.row-plus { width: clamp(2.25rem, 4vw, 3.25rem); aspect-ratio: 1; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; display: grid; place-items: center; transition: transform .45s var(--ease), background-color .3s, color .3s; }
.row-plus svg { width: 38%; height: 38%; }
@media (hover: hover) {
  .row:hover, .row:focus-visible { color: var(--ink); padding-left: clamp(.5rem, 1.5vw, 1.5rem); padding-right: clamp(.5rem, 1.5vw, 1.5rem); }
  .row:hover::before, .row:focus-visible::before { transform: scaleY(1); }
  .row:hover .row-meta { color: var(--ink-soft); }
  .row:hover .row-plus { transform: rotate(90deg); background: var(--ink); color: #fff; box-shadow: none; }
}
@media (max-width: 560px) { .row-meta { display: none; } }

/* Kurzor nad lineupem */
.peek { position: fixed; left: 0; top: 0; z-index: 30; pointer-events: none; width: 14rem; aspect-ratio: 4 / 5; margin: -8.75rem 0 0 -7rem; overflow: hidden; background: var(--yellow); border: 2px solid var(--ink); transform: translate3d(var(--x, 0px), var(--y, 0px), 0) rotate(var(--r, 0deg)); transition: scale .4s var(--ease), opacity .3s; scale: 0; opacity: 0; }
.peek.on { scale: 1; opacity: 1; }
.peek img { width: 100%; height: 100%; object-fit: cover; }
.peek.text { width: 7rem; aspect-ratio: 1; margin: -3.5rem 0 0 -3.5rem; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: var(--t-small); color: var(--ink); }

/* Vstupenky */
.tickets { position: relative; overflow: hidden; background: var(--pink); color: var(--ink); }
.tickets-in { position: relative; z-index: 1; }
.tickets { padding-bottom: clamp(10rem, 16vw, 14rem); }
.tickets .flamingo { position: absolute; right: max(20px, 6vw); bottom: .75rem; width: clamp(7rem, 10vw, 10rem); }
.anim .tickets .flamingo-pop { translate: 0 70%; transition: translate 1s .25s var(--ease); }
.anim .tickets.in .flamingo-pop { translate: 0 0; }
@media (max-width: 900px) { .tickets .flamingo { width: 6.5rem; } }
.tickets-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 2rem 4rem; }
.tickets h2 { margin: 0; font-size: clamp(2.3rem, 7.2vw, 7.25rem); line-height: 1.02; overflow: hidden; padding-top: .2em; }
.tickets h2 > span { display: block; }
.tickets-side { max-width: 24rem; padding-bottom: .5rem; }
.tickets-side p { margin: 0 0 1.5rem; }
.tickets-side strong { display: block; font-size: var(--t-lead); margin-bottom: .35rem; }
.tickets .btn { min-height: 3.75rem; padding: 0 2.25rem; font-size: 1.125rem; }
@media (max-width: 900px) { .tickets-in { grid-template-columns: 1fr; } }

/* Galerie */
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(17rem, 46vw, 42rem); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-left: var(--pad-l); padding-right: var(--pad-r); cursor: grab; }
.strip::-webkit-scrollbar { display: none; }
.strip.drag { cursor: grabbing; scroll-snap-type: none; }
.strip figure { margin: 0; scroll-snap-align: center; }
.strip img { width: 100%; aspect-ratio: 3 / 2; border: 2px solid var(--ink); object-fit: cover; user-select: none; -webkit-user-drag: none; }
.strip figcaption { font-size: var(--t-small); color: var(--ink-soft); padding-top: .5rem; }

/* Ročníky */
.year { display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); gap: 1rem 2rem; padding: clamp(1.25rem, 2.5vw, 2rem) 0; align-items: baseline; }
.year-n { font-size: clamp(2rem, 5vw, 4rem); font-variant-numeric: tabular-nums; }
.year-d { color: var(--ink-soft); font-size: var(--t-small); margin: 0 0 .3rem; }
.year p.year-l { margin: 0; font-size: var(--t-lead); line-height: 1.4; max-width: 46rem; }
@media (max-width: 760px) { .year { grid-template-columns: 1fr; gap: .4rem; } }

/* Partneři */
.partners { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem clamp(2rem, 6vw, 5rem); list-style: none; margin: 0 0 2rem; padding: 0; }
.partners { --logo-h: clamp(4.5rem, 8vw, 6rem); }
.partners li { display: grid; place-items: center; height: var(--logo-h); }
.partners a { display: block; line-height: 0; }
.partners img { height: var(--logo-h); width: auto; max-width: min(15rem, 70vw); object-fit: contain; transition: transform .3s var(--ease); }
.partners img[src*="hair-again"], .partners img[src*="kultura-rychnov"] { height: calc(var(--logo-h) * .55); }
.partners a:hover img { transform: scale(1.06) rotate(-2deg); }
.partners .pname { font-weight: 700; font-size: var(--t-lead); }
.partner-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; padding: clamp(1.25rem, 3vw, 2.25rem); background: var(--blue); border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.partner-cta p { margin: 0; font-size: var(--t-lead); font-weight: 500; max-width: 34rem; }

/* FAQ */
.faq { border-top: 1.5px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem; align-items: center; padding: 1.25rem 0; font-size: clamp(1.15rem, 2.2vw, 1.7rem); font-weight: 600; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { width: 2.25rem; aspect-ratio: 1; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; position: relative; transition: transform .45s var(--ease), background-color .3s; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 30%; right: 30%; top: calc(50% - 1px); height: 2px; background: currentColor; }
.faq summary i::after { transform: rotate(90deg); transition: transform .45s var(--ease); }
.faq details[open] summary i { transform: rotate(180deg); background: var(--pink); }
.faq details[open] summary i::after { transform: rotate(0deg); }
.faq details p { margin: 0; padding: 0 3.75rem 1.5rem 0; max-width: 46rem; color: var(--ink-soft); font-size: var(--t-lead); line-height: 1.5; animation: drop .45s var(--ease); }
@keyframes drop { from { opacity: 0; transform: translateY(-.5rem); } }

/* Patička s kontaktem */
.foot { background: var(--blue); color: var(--ink); overflow: hidden; padding-top: clamp(4rem, 9vw, 8rem); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; }
.foot h2 { margin: 0 0 1rem; font-size: var(--t-small); font-weight: 400; opacity: .75; }
.foot-mail { font-size: clamp(1.4rem, 3.6vw, 3rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; text-decoration: none; overflow-wrap: anywhere; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat; padding-bottom: .15em; transition: background-size .45s var(--ease); }
.foot-mail:hover { background-size: 0 2px; background-position: 100% 100%; }
.foot p { margin: 0; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.foot-word { margin: clamp(3rem, 8vw, 7rem) 0 -0.04em; font-size: 9.2vw; line-height: .8; white-space: nowrap; text-align: center; letter-spacing: -0.04em; user-select: none; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-block: 1.25rem calc(1.25rem + env(safe-area-inset-bottom, 0px)); font-size: var(--t-small); background: var(--ink); color: var(--yellow); }
.foot-base-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; width: 100%; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }

/* Karta interpreta a přehrávač */
dialog { padding: 0; border: 2px solid var(--ink); background: #fffbe6; color: var(--ink); }
dialog::backdrop { background: rgba(21, 21, 21, .62); }
dialog[open] { animation: pop .45s var(--ease); }
dialog[open]::backdrop { animation: fade .3s; }
@keyframes pop { from { opacity: 0; transform: translateY(2rem); } }
.x { position: absolute; top: .9rem; right: .9rem; z-index: 2; width: 2.75rem; aspect-ratio: 1; border-radius: 50%; border: 0; cursor: pointer; background: var(--ink); color: #fff; display: grid; place-items: center; transition: transform .4s var(--ease), background-color .3s; }
.x:hover { transform: rotate(90deg); background: var(--hot); color: var(--ink); }
.x svg { width: 36%; height: 36%; }
dialog.artist { width: min(64rem, calc(100vw - 2.5rem)); max-height: calc(100dvh - 2.5rem); overflow: auto; }
.a-in { position: relative; display: grid; gap: 12px; padding: 12px; }
.a-top { display: grid; grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); gap: clamp(1.25rem, 3vw, 2.5rem); }
.a-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; }
.a-blank { background: var(--blue); overflow: hidden; display: grid; place-items: end center; }
.a-blank { place-items: center; }
.a-blank .flamingo { width: 62%; }
.a-info { padding: clamp(1rem, 2.5vw, 2rem) 3.5rem 1rem 0; display: flex; flex-direction: column; min-width: 0; }
.a-info h3 { margin: 0 0 .75rem; font-size: clamp(1.9rem, 4.4vw, 3.4rem); overflow-wrap: anywhere; }
.a-sub { margin: 0 0 1.5rem; color: var(--ink-soft); }
.a-bio { margin: 0 0 1.5rem; max-width: 36rem; font-size: 1.0625rem; line-height: 1.55; }
.a-bio p { margin: 0 0 .75rem; }
.a-links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; }
.a-video, .player { position: relative; aspect-ratio: 16 / 9; background: var(--ink); overflow: hidden; }
.a-video iframe, .player iframe, .yt { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt { padding: 0; cursor: pointer; background: var(--ink); display: grid; place-items: center; }
.yt img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.yt:hover img { transform: scale(1.04); }
.yt-play { position: relative; width: 5rem; aspect-ratio: 1; border-radius: 50%; background: var(--pink); color: var(--ink); border: 2px solid var(--ink); display: grid; place-items: center; transition: transform .4s var(--ease); }
.yt:hover .yt-play { transform: scale(1.12); }
.yt-play svg { width: 34%; height: 34%; margin-left: 6%; }
.a-shots { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(13rem, 1fr); gap: 12px; overflow-x: auto; }
.a-shots img { width: 100%; aspect-ratio: 1; object-fit: cover; }
dialog.movie { width: min(76rem, calc(100vw - 2.5rem)); background: var(--ink); color: #fff; overflow: visible; }
dialog.movie .x { top: -3.4rem; right: 0; background: var(--yellow); color: var(--ink); }
dialog.movie p { margin: 0; padding: .9rem 1rem; font-size: var(--t-small); }
@media (max-width: 700px) {
  dialog.artist { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; }
  .a-top { grid-template-columns: 1fr; }
  .a-photo { aspect-ratio: 1; }
  .a-info { padding: .5rem .5rem 1rem; }
  dialog.movie { width: 100vw; max-width: 100vw; }
  dialog.movie .x { right: .75rem; }
}

/* Barevné bloky a vlnky */
.pool { background: var(--blue); }
.wave {
  --c: var(--blue);
  height: clamp(1.4rem, 2.6vw, 2.25rem); margin-bottom: -1px; background: var(--c);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 30' preserveAspectRatio='none'%3E%3Cpath d='M0 15 Q30 -4 60 15 T120 15 V30 H0Z'/%3E%3C/svg%3E") 0 0 / 7.5rem 100% repeat-x;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 30' preserveAspectRatio='none'%3E%3Cpath d='M0 15 Q30 -4 60 15 T120 15 V30 H0Z'/%3E%3C/svg%3E") 0 0 / 7.5rem 100% repeat-x;
  animation: wave 7s linear infinite;
}
@keyframes wave { to { -webkit-mask-position: 7.5rem 0; mask-position: 7.5rem 0; } }
.hero .wave { position: absolute; inset: auto 0 0; z-index: 1; }

/* Plameňák */
.flamingo { display: block; height: auto; transform-origin: 50% 100%; animation: strut .9s ease-in-out infinite; }
@keyframes strut { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-4%) rotate(2deg); } }
.menu .flamingo { position: absolute; right: 6%; top: 5.5rem; width: min(42vw, 30vh, 13rem); }

/* Provozní řád */
.foot-links { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; }
.foot-links a { color: inherit; text-underline-offset: 3px; }
dialog.doc { width: min(48rem, calc(100vw - 2.5rem)); max-height: calc(100dvh - 2.5rem); overflow: auto; }
.doc-in { position: relative; padding: clamp(1.5rem, 4vw, 3rem); }
.doc-in h2 { margin: 0 3.5rem 2rem 0; font-size: clamp(1.5rem, 3.4vw, 2.25rem); line-height: 1.1; letter-spacing: -0.02em; font-weight: 800; text-wrap: balance; }
.doc-list { margin: 0; padding: 0; list-style: none; counter-reset: sec; display: grid; gap: 1.75rem; }
.doc-list li { counter-increment: sec; display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); column-gap: .75rem; }
.doc-list li::before { content: counter(sec) "."; grid-row: 1 / span 20; font-weight: 800; font-size: 1.125rem; line-height: 1.4; }
.doc-list h3 { margin: 0 0 .5rem; font-size: 1.125rem; line-height: 1.4; }
.doc-list p { margin: 0 0 .4rem; max-width: 40rem; color: var(--ink-soft); }
.doc-valid { margin: 2rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); font-size: var(--t-small); color: var(--ink-soft); }
@media (max-width: 700px) { dialog.doc { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; } }

/* Animace při scrollu – zapínají se jen s JavaScriptem (třída .anim) */
.anim [data-rise] > span { transform: translateY(115%); transition: transform 1s var(--ease); }
.anim [data-rise].in > span { transform: none; }
.anim [data-fade] { opacity: 0; transform: translateY(1.75rem); transition: opacity .8s, transform .9s var(--ease); transition-delay: var(--d, 0s); }
.anim [data-fade].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .marquee-track { flex-wrap: wrap; width: auto; }
  .marquee-set[aria-hidden] { display: none; }
  .wave { -webkit-mask-position: 0 0; mask-position: 0 0; }
  .marquee-set { flex-wrap: wrap; row-gap: .5rem; padding-left: var(--pad-l); }
}
dialog:focus, dialog:focus-visible { outline: none; }

/* Logo v navigaci: černé na barevné liště, bílé přes video v hlavičce */
.brand { display: block; line-height: 0; }
.brand img { height: clamp(2rem, 3.6vw, 3rem); width: auto; filter: invert(1); transition: filter .3s; }
.nav.solid .brand img, .menu-open .brand img { filter: none; }
.partners img[src*="kultura-rychnov"] { max-width: min(19rem, 80vw); }

/* Velké slunce u častých dotazů */
.faq-head { flex-wrap: nowrap; align-items: center; }
.faq-head h2 { min-width: 0; }
.big-sun { flex: none; width: clamp(4rem, 10vw, 9.5rem); height: auto; pointer-events: none; animation: spin 40s linear infinite; }
