/* AhilyanagarDJ's Music — Mobile UX Patch v12.2 */
.account-person-avatar-link{color:inherit;text-decoration:none;flex:0 0 auto}
.adc-mobile-home-chips{display:none}

/* Settings -> Your Data: remove native white button appearance and keep content readable */
.settings-action-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:12px}
.settings-action-grid form{margin:0;min-width:0}
.settings-action-grid a,.settings-action-grid button{appearance:none;-webkit-appearance:none;width:100%;height:100%;min-height:84px;border:1px solid #352b23;border-radius:14px;background:linear-gradient(180deg,#17130f,#100e0c);color:#fff8ed;padding:14px 15px;text-align:left;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:5px;box-shadow:none;white-space:normal}
.settings-action-grid a:hover,.settings-action-grid button:hover{background:#211a15;border-color:#4a3829}
.settings-action-grid strong,.settings-action-grid small{display:block;width:100%;white-space:normal;overflow-wrap:anywhere}
.settings-action-grid strong{font-size:14px;line-height:1.25;color:#fff;font-weight:850}
.settings-action-grid small{font-size:11px;line-height:1.45;color:#9f958c;font-weight:500}

/* Full standalone legal/about reader */
.standalone-content-page{min-height:100dvh;background:#090908;color:#fff8ed;overflow:hidden}
.standalone-content-shell{height:100dvh;display:grid;grid-template-rows:auto minmax(0,1fr);background:#090908}
.standalone-backbar{min-height:62px;padding:max(10px,env(safe-area-inset-top)) 14px 10px;display:flex;align-items:center;border-bottom:1px solid #28221d;background:#0a0908eF;backdrop-filter:blur(12px);z-index:5}
.standalone-backbar button{border:1px solid #3b3027;background:#181411;color:#fff;border-radius:999px;min-height:42px;padding:0 16px;display:inline-flex;align-items:center;gap:9px;font-weight:850}
.standalone-backbar button span{font-size:20px;line-height:1}
.standalone-frame-wrap{min-height:0;overflow:hidden;background:#090908}
.standalone-content-frame{display:block;width:100%;height:100%;border:0;background:#090908}

/* Search discovery cards */
.search-browse-section{margin:22px 0 8px}
.search-browse-heading span{font-size:10px;font-weight:900;letter-spacing:.15em;color:#ffad27}
.search-browse-heading h2{margin:5px 0 13px;font-size:23px}
.search-category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.search-category-card{position:relative;min-height:112px;border-radius:14px;overflow:hidden;padding:14px;background:linear-gradient(135deg,#5b2209,#b64b12);border:1px solid #ffffff0d;color:#fff;text-decoration:none;display:flex;align-items:flex-end;isolation:isolate}
.search-category-card:nth-child(3n+2){background:linear-gradient(135deg,#35195f,#7726b8)}
.search-category-card:nth-child(3n+3){background:linear-gradient(135deg,#142e58,#1c6297)}
.search-category-card img{position:absolute;right:-13px;bottom:-12px;width:88px;height:88px;object-fit:cover;border-radius:12px;transform:rotate(10deg);opacity:.72;z-index:-1;box-shadow:0 12px 24px #0006}
.search-category-card span{min-width:0;max-width:75%}
.search-category-card strong,.search-category-card small{display:block}
.search-category-card strong{font-size:15px;line-height:1.15}
.search-category-card small{margin-top:4px;font-size:9px;color:#f2dfcc}
.search-category-card b{position:absolute;right:12px;top:10px;font-size:20px;opacity:.72}

/* Shared Create bottom sheet */
.adc-create-backdrop{position:fixed;inset:0;z-index:9994;background:rgba(0,0,0,.62);backdrop-filter:blur(2px)}
.adc-create-sheet{position:fixed;z-index:9995;left:50%;bottom:0;transform:translateX(-50%);width:min(680px,100%);padding:10px 18px calc(22px + env(safe-area-inset-bottom));border:1px solid #302820;border-bottom:0;border-radius:26px 26px 0 0;background:#171717;color:#fff;box-shadow:0 -24px 60px #0009}
.adc-create-sheet .adc-create-handle{width:42px;height:4px;border-radius:999px;background:#696969;margin:2px auto 15px}
.adc-create-sheet-option{appearance:none;-webkit-appearance:none;width:100%;border:0;background:transparent;color:#fff;display:grid;grid-template-columns:58px minmax(0,1fr);gap:14px;align-items:center;text-align:left;padding:12px 4px;border-radius:16px}
.adc-create-sheet-option:hover{background:#ffffff08}
.adc-create-sheet-icon{width:58px;height:58px;border-radius:50%;display:grid;place-items:center;background:#494949;color:#fff;font-size:27px}
.adc-create-sheet-option strong,.adc-create-sheet-option small{display:block}
.adc-create-sheet-option strong{font-size:18px}
.adc-create-sheet-option small{margin-top:5px;color:#b7b7b7;font-size:12px;line-height:1.35}
.create-sheet-open .mobile-mini-player,.create-sheet-open .adc-global-mini{display:none!important}

/* Full screen playlist naming page */
.playlist-create-page{min-height:100dvh;background:linear-gradient(180deg,#5a5a5a 0,#383838 32%,#121212 74%,#090909 100%);color:#fff;margin:0;padding:0 0 82px}
.playlist-create-stage{min-height:calc(100dvh - 82px);display:grid;place-items:center;padding:40px 24px max(42px,env(safe-area-inset-bottom))}
.playlist-create-card{width:min(620px,100%);text-align:center}
.playlist-create-card h1{font-size:clamp(30px,7vw,44px);line-height:1.1;margin:0 0 52px;font-weight:900}
.playlist-name-field{display:block;position:relative;margin:0 auto 54px;max-width:560px}
.playlist-name-field input{appearance:none;width:100%;border:0;border-bottom:1px solid #a8a8a8;background:transparent;color:#fff;text-align:center;font-size:clamp(36px,8vw,58px);font-weight:850;line-height:1.2;padding:10px 6px 18px;outline:none;caret-color:#ffad27}
.playlist-name-field input:focus{border-bottom-color:#ffad27}
.playlist-create-actions{display:flex;justify-content:center;gap:16px;flex-wrap:wrap}
.playlist-create-actions a,.playlist-create-actions button{min-width:132px;min-height:54px;border-radius:999px;padding:0 24px;display:inline-flex;align-items:center;justify-content:center;font-weight:900;text-decoration:none}
.playlist-create-actions a{border:1px solid #8a8a8a;color:#fff;background:transparent}
.playlist-create-actions button{border:0;background:linear-gradient(135deg,#ffc54d,#ff7414);color:#1a0a00}
.playlist-create-error{max-width:520px;margin:0 auto 24px;padding:11px 14px;border-radius:12px;background:#501c19;color:#ffd8d3;border:1px solid #7a332d}

@media(max-width:900px){
  /* Home: profile avatar + discovery chips only; Search remains in bottom navigation */
  .page-home .listener-topbar{padding:10px 14px!important;gap:10px!important;background:#0b0b0aec!important}
  .page-home .listener-topbar>.adc-top-home,.page-home .listener-topbar>.adc-search-launch,.page-home .listener-topbar>#refresh{display:none!important}
  .page-home .drawer-profile-trigger{width:44px!important;height:44px!important;flex:0 0 44px!important}
  .page-home .adc-mobile-home-chips{display:flex;align-items:center;gap:8px;overflow-x:auto;min-width:0;scrollbar-width:none}
  .page-home .adc-mobile-home-chips::-webkit-scrollbar{display:none}
  .page-home .adc-mobile-home-chips .home-filter{white-space:nowrap;min-height:40px;padding:0 17px;font-size:13px}
  .page-home .quick-filter-bar{display:none!important}

  /* Compact Search / Your Library header */
  .account-page.has-mobile-bottom{padding:10px 14px 104px!important}
  .adc-compact-account-page .account-wrap{max-width:none!important;width:100%}
  .adc-compact-account-page .account-person-header{margin:0 0 14px!important;padding:4px 2px 8px!important;gap:12px!important;align-items:center!important}
  .adc-compact-account-page .account-person-avatar img,.adc-compact-account-page .account-person-avatar span{width:48px!important;height:48px!important;border-width:2px!important;font-size:19px!important}
  .adc-compact-account-page .account-person-copy h1{font-size:30px!important;line-height:1.1!important;margin:0!important}
  .adc-compact-account-page .account-person-copy p{display:none!important}
  .adc-compact-account-page .account-nav{display:none!important}

  /* Search: discovery-first layout */
  .page-search .search-page-card{margin:0!important;padding:8px 0 22px!important;border:0!important;background:transparent!important;box-shadow:none!important;min-height:calc(100dvh - 165px)!important}
  .page-search .dedicated-search-box{min-height:56px;background:#f3f3f3!important;border-color:#f3f3f3!important;color:#111!important;border-radius:10px!important}
  .page-search .dedicated-search-box span{color:#111;font-size:24px}
  .page-search .dedicated-search-box input{color:#111!important;font-weight:700;font-size:17px!important}
  .page-search .dedicated-search-box input::placeholder{color:#555!important;opacity:1}
  .page-search .search-filter-chips{overflow-x:auto;scrollbar-width:none;margin:14px 0 18px}
  .page-search .search-filter-chips::-webkit-scrollbar{display:none}
  .page-search .search-category-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .page-search .search-category-card{min-height:104px}
  .page-search #search-state{margin-top:16px}

  /* Your Library */
  .page-library .library-section-tabs{position:sticky;top:0;z-index:10;margin:0 0 14px;padding:8px 0 12px;background:#0a0908;scrollbar-width:none}
  .page-library .library-section-tabs::-webkit-scrollbar{display:none}
  .page-library .library-section-tabs a{min-height:40px;padding:0 16px;font-size:11px;background:#211d19}
  .page-library .library-summary-card{margin-top:0}
  .library-guest-stage{min-height:calc(100dvh - 190px);display:grid;place-items:center;padding:16px 0 32px}
  .library-guest-stage .library-guest-card{width:min(520px,100%);margin:0!important;padding:34px 24px!important}
  .library-guest-actions{flex-direction:row!important;gap:10px!important}
  .library-guest-actions .account-button{width:auto!important;min-width:124px}

  /* Bottom navigation active state + spacing */
  .mobile-bottom-nav.adc-shared-bottom-nav,.page-home .mobile-bottom-nav{z-index:9991}
  .mobile-bottom-nav a,.mobile-bottom-nav button{border:0!important;background:transparent!important;box-shadow:none!important;color:#918b85!important;font-size:10px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:3px!important;min-width:0!important;text-decoration:none!important}
  .mobile-bottom-nav a>span,.mobile-bottom-nav button>span{font-size:22px!important;line-height:1!important}
  .mobile-bottom-nav .adc-library-svg{width:21px!important;height:21px!important}
  .mobile-bottom-nav .active,.mobile-bottom-nav [aria-current="page"]{color:#fff!important;background:transparent!important;box-shadow:none!important}
  .mobile-bottom-nav button:disabled{opacity:1;cursor:default}
  body.has-mobile-bottom .adc-global-mini{bottom:78px!important}

  .settings-action-grid{grid-template-columns:1fr!important;gap:9px}
  .settings-action-grid a,.settings-action-grid button{min-height:76px!important;padding:13px 14px!important}
  .standalone-backbar{min-height:58px}
  .standalone-backbar button{min-height:40px;padding:0 14px}
  .adc-create-sheet{padding-inline:20px}
}

@media(max-width:520px){
  .search-category-card strong{font-size:14px}
  .library-guest-actions{flex-direction:column!important;width:100%}
  .library-guest-actions .account-button{width:100%!important}
  .playlist-create-stage{padding-inline:18px}
  .playlist-create-card h1{margin-bottom:44px}
  .playlist-name-field{margin-bottom:46px}
  .playlist-create-actions{gap:12px}
}
@media(max-width:900px){
  .adc-create-sheet{bottom:72px;border-radius:26px 26px 0 0;padding-bottom:18px}
}


/* =========================================================
   AhilyanagarDJ's Music — Mobile polish v12.3
   ========================================================= */

/* Home -> Jump back in: title + artist use the same text-column edge. */
.adc-quick-grid .quick-card .quick-card-copy{
  min-width:0;
  padding:0 12px!important;
  display:flex!important;
  flex-direction:column;
  justify-content:center;
  align-items:flex-start;
}
.adc-quick-grid .quick-card .quick-card-copy strong,
.adc-quick-grid .quick-card .quick-card-copy small{
  width:100%;
  padding:0!important;
  margin-left:0!important;
  text-align:left!important;
}
.adc-quick-grid .quick-card .quick-card-copy small{margin-top:3px!important}

@media(max-width:900px){
  /* The persistent mini-player must always sit ABOVE the bottom nav. */
  body.has-mobile-bottom .mobile-mini-player,
  .page-home .mobile-mini-player{
    position:fixed!important;
    left:10px!important;
    right:10px!important;
    width:auto!important;
    bottom:calc(72px + env(safe-area-inset-bottom) + 8px)!important;
    z-index:9993!important;
  }
  body.has-mobile-bottom .adc-global-mini,
  .page-search .adc-global-mini,
  .page-library .adc-global-mini{
    bottom:calc(72px + env(safe-area-inset-bottom) + 8px)!important;
    z-index:9993!important;
  }
  .mobile-bottom-nav,
  .mobile-bottom-nav.adc-shared-bottom-nav{
    z-index:9992!important;
  }
  .page-home .listener-main{
    padding-bottom:calc(154px + env(safe-area-inset-bottom))!important;
  }
  .account-page.has-mobile-bottom{
    padding-bottom:calc(156px + env(safe-area-inset-bottom))!important;
  }

  /* Full player proportions closer to a native music player. */
  .full-player{
    z-index:10020!important;
    background:#120b08!important;
    overscroll-behavior:contain;
    will-change:transform;
  }
  .full-player:not(.hidden){
    display:block!important;
    visibility:visible;
  }
  .full-player.player-opening,
  .full-player.player-open,
  .full-player.player-closing{
    display:block!important;
  }
  .full-player.player-opening{
    transform:translate3d(0,100%,0);
    transition:none!important;
  }
  .full-player.player-open{
    transform:translate3d(0,0,0);
    transition:transform .28s cubic-bezier(.2,.75,.25,1)!important;
  }
  .full-player.player-closing{
    transform:translate3d(0,100%,0)!important;
    transition:transform .24s cubic-bezier(.4,0,1,1)!important;
  }
  body.player-sheet-open{overflow:hidden!important}

  .full-player-inner{
    width:100%!important;
    max-width:560px!important;
    height:100dvh!important;
    max-height:100dvh!important;
    margin:0 auto!important;
    padding:max(10px,env(safe-area-inset-top)) 20px max(12px,env(safe-area-inset-bottom))!important;
    display:flex!important;
    flex-direction:column!important;
    overflow:hidden!important;
  }
  .full-player-top{
    flex:0 0 auto!important;
    min-height:50px!important;
    padding:0!important;
    grid-template-columns:44px minmax(0,1fr) 82px!important;
  }
  .full-player-top>div:nth-child(2){min-width:0;padding:0 6px}
  .full-player-top small,
  .full-player-top strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .full-player-close{width:44px;height:44px;display:grid;place-items:center;padding:0!important}
  .full-player-top-actions{min-width:82px!important;gap:4px!important}

  .full-cover-wrap{
    flex:0 1 auto!important;
    width:min(86vw,48dvh,480px)!important;
    max-width:min(86vw,48dvh,480px)!important;
    max-height:min(86vw,48dvh,480px)!important;
    aspect-ratio:1/1!important;
    margin:6px auto 10px!important;
  }
  .full-cover-wrap img{
    width:100%!important;
    height:100%!important;
    object-fit:contain!important;
    border-radius:8px!important;
  }
  .full-track-meta{
    width:100%!important;
    margin:0 0 6px!important;
    gap:12px!important;
    align-items:center!important;
  }
  .full-track-meta>div{min-width:0!important}
  .full-track-meta strong{
    font-size:clamp(20px,5.8vw,26px)!important;
    line-height:1.15!important;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .full-track-meta a{
    margin-top:4px!important;
    font-size:13px!important;
    line-height:1.25!important;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .full-track-meta .heart.giant{
    flex:0 0 46px!important;
    width:46px!important;
    height:46px!important;
    display:grid!important;
    place-items:center!important;
    font-size:28px!important;
  }
  .full-progress{
    width:100%!important;
    margin:4px 0 5px!important;
  }
  .full-progress input{height:4px!important;width:100%!important}
  .full-progress>div{margin-top:3px!important;font-size:10px!important}
  .full-controls{
    width:100%!important;
    max-width:500px!important;
    margin:5px auto 4px!important;
    padding:0 2px!important;
    display:grid!important;
    grid-template-columns:repeat(5,minmax(44px,1fr))!important;
    align-items:center!important;
    justify-items:center!important;
    gap:2px!important;
  }
  .full-controls button{
    min-width:46px!important;
    min-height:46px!important;
    width:46px!important;
    height:46px!important;
    display:grid!important;
    place-items:center!important;
    padding:0!important;
    font-size:21px!important;
  }
  .full-controls .full-play{
    width:68px!important;
    height:68px!important;
    min-width:68px!important;
    min-height:68px!important;
    font-size:27px!important;
  }
  .full-secondary-actions{
    width:100%!important;
    margin:7px 0 7px!important;
    padding:0 8px!important;
    display:grid!important;
    grid-template-columns:repeat(3,1fr)!important;
    justify-items:center!important;
    gap:8px!important;
  }
  .full-secondary-actions button{
    min-width:72px!important;
    min-height:50px!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:2px!important;
    padding:2px 8px!important;
    font-size:20px!important;
  }
  .full-secondary-actions span{margin-top:2px!important;font-size:9px!important}
  .track-about-card{
    flex:0 1 auto!important;
    min-height:0!important;
    max-height:14dvh!important;
    overflow:auto!important;
    margin:2px 0 0!important;
    padding:11px 13px!important;
  }

  /* Keep mini-player interaction visually connected to the full-player sheet. */
  .mobile-mini-player{transition:transform .18s ease,opacity .18s ease,box-shadow .18s ease!important}
  body.player-sheet-open .mobile-mini-player{opacity:0!important;transform:translateY(10px)!important;pointer-events:none!important}
}

@media(max-width:560px){
  .full-player-inner{padding-left:18px!important;padding-right:18px!important}
  .full-cover-wrap{width:min(88vw,47dvh,460px)!important;max-width:min(88vw,47dvh,460px)!important;max-height:min(88vw,47dvh,460px)!important}
}

@media(max-height:700px) and (max-width:900px){
  .full-cover-wrap{width:min(76vw,38dvh,300px)!important;max-width:min(76vw,38dvh,300px)!important;max-height:min(76vw,38dvh,300px)!important;margin:2px auto 5px!important}
  .full-player-top{min-height:42px!important}
  .full-track-meta strong{font-size:20px!important}
  .full-controls{margin-top:1px!important}
  .full-controls .full-play{width:60px!important;height:60px!important;min-width:60px!important;min-height:60px!important}
  .full-secondary-actions{margin:2px 0!important}
  .track-about-card{max-height:11dvh!important;padding:8px 10px!important}
}

@media(prefers-reduced-motion:reduce){
  .full-player.player-open,.full-player.player-closing,.mobile-mini-player{transition:none!important}
}
