/* Narrowly scoped: player podcast buttons on phones only. */
@media(max-width:767px) {
  body.single-player .ah-podcast-balanced-buttons,
  body.single-player_profiles .ah-podcast-balanced-buttons {
    box-sizing:border-box!important;
    width:100%!important;
    max-width:100%!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:10px!important;
    margin:14px 0 0!important;
    padding:0!important;
    float:none!important;
    clear:both!important;
  }
  body.single-player .ah-podcast-balanced-primary,
  body.single-player .ah-podcast-balanced-platforms,
  body.single-player_profiles .ah-podcast-balanced-primary,
  body.single-player_profiles .ah-podcast-balanced-platforms {
    display:grid!important;
    box-sizing:border-box!important;
    width:100%!important;
    max-width:100%!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    justify-content:stretch!important;
    align-items:stretch!important;
    gap:10px!important;
    margin:0!important;
    padding:0!important;
  }
  body.single-player .ah-podcast-balanced-buttons a.ah-podcast-balanced-btn,
  body.single-player_profiles .ah-podcast-balanced-buttons a.ah-podcast-balanced-btn {
    box-sizing:border-box!important;
    display:flex!important;
    position:relative!important;
    align-items:center!important;
    justify-content:center!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    height:auto!important;
    margin:0!important;
    text-align:center!important;
    text-decoration:none!important;
    line-height:1.28!important;
    letter-spacing:0!important;
    white-space:normal!important;
    overflow-wrap:normal!important;
    word-break:normal!important;
    border-radius:9px!important;
    box-shadow:none!important;
  }
  body.single-player .ah-podcast-balanced-buttons a.ah-podcast-balanced-main,
  body.single-player_profiles .ah-podcast-balanced-buttons a.ah-podcast-balanced-main {
    min-height:60px!important;
    padding:10px 8px!important;
    font-size:clamp(13px,3.9vw,16px)!important;
    font-weight:750!important;
  }
  body.single-player .ah-podcast-balanced-primary a.ah-podcast-balanced-main:first-child,
  body.single-player_profiles .ah-podcast-balanced-primary a.ah-podcast-balanced-main:first-child {
    background:#d34900!important;
    color:#fff!important;
    border:2px solid #d34900!important;
  }
  body.single-player .ah-podcast-balanced-primary a.ah-podcast-balanced-main:nth-child(2),
  body.single-player_profiles .ah-podcast-balanced-primary a.ah-podcast-balanced-main:nth-child(2) {
    background:#fff!important;
    color:#a43c08!important;
    border:2px solid #d34900!important;
  }
  body.single-player .ah-podcast-balanced-buttons a.ah-podcast-balanced-main > span,
  body.single-player_profiles .ah-podcast-balanced-buttons a.ah-podcast-balanced-main > span {
    color:inherit!important;
    font-size:inherit!important;
    line-height:inherit!important;
  }
  body.single-player .ah-podcast-balanced-buttons a.ah-podcast-balanced-brand,
  body.single-player_profiles .ah-podcast-balanced-buttons a.ah-podcast-balanced-brand {
    min-height:46px!important;
    padding:9px 7px!important;
    border-width:1.5px!important;
    border-style:solid!important;
    font-size:clamp(14px,4vw,16px)!important;
    font-weight:750!important;
  }
  body.single-player .ah-podcast-balanced-brand[data-ah-platform="itunes"],
  body.single-player_profiles .ah-podcast-balanced-brand[data-ah-platform="itunes"] {
    background:#f5effb!important;color:#613781!important;border-color:#d5bfe7!important;
  }
  body.single-player .ah-podcast-balanced-brand[data-ah-platform="spotify"],
  body.single-player_profiles .ah-podcast-balanced-brand[data-ah-platform="spotify"] {
    background:#ecf9ef!important;color:#176335!important;border-color:#a7dbb5!important;
  }
  body.single-player .ah-podcast-balanced-brand[data-ah-platform="audible"],
  body.single-player_profiles .ah-podcast-balanced-brand[data-ah-platform="audible"] {
    background:#fff4e8!important;color:#964600!important;border-color:#eac399!important;
  }
  body.single-player .ah-podcast-balanced-brand[data-ah-platform="tunein"],
  body.single-player_profiles .ah-podcast-balanced-brand[data-ah-platform="tunein"] {
    background:#eef9f8!important;color:#17665e!important;border-color:#a3d8d1!important;
  }
  body.single-player .ah-podcast-balanced-buttons a.ah-podcast-balanced-btn:focus-visible,
  body.single-player_profiles .ah-podcast-balanced-buttons a.ah-podcast-balanced-btn:focus-visible {
    outline:3px solid #222!important;
    outline-offset:2px!important;
  }
}

/* v1.0.1 fallback: render provider links in two equal columns even if the organiser
   cannot move them. Target only wrappers containing both known provider URLs. */
@media (max-width:767px) {
  body.single-player .ah-player-col :is(div,section,nav):has(> a[href*="itunes.apple.com"]):has(> a[href*="open.spotify.com"]),
  body.single-player_profiles .ah-player-col :is(div,section,nav):has(> a[href*="itunes.apple.com"]):has(> a[href*="open.spotify.com"]) {
    display:grid!important;
    box-sizing:border-box!important;
    width:100%!important;
    max-width:100%!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
    padding:0!important;
    margin-top:10px!important;
  }
  body.single-player .ah-player-col :is(div,section,nav):has(> a[href*="itunes.apple.com"]):has(> a[href*="open.spotify.com"]) > a,
  body.single-player_profiles .ah-player-col :is(div,section,nav):has(> a[href*="itunes.apple.com"]):has(> a[href*="open.spotify.com"]) > a {
    width:100%!important;min-width:0!important;max-width:100%!important;
    box-sizing:border-box!important;display:flex!important;
    justify-content:center!important;align-items:center!important;
    margin:0!important;padding:10px 7px!important;
    min-height:44px!important;font-size:15px!important;
    font-weight:700!important;border-radius:8px!important;
  }
}
