/* Phone shell: sticky top bar under the notch, bottom tab bar, compact Artist view header. Loads last. */
.av-acts svg,.mtabs svg,.msheet svg{pointer-events:none}
.av-acts{display:flex;gap:6px;flex-wrap:wrap}
.mtabs,.msheet{display:none}
@media (max-width:900px){
  body{-webkit-tap-highlight-color:transparent}
  .main{padding-top:0;padding-bottom:calc(84px + env(safe-area-inset-bottom,0px))}

  /* top bar */
  .mobilebar{position:sticky;top:0;z-index:30;display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:8px 10px;align-items:center;
    margin:0 -16px 14px;padding:calc(env(safe-area-inset-top,0px) + 10px) 16px 10px;
    background:rgba(246,247,249,.9);-webkit-backdrop-filter:saturate(1.6) blur(16px);backdrop-filter:saturate(1.6) blur(16px);border-bottom:1px solid var(--line)}
  .mobilebar select{appearance:none;-webkit-appearance:none;min-width:0;width:100%;background-repeat:no-repeat;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7480' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E")}
  #mArtist{grid-column:1;grid-row:1;border:0;background-color:transparent;font-size:21px;font-weight:800;letter-spacing:-.01em;padding:2px 26px 2px 0;background-position:right 2px center;background-size:18px;color:var(--fg);text-overflow:ellipsis}
  #mTour{grid-column:1 / -1;grid-row:2;border:1px solid var(--line);background-color:var(--panel);border-radius:12px;font-size:15px;font-weight:700;padding:10px 36px 10px 12px;background-position:right 12px center;background-size:16px;box-shadow:var(--shadow)}
  #mView{display:none!important}
  .mobilebar [data-mode-toggle]{grid-column:2;grid-row:1;flex:none!important;width:auto!important;min-height:36px;padding:8px 14px;border-radius:999px;border:1px solid var(--accent);background:var(--accent-soft);color:var(--accent);font-size:13px;font-weight:800}

  /* bottom tabs */
  .mtabs{display:grid;grid-template-columns:repeat(5,1fr);position:fixed;left:0;right:0;bottom:0;z-index:40;
    padding:6px 6px calc(6px + env(safe-area-inset-bottom,0px));background:rgba(255,255,255,.92);-webkit-backdrop-filter:saturate(1.6) blur(16px);backdrop-filter:saturate(1.6) blur(16px);border-top:1px solid var(--line)}
  .mtabs button{all:unset;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:3px;padding:6px 0 4px;border-radius:10px;color:var(--muted);font-size:11px;font-weight:700;letter-spacing:.01em;position:relative}
  .mtabs button svg{width:24px;height:24px}
  .mtabs button.on{color:var(--accent)}
  .mtabs button:active{background:var(--panel2)}
  .mtabs .dot{position:absolute;top:2px;left:calc(50% + 8px);min-width:16px;height:16px;padding:0 4px;border-radius:8px;background:var(--bad);color:#fff;font-size:10px;line-height:16px;text-align:center}
  body.artist-mode .mtabs{display:none}

  /* "More" sheet */
  .msheet{position:fixed;inset:0;z-index:60;background:rgba(16,20,24,.4);align-items:flex-end}
  .msheet.open{display:flex}
  .msheet .in{width:100%;background:var(--panel);border-radius:18px 18px 0 0;padding:8px 12px calc(14px + env(safe-area-inset-bottom,0px));box-shadow:0 -10px 40px rgba(0,0,0,.2);max-height:80vh;overflow:auto}
  .msheet .grab{width:38px;height:5px;border-radius:3px;background:var(--line);margin:4px auto 10px}
  .msheet button{all:unset;box-sizing:border-box;cursor:pointer;display:flex;align-items:center;gap:12px;width:100%;padding:13px 10px;border-radius:10px;font-size:16px;font-weight:700;color:var(--fg)}
  .msheet button:active,.msheet button.on{background:var(--panel2)}
  .msheet button.on{color:var(--accent)}
  .msheet button svg{width:22px;height:22px;color:var(--muted);flex:none}
  .msheet button .cnt{margin-left:auto;font-family:var(--mono);font-size:12px;color:var(--muted)}
  .msheet hr{border:0;border-top:1px solid var(--line);margin:6px 0}

  /* Artist view header */
  #artistView{padding-top:0!important}
  #artistView .av-top{margin:0 -16px;padding:calc(env(safe-area-inset-top,0px) + 10px) 16px 10px;gap:10px;background:rgba(246,247,249,.9);-webkit-backdrop-filter:saturate(1.6) blur(16px);backdrop-filter:saturate(1.6) blur(16px)}
  #artistView .av-brand{gap:10px}
  #artistView .av-brand > div:nth-child(2){min-width:0;flex:1}
  #artistView .av-name{font-size:19px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  #artistView .av-brand .small{display:none}
  #artistView #avLogo img,#artistView #avLogo > *{max-width:40px;max-height:40px;border-radius:10px}
  #artistView .av-brand [data-mode-toggle]{flex:none;min-height:34px;padding:7px 13px;border-radius:999px;border:1px solid var(--line);background:var(--panel);font-size:13px;font-weight:800;color:var(--fg)}
  #artistView .av-ctl{display:grid;grid-template-columns:1fr 1fr;gap:8px}
  #artistView .av-ctl select{appearance:none;-webkit-appearance:none;width:100%;min-height:40px;border-radius:12px;font-size:15px;font-weight:700;padding:8px 30px 8px 11px;background:var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7480' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center/15px;text-overflow:ellipsis;box-shadow:var(--shadow)}
  #artistView .av-acts{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;margin:0 -16px;padding:0 16px 2px}
  #artistView .av-acts::-webkit-scrollbar{display:none}
  #artistView .av-acts button{flex:none;display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:7px 13px;border-radius:999px;border:1px solid var(--line);background:var(--panel);font-size:13px;font-weight:700;color:var(--fg);white-space:nowrap}
  #artistView .av-acts button svg{width:16px;height:16px;color:var(--accent)}
  #artistView .av-acts .req-n:empty{display:none}
  #artistView .av-acts .req-n{background:var(--bad);color:#fff;border-radius:8px;padding:0 6px;font-size:11px}
  /* tidy cards */
  .av-line a{text-decoration:none}
  .av-line{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
}
@media (max-width:900px) and (prefers-color-scheme:dark){ :root[data-theme="dark"] .mtabs,:root[data-theme="dark"] .mobilebar{background:rgba(20,22,24,.9)} }
