/* Homepage radio: tuner dial, ON AIR light, power switch, station presets */
.ir-radio { padding: 36px 20px 44px; }
.ir-radio .section-head { padding: 0; }
.ir-radio-panel {
  max-width: 760px; margin: 0 auto; padding: 22px 22px 20px;
  background: linear-gradient(160deg, #cf4723 0%, #a83212 100%);
  border-radius: 22px; border: 2px solid #401307;
  box-shadow: 0 14px 34px #40130766, inset 0 2px 0 rgba(255,255,255,.18);
  color: #f6ead8;
}
.ir-radio-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }

/* ON AIR light box */
.ir-onair {
  flex: 0 0 auto; padding: 8px 16px; border-radius: 8px;
  font: 800 18px/1 var(--f-ui); letter-spacing: .14em;
  background: #220a04; color: #be654d; border: 2px solid #110502;
  box-shadow: inset 0 2px 6px rgba(0,0,0,.6);
  transition: color .25s, background .25s, box-shadow .25s, text-shadow .25s;
}
.ir-onair.is-on {
  color: #ff3a2a; background: #fff3dc;
  box-shadow: 0 0 22px rgba(255,92,56,.75), inset 0 0 12px rgba(255,160,90,.55);
  text-shadow: 0 0 8px rgba(255,58,42,.55);
}

