/* Standalone popout: same atmosphere + mini player chrome as the site footer bar */

body.oldies-popout-player {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(12px, env(safe-area-inset-top)) 12px max(16px, env(safe-area-inset-bottom));
  overflow-x: hidden;
}

body.oldies-popout-player .popout-page {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Footer shell is spaced down on full pages; in the popout it should sit tight */
body.oldies-popout-player .sticky-player-shell.popout-sticky {
  margin-top: 0;
}

/* Single player: hidden <audio>; sticky bar is the only visible chrome */
body.oldies-popout-player .mini-ctl,
body.oldies-popout-player .mini-play {
  font: inherit;
  cursor: pointer;
}

body.oldies-popout-player button.mini-ctl,
body.oldies-popout-player button.mini-play {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
}

body.oldies-popout-player button.mini-play {
  background: rgba(255, 122, 0, 0.2);
}

body.oldies-popout-player button.mini-ctl--ghost {
  background: rgba(0, 0, 0, 0.35);
}

/* Now playing block — glass sibling to the sticky bar */
body.oldies-popout-player .popout-np-panel {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: 14px 16px 16px;
}

body.oldies-popout-player .popout-np-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--u-font-display, "Outfit", system-ui, sans-serif);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 143, 74, 0.95);
  margin-bottom: 8px;
}

body.oldies-popout-player .popout-np-eyebrow i {
  opacity: 0.9;
}

body.oldies-popout-player #nowplaying-content {
  min-height: 3.2em;
  line-height: 1.35;
}

/* On-air DJ strip — compact horizontal version of the homepage np-dj-card.
   Sits inside .popout-np-panel below the track text. */
body.oldies-popout-player .popout-dj-strip {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(16, 247, 255, 0.32);
  background: linear-gradient(135deg, rgba(16, 247, 255, 0.10) 0%, rgba(255, 122, 0, 0.10) 100%);
  text-decoration: none;
  color: inherit;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  box-shadow: 0 0 22px rgba(16, 247, 255, 0.10);
}
body.oldies-popout-player .popout-dj-strip:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 122, 0, 0.55);
  box-shadow: 0 0 26px rgba(255, 122, 0, 0.20);
}

body.oldies-popout-player .popout-dj-strip__art {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(16, 247, 255, 0.4);
  box-shadow: 0 0 0 2px rgba(93, 255, 232, 0.20), 0 0 16px rgba(93, 255, 232, 0.18);
}
body.oldies-popout-player .popout-dj-strip__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}

/* Microphone-on-gradient placeholder — same idea as the homepage card. */
body.oldies-popout-player .popout-dj-strip__placeholder {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 30% 25%, rgba(16, 247, 255, 0.38), transparent 55%),
    radial-gradient(circle at 70% 80%, rgba(255, 122, 0, 0.32), transparent 55%),
    linear-gradient(135deg, #131b2c 0%, #1f2a44 100%);
  color: #eaffff;
  font-size: 22px;
  text-shadow: 0 0 10px rgba(16, 247, 255, 0.55), 0 0 4px rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  z-index: 1;
}
body.oldies-popout-player .popout-dj-strip--no-photo .popout-dj-strip__placeholder { display: flex; }
body.oldies-popout-player .popout-dj-strip--no-photo .popout-dj-strip__art img { visibility: hidden; }

body.oldies-popout-player .popout-dj-strip__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
body.oldies-popout-player .popout-dj-strip__eyebrow {
  font: 800 10px/1 "Syne", "Outfit", system-ui, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffc44f;
  text-shadow: 0 0 8px rgba(255, 196, 79, 0.40);
}
body.oldies-popout-player .popout-dj-strip.popout-air-live  .popout-dj-strip__eyebrow {
  color: #ff5959;
  text-shadow: 0 0 10px rgba(255, 89, 89, 0.55);
}
body.oldies-popout-player .popout-dj-strip.popout-air-autodj .popout-dj-strip__eyebrow {
  color: #94a3b8;
  text-shadow: none;
}
body.oldies-popout-player .popout-dj-strip__name {
  font: 800 14px/1.15 "Syne", "Outfit", system-ui, sans-serif;
  color: #eaffff;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.oldies-popout-player .popout-dj-strip__cta {
  color: #10f7ff;
  font-size: 14px;
  opacity: 0.85;
  transition: color .18s ease, transform .18s ease;
}
body.oldies-popout-player .popout-dj-strip:hover .popout-dj-strip__cta {
  color: #ff7a00;
  transform: translateX(2px);
}

