/* Flyeer mobile shell - carregado por ultimo para neutralizar medidas de desktop. */
.mobile-library-backdrop{display:none}

@media (max-width:760px){
  :root{--mobile-top:62px;--mobile-player:72px}
  *{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
  html,body{width:100%;height:100%;min-width:0;overflow:hidden;overscroll-behavior:none}
  body{background:#090909}
  button,a,[data-open],[data-route]{touch-action:manipulation}
  .app,.app.library-compact,.app.now-open,.app.chat-expanded,.app.player-open{width:100%;height:100dvh;min-height:100svh;display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:var(--mobile-top) minmax(0,1fr) var(--player-space,0px)!important;gap:0;padding:0;overflow:hidden}
  .app.player-open{--player-space:var(--mobile-player)}
  .top{position:relative!important;inset:auto!important;grid-column:1;grid-row:1;width:100%;height:var(--mobile-top);min-width:0;padding:7px 8px;gap:6px;border-radius:0;background:#111;z-index:80}
  .top #mobile-menu{display:grid!important;width:42px;height:42px;place-items:center;flex:0 0 42px;border:0;border-radius:50%;background:#252525;color:transparent;font-size:0}
  .top #mobile-menu::before{content:'☰';color:#fff;font-size:20px;line-height:1}
  .top-logo,.home-button,.top-back-button,#queue-top,.admin-button,.top .profile b,.top .profile i{display:none!important}
  .global-search{min-width:0;width:auto!important;flex:1;height:44px;margin:0;padding:0 8px 0 11px}
  .global-search input{min-width:0;font-size:14px}
  .global-search .search-icon{width:21px;height:21px}
  .global-search i{display:none}
  #search-browse{width:34px!important;height:34px!important;flex:0 0 34px}
  .top-actions{min-width:0;flex:0 0 auto;gap:4px;margin:0}
  .top-actions>#messages-button,.top-actions>#notifications-button{width:40px!important;height:40px!important;display:grid!important;place-items:center!important}
  .top-actions>#notifications-button{display:none!important}
  .top .profile{display:grid!important;width:40px!important;height:40px!important;flex:0 0 40px;padding:0!important}
  .top .profile #profile-avatar{width:38px;height:38px}
  .profile-menu{position:fixed;z-index:160;top:58px!important;right:8px!important;left:auto!important}
  .recent-searches{position:fixed!important;z-index:150;top:58px!important;left:8px!important;right:8px!important;width:auto!important;max-height:60dvh;overflow:auto}
  .library,.app.library-compact .library{position:fixed!important;z-index:120;left:0;top:0;bottom:0;width:min(88vw,360px);height:100dvh;padding:14px 10px calc(16px + env(safe-area-inset-bottom));border-radius:0 16px 16px 0;transform:translateX(-105%);transition:transform .24s ease;box-shadow:18px 0 55px #000c;overflow:hidden}
  .library.open{transform:translateX(0)}
  .library.open~.mobile-library-backdrop{display:block;position:fixed;z-index:110;inset:0;width:100%;height:100%;border:0;background:#0009;backdrop-filter:blur(2px)}
  .library-head{min-height:50px}
  .library-head h2,.app.library-compact .library-head h2{display:flex!important;font-size:17px}
  .library-head #new-playlist,.app.library-compact .library-head #new-playlist{display:grid!important}
  .library .chips,.app.library-compact .chips{display:flex!important;max-width:100%;overflow-x:auto;scrollbar-width:none}
  .library .chips::-webkit-scrollbar{display:none}
  .library-list,.app.library-compact .library-list{min-height:0;padding:0 2px 18px!important;overflow-y:auto}
  .library-row,.app.library-compact .library-row{display:grid!important;grid-template-columns:52px minmax(0,1fr)!important;gap:11px!important;padding:8px!important}
  .library-row>div,.app.library-compact .library-row>div{display:block!important}
  .library-row img,.app.library-compact .library-row img{width:52px!important;height:52px!important;margin:0!important;border-radius:7px!important}
  .library-toggle{display:none!important}
  .view,.app.chat-expanded .view{position:relative;grid-column:1!important;grid-row:2!important;width:100%;height:100%;min-width:0;min-height:0;margin:0!important;border-radius:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}
  .view-pad{padding:17px 13px calc(28px + env(safe-area-inset-bottom))}
  .section-title{font-size:22px}
  .cards,.compact-cards{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px}
  .card{min-width:0;padding:9px}
  .card strong{font-size:14px}
  .quick-grid{grid-template-columns:1fr!important}
  .hero,.playlist-gradient-hero{min-height:0!important;height:auto!important;display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:14px!important;padding:20px 15px!important;text-align:left}
  .hero img,.hero-cover,.playlist-gradient-hero>.hero-cover{width:138px!important;height:138px!important;align-self:center;margin:0!important}
  .hero h1,.playlist-gradient-hero h1{font-size:clamp(30px,11vw,48px)!important;line-height:1.02!important;overflow-wrap:anywhere}
  .hero-actions{min-height:78px!important;height:auto!important;padding:10px 14px!important;overflow-x:auto}
  .playlist-detail-tools{margin:10px!important;padding:0!important;overflow-x:auto;white-space:nowrap}
  .track-list{width:100%;padding:0 8px 30px!important;overflow:hidden}
  .track-head{display:none!important}
  .song-row,.track-list .song-row{grid-template-columns:24px minmax(0,1fr) auto!important;gap:8px!important;padding:9px 4px!important}
  .song-row>*{min-width:0}
  .song-row>span,.song-row>.song-album-cell,.song-row>.collaborative-added-by{display:none!important}
  .song-main img{width:45px!important;height:45px!important}
  .song-main>div>strong{font-size:14px!important}
  .song-main .song-artist-link{font-size:12px!important}
  .player{position:relative!important;inset:auto!important;grid-column:1;grid-row:3;width:100%!important;height:var(--mobile-player)!important;min-width:0;margin:0;padding:7px 8px calc(7px + env(safe-area-inset-bottom));display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:7px;border:0;border-top:1px solid #ffffff17;border-radius:0;background:linear-gradient(110deg,color-mix(in srgb,var(--art-color) 55%,#111),#111 58%)!important;overflow:visible}
  .player .track,.player .track:has(.player-media.inline-video){min-width:0;display:grid!important;grid-template-columns:48px minmax(0,1fr) 28px!important;gap:8px!important}
  .player .player-media,.player .player-media.inline-video{width:48px!important;height:48px!important;border-radius:6px}
  .player .track img,.player .player-media.inline-video>.player-inline-preview{width:48px!important;height:48px!important;border-radius:6px}
  .player .track>div:nth-child(2){min-width:0;margin:0!important;overflow:hidden}
  .player #player-title,.player #player-artist{max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;animation:none!important;transform:none!important}
  .player #like{width:28px!important;height:28px!important;margin:0!important}
  .player .transport{display:flex;align-items:center}
  .player .transport>div:first-child{height:auto;gap:5px}
  .player .transport>div:first-child button:not(.play){display:none!important}
  .player .transport .play{width:42px!important;height:42px!important}
  .player .timeline,.player .tools{display:none!important}
  .player>#party-session-banner{top:-34px!important}
  .now-panel,.app.now-open .now-panel{display:none!important}
  .app.chat-expanded .now-panel{position:fixed!important;z-index:100;inset:var(--mobile-top) 0 var(--player-space,0px) 0!important;width:100%;height:auto;display:grid!important;grid-template-columns:1fr!important;border-radius:0;box-shadow:none;animation:none}
  .app.chat-expanded .now-panel>.messages-panel{width:100%;border-radius:0}
  .app.chat-expanded .messages-panel>.chat-page{border-radius:0}
  .app.chat-expanded .messages-panel .chat-thread{padding:12px 9px!important}
  .app.chat-expanded .messages-panel .chat-bubble{max-width:88%!important}
  .chat-page{grid-template-rows:58px minmax(0,1fr) 62px!important}
  .chat-header{padding:6px 8px!important}
  .chat-thread{padding:12px 9px!important}
  .chat-compose{padding:7px!important}
  .chat-compose textarea{font-size:16px!important}
  .queue,.lyrics-view{position:fixed!important;z-index:180;inset:0!important;width:100%!important;height:100dvh!important;max-width:none!important;border-radius:0!important}
  .lyrics-scroll{padding-left:18px!important;padding-right:18px!important}
  .lyrics-line{font-size:clamp(24px,8vw,38px)!important}
  .song-menu{z-index:220!important;max-width:calc(100vw - 16px)!important;max-height:min(72dvh,620px)!important;overflow-y:auto}
  :is(.modal,.jam-create-modal,.music-chat-modal,.conversation-delete-modal,.group-pin-overlay,.playlist-editor,.artist-modal,.system-modal){padding:8px!important}
  :is(.modal,.jam-create-modal,.music-chat-modal,.conversation-delete-modal,.group-pin-overlay,.playlist-editor,.artist-modal,.system-modal)>:is(article,section,div){max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}
  .music-chat-card,.jam-create-card,.playlist-editor-card,.artist-modal-card{width:calc(100vw - 16px)!important;max-height:calc(100dvh - 16px)!important;border-radius:16px!important}
  .music-chat-body,.jam-create-body{padding-left:16px!important;padding-right:16px!important}
  .profile-hero{min-height:0!important;display:flex!important;flex-direction:column!important;align-items:center!important;gap:15px!important;padding:24px 16px!important;text-align:center}
  .profile-hero>div{width:100%;min-width:0}
  .profile-hero h1{font-size:clamp(38px,13vw,64px)!important;overflow-wrap:anywhere}
  .profile-actions{justify-content:center;flex-wrap:wrap}
  .profile-content{padding:18px 12px!important}
  .profile-section>header{align-items:flex-end;gap:8px}
  .profile-section h2{font-size:23px!important}
  .profile-round-grid,.profile-playlist-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .user-ranking-page{padding:16px 9px 35px!important}
  .user-ranking-title{font-size:28px!important}
  .user-ranking-tabs{max-width:100%;overflow-x:auto;justify-content:flex-start!important}
  #toast{z-index:10000!important;left:10px!important;right:10px!important;bottom:calc(var(--mobile-player) + 12px)!important;width:auto!important;pointer-events:none}
  #toast .toast{width:100%;margin-top:7px}
}

@media (max-width:430px){
  .top-actions>#messages-button{display:none!important}
  .global-search{padding-left:9px}
  .hero h1,.playlist-gradient-hero h1{font-size:36px!important}
  .player .track{grid-template-columns:46px minmax(0,1fr) 25px!important}
  .player .player-media,.player .track img{width:46px!important;height:46px!important}
}

@media (orientation:landscape) and (max-height:520px) and (max-width:950px){
  :root{--mobile-top:54px;--mobile-player:62px}
  .top{padding-top:5px;padding-bottom:5px}
  .library{width:min(58vw,360px)}
  .player .player-media,.player .track img{width:42px!important;height:42px!important}
  .player .track{grid-template-columns:42px minmax(0,1fr) 26px!important}
}
