/* Account access and touch-first Borio app experience. */
body  {
  -webkit-tap-highlight-color:transparent;
}

body.auth-mode  {
  overflow-y:auto;
  height:auto;
  background:#090909;
}

body.auth-mode #auth-view:not(.hidden)  {
  display:grid;
  grid-template-columns:minmax(0,1.08fr) minmax(0,1fr);
  min-height:100dvh;
  padding:24px;
  gap:24px;
}

.auth-brand-panel  {
  width:auto;
  min-width:0;
  padding:44px;
  border:1px solid #ff650d20;
  border-radius:28px;
  background:radial-gradient(ellipse at 15% 75%,#ff650d1d,transparent 60%),linear-gradient(150deg,#392012,#1d1510 58%,#151311);
  align-items:stretch;
  position:relative;
  overflow:hidden;
}

.brand-content  {
  max-width:640px;
  width:100%;
  display:flex;
  flex-direction:column;
  gap:36px;
  margin:auto;
}

.brand-logo  {
  margin:0;
  gap:12px;
  width:fit-content;
}

.auth-brand-icon  {
  width:50px;
  height:50px;
  border-radius:13px;
}

.brand-name  {
  font-size:25px;
}

.brand-tag  {
  font-size:8px;
  letter-spacing:2px;
  color:#c2b5ad;
}

.auth-kicker  {
  display:flex;
  align-items:center;
  gap:12px;
  color:#ff9d67;
  font-size:9px;
  font-weight:700;
  letter-spacing:2px;
  margin-bottom:20px;
}

.brand-headline  {
  font-size:clamp(42px,4.1vw,66px);
  line-height:1.1;
  letter-spacing:-3px;
  font-weight:800;
  margin:0 0 22px;
}

.brand-headline span  {
  color:var(--accent);
}

.brand-desc  {
  color:#b9aaa0;
  font-size:13px;
  line-height:1.9;
  max-width:390px;
}

.auth-gallery  {
  position:relative;
  height:240px;
  margin:10px 0 8px;
  isolation:isolate;
}

.auth-cover  {
  position:absolute;
  height:200px;
  width:185px;
  border-radius:15px;
  background-image:url('assets/radio-reference.png');
  background-size:682.45% 702.24%;
  box-shadow:0 24px 36px #0006;
}

.auth-cover-one  {
  background-position:3.434% 55.638%;
  left:0;
  top:6px;
  transform:rotate(-12deg);
}

.auth-cover-two  {
  background-position:21.86% 55.638%;
  left:calc(50% - 92px);
  top:-12px;
  z-index:2;
  transform:rotate(1deg);
}

.auth-cover-three  {
  background-position:40.11% 55.638%;
  right:0;
  top:8px;
  transform:rotate(12deg);
}

.auth-gallery-caption  {
  position:absolute;
  left:10px;
  right:10px;
  bottom:0;
  display:flex;
  align-items:center;
  gap:12px;
  padding:16px;
  border-radius:14px;
  border:1px solid #ffffff1c;
  background:#171412e8;
  backdrop-filter:blur(16px);
  z-index:3;
  box-shadow:0 12px 30px #0003;
}

.auth-music-mark  {
  display:grid;
  place-items:center;
  width:38px;
  height:38px;
  border-radius:10px;
  color:var(--accent);
  background:#ff650d18;
}

.auth-gallery-caption strong,.auth-gallery-caption span:not(.auth-music-mark)  {
  display:block;
}

.auth-gallery-caption strong  {
  font-size:12px;
  margin-bottom:4px;
}

.auth-gallery-caption div>span  {
  font-size:10px;
  color:var(--muted);
}

.brand-features  {
  margin:0;
  gap:10px;
  justify-content:space-between;
}

.feature-chip  {
  border:0;
  background:transparent;
  padding:0;
  font-size:10px;
  color:#c0b4ab;
}

.auth-form-panel  {
  min-width:0;
  padding:36px 28px;
  align-items:center;
  background:radial-gradient(ellipse at 50% 20%,#ffffff03,transparent 65%);
}

.auth-forms-container  {
  max-width:410px;
}

.auth-tabs  {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:5px;
  padding:5px;
  border:1px solid #303030;
  background:#181818;
  border-radius:999px;
  margin-bottom:34px;
}

.auth-tabs button  {
  min-height:42px;
  border-radius:999px;
  color:#999;
  font-size:12px;
  font-weight:600;
}

.auth-tabs button.active  {
  background:#34302c;
  color:white;
  box-shadow:0 3px 12px #0003;
}

.auth-panel-badge  {
  font-size:9px;
  font-weight:800;
  letter-spacing:2px;
  margin-bottom:12px;
}

.auth-panel-title  {
  font-size:36px;
  font-weight:800;
  letter-spacing:-1.5px;
  margin-bottom:12px;
}

.auth-panel-sub  {
  color:#94918d;
  font-size:12px;
  margin:0 0 28px;
}

#login-panel>.auth-back-btn,#register-panel>.auth-back-btn  {
  display:none;
}

.auth-field  {
  margin:16px 0;
}

.auth-field label  {
  font-size:11px;
  font-weight:600;
  margin-bottom:9px;
  color:#d3cec9;
}

.auth-input  {
  background:#181818;
  border:1px solid #383634;
  border-radius:12px;
  min-height:54px;
  transition:border-color .15s,box-shadow .15s;
}

.auth-input:focus-within  {
  border-color:var(--accent);
  box-shadow:0 0 0 3px #ff650d12;
}

.auth-input>i  {
  padding-left:16px;
  padding-right:13px;
  color:#817971;
  font-size:13px;
}

.auth-input input  {
  font-size:14px;
  padding:16px 10px 16px 0;
}

.password-visibility  {
  min-width:44px;
  min-height:44px;
  border-radius:8px;
  padding:0;
  display:grid;
  place-items:center;
  color:#aaa;
  margin:0 4px;
}

.password-visibility:hover  {
  color:white;
}

.auth-forgot-btn  {
  display:block;
  margin:2px 0 22px auto;
  color:#bbb5af;
  min-height:32px;
}

.auth-submit-btn  {
  min-height:52px;
  padding:14px 18px;
  border-radius:999px;
  background:var(--accent);
  color:#111;
  font-weight:800;
  box-shadow:0 8px 24px #ff650d15;
  font-size:13px;
}

.auth-submit-btn:hover  {
  background:#ff7a2c;
}

.auth-alt-btn  {
  padding:12px;
  min-height:44px;
  font-size:12px;
  color:#bab5b0;
  margin-top:10px;
}

.auth-error  {
  min-height:0;
  font-size:12px;
  line-height:1.6;
  overflow-wrap:anywhere;
}

.auth-error:not(:empty)  {
  padding:12px 14px;
  border:1px solid #ff8e7828;
  background:#ff8e780b;
  border-radius:10px;
}

.auth-footer-note  {
  display:flex;
  justify-content:center;
  align-items:center;
  gap:7px;
  font-size:10px;
  color:#686562;
  margin-top:24px;
}

.auth-footer-note i  {
  font-size:10px;
  color:#8f847a;
}

.auth-name-fields  {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

.auth-name-fields .auth-field  {
  margin:0;
}

#register-panel  {
  padding:0;
}

#register-panel .auth-field  {
  margin:12px 0;
}

