/* 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;
}

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);
}