/* AutoDJ variant — quieter cyan/slate gradient so it reads as "no human DJ on air". */
body.oldies-popout-player .popout-dj-strip.popout-air-autodj {
  border-color: rgba(148, 163, 184, 0.30);
  background: linear-gradient(135deg, rgba(148, 163, 184, 0.10) 0%, rgba(16, 247, 255, 0.06) 100%);
  box-shadow: none;
}
body.oldies-popout-player .popout-dj-strip.popout-air-autodj .popout-dj-strip__art {
  border-color: rgba(148, 163, 184, 0.35);
  box-shadow: 0 0 0 2px rgba(148, 163, 184, 0.18), 0 0 14px rgba(148, 163, 184, 0.18);
}
body.oldies-popout-player .popout-dj-strip.popout-air-autodj .popout-dj-strip__placeholder {
  background:
    radial-gradient(circle at 30% 25%, rgba(148, 163, 184, 0.30), transparent 55%),
    radial-gradient(circle at 70% 80%, rgba(16, 247, 255, 0.18), transparent 55%),
    linear-gradient(135deg, #0f1626 0%, #182338 100%);
  color: #cfe9ff;
  text-shadow: 0 0 10px rgba(148, 163, 184, 0.45), 0 0 4px rgba(0, 0, 0, 0.5);
  opacity: 0.92;
}

body.oldies-popout-player .popout-audio-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.oldies-popout-player .popout-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Grid items default to min-width:auto; the range input can widen the cell and spill onto .open-player */
body.oldies-popout-player .sticky-player-shell.popout-sticky .mini-vol-wrap.popout-mini-vol {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  align-items: center;
}

body.oldies-popout-player .popout-mini-vol {
  position: relative;
}

/*
 * The meter is only 4px tall but the range is ~18px and absolutely positioned; without a tall
 * enough clip box it bleeds into the next row and covers "Full site".
 */
body.oldies-popout-player .popout-vol-label {
  position: relative;
  flex: 0 0 72px;
  width: 72px;
  max-width: 72px;
  min-width: 0;
  height: 22px;
  display: flex;
  align-items: center;
  margin: 0;
  cursor: pointer;
  overflow: hidden;
  box-sizing: border-box;
}

body.oldies-popout-player .popout-vol-label .mini-vol-meter {
  flex: 1;
  min-width: 0;
}

body.oldies-popout-player .popout-vol-range {
  position: absolute;
  left: 0;
  width: 100%;
  max-width: 100%;
  top: 50%;
  transform: translateY(-50%);
  height: 22px;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  opacity: 0;
  cursor: pointer;
}

body.oldies-popout-player .sticky-player-shell.popout-sticky .open-player {
  position: relative;
  min-width: 0;
}

body.oldies-popout-player .popout-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 12px;
  font-family: var(--u-font-body, "Inter", system-ui, sans-serif);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #9aa8a6;
}

body.oldies-popout-player .popout-links a {
  color: #7ee8dc;
  text-decoration: none;
}

body.oldies-popout-player .popout-links a:hover {
  color: #10f7ff;
  text-decoration: underline;
}

body.oldies-popout-player .popout-dot {
  color: rgba(255, 255, 255, 0.22);
  user-select: none;
}

/* Directory chips (MyTuner, RadioBox, …) — compact row under stream links */
body.oldies-popout-player .popout-directory {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-top: 4px;
}

body.oldies-popout-player .popout-directory__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 9px;
  font-family: var(--u-font-body, "Inter", system-ui, sans-serif);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f4fffe;
  text-decoration: none;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: transform 0.12s ease, filter 0.12s ease;
}

body.oldies-popout-player .popout-directory__chip:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

body.oldies-popout-player .popout-directory__chip img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}

body.oldies-popout-player .popout-directory__chip--red {
  border-color: rgba(255, 51, 85, 0.75);
  box-shadow: 0 0 12px rgba(255, 50, 90, 0.35);
}

body.oldies-popout-player .popout-directory__chip--blue {
  border-color: rgba(56, 165, 255, 0.75);
  box-shadow: 0 0 12px rgba(56, 165, 255, 0.3);
}

body.oldies-popout-player .popout-directory__chip--green {
  border-color: rgba(60, 255, 154, 0.65);
  box-shadow: 0 0 12px rgba(60, 255, 154, 0.28);
}

body.oldies-popout-player .popout-directory__chip--purple {
  border-color: rgba(197, 111, 255, 0.75);
  box-shadow: 0 0 12px rgba(197, 111, 255, 0.3);
}

body.oldies-popout-player .popout-directory__chip--pink {
  border-color: rgba(255, 111, 216, 0.75);
  box-shadow: 0 0 12px rgba(255, 111, 216, 0.3);
}