#register-panel .auth-input  {
  min-height:48px;
}

#register-panel .auth-input input  {
  padding-top:13px;
  padding-bottom:13px;
}

#register-panel .auth-panel-sub  {
  margin-bottom:18px;
}

#register-panel .auth-submit-btn  {
  margin-top:20px;
}

.auth-back-btn  {
  min-height:40px;
  margin-bottom:20px;
}

.install-dialog  {
  width: min(400px,calc(100vw - 32px));
  padding:28px;
  border-radius:22px;
  border:1px solid #383838;
  background:#1b1b1b;
  color:white;
  margin:auto;
}

.install-dialog::backdrop  {
  background:#0009;
  backdrop-filter:blur(8px);
}

.install-dialog .install-icon  {
  width:64px;
  height:64px;
  margin-bottom:18px;
}

.install-dialog h2  {
  font-size:22px;
  margin-bottom:12px;
}

.install-dialog p  {
  font-size:13px;
  line-height:1.8;
  color:#bcb6b0;
  margin-bottom:20px;
}

.app-install-button  {
  display:flex;
  gap:9px;
  align-items:center;
  padding:12px 0;
  color:var(--accent);
  font-size:12px;
}

.install-dialog button  {
  min-height:44px;
}

.spotify-shell .dashboard-main  {
  overscroll-behavior:contain;
}

