/* RADIO SCORPIO — KIOSK  (brutalist b/w + acid yellow, same house style as
   www.radioscorpio.be, tuned for a screen read from a few metres away) */

:root {
  --ink: #0a0a0a;
  --paper: #f4f2ec;
  --accent: #e6ff00;
  --mute: #8f8d84;
  --live: #e6283f;
  --hair: 1px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%; height: 100%;
  background: var(--ink); color: var(--paper);
  overflow: hidden;
  cursor: none; /* unattended public display */
}

body {
  font-family: "Archivo", -apple-system, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }

#kiosk {
  position: relative;
  width: 100vw; height: 100dvh;
  overflow: hidden;
  background:
    linear-gradient(rgba(244,242,236,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244,242,236,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
}

.display {
  font-family: "Archivo", sans-serif;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 0.86;
  text-transform: uppercase;
}
.mono {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
}

/* ---- Corner brand mark ------------------------------------------------ */
.k-corner {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px 44px;
  pointer-events: none;
}
.k-corner .brand { display: flex; align-items: center; gap: 14px; }
.k-corner img { height: 34px; width: auto; filter: invert(1) brightness(1.6); opacity: 0.92; }
.k-corner .brand b {
  font-family: "JetBrains Mono", monospace;
  font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase;
  opacity: 0.75;
}
.k-clock {
  text-align: right;
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.04em;
  opacity: 0.85;
}
.k-clock .time { font-size: 26px; font-weight: 700; }
.k-clock .date { font-size: 13px; opacity: 0.7; text-transform: uppercase; letter-spacing: 0.12em; margin-top: 2px; }

/* ---- Stage / slides ---------------------------------------------------- */
.k-stage {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.k-slide {
  position: absolute; inset: 0;
  display: none;
  align-items: center;
  padding: 0 88px;
}
.k-slide.is-active { display: flex; }
.k-slide.is-entering { animation: slideIn 480ms cubic-bezier(.2,.8,.2,1) both; }
@keyframes slideIn {
  from { opacity: 0; transform: translateX(48px); }
  to   { opacity: 1; transform: translateX(0); }
}

.k-eyebrow {
  display: flex; align-items: center; gap: 18px;
  font-family: "JetBrains Mono", monospace;
  font-size: 22px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}
.k-live-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--live); color: var(--paper);
  padding: 6px 16px 6px 12px;
  font-size: 16px; font-weight: 700;
  animation: liveFlash 1.8s ease-in-out infinite;
}
@keyframes liveFlash {
  0%, 100% { opacity: 1; } 50% { opacity: 0.62; }
}
.k-dot {
  width: 12px; height: 12px; border-radius: 999px; background: currentColor;
  display: inline-block;
}

/* ---- ON AIR / NEXT show layout ----------------------------------------- */
.k-show { display: flex; align-items: center; gap: 72px; width: 100%; }
.k-show-logowrap {
  flex: 0 0 auto;
  width: 320px; height: 320px;
  border: 3px solid var(--paper);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background: #111;
  animation: logoPunch 620ms cubic-bezier(.2,.8,.2,1) both;
}
@keyframes logoPunch {
  from { opacity: 0; transform: scale(1.18); }
  to   { opacity: 1; transform: scale(1); }
}
.k-show-logowrap img { width: 100%; height: 100%; object-fit: cover; }
.k-show-logowrap.is-fallback { background: var(--ink); }
.k-show-logowrap.is-fallback img { width: 62%; height: 62%; object-fit: contain; filter: invert(1); margin: auto; }

