/* RobotistRadio — iPod stage */
.radio {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--bg-secondary);
}

.radio::before {
  content: "";
  position: absolute;
  inset: -35%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 46% 38% at 18% 16%, rgba(255, 107, 43, 0.18), transparent 58%),
    radial-gradient(ellipse 42% 36% at 86% 78%, rgba(77, 141, 255, 0.16), transparent 55%),
    radial-gradient(ellipse 38% 34% at 72% 14%, rgba(168, 85, 247, 0.14), transparent 52%),
    radial-gradient(ellipse 34% 30% at 30% 88%, rgba(255, 61, 87, 0.12), transparent 50%);
  animation: radioWash 26s ease-in-out infinite;
}

@keyframes radioWash {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    filter: hue-rotate(0deg);
  }

  40% {
    transform: translate3d(5%, -4%, 0) scale(1.08);
    filter: hue-rotate(22deg);
  }

  70% {
    transform: translate3d(-4%, 5%, 0) scale(1.05);
    filter: hue-rotate(-16deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .radio::before {
    animation: none;
  }

  .ipod.is-live::before,
  .ipod.is-live::after,
  .radio-dock.is-live::before,
  .radio-dock.is-live::after,
  .radio-ep.is-on::before,
  .radio-ep.is-on::after {
    animation: none;
    --neon-angle: 210deg;
  }
}

.radio .heading-icon {
  animation: none;
  color: var(--accent-orange);
}

.radio-lead {
  text-align: center;
  max-width: 46rem;
  margin: -3.2rem auto 4rem;
  font-size: 1.7rem;
  color: var(--text-secondary);
}

.radio-stage {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 4.5rem;
  align-items: center;
  max-width: 980px;
  margin: 0 auto;
  overflow: visible;
}

@property --neon-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

/* ── Classic / Video iPod ── */
.ipod {
  --neon-a: #ff6b2b;
  --neon-b: #ff3d57;
  --neon-pad: clamp(2px, 0.55vw, 4px);
  position: relative;
  width: min(320px, 100%);
  margin: 0 auto;
  background:
    linear-gradient(180deg, #fbfbfd 0%, #ececf2 48%, #d9d9e2 100%);
  border-radius: clamp(22px, 6vw, 32px);
  padding: 2rem 1.9rem 2.4rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -2px 6px rgba(0, 0, 0, 0.06),
    0 24px 50px rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.ipod.is-live::before,
.ipod.is-live::after {
  content: "";
  position: absolute;
  inset: calc(var(--neon-pad) * -2.4);
  border-radius: inherit;
  pointer-events: none;
}

.ipod.is-live::before {
  z-index: -1;
  background: conic-gradient(
    from var(--neon-angle),
    transparent 0 56%,
    var(--neon-a) 70%,
    var(--neon-b) 82%,
    transparent 94%
  );
  filter: blur(clamp(5px, 1.2vw, 12px));
  opacity: 0.9;
  animation: ipodNeonSpin 2.5s linear infinite;
}

.ipod.is-live::after {
  z-index: 6;
  padding: var(--neon-pad);
  background: conic-gradient(
    from var(--neon-angle),
    transparent 0 58%,
    var(--neon-a) 72%,
    #fff 80%,
    var(--neon-b) 86%,
    transparent 96%
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: ipodNeonSpin 2.5s linear infinite;
}

.ipod.is-live {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -2px 6px rgba(0, 0, 0, 0.06),
    0 0 18px color-mix(in srgb, var(--neon-a) 42%, transparent),
    0 0 42px color-mix(in srgb, var(--neon-b) 22%, transparent),
    0 24px 50px rgba(0, 0, 0, 0.38);
}

@keyframes ipodNeonSpin {
  to {
    --neon-angle: 360deg;
  }
}

.ipod-bezel {
  background: #111214;
  border-radius: 8px;
  padding: 0.55rem;
  box-shadow: inset 0 0 0 1px #2a2a30, 0 0 0 1px rgba(0, 0, 0, 0.25);
}

.ipod-screen {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  overflow: hidden;
  background: linear-gradient(180deg, #1b3a28 0%, #0c1a12 100%);
  color: #d7f5c8;
  font-family: "Lucida Grande", "Geneva", var(--font-primary);
}

.ipod-menu,
.ipod-now {
  position: absolute;
  inset: 0;
}

.ipod-menu {
  display: flex;
  flex-direction: column;
}

.ipod-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.65rem;
  background: linear-gradient(180deg, #6eb0ea 0%, #3a7ec4 100%);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.ipod-menu-head small {
  font-weight: 500;
  opacity: 0.85;
}

.ipod-tracks {
  list-style: none;
  overflow-y: auto;
  flex: 1;
}

.ipod-tracks button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  border: 0;
  background: transparent;
  color: #e8f8dc;
  font: inherit;
  font-size: 1.25rem;
  text-align: left;
  padding: 0.55rem 0.7rem;
  cursor: pointer;
}

.ipod-tracks button.is-on {
  background: linear-gradient(180deg, #4aa3ea 0%, #1f6fbe 100%);
  color: #fff;
}

.ipod-tracks button.is-locked {
  opacity: 0.42;
  cursor: not-allowed;
}

.ipod-tracks .dur {
  opacity: 0.7;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.ipod-now {
  display: block;
  background: #12141a;
  color: #f2f2f6;
}

.ipod-now-art {
  position: absolute;
  inset: 0;
  background: #000;
}

.ipod-now-art img,
.ipod-now-art video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% center;
  display: block;
}

.ipod-now-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.4rem 0.75rem 0.65rem;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(8, 10, 16, 0.88) 55%);
}

.ipod-now-show {
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8aa0c4;
}

.ipod-now-title {
  margin-top: 0.25rem;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
}

.ipod-progress {
  margin-top: auto;
  height: 1.15rem;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  cursor: pointer;
  position: relative;
}

.ipod-progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff6b2b, #ff3d57);
  box-shadow: 0 0 10px rgba(255, 107, 43, 0.45);
}

.ipod-progress-fill::after {
  content: "";
  position: absolute;
  right: -0.15rem;
  top: 50%;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(255, 107, 43, 0.55), 0 1px 4px rgba(0, 0, 0, 0.35);
  transform: translateY(-50%);
}

.ipod-times {
  display: flex;
  justify-content: space-between;
  margin-top: 0.35rem;
  font-size: 1rem;
  color: #9aa3b5;
  font-variant-numeric: tabular-nums;
}

.ipod-wheel {
  position: relative;
  width: 78%;
  aspect-ratio: 1;
  margin: 2rem auto 0.2rem;
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(circle at 38% 32%, #f7f7fa 0%, #d0d0d8 62%, #b7b7c2 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.7),
    inset 0 -3px 8px rgba(0, 0, 0, 0.12),
    0 8px 16px rgba(0, 0, 0, 0.12);
}

.ipod-wheel::before,
.ipod-wheel::after {
  content: "";
  position: absolute;
  top: 4%;
  bottom: 4%;
  left: 50%;
  z-index: 2;
  width: 2px;
  margin-left: -1px;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(28, 28, 36, 0.38) 14%,
    rgba(28, 28, 36, 0.38) 86%,
    transparent
  );
  pointer-events: none;
}

.ipod-wheel::before {
  transform: rotate(45deg);
}

.ipod-wheel::after {
  transform: rotate(-45deg);
}

.ipod-hit {
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 0;
  padding: 0;
  background: transparent;
  color: #1c1c24;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.ipod-hit:hover {
  background: rgba(255, 107, 43, 0.12);
}

.ipod-hit:focus-visible {
  outline: none;
  background: rgba(255, 107, 43, 0.16);
}

.ipod-hit i {
  font-size: 1.45rem;
  color: #1c1c24;
}

.ipod-hit-up {
  clip-path: polygon(50% 50%, 0% 0%, 100% 0%);
}

.ipod-hit-next {
  clip-path: polygon(50% 50%, 100% 0%, 100% 100%);
}

.ipod-hit-down {
  clip-path: polygon(50% 50%, 100% 100%, 0% 100%);
}

.ipod-hit-prev {
  clip-path: polygon(50% 50%, 0% 100%, 0% 0%);
}

.ipod-hit-up i {
  position: absolute;
  top: 9%;
  left: 50%;
  transform: translateX(-50%);
}

.ipod-hit-down i {
  position: absolute;
  bottom: 9%;
  left: 50%;
  transform: translateX(-50%);
}

.ipod-hit-prev span,
.ipod-hit-next span {
  position: absolute;
  top: 50%;
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0;
  color: #1c1c24;
}

.ipod-hit-prev span {
  left: 10%;
  transform: translateY(-50%);
}

.ipod-hit-next span {
  right: 10%;
  transform: translateY(-50%);
}

.ipod-toast {
  position: absolute;
  top: 0.55rem;
  left: 50%;
  z-index: 3;
  transform: translateX(-50%);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(8, 10, 16, 0.78);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.ipod-center {
  position: absolute;
  width: 38%;
  height: 38%;
  left: 31%;
  top: 31%;
  z-index: 3;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(180deg, #ff7a3a 0%, #e23a4c 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 4px 14px rgba(226, 58, 76, 0.42);
}

.ipod-center:hover {
  filter: brightness(1.06);
}

.ipod-center:focus-visible {
  outline: 2px solid var(--accent-orange);
  outline-offset: 2px;
}

.ipod-center i {
  font-size: 1.8rem;
  color: #fff;
  transform: translateX(1px);
}

.ipod-center:active {
  transform: scale(0.97);
}

/* ── Dock / episode list ── */
.radio-dock {
  --neon-a: #ff6b2b;
  --neon-b: #ff3d57;
  --neon-pad: clamp(2px, 0.45vw, 3px);
  position: relative;
  min-width: 0;
  border-radius: 24px;
  border: 1px solid var(--border-subtle);
  background: color-mix(in srgb, var(--bg-secondary) 72%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.radio-dock-scroll {
  max-height: min(62vh, 52rem);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1.4rem 1.4rem 1.6rem;
  border-radius: inherit;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--neon-a) 55%, transparent) transparent;
}

.radio-dock-scroll::-webkit-scrollbar {
  width: 6px;
}

.radio-dock-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: color-mix(in srgb, var(--neon-a) 50%, transparent);
}

.radio-dock-head {
  position: sticky;
  top: -1.4rem;
  z-index: 3;
  margin: -1.4rem -0.4rem 0;
  padding: 1.4rem 0.4rem 1rem;
  background: linear-gradient(180deg, var(--bg-secondary) 70%, transparent);
}

.radio-dock.is-live::before,
.radio-dock.is-live::after {
  content: "";
  position: absolute;
  inset: calc(var(--neon-pad) * -2.2);
  border-radius: inherit;
  pointer-events: none;
}

.radio-dock.is-live::before {
  z-index: -1;
  background: conic-gradient(
    from var(--neon-angle),
    transparent 0 56%,
    var(--neon-a) 70%,
    var(--neon-b) 82%,
    transparent 94%
  );
  filter: blur(clamp(5px, 1.1vw, 11px));
  opacity: 0.9;
  animation: ipodNeonSpin 2.5s linear infinite;
}

.radio-dock.is-live::after {
  z-index: 4;
  padding: var(--neon-pad);
  background: conic-gradient(
    from var(--neon-angle),
    transparent 0 58%,
    var(--neon-a) 72%,
    #fff 80%,
    var(--neon-b) 86%,
    transparent 96%
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: ipodNeonSpin 2.5s linear infinite;
}

.radio-dock.is-live {
  border-color: color-mix(in srgb, var(--neon-a) 35%, var(--border-subtle));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 18px color-mix(in srgb, var(--neon-a) 38%, transparent),
    0 0 40px color-mix(in srgb, var(--neon-b) 18%, transparent);
}

.radio-dock-kicker {
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--accent-orange);
  font-weight: 700;
}

.radio-dock h3 {
  font-family: var(--font-display);
  font-size: 3rem;
  margin: 0.3rem 0 1.6rem;
}

.radio-lock-note {
  margin: -0.6rem 0 1.2rem;
  padding: 1rem 1.2rem;
  border-radius: 14px;
  border: 1px solid var(--border-accent);
  background: rgba(255, 107, 43, 0.16);
  color: var(--text-primary);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.35;
  box-shadow: var(--shadow-glow);
  animation: radioLockIn 0.28s ease;
}

.radio-row.is-locked.is-shake .radio-ep {
  animation: radioLockShake 0.42s ease;
}

@keyframes radioLockIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes radioLockShake {
  0%,
  100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.radio-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
  padding: 0.35rem 0.15rem 0.5rem;
}

.radio-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.radio-ep {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 1.2rem;
  align-items: center;
  text-align: left;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: inherit;
  border-radius: 16px;
  padding: 0.85rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.radio-ep:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-glow);
}

.radio-ep.is-on {
  position: relative;
  isolation: isolate;
  z-index: 1;
  overflow: visible;
  border-color: color-mix(in srgb, var(--neon-a, var(--accent-orange)) 55%, transparent);
  box-shadow:
    0 0 14px color-mix(in srgb, var(--neon-a, var(--accent-orange)) 36%, transparent),
    0 0 28px color-mix(in srgb, var(--neon-b, var(--accent-red)) 16%, transparent);
}

.radio-ep.is-on::before,
.radio-ep.is-on::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  pointer-events: none;
}

.radio-ep.is-on::before {
  z-index: -1;
  background: conic-gradient(
    from var(--neon-angle),
    transparent 0 56%,
    var(--neon-a, #ff6b2b) 70%,
    var(--neon-b, #ff3d57) 82%,
    transparent 94%
  );
  filter: blur(7px);
  opacity: 0.95;
  animation: ipodNeonSpin 2.5s linear infinite;
}

.radio-ep.is-on::after {
  z-index: 2;
  padding: 2px;
  background: conic-gradient(
    from var(--neon-angle),
    transparent 0 58%,
    var(--neon-a, #ff6b2b) 72%,
    #fff 80%,
    var(--neon-b, #ff3d57) 86%,
    transparent 96%
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: ipodNeonSpin 2.5s linear infinite;
}

.radio-ep.is-locked,
.radio-ep.is-locked:hover {
  cursor: not-allowed;
  opacity: 0.55;
  border-color: var(--border-subtle);
  box-shadow: none;
  filter: grayscale(0.35);
}

.radio-ep-flag {
  display: inline-block;
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.radio-ep-flag--live {
  color: var(--accent-orange);
}

.radio-ep-flag--next {
  color: var(--text-muted);
}

.radio-ep-flag--done {
  color: var(--accent-green);
}

.radio-ep-flag--gate {
  color: #c4b5fd;
}

.radio-ep-plays {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.15rem;
  color: var(--text-muted);
}

.radio-ep img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  object-position: 28% center;
  border-radius: 10px;
}

.radio-share {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 4.2rem;
  height: 4.2rem;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-muted);
  font-size: 1.85rem;
  text-decoration: none;
  transition: color var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}

.radio-share:hover,
.radio-share:focus-visible {
  color: var(--accent-orange);
  border-color: var(--border-accent);
  background: rgba(255, 107, 43, 0.08);
}

.radio-share:focus-visible {
  outline: 2px solid var(--accent-orange);
  outline-offset: 2px;
}

.radio-ep-num {
  color: var(--accent-orange);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.radio-ep strong {
  display: block;
  font-size: 1.55rem;
}

.radio-ep-body {
  display: block;
  min-width: 0;
}

.radio-ep-desc {
  display: block;
  margin-top: 0.2rem;
  font-size: 1.25rem;
  color: var(--text-secondary);
}

.radio-ep em {
  font-style: normal;
  font-size: 1.25rem;
  color: var(--text-muted);
}

.radio-hint {
  margin-top: 1.6rem;
  font-size: 1.25rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.radio-hint code {
  font-size: 1.15rem;
  color: var(--accent-orange);
}

.home-radio-invite {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  text-decoration: none;
  color: inherit;
  z-index: 4;
}

.home-radio-invite-label {
  font-family: var(--font-display, inherit);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--text-primary);
  text-shadow: 0 0 16px color-mix(in srgb, var(--accent-orange) 45%, transparent);
}

.home-radio-invite .ipod--teaser {
  display: block;
  width: 13.4rem;
  margin: 0;
  padding: 0.9rem 0.85rem 1.05rem;
  border-radius: 20px;
  transform: rotate(-10deg);
  transform-origin: 50% 80%;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s ease;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.38));
}

.home-radio-invite:hover .ipod--teaser,
.home-radio-invite:focus-visible .ipod--teaser {
  transform: rotate(-4deg) scale(1.08);
  filter: drop-shadow(0 22px 30px rgba(255, 107, 43, 0.28));
}

.home-radio-invite .ipod-screen,
.home-radio-invite .ipod-wheel,
.home-radio-invite .ipod-hit,
.home-radio-invite .ipod-center {
  pointer-events: none;
}

.home-radio-invite .ipod-wheel {
  width: 74%;
  margin-top: 1.1rem;
}

.home-radio-invite .ipod-hit,
.home-radio-invite .ipod-hit span {
  font-size: 0.85rem;
}

.home-radio-invite .ipod-hit i,
.home-radio-invite .ipod-center i {
  font-size: 1.05rem;
}

.home-radio-invite img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% center;
  border-radius: 4px;
  animation: none;
  filter: none;
  transform: none;
}

@media (max-width: 1100px) {
  .home-radio-invite .ipod--teaser {
    width: 11.6rem;
  }
}

@media (max-width: 768px) {
  .home-radio-invite {
    margin: 0 auto 0.4rem;
  }

  .home-radio-invite .ipod--teaser {
    width: 11.2rem;
    transform: rotate(-8deg);
  }
}

@media (max-width: 800px) {
  .radio-stage {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .ipod {
    width: min(300px, 86vw);
    --neon-pad: clamp(2px, 0.9vw, 3px);
  }

  .radio-dock-scroll {
    max-height: min(52vh, 44rem);
  }
}