.spotify-shell .mini-track  {
  text-align:left;
}

@media(min-width:1700px)  {
  body.auth-mode #auth-view:not(.hidden)  {
    max-width:1800px;
    margin:auto;
  }
}

@media(max-width:1100px) and (min-width:701px)  {
  body.auth-mode #auth-view:not(.hidden)  {
    padding:16px;
    gap:16px;
  }
  .auth-brand-panel  {
    padding:30px;
  }
  .brand-content  {
    gap:28px;
  }
  .brand-headline  {
    font-size:44px;
  }
  .auth-form-panel  {
    padding:24px 12px;
  }
  .auth-cover  {
    width:140px;
    height:170px;
  }
  .auth-cover-two  {
    left:calc(50% - 70px);
  }
  .auth-gallery  {
    height:210px;
  }
  .brand-features  {
    gap:14px;
    flex-wrap:wrap;
  }
}

@media(max-height:740px) and (min-width:701px)  {
  .brand-content  {
    gap:24px;
  }
  .brand-headline  {
    font-size:44px;
  }
  .auth-gallery  {
    height:170px;
  }
  .auth-cover  {
    height:140px;
    width:140px;
  }
  .auth-cover-two  {
    left:calc(50% - 70px);
  }
  .auth-form-panel  {
    padding-top:20px;
    padding-bottom:20px;
  }
}

@media(max-width:700px)  {
  body.auth-mode #auth-view:not(.hidden)  {
    display:flex;
    flex-direction:column;
    padding:0;
    gap:0;
    background:radial-gradient(ellipse at 85% 0,#8e3a1938,transparent 50%),#0d0d0d;
    min-height:100dvh;
  }
  .auth-brand-panel  {
    background:transparent;
    border:0;
    border-radius:0;
    padding:calc(24px + env(safe-area-inset-top)) 24px 22px;
    min-height:0;
    width:100%;
  }
  .brand-content  {
    display:block;
  }
  .brand-logo  {
    justify-content:center;
    margin:0 auto;
    gap:10px;
  }
  .auth-brand-icon  {
    width:46px;
    height:46px;
    border-radius:12px;
  }
  .brand-name  {
    font-size:23px;
  }
  .brand-tag  {
    font-size:7px;
    letter-spacing:1.6px;
  }
  .auth-story,.auth-gallery,.brand-features  {
    display:none;
  }
  .auth-form-panel  {
    display:block;
    padding:16px 24px calc(28px + env(safe-area-inset-bottom));
    width:100%;
    flex:1;
    background:transparent;
  }
  .auth-forms-container  {
    margin:auto;
    max-width:440px;
  }
  .auth-tabs  {
    margin-bottom:30px;
  }
  .auth-tabs button  {
    font-size:12px;
    min-height:42px;
  }
  .auth-panel-title  {
    font-size:33px;
  }
  .auth-panel-sub  {
    font-size:12px;
    line-height:1.7;
    margin-bottom:27px;
  }
  .auth-input  {
    min-height:56px;
    border-radius:13px;
    background:#1b1917;
  }
  .auth-input input  {
    font-size:16px;
  }
  .auth-field  {
    margin:19px 0;
  }
  .auth-field label  {
    font-size:12px;
  }
  .auth-submit-btn  {
    min-height:56px;
    font-size:14px;
  }
  .auth-alt-btn  {
    font-size:12px;
  }
  .auth-footer-note  {
    margin-top:26px;
    font-size:10px;
  }
  #register-panel .auth-input  {
    min-height:52px;
  }
  #register-panel .auth-field  {
    margin:15px 0;
  }
  #register-panel .auth-input input  {
    font-size:16px;
  }
  #register-panel .auth-panel-title  {
    font-size:30px;
  }
  #register-panel .auth-panel-sub  {
    margin-bottom:23px;
  }
  .auth-name-fields  {
    gap:10px;
  }
  .auth-back-btn  {
    font-size:12px;
  }
}

