/* ─────────────────────────────────────────────────────────────
   NOVÝ SINGL — GO! (Rest feat. Masta Ace, prod. Idea)
   Obří „GO!“ přes celou šířku, písmena vyplněná záběrem z klipu,
   který se v nich pomalu posouvá. Klik → nápis se rozevře do
   přehrávače. YouTube se načte až po kliknutí.
   ───────────────────────────────────────────────────────────── */

.single {
  --thumb: none; /* záběr dosadí single.js v nejlepším dostupném rozlišení */
}
.single-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-dim);
}
.single-top p { margin: 0; display: flex; align-items: center; gap: 0.55rem; }
.single-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--ink);
  animation: single-blink 1.6s ease-in-out infinite;
}
@keyframes single-blink { 50% { opacity: 0.2; } }

/* ── jeviště: nápis / přehrávač ── */
.single-stage {
  position: relative;
  margin: 1rem 0 1.75rem;
}
.single-word {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: center;
}
.single-go {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-variation-settings: "opsz" 96;
  font-size: clamp(7rem, 46vw, 34rem);
  line-height: 0.82;
  letter-spacing: -0.045em;
  /* záběr z klipu uvnitř písmen; obrys drží tvar, i kdyby se obrázek nenačetl */
  color: transparent;
  -webkit-text-stroke: 2px var(--ink);
  background:
    linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.15)),
    var(--thumb) center 45% / 125% auto no-repeat;
  -webkit-background-clip: text;
          background-clip: text;
  filter: grayscale(1) contrast(1.25);
  animation: single-pan 18s ease-in-out infinite alternate;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), letter-spacing 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
/* plné rozlišení (1280×720, bez černých pruhů) — nastaví single.js, když existuje */
.single.is-hd .single-go {
  background-size: auto, cover;
}
@keyframes single-pan {
  from { background-position: center 45%, 20% 40%; }
  to   { background-position: center 45%, 80% 55%; }
}
.single-word:hover .single-go {
  transform: scale(1.015);
  letter-spacing: -0.03em;
}
.single-hint {
  position: absolute;
  left: 50%;
  bottom: 12%;
  padding: 0.55rem 0.9rem;
  background: var(--ink);
  color: var(--invert);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  transform: translate(-50%, 0.6rem);
  opacity: 0;
  transition: opacity 0.3s, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}
.single-word:hover .single-hint,
.single-word:focus-visible .single-hint { opacity: 1; transform: translate(-50%, 0); }

/* nápis se rozevře do přehrávače */
.single.is-playing .single-word { display: none; }
.single-player {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
  box-shadow: var(--shadow);
  animation: single-open 0.8s cubic-bezier(0.7, 0, 0.2, 1) both;
}
.single-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
@keyframes single-open {
  from { clip-path: inset(30% 12% 30% 12%); opacity: 0.4; }
  to   { clip-path: inset(0); opacity: 1; }
}

/* ── popisky pod nápisem ── */
.single-bottom {
  display: grid;
  gap: 1rem 2rem;
  align-items: end;
  padding-top: 1.5rem;
  border-top: 1px solid var(--ink);
}
.single-who {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1;
  text-transform: uppercase;
}
.single-who i {
  margin: 0 0.25em;
  font-family: var(--font-mono);
  font-style: normal;
  font-weight: 400;
  font-size: 0.42em;
  text-transform: none;
  color: var(--ink-faint);
  vertical-align: 0.35em;
}
.single-lede {
  margin: 0;
  max-width: 36ch;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--ink-dim);
}
.single-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}
@media (min-width: 1024px) {
  .single-bottom { grid-template-columns: auto minmax(0, 1fr) auto; }
}

@media (prefers-reduced-motion: reduce) {
  .single-go, .single-dot, .single-player { animation: none; }
  .single-go, .single-hint { transition: none; }
}

/* hero odkaz na singl */
.hero-new {
  color: var(--ink);
  text-decoration: underline 1px var(--ink-faint);
  text-underline-offset: 4px;
}
.hero-new:hover { text-decoration-color: var(--ink); }
