/* BuddySocial v10.75 - Mobile/Tablet/App player full rebuild
   Desktop untouched. Same mobile layout is used in browser + PWA/app. */

@media (max-width:1100px){
  .profile-player,
  .profile-playlist,
  .integrated-stream-preview .profile-player,
  .player-studio-card .profile-player,
  .retro-box .profile-player{
    position:relative !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
    gap:12px !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    margin:0 auto !important;
    padding:14px !important;
    box-sizing:border-box !important;
    overflow:hidden !important;
    border-radius:22px !important;
    box-shadow:0 10px 24px rgba(12,42,71,.18), inset 0 1px 0 rgba(255,255,255,.22) !important;
  }

  .profile-player > *{
    position:relative !important;
    inset:auto !important;
    left:auto !important;
    right:auto !important;
    top:auto !important;
    bottom:auto !important;
    float:none !important;
    clear:both !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    margin:0 !important;
    box-sizing:border-box !important;
    transform:none !important;
  }

  .profile-player audio{display:none !important;}

  .profile-player .pp-brand{order:1 !important; display:flex !important; align-items:center !important; gap:10px !important; width:100% !important; padding:8px 10px !important; border-radius:14px !important; background:linear-gradient(180deg,rgba(255,255,255,.14),rgba(0,0,0,.10)) !important; border:1px solid rgba(255,255,255,.20) !important;}
  .profile-player .pp-brand img{width:38px !important;height:38px !important;flex:0 0 38px !important;border-radius:10px !important;object-fit:contain !important;background:rgba(255,255,255,.92) !important;}
  .profile-player .pp-brand span{display:block !important;max-width:none !important;white-space:normal !important;overflow:visible !important;text-overflow:unset !important;font-size:12px !important;line-height:1.25 !important;font-weight:900 !important;}

  .profile-player .pp-main{order:2 !important; display:block !important; width:100% !important; padding:13px !important; border-radius:18px !important; background:linear-gradient(180deg,rgba(0,0,0,.14),rgba(0,0,0,.20)) !important; border:1px solid rgba(255,255,255,.18) !important;}
  .profile-player .pp-now{display:flex !important;flex-wrap:wrap !important;align-items:center !important;gap:7px !important;margin:0 0 10px !important;}
  .profile-player .pp-title{display:block !important;width:100% !important;min-width:0 !important;white-space:normal !important;overflow:visible !important;text-overflow:unset !important;word-break:break-word !important;font-size:15px !important;line-height:1.28 !important;font-weight:900 !important;}
  .profile-player .pp-live-badge,
  .profile-player .pp-listeners,
  .profile-player .pp-trackno{display:inline-flex !important;align-items:center !important;justify-content:center !important;min-height:24px !important;padding:4px 8px !important;border-radius:999px !important;font-size:10px !important;font-weight:900 !important;}
  .profile-player .pp-progress{display:block !important;width:100% !important;height:12px !important;margin:2px 0 10px !important;border-radius:999px !important;background:rgba(0,0,0,.28) !important;border:1px solid rgba(255,255,255,.16) !important;overflow:hidden !important;}
  .profile-player .pp-progress > span{display:block !important;height:100% !important;border-radius:999px !important;}
  .profile-player .pp-eq{display:flex !important;align-items:flex-end !important;justify-content:center !important;gap:4px !important;height:22px !important;min-height:22px !important;margin:0 0 10px !important;overflow:hidden !important;}
  .profile-player .pp-eq > span{width:4px !important;max-width:4px !important;flex:0 0 4px !important;}
  .profile-player .pp-bottomline{display:flex !important;flex-direction:column !important;align-items:stretch !important;gap:8px !important;margin:0 !important;}
  .profile-player .pp-time{display:flex !important;align-items:center !important;justify-content:center !important;gap:6px !important;min-height:32px !important;padding:6px 10px !important;border-radius:999px !important;background:rgba(0,0,0,.12) !important;border:1px solid rgba(255,255,255,.14) !important;font-size:11px !important;}
  .profile-player .pp-volume-inline{display:flex !important;align-items:center !important;gap:9px !important;width:100% !important;min-height:36px !important;padding:6px 10px !important;border-radius:999px !important;background:rgba(0,0,0,.12) !important;border:1px solid rgba(255,255,255,.14) !important;}
  .profile-player .pp-mute{flex:0 0 30px !important;width:30px !important;height:30px !important;min-width:30px !important;border-radius:50% !important;}
  .profile-player .pp-volume{display:block !important;width:100% !important;max-width:100% !important;min-width:0 !important;}
  .profile-player .pp-stream-info{display:grid !important;grid-template-columns:1fr !important;gap:6px !important;margin-top:10px !important;}
  .profile-player .pp-stream-info span{display:block !important;width:100% !important;min-width:0 !important;padding:6px 8px !important;border-radius:10px !important;background:rgba(255,255,255,.08) !important;border:1px solid rgba(255,255,255,.14) !important;font-size:10px !important;line-height:1.25 !important;white-space:normal !important;overflow-wrap:anywhere !important;}

  .profile-player .pp-vinyl-wrap{order:3 !important; display:flex !important; align-items:center !important; justify-content:center !important; width:100% !important; padding:2px 0 !important;}
  .profile-player .pp-vinyl{width:min(150px,46vw) !important;height:min(150px,46vw) !important;max-width:150px !important;max-height:150px !important;}
  .profile-player .pp-vinyl-label{overflow:hidden !important;border-radius:50% !important;}
  .profile-player .pp-vinyl-cover{width:100% !important;height:100% !important;object-fit:cover !important;}

  .profile-player .pp-controls{order:4 !important; display:flex !important; justify-content:center !important; align-items:center !important; gap:12px !important; width:100% !important; padding:0 !important;}
  .profile-player .pp-controls > button{display:inline-flex !important;align-items:center !important;justify-content:center !important;flex:0 0 auto !important;width:48px !important;height:48px !important;min-width:48px !important;border-radius:16px !important;background:linear-gradient(180deg,rgba(255,255,255,.18),rgba(0,0,0,.18)) !important;border:1px solid rgba(255,255,255,.28) !important;box-shadow:0 6px 14px rgba(0,0,0,.16), inset 0 1px 0 rgba(255,255,255,.28) !important;}
  .profile-player .pp-controls .pp-play{width:62px !important;height:62px !important;min-width:62px !important;border-radius:18px !important;background:linear-gradient(180deg,color-mix(in srgb,var(--player-accent,#f39a16) 84%,#fff),var(--player-accent,#f39a16)) !important;border:2px solid rgba(255,255,255,.50) !important;box-shadow:0 8px 18px color-mix(in srgb,var(--player-accent,#f39a16) 35%,transparent), inset 0 1px 0 rgba(255,255,255,.34) !important;}

  .profile-player .pp-list-toggle{order:5 !important; display:block !important; width:100% !important; min-height:46px !important; padding:10px 12px !important; text-align:center !important; border-radius:14px !important; background:linear-gradient(180deg,rgba(255,255,255,.14),rgba(0,0,0,.14)) !important; border:1px solid rgba(255,255,255,.20) !important; font-size:12px !important; font-weight:800 !important;}
  .profile-player .pp-playlist-list{order:6 !important; display:block !important; width:100% !important; max-height:240px !important; overflow:auto !important; padding:4px !important; border-radius:14px !important; background:rgba(0,0,0,.10) !important; border:1px solid rgba(255,255,255,.14) !important;}
  .profile-player .pp-track{display:grid !important;grid-template-columns:auto minmax(0,1fr) auto !important;align-items:center !important;gap:8px !important;width:100% !important;min-width:0 !important;min-height:42px !important;padding:8px 9px !important;margin:2px 0 !important;border-radius:10px !important;background:rgba(255,255,255,.05) !important;border:1px solid transparent !important;}
  .profile-player .pp-track.active{background:color-mix(in srgb,var(--player-accent,#f39a16) 18%,rgba(255,255,255,.06)) !important;border-color:color-mix(in srgb,var(--player-accent,#f39a16) 52%,rgba(255,255,255,.16)) !important;}
  .profile-player .pp-track > b{min-width:0 !important;overflow:hidden !important;text-overflow:ellipsis !important;white-space:nowrap !important;font-size:11px !important;line-height:1.2 !important;}

  body.app-mode .profile-player,
  body.app-mode .profile-playlist{
    width:100% !important;
    max-width:100% !important;
  }
}

@media (max-width:680px){
  .profile-player,
  .profile-playlist,
  .integrated-stream-preview .profile-player,
  .player-studio-card .profile-player,
  .retro-box .profile-player{padding:12px !important;gap:10px !important;border-radius:20px !important;}
  .profile-player .pp-vinyl{width:min(136px,44vw) !important;height:min(136px,44vw) !important;}
  .profile-player .pp-controls{gap:10px !important;}
  .profile-player .pp-controls > button{width:46px !important;height:46px !important;min-width:46px !important;}
  .profile-player .pp-controls .pp-play{width:58px !important;height:58px !important;min-width:58px !important;}
}

@media (display-mode:standalone) and (max-width:1100px){
  .profile-player,
  .profile-playlist,
  .integrated-stream-preview .profile-player,
  .player-studio-card .profile-player,
  .retro-box .profile-player{
    display:flex !important;
    flex-direction:column !important;
  }
}