@media(max-width:600px)  {
  body.dashboard-mode  {
    overscroll-behavior:none;
  }
  .spotify-shell:not(.hidden)  {
    height:var(--app-height,100dvh);
    grid-template-rows:calc(60px + env(safe-area-inset-top)) minmax(0,1fr) 78px calc(68px + env(safe-area-inset-bottom));
    background:#0d0d0d;
  }
  .spotify-shell .topnav  {
    height:auto;
    padding:env(safe-area-inset-top) 16px 0;
    background:#0d0d0d;
  }
  .spotify-shell .topnav #menu-toggle  {
    width:40px;
    height:40px;
    margin-left:-6px;
    font-size:16px;
  }
  .spotify-shell .topnav-brand  {
    gap:8px;
  }
  .spotify-shell .nav-brand-name  {
    font-size:19px;
  }
  .spotify-shell .user-chip  {
    min-width:40px;
    min-height:40px;
  }
  .spotify-shell .dashboard-main  {
    padding:20px 16px 28px;
    scrollbar-width:none;
    background:linear-gradient(180deg,#402212 0,#211913 180px,#121212 400px);
  }
  .spotify-shell #view-player  {
    gap:25px;
  }
  .home-chips  {
    flex-wrap:nowrap;
    overflow:auto;
    scrollbar-width:none;
    padding-bottom:2px;
  }
  .home-chips button  {
    flex-shrink:0;
    min-height:36px;
    font-size:11px;
    padding:8px 13px;
  }
  .spotify-shell .studio-heading h1  {
    font-size:30px;
  }
  .spotify-shell .studio-heading>.ghost-btn  {
    width:40px;
    height:40px;
    flex-shrink:0;
  }
  .spotify-shell .studio-heading .section-eyebrow  {
    letter-spacing:1.2px;
    font-size:8px;
  }
  .spotify-shell .stream-link-card  {
    border-radius:16px;
    padding:16px;
  }
  .stream-link-header h2  {
    font-size:16px;
  }
  .copy-btn  {
    min-width:44px;
    min-height:44px;
  }
  .stream-link-url  {
    padding:13px 10px;
  }
  .stream-link-card .preview-row .switch  {
    width:44px;
    height:28px;
  }
  .switch span  {
    width:22px;
    height:22px;
  }
  .switch[aria-checked="true"] span  {
    transform:translateX(16px);
  }
  .collection-grid  {
    gap:14px 10px;
  }
  .collection-cover  {
    border-radius:12px;
  }
  .collection-info strong  {
    font-size:14px;
  }
  .collection-play  {
    width:44px;
    height:44px;
    bottom:71px;
    right:12px;
    font-size:14px;
  }
  .collection-menu  {
    width:36px;
    height:36px;
    top:8px;
    right:8px;
  }
  .panel-heading .prim-btn  {
    width:42px;
    height:42px;
  }
  .spotify-shell .studio-bottom-bar  {
    min-height:0;
    margin:0 8px 4px;
    border-radius:14px;
    padding:9px 10px 17px;
    grid-template-columns:minmax(0,1fr) 44px 44px;
    gap:3px;
    background:linear-gradient(115deg,#463021,#2c241e);
    box-shadow:0 -8px 24px #0002;
  }
  .mini-art  {
    width:46px;
    height:46px;
    border-radius:9px;
  }
  .mini-track  {
    gap:10px;
    min-width:0;
    min-height:48px;
  }
  .mini-track strong  {
    font-size:12px;
  }
  .mini-track small  {
    font-size:10px;
  }
  .mini-controls  {
    gap:0;
  }
  .mini-controls .mini-play  {
    width:44px;
    height:44px;
    background:transparent;
    color:white;
    font-size:19px;
  }
  .mini-controls button:not(.mini-play)  {
    display:none;
  }
  #queue-toggle  {
    width:44px;
    height:44px;
    color:#cbc2bb;
    font-size:17px;
  }
  .spotify-shell .player-progress  {
    bottom:0;
    left:12px;
    right:12px;
  }
  .spotify-shell #progress-bar-wrap:before  {
    background:#ffffff26;
  }
  .spotify-mobile-nav  {
    background:#0d0d0d;
    padding-top:5px;
  }
  .spotify-mobile-nav button  {
    flex:1;
    min-height:56px;
    padding:6px;
    font-size:10px;
    gap:7px;
    position:relative;
  }
  .spotify-mobile-nav button i  {
    font-size:21px;
  }
  .spotify-mobile-nav button.active:before  {
    content:'';
    position:absolute;
    width:32px;
    height:3px;
    background:var(--accent);
    border-radius:9px;
    top:0;
  }
  .spotify-shell.queue-open .spotify-rail  {
    inset:0;
    padding:calc(14px + env(safe-area-inset-top)) 22px calc(26px + env(safe-area-inset-bottom));
    border-radius:0;
    background:radial-gradient(ellipse at 70% 20%,#6a321f66,transparent 50%),linear-gradient(#211c18,#111);
  }
  .rail-heading  {
    margin-bottom:22px;
  }
  .rail-heading strong  {
    font-size:11px;
    text-transform:uppercase;
    letter-spacing:2px;
  }
  .rail-close  {
    width:44px;
    height:44px;
    font-size:18px;
  }
  .spotify-shell.queue-open .player-art-col  {
    width:100%;
    max-width:min(360px,calc(100vw - 44px));
  }
  .spotify-shell .art-frame,.spotify-shell .art-disc-wrap  {
    border-radius:16px;
  }
  .spotify-shell .track-title  {
    font-size:29px;
    margin-top:10px;
  }
  .spotify-shell .track-sub  {
    font-size:14px;
  }
  .spotify-shell .player-controls  {
    margin-top:12px;
    justify-content:space-between;
  }
  .spotify-shell .player-controls .ctrl  {
    width:44px;
    height:44px;
    font-size:17px;
  }
  .spotify-shell .player-controls .ctrl--play  {
    width:58px;
    height:58px;
    font-size:22px;
  }
  .spotify-shell .player-volume  {
    display:none;
  }
  .broadcast-actions  {
    margin-top:14px;
    gap:10px;
  }
  .broadcast-actions button  {
    min-height:44px;
    font-size:11px;
  }
  .studio-track  {
    grid-template-columns:42px minmax(0,1fr) 30px 38px 38px;
    gap:7px;
    padding:10px 0;
  }
  .track-row-thumb  {
    width:42px;
    height:42px;
    border-radius:7px;
  }
  .studio-track .track-row-info strong  {
    font-size:12px;
  }
  .spotify-shell .track-mini-btn  {
    width:38px;
    height:42px;
    font-size:12px;
  }
  #studio-queue-footer  {
    min-height:44px;
    padding-top:12px;
  }
  .spotify-shell .groups-grid  {
    grid-template-columns:1fr;
    gap:12px;
  }
  .group-card  {
    border-radius:16px;
    padding:18px;
    background:#1d1c1a;
  }
  .group-card-header  {
    gap:16px;
  }
  .group-icon  {
    width:48px;
    height:48px;
    border-radius:13px;
  }
  .group-actions  {
    width:100%;
    justify-content:space-between;
    gap:10px;
  }
  .group-play-btn  {
    min-height:40px;
    min-width:70px;
  }
  .group-btn-cluster  {
    display:flex;
    gap:5px;
    flex-wrap:wrap;
  }
  .group-action-btn  {
    min-width:36px;
    min-height:40px;
  }
  .group-tracks-preview  {
    padding-top:14px;
  }
  .gstat--hint  {
    display:none;
  }
  .spotify-shell .section-header .prim-btn  {
    min-height:44px;
    border-radius:999px;
  }
  .search-panel  {
    padding:16px;
    border-radius:16px;
  }
  .search-bar input,.studio-search-form input,.groups-filter-input input  {
    font-size:16px!important;
  }
  .search-bar  {
    min-height:50px;
  }
  .search-tabs  {
    gap:7px;
  }
  .search-tab  {
    min-height:42px;
    padding:10px 12px;
  }
  .studio-mode  {
    min-height:36px;
  }
  .studio-row-target  {
    min-height:38px;
  }
  .studio-result-action  {
    min-height:40px;
  }
  .studio-search-result  {
    grid-template-columns:38px minmax(0,1fr) 76px 50px;
    padding:12px 0;
  }
  .studio-result-art  {
    width:38px;
    height:38px;
    border-radius:7px;
  }
  .studio-result-info strong  {
    font-size:12px;
  }
  .studio-import-button  {
    min-width:42px;
    min-height:44px;
  }
  .modal-overlay  {
    padding:0;
    align-items:flex-end;
  }
  .modal  {
    width:100%;
    max-width:100%;
    max-height:calc(var(--app-height,100dvh) - env(safe-area-inset-top) - 20px);
    border-radius:24px 24px 0 0;
    padding:24px 20px calc(24px + env(safe-area-inset-bottom));
    border:1px solid #38332f;
    box-shadow:0 -15px 60px #0007;
  }
  .modal-x  {
    min-width:44px;
    min-height:44px;
  }
  .modal input,.modal select,.account-form-card input  {
    font-size:16px;
  }
  .modal-actions button  {
    min-height:46px;
    border-radius:999px;
  }
  .navigation-drawer  {
    width:min(340px,calc(100vw - 24px));
    padding-top:calc(24px + env(safe-area-inset-top));
    padding-bottom:calc(24px + env(safe-area-inset-bottom));
    border-radius:0 22px 22px 0;
  }
  .nav-pill  {
    min-height:50px;
  }
  #menu-close  {
    min-width:44px;
    min-height:44px;
  }
  .toast-container  {
    bottom:calc(154px + env(safe-area-inset-bottom));
  }
  body.keyboard-open .spotify-shell:not(.hidden)  {
    grid-template-rows:calc(56px + env(safe-area-inset-top)) minmax(0,1fr) 0 0;
  }
  body.keyboard-open .studio-bottom-bar,body.keyboard-open .spotify-mobile-nav  {
    display:none;
  }
}

@media(max-width:360px)  {
  .auth-brand-panel  {
    padding-left:20px;
    padding-right:20px;
  }
  .auth-form-panel  {
    padding-left:20px;
    padding-right:20px;
  }
  .auth-panel-title  {
    font-size:29px;
  }
  .auth-name-fields  {
    grid-template-columns:1fr;
    gap:0;
  }
  .spotify-shell .nav-brand-name  {
    font-size:17px;
  }
  .spotify-shell .dashboard-main  {
    padding-left:12px;
    padding-right:12px;
  }
  .spotify-shell .studio-heading h1  {
    font-size:27px;
  }
  .group-action-btn  {
    min-width:34px;
  }
  .group-actions  {
    flex-direction:column;
    align-items:flex-start;
  }
}

@media(display-mode:standalone) and (max-width:600px)  {
  .spotify-shell .topnav  {
    border-bottom:1px solid #ffffff05;
  }
}

.auth-panel-title:focus  {
  outline:none;
}

.auth-input input:focus-visible  {
  outline:none;
}