/* power switch */
.ir-power {
  flex: 0 0 auto; display: flex; align-items: center; gap: 8px;
  background: none; border: 0; color: inherit; font: 700 12px var(--f-ui); letter-spacing: .1em;
}
.ir-power-track {
  width: 52px; height: 28px; border-radius: 14px; position: relative;
  background: #220a04; border: 2px solid #110502; box-shadow: inset 0 2px 5px rgba(0,0,0,.7);
  transition: background .2s;
}
.ir-power-knob {
  position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: linear-gradient(145deg, #e8d8bf, #a88f6c); box-shadow: 0 2px 4px rgba(0,0,0,.5);
  transition: transform .2s;
}
.ir-power[aria-checked="true"] .ir-power-track { background: #2e6b3c; }
.ir-power[aria-checked="true"] .ir-power-knob { transform: translateX(24px); }

/* tuner dial */
.ir-dial {
  position: relative; height: 92px; border-radius: 10px; overflow: hidden;
  background: linear-gradient(#0e0e0e, #1b1b1b); border: 3px solid #401307;
  box-shadow: inset 0 3px 10px rgba(0,0,0,.8);
}
.ir-dial.is-off { filter: brightness(.45); }
.ir-dial-scale { position: absolute; inset: 0; }
.ir-dial-num {
  position: absolute; top: 14px; transform: translateX(-50%);
  font: 700 17px var(--f-ui); color: #f3efe6;
}
.ir-dial-label { position: absolute; left: 10px; top: 6px; font: 800 11px var(--f-ui); color: #7ee08e; letter-spacing: .1em; }
.ir-dial-ticks {
  position: absolute; left: 0; right: 0; bottom: 20px; height: 14px;
  background: repeating-linear-gradient(90deg, #cfc7b8 0 1px, transparent 1px 2.5%);
  opacity: .8;
}
.ir-dial-station {
  position: absolute; bottom: 4px; transform: translateX(-50%);
  font: 800 11px var(--f-ui); color: #ffcf6a; letter-spacing: .06em; white-space: nowrap;
}
.ir-needle {
  position: absolute; top: 0; bottom: 0; width: 4px; margin-left: -2px; left: 0;
  background: linear-gradient(#fff, #ddd); box-shadow: 0 0 10px rgba(255,255,255,.65);
  transition: left .9s cubic-bezier(.45,.05,.2,1);
}
.ir-dial.is-off .ir-needle { box-shadow: none; }

.ir-note { max-width: 760px; margin: 14px auto 0; font: italic 400 14px/1.5 var(--f-ui); color: var(--muted); text-align: center; }

/* readout + volume */
.ir-readout { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.ir-vol { display: flex; align-items: center; gap: 8px; font: 700 11px var(--f-ui); letter-spacing: .08em; }
.ir-vol input { width: 110px; accent-color: #e8a44a; }

/* station display: arrows + LCD with equalizer bars and scrolling title */
.ir-tuner { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; }
.ir-step {
  flex: 0 0 auto; width: 32px; height: 36px; border-radius: 9px; padding: 0 0 3px;
  background: linear-gradient(#9b351a, #6d200c); border: 2px solid #401307; color: #f6ead8;
  box-shadow: 0 2px 0 #220a04, inset 0 1px 0 rgba(255,255,255,.18); font: 800 22px/1 var(--f-ui);
}
.ir-step:active { transform: translateY(2px); box-shadow: 0 0 0 #220a04; }
.ir-display {
  flex: 1; min-width: 0; height: 36px; display: flex; align-items: center; gap: 9px; padding: 0 10px;
  background: linear-gradient(#0e0e0e, #1b1b1b); border: 2px solid #401307; border-radius: 8px;
  box-shadow: inset 0 2px 6px rgba(0,0,0,.8); color: #ffe9bf; font: 700 14px var(--f-ui);
}
.ir-marquee { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; }
.ir-marquee-text { display: inline-flex; }
.ir-marquee-text span { display: inline-block; }
.ir-marquee-text span.gap { padding-right: 48px; }
.ir-marquee-text.is-scroll { animation: ir-scroll var(--dur, 12s) linear infinite; }
@keyframes ir-scroll { from { transform: translateX(0); } to { transform: translateX(var(--shift)); } }
.ir-eq { flex: 0 0 auto; display: flex; align-items: flex-end; gap: 2px; height: 16px; }
.ir-eq i { width: 3px; height: 4px; border-radius: 1px; background: #7ee08e; opacity: .45; }
.ir-radio.is-playing .ir-eq i { opacity: 1; animation: ir-bar .9s ease-in-out infinite; }
.ir-radio.is-playing .ir-eq i:nth-child(2) { animation-duration: .65s; animation-delay: -.3s; }
.ir-radio.is-playing .ir-eq i:nth-child(3) { animation-duration: 1.1s; animation-delay: -.6s; }
.ir-radio.is-playing .ir-eq i:nth-child(4) { animation-duration: .75s; animation-delay: -.15s; }
@keyframes ir-bar { 0%, 100% { height: 3px; } 50% { height: 16px; } }

@media (max-width: 560px) {
  .ir-radio { padding: 22px 16px 28px; }
  .ir-radio-panel { padding: 14px 14px 14px; }
  .ir-radio-top { margin-bottom: 10px; }
  .ir-dial, .ir-radio--compact .ir-dial { height: 58px; }
  .ir-dial-num, .ir-radio--compact .ir-dial-num { top: 8px; font-size: 12px; }
  .ir-dial-ticks, .ir-radio--compact .ir-dial-ticks { bottom: 16px; height: 10px; }
  .ir-dial-station { font-size: 10px; bottom: 3px; }
  .ir-readout { gap: 8px; margin-top: 10px; }
  .ir-step { width: 26px; }
  .ir-display { padding: 0 8px; gap: 6px; font-size: 13px; }
  .ir-vol { font-size: 0; gap: 0; }
  .ir-vol input { width: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .ir-needle { transition: none; }
  .ir-marquee-text.is-scroll { animation: none; }
  .ir-marquee-text span.gap { padding-right: 0; }
  .ir-marquee-text span:nth-child(2) { display: none; }
  .ir-marquee-text span:first-child { overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .ir-radio.is-playing .ir-eq i { animation: none; height: 10px; }
}

/* compact variant (resources page, under the hero) + "Brand new" label */
.ir-radio--compact { padding: 22px 20px 8px; }
.ir-radio--compact .ir-radio-panel { padding: 14px 16px 14px; }
.ir-radio--compact .ir-dial { height: 70px; }
.ir-radio--compact .ir-dial-num { top: 10px; font-size: 14px; }
.ir-radio--compact .ir-dial-ticks { bottom: 18px; }
.ir-radio--compact .ir-note { margin-top: 10px; font-size: 13px; }
.ir-newtag { max-width: 760px; margin: 0 auto 12px; text-align: center; font: 700 16px/1.4 var(--f-hed); color: var(--text); }
.ir-newtag em { font-style: normal; background: var(--orange); color: #fff; padding: 2px 9px; border-radius: 9999px; font: 800 12px var(--f-ui); letter-spacing: .08em; margin-right: 8px; vertical-align: 2px; }

/* attention nudge: POWER label pulses yellow while the radio is off, stops once it's on */
.ir-power[aria-checked="false"] > span:last-child { animation: irPowerGlow 2s ease-in-out infinite; }
@keyframes irPowerGlow {
  0%, 100% { color: inherit; text-shadow: none; }
  50% { color: #ffd23f; text-shadow: 0 0 6px rgba(255,210,63,.95), 0 0 16px rgba(255,210,63,.6); }
}
@media (prefers-reduced-motion: reduce) {
  .ir-power[aria-checked="false"] > span:last-child { animation: none; color: #ffd23f; text-shadow: 0 0 8px rgba(255,210,63,.7); }
}

/* "RADIO" engraving, top middle of the panel (between ON AIR and POWER) */
.ir-radio-top { position: relative; }
.ir-radio-top::before {
  content: "RADIO"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font: 800 17px/1 var(--f-ui); letter-spacing: .32em; text-indent: .32em; color: #320f05; opacity: 1; pointer-events: none;
  /* engraved: darker than the wood, a lit lower lip and a shadowed upper edge */
  text-shadow: 0 1px 0 rgba(255,255,255,.28), 0 -1px 0 rgba(0,0,0,.45), 0 0 1px rgba(0,0,0,.35);
}
@media (max-width: 420px) { .ir-radio-top::before { font-size: 13px; letter-spacing: .22em; text-indent: .22em; } }

.ir-newtag strong { color: var(--orange); font-weight: 900; }

/* info button + popup: quiet outline "i", no fill; sits on the dark radio panel (cream) and on the page (muted gray-brown) */
.ir-info-wrap { position: relative; flex: 0 0 auto; }
.ir-info {
  width: 32px; height: 32px; border-radius: 50%; padding: 0; background: transparent;
  border: 1.5px solid rgba(246,234,216,.7); color: rgba(246,234,216,.85);
  font: italic 700 16px/1 Georgia, serif; cursor: pointer; transition: border-color .15s, color .15s, background .15s;
}
.ir-info:hover, .ir-info[aria-expanded="true"] { border-color: #f6ead8; color: #f6ead8; background: rgba(246,234,216,.12); }
.ir-info-pop {
  position: absolute; right: 0; bottom: 42px; z-index: 5; width: min(300px, 78vw); padding: 12px 14px;
  background: #fff3dc; color: #401307; border: 2px solid #401307; border-radius: 12px;
  box-shadow: 0 8px 22px rgba(0,0,0,.35); font: 500 13px/1.45 var(--f-ui); text-align: left;
}
.ir-info-pop[hidden] { display: none; }
.ir-info-pop p { margin: 0; }
.ir-info-pop .ir-info-fun { margin-top: 8px; padding-top: 8px; border-top: 1px solid #40130733; font-size: 12px; }

/* small "i" next to a heading */
.ir-info--sm { width: 22px; height: 22px; font-size: 13px; vertical-align: middle; margin-left: 8px; border-color: #b3a89c; color: #a0948a; }
.ir-info--sm:hover, .ir-info--sm[aria-expanded="true"] { border-color: var(--orange, #e8622a); color: var(--orange, #e8622a); background: rgba(232,98,42,.08); }
h2 .ir-info-wrap { display: inline-block; vertical-align: middle; position: static; }
.ir-promo-sec .section-head { position: relative; }
h2 .ir-info-pop { display: block; position: absolute; left: 50%; right: auto; top: calc(100% + 4px); bottom: auto; transform: translateX(-50%); width: min(340px, calc(100vw - 32px)); box-sizing: border-box; font-family: var(--f-ui); font-weight: 500; font-size: 13px; letter-spacing: 0; text-transform: none; }
h2 .ir-info-pop[hidden] { display: none; }

/* music notes flanking the "Listen while you explore" line */
.ir-newtag { display: flex; align-items: center; justify-content: center; gap: 10px; }
.ir-newtag-ico { width: 1.15em; height: 1.15em; flex: 0 0 auto; color: #cf4723; }
.ir-newtag-ico:last-child { transform: scaleX(-1); }
