/* AMM 2.28.20 · creative catalogue responsive layout repair.
   Changes only presentation. Existing auth, media access, rights and file references are untouched. */
.amm-cue-header{align-items:center;min-width:0}
.amm-cue-brand{min-width:0;flex:0 1 auto}
.amm-cue-brand h1{overflow-wrap:normal;word-break:normal}
.amm-cue-actions{display:flex;align-items:center;gap:10px;min-width:0;flex:0 0 auto}
.amm-cue-actions>.amm-admin-link{white-space:nowrap!important;word-break:normal!important;overflow-wrap:normal!important;min-width:max-content;justify-content:center;line-height:1.15}
.amm-cue-actions button{white-space:nowrap}
.amm-cue-actions [hidden]{display:none!important}
/* No fixed bar over music until a playable recording is selected.
   The hidden audio node stays mounted so React's reference remains stable. */
#ammReactStudioRoot .am5-player.am5-player-idle{visibility:hidden!important;pointer-events:none!important;position:relative!important;transform:none!important;left:auto!important;bottom:auto!important;width:0!important;height:0!important;min-height:0!important;max-height:0!important;overflow:hidden!important;padding:0!important;margin:0!important;border:0!important;box-shadow:none!important}
#ammReactStudioRoot .am5-player:not(.am5-player-idle){overscroll-behavior:contain}
/* Keep tabs, buttons and metadata readable on touch. */
#ammReactStudioRoot .am5-song-info h3{overflow-wrap:anywhere;line-height:1.23}
#ammReactStudioRoot .am5-song-card .am5-card-actions button{min-height:44px!important;font-size:13px!important;font-weight:850!important}
#ammReactStudioRoot .am5-song-info p{font-size:12px!important;line-height:1.35}
#ammReactStudioRoot .am5-results-meta{font-size:12px!important}
@media(max-width:850px){
  main.wrap{padding-left:16px!important;padding-right:16px!important;max-width:100%!important}
  .amm-cue-header{display:grid!important;grid-template-columns:48px minmax(0,1fr)!important;grid-template-rows:auto auto;column-gap:12px!important;row-gap:12px!important;padding:10px 0 15px!important;width:100%!important;overflow:visible!important}
  .amm-cue-header>img{grid-column:1;grid-row:1;width:46px!important;height:46px!important;align-self:center;object-fit:contain}
  .amm-cue-header>.amm-cue-brand{grid-column:2;grid-row:1;min-width:0!important;width:auto!important;max-width:100%!important;overflow:hidden}
  .amm-cue-header>.spacer{display:none!important}
  .amm-cue-brand .pill{display:none!important}
  .amm-cue-brand h1{font-size:clamp(17px,4.8vw,24px)!important;line-height:1.12!important;letter-spacing:-.025em!important;white-space:normal!important;margin:0 0 3px!important}
  .amm-cue-brand small{display:block;font-size:12px!important;line-height:1.3!important;color:#b4c3e0!important}
  .amm-cue-header>.amm-cue-actions{grid-column:1/-1;grid-row:2;display:flex!important;gap:10px!important;min-width:0!important;width:100%!important;justify-content:space-between!important}
  .amm-cue-actions .amm-admin-link{min-height:46px!important;flex:1 1 auto!important;padding:11px 17px!important;white-space:nowrap!important;text-align:center!important;word-break:keep-all!important;overflow-wrap:normal!important;font-size:14px!important;border-radius:13px!important}
  .amm-cue-actions #logout:not([hidden]){flex:0 0 auto!important;min-width:100px!important;min-height:46px!important;padding:9px 13px!important;font-size:13px!important;border-radius:13px!important}
  #ammReactStudioRoot .am5-shell{margin:0!important;border-radius:18px!important;padding:18px 13px 130px!important}
  #ammReactStudioRoot .am5-player:not(.am5-player-idle):not(.am6-expanded){bottom:calc(15px + env(safe-area-inset-bottom))!important;width:calc(100vw - 24px)!important;left:50%!important;transform:translateX(-50%)!important}
  #ammReactStudioRoot .am6-expanded{padding-bottom:calc(24px + env(safe-area-inset-bottom))!important}
}
@media(max-width:520px){
  main.wrap{padding:12px 12px 110px!important}
  .amm-cue-header{grid-template-columns:40px minmax(0,1fr)!important;column-gap:9px!important;row-gap:10px!important}
  .amm-cue-header>img{width:40px!important;height:40px!important}
  .amm-cue-brand h1{font-size:19px!important}
  .amm-cue-brand small{font-size:11px!important}
  .amm-cue-actions .amm-admin-link{justify-content:center!important;min-width:0!important}
  #ammReactStudioRoot .am5-shell{padding:15px 12px 135px!important;border-radius:17px!important}
  #ammReactStudioRoot .am5-heading h1{font-size:clamp(27px,8.3vw,37px)!important}
  #ammReactStudioRoot .am5-search input{font-size:16px!important}
  #ammReactStudioRoot .am5-song-card{grid-template-columns:102px minmax(0,1fr);min-height:140px}
  #ammReactStudioRoot .am5-cover{min-height:140px}
  #ammReactStudioRoot .am5-song-info{padding:12px 11px}
  #ammReactStudioRoot .am5-song-info h3{font-size:15px!important;line-height:1.27!important;margin:4px 0 4px!important}
  #ammReactStudioRoot .am5-song-info p{font-size:12px!important}
  #ammReactStudioRoot .am5-card-actions button{min-height:44px!important;font-size:13px!important}
  #ammReactStudioRoot .am5-grid{gap:11px}
  #ammReactStudioRoot .am5-switcher button{font-size:12px!important;min-height:44px!important}
  #ammReactStudioRoot .am5-nav button{min-height:44px!important;font-size:13px!important}
  #ammReactStudioRoot .am5-player:not(.am5-player-idle):not(.am6-expanded){padding:10px 12px!important;border-radius:16px!important}
  #ammReactStudioRoot .am5-player-meta strong{font-size:13px!important}
}
@media(prefers-reduced-motion:reduce){#ammReactStudioRoot .am5-song-card{transition:none!important}}

/* Studio is directly discoverable from every playable track card. */
#ammReactStudioRoot .am5-tile-studio{background:linear-gradient(115deg,#a890fb,#caacff)!important;color:#201338!important;border:1px solid #d4baff!important;min-height:44px!important;font-weight:900!important}
#ammReactStudioRoot .am5-tile-studio:focus-visible{outline:3px solid #c6f7ff!important;outline-offset:2px}
@media(min-width:521px){#ammReactStudioRoot .am5-card-actions{display:flex;flex-wrap:wrap;gap:7px}#ammReactStudioRoot .am5-card-actions .am5-tile-primary{flex:1 1 105px}}
@media(max-width:520px){
 #ammReactStudioRoot .am5-card-actions{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:6px!important}
 #ammReactStudioRoot .am5-card-actions .am5-tile-secondary{grid-column:1/-1;min-height:38px!important}
 #ammReactStudioRoot .am5-card-actions button{padding:8px 6px!important;font-size:12px!important}
}
