/* RapReprise desktop foundation: inert unless the runtime desktop-v2 gate is active. */

.desktop-top-nav{
  display:none;
}

.desktop-container,
.desktop-card,
.desktop-control{
  box-sizing:border-box;
}

.desktop-container{
  width:100%;
  max-width:1180px;
  margin:0 auto;
}

.desktop-card{
  border-radius:8px;
  background:var(--card);
  border:1px solid rgba(26,16,64,.08);
  box-shadow:0 10px 28px rgba(26,16,64,.08);
}

.desktop-control{
  min-height:44px;
  border-radius:8px;
  font-family:var(--font);
  font-size:16px;
}

.desktop-section-title{
  font-size:20px;
  font-weight:900;
  line-height:1.2;
  color:var(--text);
}

@media(min-width:1280px){
  body.desktop-v2-active{
    padding:24px;
    background:
      radial-gradient(circle at 16% 12%, rgba(155,114,255,.25), transparent 30%),
      linear-gradient(145deg,#14072f 0%,#2b1464 45%,#0f0520 100%);
    align-items:center;
  }

  .desktop-v2-active .app-shell{
    width:min(100%,1440px);
    max-width:1440px;
    height:min(940px, calc((var(--rr-vh, 1vh) * 100) - 48px));
    min-height:760px;
    border-radius:20px;
    background:#f8f7ff;
    box-shadow:0 28px 90px rgba(0,0,0,.42),0 0 0 1px rgba(255,255,255,.12);
  }

  .desktop-v2-active .desktop-top-nav{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
    min-height:72px;
    padding:0 32px;
    background:#ffffff;
    border-bottom:1px solid rgba(98,55,204,.12);
    flex-shrink:0;
    z-index:35;
  }

  .desktop-brand{
    display:inline-flex;
    align-items:center;
    gap:12px;
    min-height:48px;
    padding:0;
    border:0;
    background:transparent;
    color:var(--text);
    font-family:var(--font);
    cursor:pointer;
  }

  .desktop-brand-mark{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:40px;
    height:40px;
    border-radius:8px;
    background:linear-gradient(135deg,var(--pp),var(--pp3));
    color:white;
    font-size:14px;
    font-weight:900;
    letter-spacing:0;
  }

  .desktop-brand-name{
    font-size:19px;
    font-weight:900;
    letter-spacing:0;
  }

  .desktop-nav-links{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    flex:1;
  }

  .desktop-nav-btn{
    min-height:44px;
    padding:0 16px;
    border:1px solid transparent;
    border-radius:8px;
    background:transparent;
    color:var(--muted);
    font-family:var(--font);
    font-size:14px;
    font-weight:900;
    letter-spacing:0;
    cursor:pointer;
    transition:background .15s,color .15s,border-color .15s;
  }

  .desktop-nav-btn:hover,
  .desktop-brand:hover .desktop-brand-name{
    color:var(--pp);
  }

  .desktop-nav-btn.active{
    background:rgba(98,55,204,.09);
    border-color:rgba(98,55,204,.16);
    color:var(--pp);
  }

  .desktop-brand.active .desktop-brand-name{
    color:var(--pp);
  }

  .desktop-nav-actions{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    min-width:180px;
  }

  .desktop-account-btn{
    display:inline-flex;
    align-items:center;
    gap:10px;
    min-height:48px;
    max-width:220px;
    padding:6px 12px 6px 8px;
    border:1px solid rgba(98,55,204,.16);
    border-radius:8px;
    background:#fff;
    color:#1a1040;
    font-family:var(--font);
    cursor:pointer;
    transition:background .15s,border-color .15s,box-shadow .15s;
  }

  .desktop-account-btn:hover,
  .desktop-account-btn.active{
    background:rgba(98,55,204,.07);
    border-color:rgba(98,55,204,.26);
    box-shadow:0 10px 24px rgba(26,16,64,.08);
  }

  .desktop-account-avatar{
    width:34px;
    height:34px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    flex:0 0 auto;
    overflow:hidden;
    background:linear-gradient(135deg,#6237CC,#9B72FF);
    color:#fff;
    font-size:12px;
    font-weight:900;
    letter-spacing:0;
  }

  .desktop-account-avatar img{
    width:100%;
    height:100%;
    object-fit:cover;
  }

  .desktop-account-copy{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    min-width:0;
  }

  .desktop-account-label{
    max-width:150px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:13px;
    line-height:1.15;
    font-weight:900;
  }

  .desktop-account-sub{
    margin-top:2px;
    color:#6c6289;
    font-size:11px;
    line-height:1.1;
    font-weight:800;
  }

  .desktop-v2-active .bottom-nav{
    display:none!important;
  }

  .desktop-v2-active .page{
    background:#f8f7ff;
  }

  .desktop-v2-active .scroll-area{
    padding-bottom:32px;
  }

  .desktop-v2-active .topbar{
    padding-left:32px;
    padding-right:32px;
  }

  .desktop-v2-active .profile-panel{
    left:auto;
    width:420px;
    border-radius:20px 0 0 20px;
    box-shadow:-18px 0 48px rgba(26,16,64,.18);
  }

  .desktop-v2-active #page-explore{
    background:#f8f7ff;
  }

  .desktop-v2-active #page-explore .atlas-mobile-header{
    display:none;
  }

  .desktop-v2-active #page-explore .atlas-layout{
    flex:1;
    min-height:0;
    display:grid;
    grid-template-columns:220px minmax(0,1fr) 340px;
    gap:18px;
    padding:24px;
    overflow:hidden;
    background:#f8f7ff;
  }

  .desktop-v2-active #page-explore .atlas-left-panel{
    display:flex;
    grid-column:1;
    grid-row:1;
    flex-direction:column;
    align-self:start;
    min-width:0;
    padding:8px 2px 0;
  }

  .desktop-v2-active #page-explore .atlas-kicker,
  .desktop-v2-active #page-explore .atlas-panel-eyebrow{
    color:var(--pp);
    font-size:11px;
    font-weight:900;
    line-height:1.2;
    letter-spacing:0;
    text-transform:uppercase;
  }

  .desktop-v2-active #page-explore .atlas-left-panel h1{
    margin-top:12px;
    color:var(--text);
    font-size:31px;
    font-weight:900;
    line-height:1.04;
    letter-spacing:0;
  }

  .desktop-v2-active #page-explore .atlas-left-panel p{
    margin-top:14px;
    color:var(--muted);
    font-size:15px;
    font-weight:800;
    line-height:1.45;
  }

  .desktop-v2-active #page-explore .atlas-left-note{
    margin-top:18px;
    padding:12px;
    border:1px solid rgba(98,55,204,.12);
    border-radius:8px;
    background:#fff;
    color:#615979;
    font-size:12px;
    font-weight:800;
    line-height:1.35;
  }

  .desktop-v2-active #page-explore .atlas-map-stage{
    position:relative;
    grid-column:2;
    grid-row:1;
    display:flex;
    min-width:0;
    min-height:0;
    overflow:hidden;
    border-radius:18px;
    background:#ebe7f8;
    box-shadow:0 18px 42px rgba(26,16,64,.12);
  }

  .desktop-v2-active #page-explore #explore-map{
    flex:1;
    width:100%;
    height:100%;
    min-height:0;
  }

  .desktop-v2-active #page-explore .atlas-search-wrap{
    position:absolute;
    z-index:700;
    top:18px;
    left:18px;
    width:min(520px,calc(100% - 36px));
    padding:0;
    background:transparent;
  }

  .desktop-v2-active #page-explore .explore-search{
    min-height:48px;
    border:1px solid rgba(98,55,204,.16);
    border-radius:8px;
    background:rgba(255,255,255,.96);
    color:var(--text);
    padding:12px 16px;
    font-size:15px;
    font-weight:800;
    box-shadow:0 12px 30px rgba(26,16,64,.13);
  }

  .desktop-v2-active #page-explore .explore-search::placeholder{
    color:#82779f;
  }

  .desktop-v2-active #page-explore .map-filter-chips{
    position:absolute;
    z-index:690;
    top:78px;
    left:18px;
    max-width:calc(100% - 36px);
    padding:0;
    background:transparent;
    gap:8px;
    overflow:visible;
  }

  .desktop-v2-active #page-explore .map-chip{
    min-height:38px;
    padding:9px 15px;
    border-radius:8px;
    border-color:rgba(98,55,204,.14);
    background:rgba(255,255,255,.94);
    color:#615979;
    box-shadow:0 8px 20px rgba(26,16,64,.1);
  }

  .desktop-v2-active #page-explore .map-chip.active{
    background:var(--pp);
    color:#fff;
    border-color:var(--pp);
  }

  .desktop-v2-active #page-explore .atlas-map-controls{
    position:absolute;
    z-index:710;
    right:18px;
    top:18px;
    display:flex;
    flex-direction:column;
    gap:8px;
  }

  .desktop-v2-active #page-explore .atlas-map-controls button{
    width:42px;
    height:42px;
    border:1px solid rgba(98,55,204,.16);
    border-radius:8px;
    background:rgba(255,255,255,.96);
    color:var(--text);
    font-family:var(--font);
    font-size:18px;
    font-weight:900;
    line-height:1;
    cursor:pointer;
    box-shadow:0 8px 20px rgba(26,16,64,.1);
  }

  .desktop-v2-active #page-explore .atlas-map-controls button:hover{
    color:var(--pp);
    border-color:rgba(98,55,204,.32);
  }

  .desktop-v2-active #page-explore .atlas-legend{
    position:absolute;
    z-index:680;
    left:18px;
    bottom:18px;
    display:flex;
    align-items:center;
    gap:10px;
    padding:8px 10px;
    border:1px solid rgba(98,55,204,.12);
    border-radius:8px;
    background:rgba(255,255,255,.94);
    color:#615979;
    font-size:12px;
    font-weight:900;
    box-shadow:0 8px 20px rgba(26,16,64,.1);
  }

  .desktop-v2-active #page-explore .atlas-legend span{
    display:inline-flex;
    align-items:center;
    gap:6px;
  }

  .desktop-v2-active #page-explore .atlas-legend-marker{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:20px;
    height:20px;
    border-radius:50% 50% 50% 0;
    transform:rotate(-45deg);
    color:#fff;
    font-size:9px;
    font-style:normal;
    font-weight:900;
  }

  .desktop-v2-active #page-explore .atlas-legend-marker::first-letter{
    transform:rotate(45deg);
  }

  .desktop-v2-active #page-explore .atlas-legend-artist{
    background:var(--pp);
  }

  .desktop-v2-active #page-explore .atlas-legend-studio{
    background:#15803d;
  }

  .desktop-v2-active #page-explore .atlas-detail-panel{
    display:flex;
    flex-direction:column;
    grid-column:3;
    grid-row:1;
    min-width:0;
    min-height:0;
    position:relative;
    overflow:hidden;
    border:1px solid rgba(26,16,64,.08);
    border-radius:18px;
    background:#fff;
    box-shadow:0 18px 42px rgba(26,16,64,.1);
  }

  .desktop-v2-active #page-explore .atlas-panel-empty{
    align-self:center;
    padding:28px;
  }

  .desktop-v2-active #page-explore .atlas-panel-empty h2,
  .desktop-v2-active #page-explore .atlas-panel-body h2{
    margin-top:8px;
    color:var(--text);
    font-size:24px;
    font-weight:900;
    line-height:1.08;
    letter-spacing:0;
  }

  .desktop-v2-active #page-explore .atlas-panel-empty p{
    margin-top:10px;
    color:var(--muted);
    font-size:14px;
    font-weight:700;
    line-height:1.5;
  }

  .desktop-v2-active #page-explore .atlas-panel-close{
    position:absolute;
    z-index:3;
    right:12px;
    top:12px;
    width:34px;
    height:34px;
    border:0;
    border-radius:8px;
    background:rgba(255,255,255,.9);
    color:var(--text);
    font-size:20px;
    font-weight:900;
    cursor:pointer;
  }

  .desktop-v2-active #page-explore .atlas-panel-image{
    width:100%;
    height:230px;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
    overflow:hidden;
    background:linear-gradient(135deg,var(--pp),var(--pp4));
    color:#fff;
    font-size:48px;
    font-weight:900;
  }

  .desktop-v2-active #page-explore .atlas-panel-image-studio{
    background:linear-gradient(135deg,#15803d,#22c55e);
  }

  .desktop-v2-active #page-explore .atlas-panel-image img{
    width:100%;
    height:100%;
    object-fit:cover;
  }

  .desktop-v2-active #page-explore .atlas-panel-body{
    flex:1;
    min-height:0;
    overflow-y:auto;
    padding:22px;
  }

  .desktop-v2-active #page-explore .atlas-panel-location{
    margin-top:8px;
    color:#615979;
    font-size:13px;
    font-weight:900;
    line-height:1.35;
  }

  .desktop-v2-active #page-explore .atlas-tags{
    display:flex;
    flex-wrap:wrap;
    gap:7px;
    margin-top:14px;
  }

  .desktop-v2-active #page-explore .atlas-tag{
    display:inline-flex;
    align-items:center;
    min-height:24px;
    padding:5px 8px;
    border-radius:999px;
    background:rgba(98,55,204,.1);
    color:var(--pp);
    font-size:10px;
    font-weight:900;
    line-height:1;
    text-transform:uppercase;
  }

  .desktop-v2-active #page-explore .atlas-panel-copy{
    margin-top:16px;
    color:#514868;
    font-size:14px;
    font-weight:700;
    line-height:1.58;
  }

  .desktop-v2-active #page-explore .atlas-panel-section{
    margin-top:20px;
  }

  .desktop-v2-active #page-explore .atlas-panel-section h3{
    margin-bottom:10px;
    color:var(--text);
    font-size:13px;
    font-weight:900;
    line-height:1.2;
  }

  .desktop-v2-active #page-explore .atlas-empty-note{
    padding:12px;
    border:1px dashed rgba(98,55,204,.18);
    border-radius:8px;
    background:#faf9ff;
    color:#71678e;
    font-size:12px;
    font-weight:800;
    line-height:1.4;
  }

  .desktop-v2-active #page-explore .atlas-featured-release{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:12px;
    border:1px solid rgba(98,55,204,.12);
    border-radius:8px;
    background:#faf9ff;
  }

  .desktop-v2-active #page-explore .atlas-featured-release div{
    min-width:0;
  }

  .desktop-v2-active #page-explore .atlas-featured-release span,
  .desktop-v2-active #page-explore .atlas-featured-release em{
    display:block;
    color:#71678e;
    font-size:11px;
    font-style:normal;
    font-weight:800;
    line-height:1.3;
  }

  .desktop-v2-active #page-explore .atlas-featured-release strong{
    display:block;
    margin:2px 0;
    color:var(--text);
    font-size:14px;
    font-weight:900;
    line-height:1.2;
  }

  .desktop-v2-active #page-explore .atlas-featured-release a,
  .desktop-v2-active #page-explore .atlas-studio-link,
  .desktop-v2-active #page-explore .atlas-link-grid .ap-link{
    display:inline-flex;
    align-items:center;
    min-height:34px;
    padding:8px 10px;
    border-radius:8px;
    background:rgba(98,55,204,.09);
    color:var(--pp);
    font-size:12px;
    font-weight:900;
    text-decoration:none;
  }

  .desktop-v2-active #page-explore .atlas-link-grid{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
  }

  .desktop-v2-active #page-explore .atlas-studio-link-static{
    background:#f2f0f8;
    color:#615979;
  }

  .desktop-v2-active #page-explore .atlas-primary-action{
    width:100%;
    min-height:44px;
    margin-top:22px;
    border:0;
    border-radius:8px;
    background:var(--pp);
    color:#fff;
    font-family:var(--font);
    font-size:14px;
    font-weight:900;
    cursor:pointer;
  }

  .desktop-v2-active #page-explore .bottom-sheet{
    display:flex;
    grid-column:1;
    grid-row:1;
    align-self:end;
    flex-direction:column;
    height:calc(100% - 292px);
    min-height:260px;
    max-height:none;
    padding:14px;
    border:1px solid rgba(26,16,64,.08);
    border-radius:18px;
    background:#fff;
    box-shadow:0 18px 42px rgba(26,16,64,.08);
  }

  .desktop-v2-active #page-explore .bottom-sheet-handle{
    display:none;
  }

  .desktop-v2-active #page-explore .bottom-sheet-label{
    padding:0;
    margin:0 0 10px;
    color:#615979;
    font-size:11px;
    letter-spacing:0;
  }

  .desktop-v2-active #page-explore .bottom-sheet-row{
    display:flex;
    flex:1;
    flex-direction:column;
    gap:9px;
    min-height:0;
    overflow-y:auto;
    overflow-x:hidden;
    padding:0 2px 0 0;
  }

  .desktop-v2-active #page-explore .sheet-card{
    flex:0 0 auto;
    width:100%;
    display:grid;
    grid-template-columns:48px minmax(0,1fr);
    column-gap:10px;
    align-items:center;
    padding:8px;
    border-radius:8px;
    background:#faf9ff;
    box-shadow:none;
  }

  .desktop-v2-active #page-explore .sheet-card:hover{
    transform:none;
    border-color:rgba(98,55,204,.22);
  }

  .desktop-v2-active #page-explore .sheet-card-thumb{
    grid-row:1 / span 2;
    width:48px;
    height:48px;
    border-radius:8px;
  }

  .desktop-v2-active #page-explore .sheet-card-name,
  .desktop-v2-active #page-explore .sheet-card-sub{
    padding:0;
  }

  .desktop-v2-active #page-explore .sheet-card-name{
    font-size:12px;
  }

  .desktop-v2-active #page-explore .sheet-card-sub{
    margin-top:3px;
    font-size:11px;
  }

  .desktop-v2-active #page-explore .rr-map-pin{
    border-radius:50%;
  }

  .desktop-v2-active #page-explore .rr-map-pin-artist{
    transform:rotate(-45deg);
  }

  .desktop-v2-active #page-explore .rr-map-pin-studio{
    border-radius:8px;
    transform:rotate(-45deg);
  }

  .desktop-v2-active #page-explore .rr-map-pin-selected{
    width:40px;
    height:40px;
    border:3px solid #fff;
    box-shadow:0 0 0 4px rgba(98,55,204,.28),0 8px 18px rgba(26,16,64,.35);
  }

  @media(max-width:1350px){
    .desktop-v2-active #page-explore .atlas-layout{
      grid-template-columns:200px minmax(0,1fr) 320px;
      gap:16px;
      padding:20px;
    }

    .desktop-v2-active #page-explore .atlas-left-panel h1{
      font-size:27px;
    }
  }
}
