/* =====================================================================
   Release promo pieces (countdown, preview button, pill buttons).
   Shared by the home page and each release page. Each release sets its
   colors on its [data-release] element.
   ===================================================================== */
[data-release="radio-magic"] {
  --rel-cream: #f3e5ca;
  --rel-red: #dd4214;
  --rel-red-hover: #e9531f;
  --rel-red-dk: #b1330c;
  --rel-teal: #0a4a58;
  --rel-teal-hover: #0d5d6e;
  --rel-ink: #2a1d14;
}
[data-release="lost-in-outer-space"] {
  --rel-cream: #0d0b0a;        /* text on the orange button */
  --rel-red: #ec5a24;
  --rel-red-hover: #f26b38;
  --rel-red-dk: #a83a12;
  --rel-teal: #efe6d8;         /* outline button + focus ring */
  --rel-teal-hover: #ffffff;
  --rel-ink: #efe6d8;
}
[data-release] [hidden] { display: none !important; }

/* Countdown */
.rel-countdown { display: flex; gap: 10px; margin-top: 26px; }
.rel-countdown div {
  flex: 1;
  max-width: 96px;
  padding: 14px 6px 10px;
  text-align: center;
  background: var(--rel-red);
  color: var(--rel-cream);
  border-radius: 8px;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.25);
}
.rel-countdown span {
  display: block;
  font-family: 'Josefin Sans', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.rel-countdown small {
  display: block;
  margin-top: 6px;
  font-family: 'Josefin Sans', system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: .25em;
  text-transform: uppercase;
  opacity: .75;
}

/* Song preview: play button with a progress ring */
.rel-preview { display: flex; align-items: center; gap: 14px; margin-top: 26px; }
.rel-play {
  flex: none;
  width: 60px;
  height: 60px;
  padding: 0;
  border: 0;
  background: none;
  border-radius: 50%;
  cursor: pointer;
}
.rel-play svg { display: block; width: 100%; height: 100%; }
.rel-play .disc { fill: var(--rel-teal); transition: fill .15s; }
.rel-play:hover .disc { fill: var(--rel-teal-hover); }
.rel-play .track { fill: none; stroke: color-mix(in srgb, var(--rel-teal) 18%, transparent); stroke-width: 3; }
.rel-play .ring { fill: none; stroke: var(--rel-red); stroke-width: 3; stroke-linecap: round; }
.rel-play .icon-play, .rel-play .icon-pause { fill: var(--rel-cream); }
.rel-play .icon-pause { display: none; }
.rel-play.playing .icon-play { display: none; }
.rel-play.playing .icon-pause { display: inline; }
.rel-play:focus-visible { outline: 3px solid var(--rel-teal); outline-offset: 3px; }
.rel-preview-text { display: flex; flex-direction: column; gap: 4px; text-align: left; font-family: 'Josefin Sans', system-ui, sans-serif; }
.rel-preview-text b { font-weight: 600; font-size: 14px; letter-spacing: .25em; text-transform: uppercase; color: var(--rel-teal); }
.rel-preview-text span { font-size: 15px; font-variant-numeric: tabular-nums; color: var(--rel-ink); opacity: .7; }

/* Pill buttons */
.rel-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.rel-btn {
  display: inline-block;
  padding: 15px 28px 12px;
  font-family: 'Josefin Sans', system-ui, sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--rel-cream);
  background: var(--rel-red);
  border-radius: 999px;
  box-shadow: 0 4px 0 var(--rel-red-dk);
}
.rel-btn:hover { background: var(--rel-red-hover); }
.rel-btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--rel-red-dk); }
.rel-btn.ghost { background: transparent; color: var(--rel-teal); box-shadow: inset 0 0 0 2px var(--rel-teal); }
.rel-btn:focus-visible { outline: 3px solid var(--rel-teal); outline-offset: 4px; }

/* ---------- Retro digital clock countdown ---------- */
.rel-countdown.clock {
  --led: #ffb547;                         /* warm amber glow */
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  padding: 14px 20px 10px;
  background: linear-gradient(180deg, #221a14 0%, #120d0a 100%);
  border: 3px solid #5a3a22;              /* walnut bezel, like the radio */
  border-radius: 12px;
  box-shadow:
    inset 0 3px 12px rgba(0, 0, 0, .7),
    inset 0 0 0 1px rgba(255, 181, 71, .06),
    0 10px 22px -12px rgba(60, 25, 5, .6);
}
.rel-countdown.clock .unit {
  flex: none;
  max-width: none;
  padding: 0;
  background: none;
  box-shadow: none;
  border-radius: 0;
  text-align: center;
}
.rel-countdown.clock .unit.days { margin-right: 12px; }
.rel-countdown.clock span { display: flex; gap: 3px; line-height: 0; }
.rel-countdown.clock .seg {
  width: clamp(20px, 2.4vw, 26px);
  height: auto;
  overflow: visible;
}
.rel-countdown.clock .seg .on { fill: var(--led); }
.rel-countdown.clock .seg .off { fill: var(--led); opacity: .07; }
.rel-countdown.clock small {
  display: block;
  margin-top: 8px;
  font-size: 10px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--led);
  opacity: .55;
}
/* Blinking colons between hours, minutes and seconds */
.rel-countdown.clock .colon {
  flex: none;
  align-self: flex-start;
  width: 10px;
  height: clamp(30px, 3.6vw, 39px);
  margin: 0 -1px;
  background:
    radial-gradient(circle, var(--led) 0 2.6px, rgba(255, 181, 71, .3) 3px, transparent 5px) 50% 30% / 10px 10px no-repeat,
    radial-gradient(circle, var(--led) 0 2.6px, rgba(255, 181, 71, .3) 3px, transparent 5px) 50% 72% / 10px 10px no-repeat;
  animation: colon-blink 1s steps(1, end) infinite;
}
/* LED glow drawn as a soft halo, not a filter: Safari stops painting the
   clock's dark face when every digit carries a filter (and filters are slow on phones) */
.rel-countdown.clock .seg .on { stroke: rgba(255, 181, 71, .3); stroke-width: 2.4; stroke-linejoin: round; paint-order: stroke; }
@keyframes colon-blink { 50% { opacity: .15; } }

/* Lost in Outer Space: the same clock as a cold console with orange LEDs */
[data-release="lost-in-outer-space"] .rel-countdown.clock {
  --led: #ff7a3d;
  background: linear-gradient(180deg, #17171a 0%, #08080a 100%);
  border-color: #34343a;
  box-shadow: inset 0 3px 12px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(255, 122, 61, .06), 0 10px 26px -12px rgba(236, 90, 36, .35);
}
[data-release="lost-in-outer-space"] .rel-countdown.clock .seg .on { stroke: rgba(255, 122, 61, .3); }
[data-release="lost-in-outer-space"] .rel-countdown.clock .colon {
  background:
    radial-gradient(circle, var(--led) 0 2.6px, rgba(255, 122, 61, .3) 3px, transparent 5px) 50% 30% / 10px 10px no-repeat,
    radial-gradient(circle, var(--led) 0 2.6px, rgba(255, 122, 61, .3) 3px, transparent 5px) 50% 72% / 10px 10px no-repeat;
}
@media (prefers-reduced-motion: reduce) { .rel-countdown.clock .colon { animation: none; } }
