/* El Nido Radio — xerox zine look: paper, ink, one loud red. */
:root {
  --paper: #efebe1;
  --paper-2: #e3ddcf;
  --ink: #111;
  --red: #e3241b;
  --pink: #ff4fa3;
  --grey: #8a857a;
  --display: "Archivo Black", Impact, sans-serif;
  --type: "Special Elite", "Courier New", monospace;
  --mono: "Space Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.radio-body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
}
a { color: inherit; }

/* photocopy grain */
.radio-noise {
  position: fixed; inset: 0; pointer-events: none; z-index: 50; opacity: .22; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- header ---------- */
.radio-top {
  position: relative;
  display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center;
  padding: 22px 16px 26px;
  background: var(--ink); color: var(--paper);
  border-bottom: 6px solid var(--red);
}
.radio-logo img {
  display: block; width: 104px; height: 104px; border-radius: 50%;
  background: #fff; transform: rotate(-6deg);
  box-shadow: 5px 5px 0 var(--red);
  animation: radio-spin 24s linear infinite paused;
}
.radio-body.playing .radio-logo img { animation-play-state: running; }
@keyframes radio-spin { to { transform: rotate(354deg); } }
.radio-brand { padding-right: 34px; }
.radio-kicker { margin: 0 0 4px; font-family: var(--type); font-size: 14px; color: #cfc8b8; }
.radio-brand h1 {
  margin: 0; font-family: var(--display); font-weight: 400;
  font-size: clamp(44px, 13vw, 96px); line-height: .82; letter-spacing: -1px;
}
.radio-brand h1 span {
  display: inline-block; background: var(--red); color: var(--ink);
  padding: 2px 10px 0; margin-top: 6px; transform: rotate(-2deg);
}
.radio-tag { margin: 10px 0 0; font-family: var(--type); font-size: 15px; }
.radio-lang {
  position: absolute; top: 14px; right: 14px;
  font: 700 12px var(--mono); padding: 6px 10px;
  background: transparent; color: var(--paper); border: 2px solid var(--paper); cursor: pointer;
}

/* ---------- layout ---------- */
.radio-main {
  display: grid; gap: 34px;
  max-width: 1080px; margin: 0 auto; padding: 28px 16px 40px;
}
.radio-main h2 {
  margin: 0 0 12px; font-family: var(--display); font-weight: 400;
  font-size: clamp(26px, 7vw, 40px); line-height: .95; letter-spacing: -.5px;
}
@media (min-width: 900px) {
  .radio-top { grid-template-columns: auto 1fr; padding: 34px max(24px, calc(50vw - 520px)); }
  .radio-logo img { width: 150px; height: 150px; }
  .radio-main { grid-template-columns: 1.35fr 1fr; align-items: start; }
  .radio-onair { grid-row: span 2; }
  .radio-wall, .radio-schedule { grid-column: 1 / -1; }
}

/* ---------- on air ---------- */
.radio-onair {
  background: var(--ink); color: var(--paper);
  padding: 14px; box-shadow: 8px 8px 0 var(--red);
}
.radio-onair-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 12px; }
.radio-live { display: inline-flex; align-items: center; gap: 7px; background: var(--red); color: #fff; padding: 3px 9px; font: 700 12px var(--mono); letter-spacing: 1px; }
.radio-live i { width: 9px; height: 9px; border-radius: 50%; background: #fff; animation: radio-blink 1.2s steps(2) infinite; }
@keyframes radio-blink { 50% { opacity: .15; } }
.radio-onair .radio-show { margin: 0; font-size: 22px; color: var(--paper); }
.radio-clock { margin-left: auto; font: 700 13px var(--mono); color: #cfc8b8; }

.radio-screen { position: relative; aspect-ratio: 16 / 9; background: #000; border: 3px solid var(--paper); overflow: hidden; }
.radio-screen iframe, #radio-player { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.radio-tune {
  position: absolute; inset: 0; z-index: 2;
  display: grid; place-content: center; justify-items: center; gap: 6px;
  width: 100%; border: 0; cursor: pointer; color: var(--paper);
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 2px, transparent 2px 4px),
    radial-gradient(circle at 50% 45%, #2a2a2a, #000 70%);
  font-family: var(--mono);
}
.radio-tune img { width: 28%; max-width: 150px; border-radius: 50%; background: #fff; opacity: .9; filter: contrast(1.2); }
.radio-tune-play {
  display: grid; place-items: center; width: 62px; height: 62px; margin-top: -30px; position: relative; z-index: 1;
  border-radius: 50%; background: var(--red); color: #fff; font-size: 26px; padding-left: 5px;
  box-shadow: 0 0 0 5px var(--ink);
}
.radio-tune strong { font-family: var(--display); font-weight: 400; font-size: 26px; letter-spacing: 1px; }
.radio-tune small { font-size: 12px; color: #cfc8b8; }
.radio-tune:hover .radio-tune-play { transform: scale(1.06); }
.radio-body.tuned .radio-tune { display: none; }

.radio-voice-overlay {
  position: absolute; inset: 0; z-index: 3;
  display: grid; place-content: center; justify-items: center; text-align: center; gap: 4px;
  background: var(--red); color: var(--ink);
}
.radio-voice-overlay[hidden] { display: none; }
.radio-voice-label { margin: 8px 0 0; font: 700 13px var(--mono); letter-spacing: 2px; }
.radio-voice-who { margin: 0; padding: 0 12px; font-family: var(--display); font-size: clamp(22px, 6vw, 38px); line-height: 1; }
.radio-wave { display: flex; gap: 5px; height: 46px; align-items: center; }
.radio-wave i { width: 7px; height: 30%; background: var(--ink); animation: radio-wave 0.9s ease-in-out infinite; }
.radio-wave i:nth-child(2n) { animation-delay: -.3s; } .radio-wave i:nth-child(3n) { animation-delay: -.55s; }
@keyframes radio-wave { 50% { height: 100%; } }

.radio-now { margin-top: 14px; }
.radio-now-label, .radio-next-label { margin: 0; font: 700 11px var(--mono); letter-spacing: 2px; text-transform: uppercase; color: var(--red); }
.radio-now-title { margin: 2px 0 0; font-family: var(--display); font-size: clamp(22px, 5.5vw, 32px); line-height: 1.02; }
.radio-now-artist { margin: 4px 0 0; font-family: var(--type); font-size: 17px; color: #d9d2c2; }
.radio-progress { height: 5px; margin-top: 12px; background: #333; }
.radio-progress i { display: block; height: 100%; width: 0; background: var(--red); transition: width 1s linear; }

.radio-next { margin-top: 16px; border-top: 2px dashed #444; padding-top: 12px; }
.radio-next ol { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; }
.radio-next li { display: flex; gap: 10px; align-items: baseline; font-size: 14px; }
.radio-next li b { font-family: var(--display); font-weight: 400; color: var(--paper); }
.radio-next li span { color: #aaa296; }
.radio-next li em { margin-left: auto; font-style: normal; font-size: 12px; color: #777; }

/* ---------- mic ---------- */
.radio-mic {
  position: relative; background: #fff; padding: 20px 16px 18px;
  border: 3px solid var(--ink); box-shadow: 8px 8px 0 var(--ink);
  transform: rotate(.6deg);
}
.radio-mic::before {
  content: ""; position: absolute; top: -12px; left: 40%; width: 90px; height: 24px;
  background: rgba(255, 230, 120, .75); transform: rotate(-4deg);
}
.radio-mic-copy { margin: 0 0 16px; font-family: var(--type); font-size: 16px; }
.radio-rec { display: grid; justify-items: center; gap: 6px; padding: 6px 0 4px; }
.radio-rec-btn {
  display: grid; place-items: center;
  width: 124px; height: 124px; border-radius: 50%; cursor: pointer;
  background: var(--red); color: #fff; border: 5px solid var(--ink);
  box-shadow: 0 6px 0 var(--ink); transition: transform .1s;
}
.radio-rec-btn svg { width: 54px; height: 54px; fill: currentColor; }
.radio-rec-btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--ink); }
.radio-rec.recording .radio-rec-btn { background: var(--ink); color: var(--red); animation: radio-pulse 1s ease-in-out infinite; }
.radio-rec.recording .radio-rec-btn svg { display: none; }
.radio-rec.recording .radio-rec-btn::after { content: ""; width: 38px; height: 38px; background: var(--red); }
@keyframes radio-pulse { 50% { box-shadow: 0 6px 0 var(--ink), 0 0 0 14px rgba(227, 36, 27, .25); } }
.radio-rec-state { margin: 6px 0 0; font-family: var(--display); font-size: 20px; }
.radio-rec-time { margin: 0; font: 700 14px var(--mono); color: var(--grey); }
.radio-send { display: grid; gap: 12px; margin-top: 14px; }
.radio-send[hidden] { display: none; }
.radio-send audio { width: 100%; }
.radio-send label { display: grid; gap: 4px; font: 700 12px var(--mono); text-transform: uppercase; letter-spacing: 1px; }
.radio-send input {
  font: 16px var(--mono); padding: 10px 12px; border: 3px solid var(--ink); background: var(--paper); border-radius: 0;
}
.radio-send-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-btn {
  font: 400 16px var(--display); letter-spacing: .5px; padding: 12px 16px; cursor: pointer;
  background: var(--ink); color: var(--paper); border: 3px solid var(--ink); border-radius: 0;
}
.radio-btn.ghost { background: transparent; color: var(--ink); font-family: var(--mono); font-weight: 700; font-size: 13px; }
.radio-btn:disabled { opacity: .5; }
.radio-fine { margin: 0; font-size: 12px; color: var(--grey); }
.radio-status { margin: 12px 0 0; font-weight: 700; min-height: 1em; }
.radio-status.ok { color: #127a2a; } .radio-status.err { color: var(--red); }

/* ---------- voices list ---------- */
.radio-voice-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.radio-voice-list li {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  background: var(--paper-2); border-left: 6px solid var(--ink);
}
.radio-voice-list li button {
  flex: none; width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--ink); color: var(--paper); font-size: 14px;
}
.radio-voice-list li b { font-family: var(--display); font-weight: 400; }
.radio-voice-list li span { display: block; font-family: var(--type); color: #555; }
.radio-empty { font-family: var(--type); color: #555; border-left-color: var(--red) !important; }

/* ---------- photo wall ---------- */
.radio-wall-copy { margin: -4px 0 16px; font-family: var(--type); }
.radio-polaroids { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 18px; }
.radio-polaroids figure { margin: 0; background: #fff; padding: 8px 8px 12px; box-shadow: 0 3px 10px rgba(0,0,0,.18); }
.radio-polaroids .ph {
  aspect-ratio: 1; background:
    repeating-linear-gradient(45deg, #d8d2c4 0 8px, #cfc8b8 8px 16px);
  display: grid; place-items: center;
}
.radio-polaroids figure:first-child .ph { background: url("/ambiente-el-nido-2.jpg") center / cover; filter: grayscale(1) contrast(1.3); }
.radio-polaroids figcaption { margin-top: 8px; font-family: var(--type); font-size: 14px; text-align: center; }
.tilt-a { transform: rotate(-3deg); } .tilt-b { transform: rotate(2deg); } .tilt-c { transform: rotate(-1deg); } .tilt-d { transform: rotate(3deg); }

/* ---------- schedule ---------- */
.radio-schedule .radio-fine { margin: -6px 0 12px; }
.radio-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.radio-grid li { display: grid; gap: 2px; padding: 14px; border: 3px solid var(--ink); background: var(--paper); }
.radio-grid li b { font: 700 12px var(--mono); letter-spacing: 2px; }
.radio-grid li span { font-family: var(--display); font-size: 22px; line-height: 1; }
.radio-grid li em { font-style: normal; font-family: var(--type); color: var(--grey); }
.radio-grid li.on { background: var(--ink); color: var(--paper); box-shadow: 6px 6px 0 var(--red); }
.radio-grid li.on em { color: var(--red); }

/* ---------- footer ---------- */
.radio-foot { padding: 22px 16px 34px; background: var(--ink); color: #cfc8b8; font-size: 12px; text-align: center; }
.radio-foot p { margin: 4px auto; max-width: 640px; }

/* ---------- admin ---------- */
.radio-admin { max-width: 760px; margin: 0 auto; padding: 20px 16px 60px; }
.radio-admin-head { display: flex; gap: 14px; align-items: center; }
.radio-admin-head img { width: 70px; border-radius: 50%; background: #fff; }
.radio-admin-head h1 { margin: 0; font-family: var(--display); font-weight: 400; }
.radio-admin h2 { font-family: var(--display); font-weight: 400; margin-top: 28px; }
.radio-admin-item { background: #fff; border: 3px solid var(--ink); padding: 12px; margin-bottom: 12px; }
.radio-admin-item p { margin: 0 0 8px; }
.radio-admin-item audio { width: 100%; }
.radio-admin-actions { display: flex; gap: 10px; margin-top: 8px; }
.radio-admin-actions form { margin: 0; }

/* =================== v2: posts, wall, overlay =================== */
.radio-voice-overlay { overflow: hidden; }
.radio-voice-bg, .radio-voice-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.radio-voice-bg { filter: grayscale(1) contrast(1.25); opacity: .45; mix-blend-mode: multiply; }
.radio-voice-bg[hidden], .radio-voice-video[hidden], .radio-wave[hidden] { display: none; }
.radio-voice-video { object-fit: contain; background: #000; }
.radio-voice-card { position: relative; display: grid; justify-items: center; gap: 4px; }
.radio-voice-overlay.is-video .radio-voice-card {
  position: absolute; left: 10px; bottom: 10px; justify-items: start; text-align: left;
  background: var(--red); padding: 6px 10px 8px;
}
.radio-voice-overlay.is-video .radio-voice-label { margin: 0; font-size: 10px; }
.radio-voice-overlay.is-video .radio-voice-who { font-size: 15px; padding: 0; }
.radio-voice-label em { font-style: normal; opacity: .7; }
.radio-awake { margin: 8px 0 0; font-size: 12px; color: #cfc8b8; }
.radio-awake[hidden] { display: none; }

/* mode switch */
.radio-modes { display: grid; grid-template-columns: repeat(3, 1fr); border: 3px solid var(--ink); margin-bottom: 16px; }
.radio-modes button {
  padding: 10px 4px; border: 0; border-right: 3px solid var(--ink); background: var(--paper); cursor: pointer;
  font: 400 15px var(--display); color: var(--ink);
}
.radio-modes button:last-child { border-right: 0; }
.radio-modes button.on { background: var(--ink); color: var(--paper); }
.radio-modes button span { font-size: 16px; }

.radio-rec.photo-mode { display: none; }
.radio-rec-btn[hidden], .radio-rec-time[hidden] { display: none; }
.radio-cam { position: relative; width: 100%; max-width: 360px; aspect-ratio: 1; background: #000; border: 3px solid var(--ink); margin-bottom: 10px; overflow: hidden; }
.radio-cam[hidden] { display: none; }
.radio-cam video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.radio-cam video[hidden] { display: none; }
.radio-cam video.mirror { transform: scaleX(-1); }
.radio-flip {
  position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid #fff; background: rgba(0,0,0,.5); color: #fff; font-size: 20px; cursor: pointer;
}
.radio-flip[hidden] { display: none; }
.radio-rec.recording .radio-cam { border-color: var(--red); box-shadow: 0 0 0 4px var(--red); }
.radio-rec audio { width: 100%; margin-top: 8px; }
.radio-rec audio[hidden] { display: none; }

/* photo picker */
.radio-send { margin-top: 18px; }
.radio-photo-pick {
  display: flex !important; grid-template-columns: none; align-items: center; gap: 12px !important;
  padding: 10px; border: 3px dashed var(--ink); background: var(--paper); cursor: pointer;
  text-transform: none !important; letter-spacing: 0 !important;
}
.radio-photo-pick input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.radio-photo-thumb {
  flex: none; display: grid; place-items: center; width: 60px; height: 60px;
  background: #fff center / cover no-repeat; border: 2px solid var(--ink); font-size: 26px;
}
.radio-photo-pick b { display: block; font: 400 17px var(--display); }
.radio-photo-pick small { font: 12px var(--mono); color: var(--grey); }
.radio-photo-pick.has-photo { border-style: solid; background: #fff; }
.radio-rec.photo-mode + .radio-send .radio-photo-pick { border-color: var(--red); }
.radio-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* listeners wall: horizontal strip, newest first */
.radio-wall-head { display: flex; align-items: end; justify-content: space-between; gap: 10px; }
.radio-wall-nav { display: none; gap: 6px; margin-bottom: 12px; }
.radio-wall-nav button { width: 42px; height: 42px; border: 3px solid var(--ink); background: var(--paper); font: 700 18px var(--mono); cursor: pointer; }
.radio-wall-nav button:hover { background: var(--ink); color: var(--paper); }
@media (hover: hover) { .radio-wall-nav { display: flex; } }
.radio-strip {
  display: flex; align-items: stretch; gap: 16px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; padding: 10px 4px 20px; margin: 0 -16px; padding-left: 16px; padding-right: 16px;
  scrollbar-width: thin; scrollbar-color: var(--ink) transparent;
}
.radio-day {
  flex: none; scroll-snap-align: start; writing-mode: vertical-rl; transform: rotate(180deg);
  align-self: stretch; display: grid; place-items: center; padding: 8px 4px;
  background: var(--ink); color: var(--paper); font: 700 12px var(--mono); letter-spacing: 3px;
}
.radio-card {
  flex: none; width: 168px; scroll-snap-align: start; display: grid; gap: 2px; align-content: start;
  margin: 0; padding: 8px 8px 10px; background: #fff; border: 0; text-align: left; cursor: pointer;
  box-shadow: 0 3px 10px rgba(0,0,0,.18); color: var(--ink); text-decoration: none; font: inherit;
}
.radio-card-img {
  position: relative; display: grid; place-items: center; aspect-ratio: 1; overflow: hidden; margin-bottom: 6px;
  background: repeating-linear-gradient(45deg, #d8d2c4 0 8px, #cfc8b8 8px 16px); font-size: 40px;
}
.radio-card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.radio-card b { font: 400 15px var(--display); line-height: 1.1; }
.radio-card small { font-family: var(--type); color: #555; }
.radio-badge {
  position: absolute; right: 6px; bottom: 6px; display: grid; place-items: center; width: 32px; height: 32px;
  border-radius: 50%; background: var(--red); color: #fff; font-style: normal; font-size: 14px;
}
.radio-card-cta { border: 3px dashed var(--ink); box-shadow: none; background: var(--paper); }
.radio-card-cta .radio-card-img { background: var(--paper-2); }

/* lightbox */
.radio-lightbox { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,.88); }
.radio-lightbox[hidden] { display: none; }
.radio-lightbox-body { display: grid; gap: 10px; max-width: min(92vw, 560px); max-height: 88vh; overflow: auto; color: var(--paper); }
.radio-lightbox-body img, .radio-lightbox-body video { width: 100%; max-height: 62vh; object-fit: contain; background: #000; border: 3px solid var(--paper); }
.radio-lightbox-body audio { width: 100%; }
.radio-lightbox-body p { margin: 0; font-family: var(--type); font-size: 18px; }
.radio-lightbox-body b { font-family: var(--display); font-weight: 400; }
.radio-lightbox-close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 2px solid var(--paper); background: transparent; color: var(--paper); font-size: 20px; cursor: pointer; }

/* "more below" arrow on phones */
.radio-more {
  position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 40;
  display: none; align-items: center; gap: 6px; transform: translateX(-50%);
  padding: 8px 14px 8px 16px; border: 3px solid var(--ink); border-radius: 999px;
  background: var(--red); color: #fff; font: 700 13px var(--mono); letter-spacing: 1px; text-transform: uppercase;
  box-shadow: 0 4px 0 var(--ink); cursor: pointer;
}
.radio-more i { font-style: normal; font-size: 18px; animation: radio-bob 1.1s ease-in-out infinite; }
@keyframes radio-bob { 50% { transform: translateY(4px); } }
@media (max-width: 899px) { .radio-more.show { display: inline-flex; } }
.radio-body.posted .radio-more { background: var(--ink); animation: radio-pop .5s ease-out 2; }
@keyframes radio-pop { 50% { transform: translateX(-50%) scale(1.12); } }

/* schedule: highlight today */
.radio-grid li em { font-size: 13px; }
.radio-grid li.on::after { content: "● AL AIRE HOY"; font: 700 11px var(--mono); letter-spacing: 1px; color: var(--red); margin-top: 6px; }
html[lang="en"] .radio-grid li.on::after { content: "● ON AIR TODAY"; }
@media (min-width: 900px) { .radio-mic { grid-row: span 1; } }
.radio-main > * { min-width: 0; }
body.radio-body { overflow-x: clip; }

/* =================== v3: shows, sheet, schedule blocks, DJ booth =================== */
.radio-onair-head { display: grid; grid-template-columns: auto 1fr; align-items: center; }
.radio-onair-head .radio-clock { justify-self: end; margin: 0; }
.radio-onair-head .radio-show { grid-column: 1 / -1; font-size: clamp(20px, 5.4vw, 28px); line-height: 1; }
.radio-show-tags { grid-column: 1 / -1; margin: 0; font-family: var(--type); font-size: 13px; color: #aaa296; }

.radio-onmic {
  display: flex; align-items: center; gap: 8px; margin: 8px 0 0; padding: 6px 10px;
  background: var(--red); color: var(--ink); font: 700 13px var(--mono); letter-spacing: .5px;
}
.radio-onmic[hidden] { display: none; }
.radio-onmic i { font-style: normal; animation: radio-blink 1s steps(2) infinite; }

/* big post buttons on the page */
.radio-post-buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.radio-post-buttons button {
  display: grid; justify-items: center; gap: 2px; padding: 16px 6px 12px; cursor: pointer;
  background: var(--red); color: #fff; border: 3px solid var(--ink); box-shadow: 0 5px 0 var(--ink);
  font-family: var(--mono); transition: transform .08s;
}
.radio-post-buttons button:nth-child(2) { background: var(--ink); color: var(--paper); }
.radio-post-buttons button:nth-child(3) { background: #fff; color: var(--ink); }
.radio-post-buttons button:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.radio-post-buttons span { font-size: 30px; line-height: 1; }
.radio-post-buttons b { font: 400 19px var(--display); }
.radio-post-buttons small { font-size: 11px; opacity: .8; }

/* post sheet (opens over the page, music keeps going) */
.radio-sheet {
  position: fixed; inset: 0; z-index: 55; overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: var(--paper); animation: radio-sheet-in .22s ease-out;
}
.radio-sheet[hidden] { display: none; }
@keyframes radio-sheet-in { from { transform: translateY(24px); opacity: 0; } }
body.sheet-open { overflow: hidden; }
.radio-sheet-bar {
  position: sticky; top: 0; z-index: 2; display: grid; gap: 6px;
  padding: 10px 16px; background: var(--ink); color: var(--paper); border-bottom: 5px solid var(--red);
}
.radio-sheet-back { justify-self: start; padding: 6px 0; border: 0; background: none; color: var(--paper); font: 700 14px var(--mono); cursor: pointer; }
.radio-sheet-now { position: relative; margin: 0; padding: 4px 0 6px; font: 12px var(--mono); color: #cfc8b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.radio-sheet-now::before { content: "♪ "; color: var(--red); }
.radio-sheet-now i { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--red); }
.radio-sheet-body { max-width: 520px; margin: 0 auto; padding: 18px 16px 60px; }
.radio-sheet-body h2 { margin: 0 0 14px; font: 400 clamp(28px, 8vw, 40px)/.95 var(--display); }
.radio-send-btn { width: 100%; padding: 16px; font-size: 18px; background: var(--red); border-color: var(--ink); color: #fff; box-shadow: 0 5px 0 var(--ink); }
.radio-cam { margin-left: auto; margin-right: auto; }

/* schedule: day tabs + 3-hour blocks */
.radio-days { display: grid; grid-template-columns: repeat(7, 1fr); border: 3px solid var(--ink); margin-bottom: 10px; }
.radio-days button { padding: 9px 0; border: 0; border-right: 2px solid var(--ink); background: var(--paper); font: 700 12px var(--mono); cursor: pointer; }
.radio-days button:last-child { border-right: 0; }
.radio-days button.today { color: var(--red); }
.radio-days button.on { background: var(--ink); color: var(--paper); }
.radio-blocks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
@media (min-width: 900px) { .radio-blocks { grid-template-columns: repeat(4, 1fr); } }
.radio-blocks li { display: grid; grid-template-columns: 58px 1fr; column-gap: 10px; padding: 10px 12px; border: 3px solid var(--ink); background: var(--paper); }
.radio-blocks li b { grid-row: span 2; align-self: center; font: 700 13px var(--mono); }
.radio-blocks li span { font: 400 16px/1.05 var(--display); }
.radio-blocks li em { font-style: normal; font-family: var(--type); font-size: 12px; color: var(--grey); }
.radio-blocks li.on { background: var(--ink); color: var(--paper); box-shadow: 5px 5px 0 var(--red); }
.radio-blocks li.on em { color: var(--red); font-family: var(--mono); font-weight: 700; }

.radio-report { justify-self: start; padding: 6px 10px; border: 1px solid #777; background: transparent; color: #bbb; font: 12px var(--mono); cursor: pointer; }

/* admin / DJ booth */
.radio-admin { max-width: 980px; }
.radio-admin-nav { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 0; background: var(--paper); }
.radio-admin-nav a { padding: 6px 10px; border: 2px solid var(--ink); font: 700 12px var(--mono); text-decoration: none; }
.radio-admin-box { margin-top: 26px; padding: 16px; background: #fff; border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); scroll-margin-top: 60px; }
.radio-admin-box h2 { margin-top: 0; }
.radio-admin-box h3 { font-family: var(--display); font-weight: 400; margin: 22px 0 10px; }
.radio-admin-item { background: var(--paper); }
.radio-admin-media { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.radio-admin-media img, .radio-admin-media video { width: 100%; max-height: 260px; object-fit: contain; background: #000; }
.radio-admin-actions { flex-wrap: wrap; align-items: center; }
.radio-flag { display: inline-block; margin-left: 6px; padding: 1px 6px; background: var(--red); color: #fff; font-size: 11px; }
.radio-inline { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
.radio-inline select, .radio-sched-table select, .radio-song-form select, .radio-send select {
  font: 13px var(--mono); padding: 6px; border: 2px solid var(--ink); background: var(--paper); border-radius: 0; max-width: 100%;
}
.radio-dj .radio-send { margin-top: 12px; }
.radio-dj .radio-cam { max-width: 520px; aspect-ratio: 16 / 9; }
.radio-upbar { height: 8px; background: #ddd; } .radio-upbar i { display: block; height: 100%; width: 0; background: var(--red); }
.radio-upbar[hidden] { display: none; }
.radio-sched-scroll { overflow-x: auto; margin: 0 -16px; padding: 0 16px; }
.radio-sched-table { border-collapse: collapse; font: 12px var(--mono); }
.radio-sched-table th { padding: 4px 6px; text-align: left; white-space: nowrap; }
.radio-sched-table td { padding: 2px; }
.radio-sched-table select { width: 150px; font-size: 11px; }
.radio-sched-form + form { margin-top: 8px; }
.radio-song-form { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); align-items: end; }
.radio-song-form label { display: grid; gap: 4px; font: 700 12px var(--mono); }
.radio-song-form input { font: 14px var(--mono); padding: 8px; border: 2px solid var(--ink); background: var(--paper); border-radius: 0; }
.radio-song-list { list-style: none; padding: 0; display: grid; gap: 6px; }
.radio-song-list li { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 6px 8px; background: var(--paper); }
.radio-song-list small { color: var(--grey); }
.radio-photo-pick[hidden], .radio-rec[hidden] { display: none !important; }
.radio-admin-media img, .radio-admin-media video { max-height: 200px; }
.radio-flag.ok { background: #127a2a; }
.radio-req-add input { font: 13px var(--mono); padding: 6px; border: 2px solid var(--ink); min-width: 220px; border-radius: 0; }

/* =================== v4: requests, flags =================== */
.radio-request { display: grid; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 3px dashed var(--ink); }
.radio-request h3 { margin: 0; font: 400 24px/1 var(--display); }
.radio-request .radio-fine b { color: var(--ink); font-family: var(--display); font-weight: 400; }
.radio-request label { display: grid; gap: 4px; font: 700 12px var(--mono); text-transform: uppercase; letter-spacing: 1px; }
.radio-request input { font: 16px var(--mono); padding: 10px 12px; border: 3px solid var(--ink); background: var(--paper); border-radius: 0; }
.radio-verdict { display: grid; gap: 2px; padding: 12px 14px; border: 4px solid var(--ink); transform: rotate(-1.5deg); animation: radio-stamp .25s ease-out; }
.radio-verdict[hidden] { display: none; }
.radio-verdict b { font: 400 30px/1 var(--display); }
.radio-verdict span { font-family: var(--type); }
.radio-verdict.no { background: var(--red); color: #fff; }
.radio-verdict.yes { background: #127a2a; color: #fff; }
.radio-verdict.maybe { background: #fff4b8; }
@keyframes radio-stamp { from { transform: rotate(-6deg) scale(1.3); opacity: 0; } }

/* flag cut-outs */
.radio-flagcut {
  display: block; object-fit: cover; background: #fff;
  clip-path: polygon(0% 4%, 6% 0%, 14% 3%, 22% 0%, 31% 2%, 40% 0%, 48% 3%, 57% 0%, 66% 2%, 74% 0%, 83% 3%, 91% 0%, 100% 3%, 98% 12%, 100% 22%, 97% 33%, 100% 44%, 98% 55%, 100% 66%, 97% 77%, 100% 88%, 98% 100%, 89% 97%, 80% 100%, 71% 98%, 62% 100%, 53% 97%, 44% 100%, 35% 98%, 26% 100%, 17% 97%, 8% 100%, 0% 97%, 2% 86%, 0% 75%, 3% 64%, 0% 53%, 2% 42%, 0% 31%, 3% 20%, 0% 10%);
  filter: drop-shadow(0 2px 0 rgba(0,0,0,.25));
}
.radio-card-img .radio-flagcut.fill { position: absolute; inset: 8%; width: 84%; height: 84%; transform: rotate(-3deg); }
.radio-card-img .radio-flagcut.tag { position: absolute; top: 6px; left: 6px; width: 42px; height: 30px; transform: rotate(-6deg); z-index: 1; }
.radio-card-img.has-flag { background: var(--paper-2); }
.radio-voice-bg.flag { object-fit: cover; opacity: .55; filter: saturate(1.1) contrast(1.1); mix-blend-mode: multiply; }
.radio-lightbox-body .radio-flagcut { width: 72px; height: 54px; transform: rotate(-4deg); }

/* =================== v5: station clock, history, DJ bar =================== */
.radio-admin-bar { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 8px 10px; background: var(--red); }
.radio-admin-bar[hidden] { display: none; }
.radio-admin-bar span { font: 700 12px var(--mono); letter-spacing: 2px; color: var(--ink); }
.radio-admin-bar .radio-btn { padding: 8px 12px; font-size: 14px; }
.radio-admin-bar a { margin-left: auto; font: 700 12px var(--mono); color: var(--ink); }
.radio-next li em { margin-left: auto; font-style: normal; font-size: 11px; color: var(--red); text-transform: uppercase; }
.radio-history { grid-column: 1 / -1; }
.radio-history .radio-fine { margin: -6px 0 12px; }
.radio-history-scroll { overflow-x: auto; margin: 0 -16px; padding: 0 16px; }
.radio-history-table { width: 100%; min-width: 620px; border-collapse: collapse; background: #fff; border: 3px solid var(--ink); font-size: 13px; }
.radio-history-table th { padding: 8px 10px; background: var(--ink); color: var(--paper); text-align: left; font: 700 11px var(--mono); letter-spacing: 1px; text-transform: uppercase; }
.radio-history-table td { padding: 8px 10px; border-top: 1px solid #ddd6c6; vertical-align: top; }
.radio-history-table td:first-child { font-weight: 700; white-space: nowrap; }
.radio-history-table td b { font: 400 14px var(--display); }
.radio-history-table tr:first-child td { background: #fff4d6; }
/* show dividers in "what's been playing" */
.radio-history-table tr.radio-history-show td { padding: 10px 10px 8px; background: var(--paper-2); border-top: 3px solid var(--ink); }
.radio-history-table tr.radio-history-show td > * { display: inline-block; margin-right: 12px; vertical-align: baseline; }
.radio-history-table tr.radio-history-show span { font: 700 11px var(--mono); letter-spacing: 1px; color: var(--grey); }
.radio-history-table tr.radio-history-show b { font: 400 16px var(--display); }
.radio-history-table tr.radio-history-show em { font: 700 11px var(--mono); font-style: normal; color: var(--red); letter-spacing: 1px; }
.radio-history-table tr.radio-history-show.live td { background: var(--ink); color: var(--paper); border-top-color: var(--red); }
.radio-history-table tr.radio-history-show.live span { color: #aaa296; }
.radio-history-table tr:first-child td { background: inherit; }
.radio-history-table tr.radio-history-show.live + tr td { background: #fff4d6; }

/* language flags (same as the main site), in their own space above the title */
.radio-top { padding-top: 46px; }
.radio-lang {
  position: absolute; top: 12px; right: 14px; display: flex; gap: 8px;
  padding: 0; border: 0; background: transparent;
}
.radio-lang button {
  display: block; width: 34px; height: 22px; padding: 0; overflow: hidden; cursor: pointer;
  border: 0; border-radius: 2px; background: transparent; opacity: .55;
}
.radio-lang button img { display: block; width: 100%; height: 100%; object-fit: cover; }
.radio-lang button:hover, .radio-lang button:focus-visible, .radio-lang button[aria-pressed="true"] { opacity: 1; outline: 2px solid var(--red); outline-offset: 2px; }
.radio-brand { padding-right: 0; }
@media (min-width: 900px) { .radio-top { padding-top: 54px; } .radio-lang { top: 16px; right: max(24px, calc(50vw - 520px)); } }
.radio-foot a { color: inherit; }
.radio-about { font-family: var(--type); font-size: 13px; line-height: 1.6; }

/* =================== Nido DM Radio (Depeche Mode) =================== */
.dm-theme { --red: #c1121f; --paper: #e8e6e3; --paper-2: #d9d6d1; }
.dm-theme .radio-top.dm-top { position: relative; overflow: hidden; min-height: 330px; border-bottom-color: var(--red); isolation: isolate; }
.dm-collage { position: absolute; inset: 0; z-index: -1; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 1fr); }
.dm-collage img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.25) brightness(.55); }
.dm-collage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,10,10,.92) 0%, rgba(10,10,10,.7) 45%, rgba(120,0,12,.35) 100%); }
@media (max-width: 700px) { .dm-collage { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(4, 1fr); } .dm-collage img.dm-c4, .dm-collage img.dm-c5, .dm-collage img.dm-c6, .dm-collage img.dm-c7 { display: none; } .dm-collage { grid-template-rows: repeat(2, 1fr); } }
.dm-theme .radio-brand h1 { letter-spacing: -1px; }
.dm-theme .radio-brand h1 em { font-style: normal; color: var(--red); -webkit-text-stroke: 0; }
.dm-theme .radio-brand h1 span { background: var(--red); color: #fff; }
.dm-tag-small { margin: 4px 0 0; font: 12px var(--mono); letter-spacing: 1px; color: #cfc8b8; text-transform: uppercase; }
.dm-ribbon { display: flex; overflow: hidden; white-space: nowrap; background: #0b0b0b; color: #bdbab4; border-bottom: 2px solid var(--red); font: 700 11px var(--mono); letter-spacing: 3px; }
.dm-ribbon span { flex: none; padding: 8px 0; animation: dm-scroll 60s linear infinite; }
@keyframes dm-scroll { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .dm-ribbon span { animation: none; } }
.dm-theme .radio-tune img { border-radius: 0; width: 44%; max-width: 230px; aspect-ratio: 1; object-fit: cover; filter: grayscale(1) contrast(1.2); }
.dm-theme .radio-tune-play { margin-top: -34px; }
.dm-theme .radio-onair { box-shadow: 8px 8px 0 var(--red); }

/* photo gallery */
.dm-gallery { grid-column: 1 / -1; }
.dm-gallery .radio-fine { margin: -6px 0 14px; }
.dm-masonry { columns: 2 150px; column-gap: 10px; }
@media (min-width: 900px) { .dm-masonry { columns: 5 180px; } }
.dm-masonry figure { break-inside: avoid; margin: 0 0 10px; background: #111; }
.dm-masonry img { display: block; width: 100%; height: auto; filter: grayscale(.35) contrast(1.05); transition: filter .2s; }
.dm-masonry figure:hover img { filter: none; }
.dm-masonry figcaption { padding: 4px 6px 6px; font: 10px/1.35 var(--mono); color: #9d9a93; }
.dm-masonry figcaption a { color: #cfcbc3; }
.radio-station-switch { display: flex; gap: 0; margin: 12px 0 0; border: 3px solid var(--ink); width: max-content; }
.radio-station-switch a { padding: 8px 14px; font: 700 12px var(--mono); letter-spacing: 1px; text-decoration: none; color: var(--ink); }
.radio-station-switch a.on { background: var(--ink); color: var(--paper); }
@media (max-width: 699px) {
  .dm-theme .radio-tune img { width: 30%; max-width: 120px; }
  .dm-theme .radio-tune-play { width: 52px; height: 52px; margin-top: -26px; }
  .dm-theme .radio-tune strong { font-size: 22px; }
  /* photos: a swipeable strip on phones instead of a very long page */
  .dm-masonry { columns: auto; display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 10px; }
  .dm-masonry figure { flex: none; width: 62vw; margin: 0; scroll-snap-align: start; }
  .dm-masonry img { height: 62vw; object-fit: cover; }
}
.radio-photo-kind { display: grid; gap: 6px; margin: 0; padding: 10px 12px; border: 3px solid var(--ink); background: #fff; }
.radio-photo-kind legend { padding: 0 6px; font: 700 12px var(--mono); text-transform: uppercase; letter-spacing: 1px; }
.radio-photo-kind label { display: flex !important; align-items: center; gap: 8px; font: 14px var(--mono) !important; text-transform: none !important; letter-spacing: 0 !important; }
.radio-photo-kind input { width: 18px; height: 18px; accent-color: var(--red); }
.radio-photo-kind small { color: var(--grey); font-size: 11px; }

/* DM page: upload-your-photo banner */
.dm-upload { grid-column: 1 / -1; display: flex; gap: 18px; align-items: center; padding: 18px; border: 2px solid currentColor; border-radius: 4px; background: rgba(200, 16, 46, .12); }
.dm-upload-pics { display: flex; flex: 0 0 auto; }
.dm-upload-pics img { width: 96px; height: 120px; object-fit: cover; border: 3px solid #f2ede4; box-shadow: 0 4px 14px rgba(0,0,0,.4); }
.dm-upload-pics img:first-child { transform: rotate(-5deg); }
.dm-upload-pics img:last-child { transform: rotate(4deg); margin-left: -26px; margin-top: 18px; }
.dm-upload-copy { min-width: 0; }
.dm-upload h2 { margin: 0 0 6px; }
.dm-upload p { margin: 0 0 12px; line-height: 1.45; }
.dm-upload-btn { display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 640px) { .dm-upload { flex-direction: column; text-align: center; } }
.dm-credits { margin-top: 12px; font-size: 12px; opacity: .8; }
.dm-credits summary { cursor: pointer; }
.dm-credits ul { margin: 8px 0 0; padding-left: 18px; line-height: 1.5; }

/* Tap a listener photo to see it big */
.radio-photo-zoom { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.radio-photo-zoom img { display: block; }
.radio-photo-zoom span { position: absolute; right: 10px; bottom: 10px; padding: 5px 10px; background: rgba(0,0,0,.72); color: #fff; font: 700 13px/1 var(--mono, monospace); letter-spacing: .5px; border-radius: 3px; pointer-events: none; }
.radio-zoom { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; overflow: hidden; background: #000; touch-action: none; user-select: none; }
.radio-zoom[hidden] { display: none; }
.radio-zoom img { max-width: 100vw; max-height: 100vh; max-height: 100dvh; object-fit: contain; transform-origin: center; will-change: transform; -webkit-user-drag: none; }
.radio-zoom.zoomed { cursor: grab; }
.radio-zoom-close { position: absolute; top: calc(12px + env(safe-area-inset-top, 0px)); right: 12px; z-index: 2; width: 48px; height: 48px; border: 2px solid #fff; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; font-size: 22px; cursor: pointer; }
.radio-zoom-hint { position: absolute; left: 0; right: 0; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); margin: 0; text-align: center; color: rgba(255,255,255,.75); font: 13px/1.3 var(--mono, monospace); pointer-events: none; transition: opacity .3s; }
.radio-zoom.zoomed .radio-zoom-hint { opacity: 0; }
html.radio-zoom-open { overflow: hidden; }