.k-show-body { flex: 1 1 auto; min-width: 0; }
.k-show-title {
  font-size: clamp(56px, 7.4vw, 132px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 0.9;
  text-transform: uppercase;
  word-break: break-word;
}
.k-show-title .accent { color: var(--accent); }
.k-show-sub {
  margin-top: 18px;
  font-family: "JetBrains Mono", monospace;
  font-size: 22px; letter-spacing: 0.04em;
  color: var(--mute);
  display: flex; gap: 18px; flex-wrap: wrap;
}
.k-show-sub b { color: var(--paper); font-weight: 600; }

.k-tags { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.k-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 17px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 10px 18px;
  border: 2px solid var(--accent);
  color: var(--accent);
  opacity: 0;
  animation: tagIn 460ms cubic-bezier(.2,.8,.2,1) forwards, tagFloat 3.2s ease-in-out infinite;
  animation-delay: var(--d, 0ms), calc(var(--d, 0ms) + 460ms);
}
@keyframes tagIn {
  from { opacity: 0; transform: translateY(18px) rotate(-4deg) scale(0.85); }
  to   { opacity: 1; transform: translateY(0) rotate(0) scale(1); }
}
@keyframes tagFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* ---- ABOUT slide -------------------------------------------------------- */
.k-about { width: 100%; position: relative; }
.k-about-mark {
  font-size: clamp(70px, 11vw, 210px);
  font-weight: 900; letter-spacing: -0.04em; line-height: 0.82;
  text-transform: uppercase;
}
.k-about-mark em { font-style: italic; color: var(--accent); }
.k-about-mark sup { font-size: 0.42em; vertical-align: top; line-height: 1; }
.k-stats {
  margin-top: 48px;
  font-family: "JetBrains Mono", monospace;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 2px solid rgba(244,242,236,0.25);
  padding-top: 24px; gap: 28px;
}
.k-stats b { display: block; font-size: 24px; color: var(--paper); font-weight: 700; }
.k-stats span { display: block; margin-top: 6px; font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mute); }
.k-scorpion {
  position: absolute; right: -60px; top: -140px;
  width: 460px; overflow: visible;
  /* Translucency baked into the color (path fill is currentColor) rather
     than element `opacity` — animating `transform` on a fractional-opacity
     element promotes it to its own compositing layer, and that layer's
     rectangular edge shows up as a faint box against the solid black bg. */
  color: rgba(244, 242, 236, 0.07);
  animation: scorpionDrift 22s ease-in-out infinite;
  pointer-events: none;
}
@keyframes scorpionDrift {
  0%, 100% { transform: rotate(-10deg) translate(0,0); }
  50%      { transform: rotate(-6deg) translate(-18px, 12px); }
}

/* ---- FOLLOW / QR slide ---------------------------------------------------- */
.k-qr-grid { width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; align-items: stretch; }
.k-qr-card {
  border: 2px solid var(--paper);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 32px 20px;
  text-align: center;
  opacity: 0;
  animation: cardIn 420ms cubic-bezier(.2,.8,.2,1) forwards;
  animation-delay: var(--d, 0ms);
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.k-qr-card.is-accent { background: var(--accent); border-color: var(--ink); }
.k-qr-card.is-accent .k-qr-label, .k-qr-card.is-accent .k-qr-label b { color: var(--ink); }
.k-qr-img {
  width: 148px; height: 148px;
  border: 2px solid var(--ink);
  padding: 8px;
  background: var(--paper);
}
.k-qr-img svg { display: block; width: 100%; height: 100%; }
.k-qr-img svg rect { fill: var(--paper); }
.k-qr-img svg path { fill: var(--ink); }
.k-qr-label {
  margin-top: 18px;
  font-family: "JetBrains Mono", monospace;
  font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase;
}
.k-qr-label b { display: block; font-size: 20px; font-weight: 700; margin-bottom: 4px; letter-spacing: 0.02em; }

/* ---- Ticker ------------------------------------------------------------ */
.k-ticker {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 20;
  height: 56px;
  background: var(--accent); color: var(--ink);
  overflow: hidden;
  border-top: 3px solid var(--ink);
}
.k-ticker-track {
  display: flex; align-items: center;
  height: 100%;
  width: max-content;
  animation: ticker 34s linear infinite;
}
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.k-ticker-seg {
  display: flex; align-items: center; gap: 40px;
  padding-right: 40px;
  font-family: "JetBrains Mono", monospace;
  font-size: 18px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  white-space: nowrap;
}
.k-ticker-seg .sep { opacity: 0.5; }
.k-ticker-seg .live { color: var(--live); }

/* ---- Progress dots ------------------------------------------------------ */
.k-progress {
  position: absolute; left: 44px; bottom: 72px; z-index: 20;
  display: flex; gap: 10px;
}
.k-progress i {
  width: 34px; height: 4px; background: rgba(244,242,236,0.25);
  display: block; position: relative; overflow: hidden;
}
.k-progress i.is-done { background: var(--paper); }
.k-progress i.is-active::after {
  content: ''; position: absolute; inset: 0; background: var(--paper);
  animation: fillbar linear forwards;
  animation-duration: var(--dur, 10s);
}
@keyframes fillbar { from { width: 0; } to { width: 100%; } }

/* ---- Loading / error ----------------------------------------------------- */
.k-status {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: "JetBrains Mono", monospace; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--mute); font-size: 18px;
}

/* ---- Small screens (fallback, kiosk is normally a fixed large display) --- */
@media (max-width: 900px) {
  .k-slide { padding: 0 32px; }
  .k-show { flex-direction: column; text-align: center; gap: 28px; }
  .k-show-logowrap { width: 180px; height: 180px; }
  .k-show-sub { justify-content: center; }
  .k-tags { justify-content: center; }
  .k-stats { grid-template-columns: 1fr 1fr; }
  .k-qr-grid { grid-template-columns: 1fr 1fr; }
  .k-corner { padding: 16px 20px; }
  .k-corner img { height: 22px; }
  .k-clock .time { font-size: 18px; }
}
