
:root{--bg:#09090b;--panel:#111114;--text:#f2f0e9;--muted:#92929b;--line:#292930;--accent:#bdd448;--blood:#741c1c;--player:92px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:radial-gradient(circle at 80% 10%,#1b1d12 0,transparent 28rem),#09090b;color:var(--text);font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;padding-bottom:var(--player)}
a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}.hidden{display:none!important}
.topbar{height:82px;display:flex;align-items:center;justify-content:space-between;gap:25px;padding:0 5vw;position:sticky;top:0;z-index:30;background:rgba(9,9,11,.92);backdrop-filter:blur(18px);border-bottom:1px solid #222228}.brand{display:flex;align-items:center;gap:12px}.brand-mark{width:40px;height:40px;display:grid;place-items:center;border-radius:50%;background:#15180e;border:1px solid #3e4524;color:var(--accent);font-size:22px}.brand-name{font-weight:900;letter-spacing:.12em;font-size:14px}.brand-tag{font-size:9px;letter-spacing:.16em;color:#7e836c;margin-top:4px}
.nav{display:flex;gap:22px;color:#aaaab2;font-size:13px}.nav a:hover{color:#fff}.profile-btn{width:38px;height:38px;border-radius:50%;border:1px solid #34343a;background:#151519;color:var(--accent);cursor:pointer}
main{max-width:1500px;margin:auto;padding:28px 5vw 55px}.hero{position:relative;min-height:520px;border:1px solid #24242a;border-radius:22px;overflow:hidden}.hero-art{position:absolute;inset:0;background-size:cover;background-position:center 40%;filter:saturate(.8) contrast(1.05) brightness(.58);transform:scale(1.025)}.hero-overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(7,7,9,.98),rgba(7,7,9,.85) 34%,rgba(7,7,9,.18) 72%),linear-gradient(0deg,rgba(7,7,9,.65),transparent 40%)}.hero-content{position:relative;z-index:2;min-height:520px;max-width:650px;padding:75px 65px;display:flex;flex-direction:column;justify-content:center}
.eyebrow{color:var(--accent);letter-spacing:.18em;font-size:10px;font-weight:900;margin-bottom:12px}h1{margin:0;font-family:Georgia,serif;font-size:clamp(46px,6vw,92px);line-height:.9;letter-spacing:-.045em}.artist{font-size:21px;font-weight:700;margin:16px 0 0}.hero-copy{color:#b4b4bd;line-height:1.7;max-width:530px}.hero-actions{display:flex;gap:10px;margin-top:12px}.primary,.secondary,.back-btn{border-radius:8px;padding:12px 19px;font-weight:800;cursor:pointer}.primary{border:0;background:var(--accent);color:#10110a}.secondary,.back-btn{border:1px solid #34343b;background:#151519;color:#eee}
.section{padding:62px 0 8px}.section-head,.rotation-head{display:flex;align-items:end;justify-content:space-between;gap:25px;margin-bottom:22px}.section-head h2,.rotation-head h2{margin:0;font-size:28px}.small-note,.rotation-meta{color:#74747e;font-size:11px}.release-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px}.release-card{cursor:pointer}.cover-wrap{aspect-ratio:1;border-radius:12px;overflow:hidden;border:1px solid #29292f;position:relative;background:#111}.cover-wrap img{width:100%;height:100%;object-fit:cover;display:block}.release-card:hover .cover-wrap{transform:translateY(-4px);transition:.2s;border-color:#50533b}.card-play{position:absolute;right:14px;bottom:14px;width:45px;height:45px;border:0;border-radius:50%;background:var(--accent);opacity:0;cursor:pointer}.release-card:hover .card-play{opacity:1}.release-card h3{font-size:16px;margin:13px 0 4px}.release-card p{margin:0;color:#b0b0b8;font-size:13px}.release-card span{display:block;margin-top:4px;color:#6e6e77;font-size:11px}
.artist-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.artist-card{border:1px solid #28282e;background:#101014;border-radius:14px;padding:22px;cursor:pointer;display:grid;grid-template-columns:64px 1fr;gap:16px;align-items:center}.artist-card:hover{border-color:#4b4f35;transform:translateY(-2px)}.artist-card .avatar{width:64px;height:64px;border-radius:50%;overflow:hidden;background:#171911;border:1px solid #3f4528;display:grid;place-items:center;color:var(--accent);font-size:26px}.artist-card .avatar img{width:100%;height:100%;object-fit:cover}.artist-card h3{margin:0 0 5px}.artist-card p{margin:0;color:#777780;font-size:11px}
.rotation-head{align-items:center}.rotation-head p{max-width:780px;color:#96969e;line-height:1.6}.rotation-meta{margin:-10px 0 14px}.tracklist{border:1px solid #28282e;border-radius:12px;overflow:hidden;background:#0e0e11}.track-row{display:grid;grid-template-columns:45px 1fr auto;gap:12px;align-items:center;padding:13px 16px;border-bottom:1px solid #202026;cursor:pointer}.track-row:last-child{border-bottom:0}.track-row:hover{background:#17171b}.track-no{color:#66666f;font-size:12px;text-align:center}.track-name{font-size:13px;font-weight:650}.track-sub{font-size:10px;color:#767680;margin-top:3px}.track-action{color:var(--accent);font-size:12px}
.label-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.label-card{min-height:140px;border:1px solid #28282e;border-radius:14px;background:#111115;padding:24px;display:grid;grid-template-columns:auto 1fr auto;gap:18px;align-items:center}.label-icon{width:58px;height:58px;border-radius:12px;display:grid;place-items:center;background:#15170f;border:1px solid #3c4225;color:var(--accent);font-size:28px}.label-card h3{margin:0 0 6px}.label-card p{margin:0;color:#8d8d96;font-size:13px;line-height:1.5}.label-card>span{font-size:10px;color:#6d6d75}
.detail-view{padding-top:18px}.back-btn{margin-bottom:25px}.album-header{display:grid;grid-template-columns:300px 1fr;gap:40px;align-items:end;margin-bottom:30px}.album-header img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:13px;border:1px solid #303037}.album-header h1{font-size:clamp(42px,6vw,78px)}.album-genre{color:#85858e;margin:10px 0 24px}.artist-link{display:block;background:none;border:0;color:#ddd;padding:0;margin:15px 0 0;font-weight:800;font-size:20px;cursor:pointer}.artist-link:hover{color:var(--accent)}
.artist-hero{display:grid;grid-template-columns:220px 1fr;gap:35px;align-items:center;padding:25px 0 45px}.artist-avatar{width:220px;height:220px;border-radius:50%;overflow:hidden;background:#14160f;border:1px solid #42492a;display:grid;place-items:center;font-size:74px;color:var(--accent)}.artist-avatar img{width:100%;height:100%;object-fit:cover}.artist-hero p{max-width:750px;color:#9999a2;line-height:1.7}.artist-label{font-size:11px;color:#6f6f78}.compact{margin-top:20px}
.admin-head{display:flex;justify-content:space-between;gap:30px;align-items:end;margin-bottom:30px}.admin-head p{max-width:760px;color:#9999a2;line-height:1.6}.admin-status{padding:9px 13px;border:1px solid #313138;border-radius:8px;color:#85858e;font-size:11px}.admin-form{border:1px solid #292930;background:#101014;border-radius:16px;padding:28px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.form-grid label{display:flex;flex-direction:column;gap:7px;color:#aaaab2;font-size:11px;font-weight:700}.form-grid .wide{grid-column:1/-1}.form-grid input,.form-grid select,.form-grid textarea{width:100%;background:#17171c;border:1px solid #313138;color:#eee;border-radius:7px;padding:11px}.form-grid input[type=file]{padding:8px}.upload-note{font-size:11px;color:#777780;margin:17px 0}.publish-result{margin-top:15px;color:#aaa;font-size:12px;white-space:pre-wrap}
.site-footer{display:flex;justify-content:space-between;padding:25px 5vw calc(var(--player) + 22px);border-top:1px solid #1e1e23;color:#55555e;font-size:10px}.player{position:fixed;left:0;right:0;bottom:0;height:var(--player);z-index:50;background:rgba(14,14,17,.96);backdrop-filter:blur(20px);border-top:1px solid #303036;display:grid;grid-template-columns:1fr 1.25fr 1fr;align-items:center;padding:0 27px}.now-playing{display:flex;align-items:center;gap:12px;min-width:0}.now-playing img{width:58px;height:58px;object-fit:cover;border-radius:5px;background:#202026}.now-playing strong{display:block;font-size:13px}.now-playing span{font-size:10px;color:#85858e}.player-center{display:flex;flex-direction:column;gap:7px;align-items:center}.controls{display:flex;gap:18px;align-items:center}.controls button{border:0;background:none;color:#aaa;cursor:pointer}.controls .big-play{width:36px;height:36px;border-radius:50%;background:#eee;color:#111}.timeline{width:100%;display:grid;grid-template-columns:38px 1fr 38px;gap:8px;align-items:center;font-size:9px;color:#666}.bar{height:4px;background:#33333a;border-radius:10px;cursor:pointer;overflow:hidden}.bar div{height:100%;width:0;background:var(--accent)}.player-right{display:flex;justify-content:flex-end;align-items:center;gap:10px}
.bloody-clover-slider{width:110px;accent-color:var(--accent);background:transparent}
.bloody-clover-slider::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:22px;height:22px;border:0;background-color:transparent;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cg fill='%236f8f35' stroke='%232f411b' stroke-width='.8'%3E%3Ccircle cx='8' cy='8' r='5'/%3E%3Ccircle cx='16' cy='8' r='5'/%3E%3Ccircle cx='8' cy='16' r='5'/%3E%3Ccircle cx='16' cy='16' r='5'/%3E%3C/g%3E%3Cpath d='M9 7l3 2-2 3 5 1-3 4' fill='none' stroke='%23751d1d' stroke-width='2.1' stroke-linecap='round'/%3E%3Ccircle cx='15.8' cy='7.6' r='1.6' fill='%23952323'/%3E%3C/svg%3E");background-size:contain;background-repeat:no-repeat;cursor:pointer}
.bloody-clover-slider::-moz-range-thumb{width:22px;height:22px;border:0;border-radius:0;background-color:transparent;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cg fill='%236f8f35' stroke='%232f411b' stroke-width='.8'%3E%3Ccircle cx='8' cy='8' r='5'/%3E%3Ccircle cx='16' cy='8' r='5'/%3E%3Ccircle cx='8' cy='16' r='5'/%3E%3Ccircle cx='16' cy='16' r='5'/%3E%3C/g%3E%3Cpath d='M9 7l3 2-2 3 5 1-3 4' fill='none' stroke='%23751d1d' stroke-width='2.1' stroke-linecap='round'/%3E%3Ccircle cx='15.8' cy='7.6' r='1.6' fill='%23952323'/%3E%3C/svg%3E");background-size:contain;background-repeat:no-repeat;cursor:pointer}
@media(max-width:950px){.release-grid{grid-template-columns:repeat(2,1fr)}.artist-grid{grid-template-columns:1fr 1fr}.label-grid{grid-template-columns:1fr}.nav{gap:14px}.album-header{grid-template-columns:220px 1fr}.player{grid-template-columns:1fr 1fr}.player-right{display:none}}
@media(max-width:650px){.topbar{height:auto;padding:14px 18px;flex-wrap:wrap}.brand-tag{display:none}.nav{order:3;width:100%;overflow:auto}.profile-btn{display:none}main{padding:18px}.hero,.hero-content{min-height:485px}.hero-content{padding:38px 24px}.release-grid,.artist-grid{grid-template-columns:1fr 1fr;gap:13px}.rotation-head,.admin-head{align-items:flex-start;flex-direction:column}.album-header,.artist-hero{grid-template-columns:1fr;gap:22px}.album-header img{max-width:310px}.artist-avatar{width:170px;height:170px}.form-grid{grid-template-columns:1fr}.form-grid .wide{grid-column:auto}.player{height:80px;grid-template-columns:1fr auto;padding:0 13px}.timeline,.controls button:not(.big-play){display:none}.now-playing img{width:48px;height:48px}:root{--player:80px}}


/* v0.6 accounts, roles and upload progress */
.account-controls{display:flex;align-items:center;gap:9px}
.admin-nav-btn{border:1px solid #475027;background:#171a10;color:var(--accent);border-radius:7px;padding:8px 11px;font-size:10px;font-weight:900;letter-spacing:.12em;cursor:pointer}
.admin-nav-btn:hover{background:#202516}
.modal{position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:20px}
.modal-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.76);backdrop-filter:blur(8px)}
.modal-card{position:relative;z-index:1;width:min(470px,100%);background:#111115;border:1px solid #313138;border-radius:16px;padding:28px;box-shadow:0 30px 100px rgba(0,0,0,.6)}
.modal-card h2{margin:0 0 19px;font-size:30px}
.modal-close{position:absolute;right:14px;top:11px;border:0;background:none;color:#777;font-size:28px;cursor:pointer}
.auth-tabs{display:flex;gap:7px;margin-bottom:18px;border-bottom:1px solid #292930;padding-bottom:10px}
.auth-tab{border:0;background:#19191e;color:#8f8f98;border-radius:6px;padding:8px 11px;cursor:pointer;font-size:11px}
.auth-tab.active{background:var(--accent);color:#111;font-weight:800}
.auth-form{display:flex;flex-direction:column;gap:13px}
.auth-form label{display:flex;flex-direction:column;gap:6px;color:#aaaab3;font-size:11px;font-weight:700}
.auth-form input{background:#17171c;border:1px solid #313138;color:#eee;border-radius:7px;padding:11px}
.auth-form small,.auth-info{color:#777780;font-size:11px;line-height:1.5}
.auth-message{color:#d3aa71;font-size:12px;margin-top:13px}
#signedInEmail{color:#888891}
.account-role{display:inline-block;color:var(--accent);border:1px solid #3e4526;background:#15180f;border-radius:6px;padding:6px 9px;font-size:10px;font-weight:900;letter-spacing:.08em;margin:4px 0 20px}
#signedInPanel .secondary{display:block;margin:9px 0;width:100%}

.upload-panel{margin-top:22px;border:1px solid #323239;background:#0c0c0f;border-radius:12px;padding:18px}
.upload-stage{font-weight:850;font-size:14px;margin-bottom:11px}
.upload-progress-row{display:grid;grid-template-columns:1fr 48px;gap:12px;align-items:center}
.upload-progress-track{height:9px;background:#28282e;border-radius:999px;overflow:hidden}
#uploadProgressFill{height:100%;width:0;background:linear-gradient(90deg,#839f2e,var(--accent));transition:width .12s linear}
#uploadPercent{text-align:right;font-size:11px;color:var(--accent)}
.upload-file{font-size:12px;color:#b5b5bd;margin-top:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.upload-stats{font-size:10px;color:#686871;margin-top:5px}
#publishBtn:disabled{opacity:.45;cursor:not-allowed}


/* v0.6.2 HOTFIX — RUINE global atmosphere */
html{
  min-height:100%;
  background:
    #050706
    url("/background/ruine")
    center center / cover
    fixed
    no-repeat;
}
body{
  min-height:100vh;
  position:relative;
  background:
    radial-gradient(circle at 50% 25%,rgba(70,105,55,.10),transparent 42%),
    linear-gradient(to bottom,rgba(5,7,6,.30),rgba(5,6,6,.52) 58%,rgba(3,4,4,.66));
}
/* Keep the content background visible through the page rather than hiding ruine.png */
main,.detail-view,.section{background:transparent}
.topbar,.player{isolation:isolate}

/* Multi-disc */
.disc-builder-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:26px 0 13px}
.disc-builder-head>div{display:flex;flex-direction:column;gap:4px}
.disc-builder-head span{font-size:10px;color:#71717a}
.small-btn{width:auto!important;padding:8px 12px!important}
.disc-upload{border:1px solid #303036;background:rgba(11,11,14,.88);border-radius:11px;padding:16px;margin:10px 0}
.disc-upload-head{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-bottom:12px}
.disc-upload-head>div{display:flex;align-items:center;gap:12px;flex:1}
.disc-title-input{max-width:420px;background:#17171c;border:1px solid #313138;color:#eee;border-radius:7px;padding:9px 10px}
.disc-upload label{display:flex;flex-direction:column;gap:7px;color:#aaaab2;font-size:11px;font-weight:700}
.disc-upload input[type=file]{background:#17171c;border:1px solid #313138;color:#eee;border-radius:7px;padding:8px}
.disc-remove{border:1px solid #633332;background:#211212;color:#c98c88;border-radius:6px;padding:7px 10px;cursor:pointer}
.disc-heading{display:flex;align-items:baseline;gap:10px;padding:20px 16px 10px;border-bottom:1px solid #25252a;background:#121217}
.disc-heading strong{color:var(--accent);font-size:12px;text-transform:uppercase;letter-spacing:.09em}
.disc-heading span{color:#888891;font-size:11px}

/* Admin management */
.admin-tabs{display:flex;gap:8px;margin:0 0 16px}
.admin-tab{border:1px solid #303037;background:#111115;color:#898992;border-radius:8px;padding:10px 14px;font-size:11px;font-weight:800;cursor:pointer}
.admin-tab.active{border-color:#596532;background:#1b2012;color:var(--accent)}
.artist-admin-preview{margin:16px 0;color:#777780;font-size:11px}
.managed-release-list{display:flex;flex-direction:column;gap:8px}
.managed-release-row{display:flex;justify-content:space-between;align-items:center;gap:20px;border:1px solid #292930;border-radius:9px;background:#131317;padding:13px 15px}
.managed-release-row strong{display:block;font-size:13px}
.managed-release-row span{display:block;color:#777780;font-size:10px;margin-top:4px}
.danger-btn{border:1px solid #6d3634;background:#241312;color:#d89b96;border-radius:7px;padding:8px 12px;font-weight:800;cursor:pointer}
.danger-btn:hover{background:#321716}
.danger-note{border:1px solid #563231;background:#1d1111;color:#b8908d;border-radius:8px;padding:11px 13px;margin-bottom:15px;font-size:11px}
.muted{color:#777780;font-size:11px}

/* Rich artist profile */
.artist-banner{height:clamp(150px,24vw,310px);border-radius:15px;margin:0 0 -78px;background:linear-gradient(135deg,#11140f,#090a0a);border:1px solid #2a2d28;overflow:hidden;background-size:cover;background-position:center;opacity:.9}
.artist-banner:not(.has-image){height:70px;opacity:.45}
.artist-hero{position:relative;padding-left:24px;padding-right:24px}
.artist-avatar{box-shadow:0 14px 45px rgba(0,0,0,.55)}
.artist-copy{min-width:0}
.artist-logo{display:block;max-width:min(480px,80%);max-height:120px;object-fit:contain;object-position:left center;margin:0 0 15px}

@media(max-width:650px){
  html{background-position:center top;background-attachment:scroll}
  .admin-tabs{overflow:auto}
  .disc-upload-head,.disc-upload-head>div{align-items:stretch;flex-direction:column}
  .disc-title-input{max-width:none;width:100%}
  .artist-banner{margin-bottom:-35px}
  .artist-logo{max-width:90%;max-height:90px}
}


/* v0.6.2b — definitive visible RUINE background */
html{
  background:#050706 !important;
}

body{
  background-image:
    linear-gradient(rgba(4,6,5,.12),rgba(4,6,5,.24)),
    url("/background/ruine") !important;
  background-size:cover !important;
  background-position:center center !important;
  background-repeat:no-repeat !important;
  background-attachment:fixed !important;
  background-color:#050706 !important;
}

/* No page-wide pseudo overlay may cover the artwork. */
body::before,
body::after{
  content:none !important;
  display:none !important;
}

/* Main page areas stay transparent; components keep their own dark panels. */
main,
#homeView,
.detail-view,
.section,
.site-footer{
  background:transparent !important;
}

@media(max-width:650px){
  body{
    background-attachment:scroll !important;
    background-position:center top !important;
  }
}


/* =========================================================
   v0.6.3 — MOBILE PASS
   ========================================================= */

@media (max-width: 650px) {
  :root{
    --player:72px;
  }

  html,body{
    max-width:100%;
    overflow-x:hidden;
  }

  body{
    padding-bottom:calc(var(--player) + env(safe-area-inset-bottom,0px));
  }

  /* Header / navigation */
  .topbar{
    min-height:0;
    height:auto;
    padding:10px 14px 8px;
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-areas:
      "brand account"
      "nav nav";
    gap:9px 10px;
    align-items:center;
  }

  .brand{
    grid-area:brand;
    min-width:0;
  }

  .brand-mark{
    width:34px;
    height:34px;
    font-size:18px;
    flex:0 0 auto;
  }

  .brand-name{
    font-size:11px;
    letter-spacing:.09em;
    white-space:nowrap;
  }

  .brand-tag{
    display:none;
  }

  .account-controls{
    grid-area:account;
    gap:6px;
  }

  /* Account must stay available on mobile */
  .profile-btn{
    display:grid !important;
    place-items:center;
    width:34px;
    height:34px;
    flex:0 0 auto;
  }

  .admin-nav-btn{
    padding:7px 9px;
    font-size:9px;
    letter-spacing:.08em;
  }

  .nav{
    grid-area:nav;
    order:initial;
    width:100%;
    gap:18px;
    overflow-x:auto;
    overflow-y:hidden;
    padding:3px 1px 2px;
    scrollbar-width:none;
    white-space:nowrap;
    font-size:11px;
  }

  .nav::-webkit-scrollbar{display:none}

  /* General content */
  main{
    padding:14px 14px 30px;
  }

  .section{
    padding:38px 0 5px;
  }

  .section-head,
  .rotation-head{
    margin-bottom:14px;
    gap:8px;
  }

  .section-head h2,
  .rotation-head h2{
    font-size:22px;
  }

  .small-note,
  .rotation-meta{
    font-size:10px;
  }

  /* Home hero */
  .hero{
    min-height:390px;
    border-radius:15px;
  }

  .hero-content{
    min-height:390px;
    padding:30px 20px 26px;
    max-width:none;
    justify-content:flex-end;
  }

  .hero-overlay{
    background:
      linear-gradient(0deg,rgba(7,7,9,.96) 0%,rgba(7,7,9,.78) 44%,rgba(7,7,9,.28) 78%,rgba(7,7,9,.12)),
      linear-gradient(90deg,rgba(7,7,9,.55),rgba(7,7,9,.05));
  }

  .hero h1,
  h1{
    font-size:clamp(36px,11vw,50px);
    line-height:.95;
    overflow-wrap:anywhere;
  }

  .hero .artist{
    font-size:16px;
    margin-top:11px;
  }

  .hero-copy{
    font-size:12px;
    line-height:1.55;
    margin-bottom:5px;
  }

  .hero-actions{
    flex-wrap:wrap;
  }

  .primary,.secondary,.back-btn{
    padding:10px 14px;
    font-size:11px;
  }

  /* Release cards */
  .release-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px 11px;
  }

  .cover-wrap{
    border-radius:9px;
  }

  .release-card h3{
    margin:9px 0 3px;
    font-size:13px;
    line-height:1.25;
    overflow-wrap:anywhere;
  }

  .release-card p{
    font-size:11px;
  }

  .release-card span{
    font-size:9px;
    line-height:1.3;
  }

  .card-play{
    opacity:1;
    right:8px;
    bottom:8px;
    width:36px;
    height:36px;
  }

  /* Artists / labels */
  .artist-grid,
  .label-grid{
    grid-template-columns:1fr;
  }

  .artist-card{
    padding:14px;
    grid-template-columns:52px minmax(0,1fr);
    gap:12px;
  }

  .artist-card .avatar{
    width:52px;
    height:52px;
  }

  .label-card{
    min-height:0;
    padding:16px;
    grid-template-columns:46px minmax(0,1fr);
  }

  .label-card>span{
    grid-column:2;
  }

  .label-icon{
    width:46px;
    height:46px;
  }

  /* Album view */
  .detail-view{
    padding-top:8px;
  }

  .back-btn{
    margin-bottom:16px;
  }

  .album-header{
    grid-template-columns:1fr;
    gap:18px;
    align-items:start;
    margin-bottom:20px;
  }

  .album-header img{
    width:min(78vw,290px);
    max-width:none;
    justify-self:center;
  }

  .album-header h1{
    font-size:clamp(34px,10vw,46px);
  }

  .artist-link{
    font-size:16px;
    margin-top:10px;
  }

  .album-genre{
    font-size:10px;
    line-height:1.5;
    margin:8px 0 15px;
  }

  /* Artist view */
  .artist-banner{
    height:170px;
    margin:0 0 -28px;
    border-radius:12px;
  }

  .artist-banner:not(.has-image){
    height:45px;
  }

  .artist-hero{
    grid-template-columns:86px minmax(0,1fr);
    gap:14px;
    padding:16px 8px 28px;
    align-items:start;
  }

  .artist-avatar{
    width:86px;
    height:86px;
    font-size:34px;
  }

  .artist-logo{
    max-width:100%;
    max-height:62px;
    margin:0 0 9px;
  }

  .artist-hero h1{
    font-size:clamp(30px,9vw,42px);
  }

  .artist-hero p{
    font-size:11px;
    line-height:1.55;
    margin-bottom:8px;
  }

  /* Track rows */
  .tracklist{
    border-radius:9px;
  }

  .track-row{
    grid-template-columns:30px minmax(0,1fr) 22px;
    gap:8px;
    padding:11px 10px;
  }

  .track-no{
    font-size:10px;
  }

  .track-name{
    font-size:12px;
    line-height:1.3;
    overflow-wrap:anywhere;
  }

  .track-sub{
    font-size:9px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }

  .track-action{
    text-align:center;
  }

  .disc-heading{
    padding:14px 10px 8px;
    flex-wrap:wrap;
  }

  /* Admin */
  .admin-head{
    margin-bottom:18px;
    gap:8px;
  }

  .admin-head h1{
    font-size:38px;
  }

  .admin-form{
    padding:15px;
    border-radius:12px;
  }

  .admin-tabs{
    gap:6px;
    margin-bottom:12px;
    overflow-x:auto;
    scrollbar-width:none;
  }

  .admin-tabs::-webkit-scrollbar{display:none}

  .admin-tab{
    flex:0 0 auto;
    padding:9px 11px;
    font-size:10px;
  }

  .form-grid{
    gap:13px;
  }

  .form-grid input,
  .form-grid select,
  .form-grid textarea{
    font-size:16px; /* prevents iOS browser auto zoom */
  }

  .disc-builder-head{
    align-items:flex-start;
    flex-direction:column;
    gap:9px;
  }

  .disc-upload{
    padding:12px;
  }

  .managed-release-row{
    align-items:flex-start;
    gap:10px;
    padding:11px;
  }

  .danger-btn{
    flex:0 0 auto;
    padding:7px 9px;
  }

  /* Account modal */
  .modal{
    padding:12px;
  }

  .modal-card{
    padding:22px 17px 18px;
    max-height:calc(100dvh - 24px);
    overflow-y:auto;
  }

  .modal-card h2{
    font-size:25px;
  }

  .auth-tabs{
    overflow-x:auto;
    scrollbar-width:none;
  }

  .auth-tabs::-webkit-scrollbar{display:none}

  .auth-form input{
    font-size:16px;
  }

  /* Compact mobile player */
  .player{
    height:calc(72px + env(safe-area-inset-bottom,0px));
    grid-template-columns:minmax(0,1fr) 42px;
    padding:7px 11px calc(7px + env(safe-area-inset-bottom,0px));
    gap:8px;
  }

  .now-playing{
    min-width:0;
    gap:9px;
  }

  .now-playing img{
    width:44px;
    height:44px;
    flex:0 0 auto;
  }

  .now-playing>div{
    min-width:0;
  }

  .now-playing strong,
  .now-playing span{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }

  .now-playing strong{
    font-size:11px;
  }

  .now-playing span{
    display:block;
    font-size:9px;
  }

  .player-center{
    display:flex;
    width:42px;
    justify-self:end;
  }

  .controls{
    gap:0;
  }

  .controls .big-play{
    width:38px;
    height:38px;
  }

  .timeline,
  .controls button:not(.big-play),
  .player-right{
    display:none !important;
  }

  .site-footer{
    padding:18px 14px calc(var(--player) + 18px);
    gap:12px;
    flex-direction:column;
  }
}

/* very narrow phones */
@media (max-width: 380px) {
  .release-grid{
    grid-template-columns:1fr;
  }

  .artist-hero{
    grid-template-columns:72px minmax(0,1fr);
  }

  .artist-avatar{
    width:72px;
    height:72px;
  }

  .admin-nav-btn{
    display:none;
  }
}


/* =========================================================
   v0.6.3a — MOBILE DENSITY PASS
   Desktop untouched.
   ========================================================= */

@media (max-width: 650px) {
  :root{
    --player:60px;
  }

  body{
    padding-bottom:calc(var(--player) + env(safe-area-inset-bottom,0px));
  }

  /* Header: tighter */
  .topbar{
    padding:8px 12px 6px;
    gap:6px 8px;
  }

  .brand-mark{
    width:30px;
    height:30px;
    font-size:16px;
  }

  .brand-name{
    font-size:10px;
    letter-spacing:.075em;
  }

  .profile-btn{
    width:30px;
    height:30px;
  }

  .admin-nav-btn{
    padding:6px 8px;
    font-size:8px;
  }

  .nav{
    gap:14px;
    padding:1px 0 0;
    font-size:10px;
  }

  main{
    padding:10px 12px 18px;
  }

  .section{
    padding:26px 0 2px;
  }

  .section-head,
  .rotation-head{
    margin-bottom:10px;
  }

  .section-head h2,
  .rotation-head h2{
    font-size:20px;
  }

  /* Home hero: much shorter */
  .hero,
  .hero-content{
    min-height:300px;
  }

  .hero{
    border-radius:12px;
  }

  .hero-content{
    padding:20px 16px 18px;
  }

  .hero h1{
    font-size:clamp(30px,9.3vw,42px);
    line-height:.96;
  }

  .hero .artist{
    font-size:14px;
    margin-top:8px;
  }

  .hero-copy{
    font-size:11px;
    line-height:1.45;
    margin:7px 0 2px;
    max-width:95%;
  }

  .hero-actions{
    margin-top:10px;
    gap:7px;
  }

  .primary,.secondary,.back-btn{
    padding:8px 11px;
    font-size:10px;
  }

  /* Cards */
  .release-grid{
    gap:10px 9px;
  }

  .release-card h3{
    margin:7px 0 2px;
    font-size:12px;
  }

  .release-card p{
    font-size:10px;
  }

  .release-card span{
    font-size:8px;
  }

  .card-play{
    width:32px;
    height:32px;
  }

  /* Album detail */
  .detail-view{
    padding-top:4px;
  }

  .back-btn{
    margin-bottom:10px;
  }

  .album-header{
    gap:12px;
    margin-bottom:14px;
  }

  .album-header img{
    width:min(62vw,230px);
  }

  .album-header h1{
    font-size:clamp(28px,8.8vw,40px);
    line-height:.98;
  }

  .artist-link{
    font-size:14px;
    margin-top:7px;
  }

  .album-genre{
    font-size:9px;
    margin:6px 0 11px;
  }

  /* Artist detail */
  .artist-banner{
    height:130px;
    margin-bottom:-20px;
  }

  .artist-banner:not(.has-image){
    height:36px;
  }

  .artist-hero{
    grid-template-columns:70px minmax(0,1fr);
    gap:10px;
    padding:12px 6px 20px;
  }

  .artist-avatar{
    width:70px;
    height:70px;
    font-size:28px;
  }

  .artist-logo{
    max-height:50px;
    margin-bottom:7px;
  }

  .artist-hero h1{
    font-size:clamp(26px,8.4vw,36px);
    line-height:1;
  }

  .artist-hero p{
    font-size:10px;
    line-height:1.45;
    margin:6px 0;
  }

  /* Tracklist denser */
  .track-row{
    grid-template-columns:26px minmax(0,1fr) 20px;
    gap:6px;
    padding:9px 8px;
  }

  .track-name{
    font-size:11px;
  }

  .track-sub{
    font-size:8px;
  }

  .disc-heading{
    padding:11px 8px 6px;
  }

  .disc-heading strong{
    font-size:10px;
  }

  .disc-heading span{
    font-size:9px;
  }

  /* Lists/cards denser */
  .artist-card{
    padding:11px;
    grid-template-columns:44px minmax(0,1fr);
    gap:10px;
  }

  .artist-card .avatar{
    width:44px;
    height:44px;
  }

  .label-card{
    padding:12px;
    grid-template-columns:40px minmax(0,1fr);
  }

  .label-icon{
    width:40px;
    height:40px;
  }

  /* Admin denser */
  .admin-head{
    margin-bottom:12px;
  }

  .admin-head h1{
    font-size:32px;
  }

  .admin-form{
    padding:12px;
  }

  .admin-tab{
    padding:8px 10px;
    font-size:9px;
  }

  .form-grid{
    gap:10px;
  }

  .disc-upload{
    padding:10px;
  }

  /* Modal */
  .modal-card{
    padding:18px 15px 15px;
  }

  .modal-card h2{
    font-size:22px;
    margin-bottom:14px;
  }

  /* Ultra-compact player */
  .player{
    height:calc(60px + env(safe-area-inset-bottom,0px));
    grid-template-columns:minmax(0,1fr) 36px;
    padding:5px 9px calc(5px + env(safe-area-inset-bottom,0px));
    gap:6px;
  }

  .now-playing{
    gap:7px;
  }

  .now-playing img{
    width:38px;
    height:38px;
  }

  .now-playing strong{
    font-size:10px;
  }

  .now-playing span{
    font-size:8px;
  }

  .player-center{
    width:36px;
  }

  .controls .big-play{
    width:34px;
    height:34px;
    font-size:13px;
  }

  .site-footer{
    padding:14px 12px calc(var(--player) + 14px);
  }
}

@media (max-width: 380px) {
  .hero,
  .hero-content{
    min-height:270px;
  }

  .album-header img{
    width:min(72vw,220px);
  }

  .hero h1,
  .album-header h1{
    font-size:30px;
  }

  .artist-hero{
    grid-template-columns:62px minmax(0,1fr);
  }

  .artist-avatar{
    width:62px;
    height:62px;
  }
}


/* v0.7.0 final mobile polish */
@media (max-width:650px){:root{--player:56px}body{padding-bottom:calc(var(--player) + env(safe-area-inset-bottom,0px))}.hero,.hero-content{min-height:280px}.hero-content{padding:18px 15px 15px}.section{padding-top:22px}.track-row{padding:8px}.player{height:calc(56px + env(safe-area-inset-bottom,0px));padding:4px 8px calc(4px + env(safe-area-inset-bottom,0px))}.now-playing img{width:36px;height:36px}.controls .big-play{width:32px;height:32px}.admin-nav-btn#installAppBtn{display:block}}


/* =========================================================
   v0.7.1 — GENRES
   ========================================================= */
.browse-tools{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:flex-end}
#browseGenreFilter{
  background:#111116;border:1px solid #303038;color:#d9d9df;border-radius:7px;
  padding:8px 10px;font:inherit;font-size:11px
}
.genre-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.genre-card{
  min-height:190px;border:1px solid #303039;border-radius:13px;padding:20px;cursor:pointer;
  display:flex;flex-direction:column;justify-content:flex-end;background:#111316;
  background-size:cover;background-position:center;box-shadow:0 12px 35px rgba(0,0,0,.22);
  transition:transform .18s ease,border-color .18s ease
}
.genre-card:hover{transform:translateY(-3px);border-color:#596532}
.genre-card h3{font-size:24px;margin:4px 0 8px;line-height:1}
.genre-card p{font-size:11px;line-height:1.5;color:#aaaab2;margin:0 0 12px;max-width:45ch}
.genre-card span{font-size:9px;text-transform:uppercase;letter-spacing:.1em;color:var(--accent)}
.genre-banner{
  min-height:280px;border:1px solid #303039;border-radius:15px;background:#0f1210;
  background-size:cover;background-position:center;position:relative;overflow:hidden;margin-bottom:30px
}
.genre-banner-overlay{position:absolute;inset:0;background:linear-gradient(to top,rgba(5,6,6,.92),rgba(5,6,6,.16))}
.genre-banner-copy{position:absolute;left:30px;right:30px;bottom:28px;z-index:1}
.genre-banner-copy h1{margin:3px 0 10px}
.genre-banner-copy p{max-width:70ch;color:#b3b3bb;line-height:1.55}
.genre-picker-field{display:flex;flex-direction:column;gap:8px}
.form-label{color:#aaaab3;font-size:11px;font-weight:700}
.genre-picker{display:flex;flex-wrap:wrap;gap:8px;border:1px solid #313138;background:#141419;border-radius:8px;padding:10px;min-height:46px}
.genre-choice{display:flex!important;flex-direction:row!important;align-items:center;gap:6px!important;background:#1b1c1e;border:1px solid #36383a;border-radius:999px;padding:6px 9px!important;cursor:pointer}
.genre-choice input{accent-color:#93ad38}
.genre-choice span{font-size:10px;color:#c8c8ce}

@media(max-width:900px){.genre-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){
  .browse-head{align-items:flex-start}
  .browse-tools{width:100%;justify-content:space-between}
  #browseGenreFilter{max-width:55%;font-size:10px;padding:7px 8px}
  .genre-grid{grid-template-columns:1fr;gap:10px}
  .genre-card{min-height:135px;padding:15px}
  .genre-card h3{font-size:20px}
  .genre-card p{font-size:10px;margin-bottom:8px}
  .genre-banner{min-height:190px;margin-bottom:20px}
  .genre-banner-copy{left:16px;right:16px;bottom:16px}
  .genre-banner-copy h1{font-size:34px}
}


/* v0.7.1b — Genre nav dropdown + history fix UI */
.nav-dropdown{position:relative;display:flex;align-items:center}
.nav-dropdown-toggle{
  border:0;background:none;color:inherit;font:inherit;cursor:pointer;padding:0;
}
.nav-dropdown-menu{
  position:absolute;top:calc(100% + 10px);left:0;min-width:190px;z-index:80;
  background:rgba(14,14,17,.98);border:1px solid #303038;border-radius:9px;
  box-shadow:0 18px 55px rgba(0,0,0,.45);padding:7px;
}
.nav-dropdown-menu button{
  display:block;width:100%;border:0;background:transparent;color:#bbb;
  text-align:left;padding:9px 10px;border-radius:6px;cursor:pointer;font:inherit;font-size:11px
}
.nav-dropdown-menu button:hover{background:#1d2116;color:var(--accent)}
.genre-all-btn{border-bottom:1px solid #2a2a30!important;border-radius:6px 6px 0 0!important;margin-bottom:4px}

@media(max-width:650px){
  .nav-dropdown{position:static}
  .nav-dropdown-menu{
    position:fixed;left:12px;right:12px;top:96px;min-width:0;max-height:60vh;overflow:auto;
  }
  .nav-dropdown-menu button{font-size:12px;padding:11px 12px}
}

/* v0.7.2 — cropper + player */
.crop-modal-card{width:min(880px,96vw)}
.crop-help{color:#92929b;font-size:11px;line-height:1.5;margin:-8px 0 14px}
.crop-stage-wrap{width:100%;display:grid;place-items:center;background:#050506;border:1px solid #303037;border-radius:10px;overflow:hidden;max-height:60vh}
#cropCanvas{display:block;max-width:100%;max-height:56vh;object-fit:contain}
.crop-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:14px}
.crop-controls label{display:flex;flex-direction:column;gap:6px;color:#aaaab3;font-size:10px;font-weight:700}
.crop-controls input[type=range]{width:100%}
.crop-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:16px}
#playBtn{position:relative;z-index:5;pointer-events:auto!important;touch-action:manipulation}
.player-center,.controls{position:relative;z-index:4}
@media(max-width:650px){
 .crop-modal-card{width:100%;max-height:calc(100dvh - 18px);overflow-y:auto;padding:18px 14px}
 .crop-controls{grid-template-columns:1fr;gap:8px}
 .crop-stage-wrap{max-height:48vh}
 #cropCanvas{max-height:46vh}
 .crop-actions{position:sticky;bottom:0;background:#111115;padding-top:10px}
}


/* v0.7.2a — Admin new-release genre multiselect dropdown */
.admin-genre-dropdown{position:relative;width:100%}
.admin-genre-toggle{
  width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;
  min-height:42px;padding:10px 12px;border:1px solid #303037;border-radius:8px;
  background:#111115;color:#ddd;text-align:left;cursor:pointer;font:inherit
}
.admin-genre-toggle:hover{border-color:#454550}
#releaseGenreSummary{
  min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#c7c7cc
}
.admin-genre-menu{
  position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:120;
  max-height:260px;overflow:auto;padding:8px;background:#101014;
  border:1px solid #303037;border-radius:8px;box-shadow:0 16px 40px rgba(0,0,0,.45)
}
.admin-genre-menu .genre-picker{display:grid;gap:4px}
.admin-genre-menu .genre-choice{
  display:flex;align-items:center;gap:9px;padding:9px 10px;border-radius:6px;
  cursor:pointer;color:#c9c9ce
}
.admin-genre-menu .genre-choice:hover{background:#1a1d16;color:var(--accent)}
.admin-genre-menu .genre-choice input{accent-color:var(--accent)}
@media(max-width:650px){
  .admin-genre-menu{position:fixed;left:12px;right:12px;top:18vh;max-height:60vh}
}


/* v0.7.2b — Home cleanup */
#genres{display:none!important}


/* v0.7.2c — compact admin genre multiselect pills */
.admin-genre-toggle{
  min-height:36px!important;
  padding:7px 10px!important;
  border-radius:7px!important;
  font-size:11px!important;
}
#releaseGenreSummary{
  font-size:11px!important;
  line-height:1.2!important;
}
.admin-genre-menu{
  top:calc(100% + 5px)!important;
  padding:9px!important;
  max-height:220px!important;
}
.admin-genre-menu .genre-picker{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:6px!important;
  align-items:center!important;
  justify-content:flex-start!important;
}
.admin-genre-menu .genre-choice{
  position:relative!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:28px!important;
  width:auto!important;
  padding:6px 10px!important;
  margin:0!important;
  border:1px solid #34343b!important;
  border-radius:999px!important;
  background:#17171b!important;
  color:#bdbdc5!important;
  font-size:10px!important;
  line-height:1!important;
  text-align:center!important;
  white-space:nowrap!important;
  cursor:pointer!important;
  user-select:none!important;
  transition:background .15s ease,border-color .15s ease,color .15s ease,transform .15s ease!important;
}
.admin-genre-menu .genre-choice input{
  position:absolute!important;
  opacity:0!important;
  pointer-events:none!important;
  width:1px!important;
  height:1px!important;
}
.admin-genre-menu .genre-choice:hover{
  border-color:#5a6540!important;
  background:#1c2018!important;
  color:#e1e7d0!important;
}
.admin-genre-menu .genre-choice.selected{
  background:#252d1b!important;
  border-color:var(--accent)!important;
  color:var(--accent)!important;
  box-shadow:0 0 0 1px rgba(0,0,0,.15) inset!important;
}
.admin-genre-menu .genre-choice:focus-visible{
  outline:2px solid var(--accent)!important;
  outline-offset:2px!important;
}
.genre-picker-field small{
  margin-top:5px!important;
  font-size:9px!important;
  line-height:1.3!important;
}
@media(max-width:650px){
  .admin-genre-menu{
    position:absolute!important;
    left:0!important;
    right:0!important;
    top:calc(100% + 5px)!important;
    max-height:200px!important;
  }
  .admin-genre-menu .genre-choice{
    min-height:27px!important;
    padding:6px 9px!important;
    font-size:10px!important;
  }
}


/* v0.7.2d — admin release form tidy-up */
.compact-genre-field{
  align-self:start;
  gap:5px!important;
}
.compact-genre-field small{
  margin-top:3px!important;
  font-size:9px!important;
  line-height:1.25!important;
}
.compact-genre-field .form-label{
  margin:0;
}
.compact-genre-field .admin-genre-toggle{
  min-height:32px!important;
  padding:6px 9px!important;
  border-radius:7px!important;
  font-size:10px!important;
}
.compact-genre-field #releaseGenreSummary{
  font-size:10px!important;
}
.compact-genre-field .admin-genre-menu{
  max-height:180px!important;
  padding:8px!important;
}
.compact-genre-field .admin-genre-menu .genre-picker{
  gap:5px!important;
}
.compact-genre-field .admin-genre-menu .genre-choice{
  min-height:24px!important;
  padding:5px 8px!important;
  font-size:9px!important;
}
@media(max-width:650px){
  .compact-genre-field{
    grid-column:auto!important;
  }
  .compact-genre-field .admin-genre-toggle{
    min-height:34px!important;
  }
}


/* v0.7.2e — Featured Underground admin */
.featured-admin-card{max-width:680px}
.featured-admin-card h2{margin:5px 0 8px}
.featured-admin-copy{margin:0 0 18px;color:#9999a2;line-height:1.5;font-size:11px}
.featured-select-label{display:flex;flex-direction:column;gap:7px;color:#aaaab2;font-size:11px;font-weight:700}
.featured-select-label select{width:100%;background:#17171c;border:1px solid #313138;color:#eee;border-radius:7px;padding:10px}
.featured-admin-actions{display:flex;align-items:center;gap:12px;margin-top:16px}
.featured-admin-actions .publish-result{margin:0}
@media(max-width:650px){.featured-admin-actions{align-items:flex-start;flex-direction:column}}


/* v0.7.2g — label management + logos */
.label-icon.label-logo{overflow:hidden;padding:3px;background:#0d0d10}
.label-icon.label-logo img{width:100%;height:100%;object-fit:contain;display:block;border-radius:8px}
#adminLabelsPanel .admin-form{max-width:900px}


/* v0.7.2h — complete label administration */
.label-admin-preview-wrap{display:flex;align-items:center;gap:14px;margin:14px 0}
.label-admin-logo-preview{width:88px;height:88px;flex:0 0 88px;border:1px solid #34343b;border-radius:12px;background:#0d0d10;display:grid;place-items:center;overflow:hidden;color:#666;font-size:9px;font-weight:800;letter-spacing:.08em}
.label-admin-logo-preview img{width:100%;height:100%;object-fit:contain;display:block;padding:5px}
.label-admin-preview-wrap .artist-admin-preview{margin:0}
.label-admin-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.danger-btn{border:1px solid #6a2f34;background:#241215;color:#f2a2aa;border-radius:8px;padding:12px 17px;font-weight:800;cursor:pointer}
.danger-btn:hover{background:#35171b;border-color:#914049}
@media(max-width:650px){.label-admin-logo-preview{width:72px;height:72px;flex-basis:72px}.label-admin-actions button{flex:1}}


/* =========================================================
   v0.8.0 — MUSIC APP UI
   Streaming-app inspired structure, Unruly Underground identity.
   ========================================================= */

:root{
  --sidebar:238px;
  --app-gap:10px;
  --surface:rgba(12,13,14,.88);
  --surface-2:rgba(19,20,21,.90);
  --surface-hover:rgba(31,33,30,.94);
  --soft-line:rgba(255,255,255,.07);
}

/* DESKTOP / TABLET LANDSCAPE */
@media (min-width: 821px) {
  body{
    background-attachment:fixed !important;
  }

  /* Existing top bar becomes a left app rail */
  .topbar{
    position:fixed !important;
    left:0;
    top:0;
    bottom:var(--player);
    width:var(--sidebar);
    height:auto !important;
    z-index:40;
    display:flex !important;
    flex-direction:column;
    align-items:stretch;
    justify-content:flex-start;
    gap:22px;
    padding:24px 16px 18px !important;
    background:rgba(8,9,9,.94) !important;
    border-right:1px solid var(--soft-line);
    border-bottom:0 !important;
    backdrop-filter:blur(24px);
  }

  .brand{
    padding:0 7px 18px;
    border-bottom:1px solid var(--soft-line);
  }

  .brand-mark{
    width:44px;
    height:44px;
    box-shadow:0 0 0 4px rgba(189,212,72,.05);
  }

  .brand-name{
    font-size:12px;
    line-height:1.25;
  }

  .brand-tag{
    font-size:8px;
  }

  .nav{
    width:100%;
    flex:0 0 auto;
    flex-direction:column;
    gap:4px !important;
    font-size:13px;
  }

  .nav > a,
  .nav-dropdown-toggle{
    width:100%;
    min-height:42px;
    display:flex;
    align-items:center;
    gap:12px;
    padding:0 12px !important;
    border:0 !important;
    border-radius:9px;
    color:#a8aaa7 !important;
    background:transparent !important;
    text-align:left;
    cursor:pointer;
  }

  .nav > a:hover,
  .nav-dropdown-toggle:hover{
    background:rgba(255,255,255,.06) !important;
    color:#fff !important;
  }

  .nav > a::before,
  .nav-dropdown-toggle::before{
    width:20px;
    text-align:center;
    color:#c8cac4;
    font-size:16px;
  }
  .nav > a[data-nav="home"]::before{content:"⌂"}
  .nav > a[data-nav="browse"]::before{content:"▦"}
  .nav > a[data-nav="artists"]::before{content:"●"}
  .nav > a[data-nav="rotation"]::before{content:"↻"}
  .nav > a[data-nav="labels"]::before{content:"◆"}
  .nav-dropdown-toggle::before{content:"♫"}

  .nav-dropdown{
    width:100%;
    position:relative;
  }

  .nav-dropdown-menu{
    position:absolute;
    left:calc(100% + 9px);
    top:0;
    width:250px;
    max-height:70vh;
    overflow:auto;
    border-radius:13px;
    background:rgba(13,14,14,.98);
    box-shadow:0 18px 60px rgba(0,0,0,.55);
  }

  .account-controls{
    width:100%;
    margin-top:auto;
    padding-top:16px;
    border-top:1px solid var(--soft-line);
    display:grid !important;
    grid-template-columns:1fr auto;
    gap:7px !important;
  }

  .admin-nav-btn{
    min-height:36px;
    border-radius:8px;
  }

  #installAppBtn{
    grid-column:1/-1;
  }

  .profile-btn{
    width:36px;
    height:36px;
  }

  main{
    max-width:none !important;
    margin:0 0 0 var(--sidebar) !important;
    min-height:calc(100vh - var(--player));
    padding:var(--app-gap) var(--app-gap) 38px !important;
  }

  #homeView,
  .detail-view{
    min-height:calc(100vh - var(--player) - 20px);
    padding:26px clamp(22px,3vw,46px) 52px;
    border:1px solid var(--soft-line);
    border-radius:18px;
    background:
      linear-gradient(180deg,rgba(28,31,23,.45),rgba(10,11,12,.90) 350px),
      rgba(9,10,10,.84) !important;
    box-shadow:0 20px 70px rgba(0,0,0,.22);
  }

  .site-footer{
    margin-left:var(--sidebar);
    padding-left:calc(3vw + 10px);
  }

  /* player can remain global across entire window, like desktop music apps */
  .player{
    z-index:80;
    background:rgba(7,8,8,.98) !important;
    border-top:1px solid rgba(255,255,255,.09);
  }

  /* Home hero is a featured listening card, not a giant website masthead */
  .hero{
    min-height:390px !important;
    border-radius:18px !important;
    border:0 !important;
    box-shadow:0 22px 60px rgba(0,0,0,.32);
  }

  .hero-content{
    min-height:390px !important;
    padding:48px 42px !important;
  }

  .hero h1{
    font-size:clamp(46px,5.2vw,78px) !important;
  }

  /* horizontal shelves */
  #releaseGrid,
  #artistGrid,
  #labelGrid{
    display:flex !important;
    gap:16px !important;
    overflow-x:auto;
    overflow-y:hidden;
    padding:2px 2px 16px;
    scroll-snap-type:x proximity;
    scrollbar-width:thin;
    scrollbar-color:#464941 transparent;
  }

  #releaseGrid .release-card{
    flex:0 0 clamp(178px,17vw,230px);
    scroll-snap-align:start;
    padding:10px;
    border-radius:13px;
    background:rgba(19,20,20,.64);
    transition:.2s ease;
  }

  #releaseGrid .release-card:hover{
    background:var(--surface-hover);
    transform:translateY(-2px);
  }

  #releaseGrid .cover-wrap{
    border:0;
    box-shadow:0 12px 34px rgba(0,0,0,.28);
  }

  #artistGrid .artist-card{
    flex:0 0 190px;
    display:flex !important;
    flex-direction:column;
    align-items:center;
    text-align:center;
    gap:10px;
    padding:18px 14px;
    border:0;
    background:rgba(20,21,21,.65);
    scroll-snap-align:start;
  }

  #artistGrid .artist-card:hover{
    background:var(--surface-hover);
  }

  #artistGrid .artist-card .avatar{
    width:118px;
    height:118px;
    font-size:42px;
    box-shadow:0 12px 30px rgba(0,0,0,.3);
  }

  #labelGrid .label-card{
    flex:0 0 min(390px,72vw);
    min-height:125px;
    scroll-snap-align:start;
    border-color:var(--soft-line);
    background:rgba(20,21,21,.72);
  }

  .section{
    padding:42px 0 0 !important;
  }

  .section-head,
  .rotation-head{
    margin-bottom:14px !important;
  }

  .section-head h2,
  .rotation-head h2{
    font-size:24px !important;
    letter-spacing:-.02em;
  }

  .eyebrow{
    margin-bottom:7px;
  }

  /* tables / detail content feel like app surfaces */
  .tracklist{
    border:0 !important;
    border-radius:12px !important;
    background:rgba(13,14,15,.72) !important;
  }

  .track-row{
    border-bottom-color:rgba(255,255,255,.05) !important;
  }

  .track-row:hover{
    background:rgba(255,255,255,.055) !important;
  }

  .album-header{
    padding:26px;
    margin:-4px 0 18px !important;
    border-radius:17px;
    background:linear-gradient(135deg,rgba(80,90,50,.16),rgba(20,21,21,.55));
  }

  .artist-banner{
    border:0 !important;
    border-radius:16px !important;
  }

  .admin-form{
    background:rgba(14,15,15,.90) !important;
    border-color:var(--soft-line) !important;
  }
}

/* PHONE / PORTRAIT TABLET */
@media (max-width: 820px) {
  :root{
    --mobile-nav:58px;
    --player:58px;
  }

  body{
    padding-bottom:calc(var(--mobile-nav) + var(--player) + env(safe-area-inset-bottom,0px)) !important;
  }

  /* top area only carries branding/account */
  .topbar{
    position:sticky !important;
    top:0;
    height:54px !important;
    min-height:54px !important;
    padding:7px 12px !important;
    display:flex !important;
    flex-direction:row !important;
    align-items:center !important;
    justify-content:space-between !important;
    background:rgba(8,9,9,.93) !important;
    backdrop-filter:blur(22px);
    border-bottom:1px solid rgba(255,255,255,.06) !important;
    z-index:70;
  }

  .brand{
    min-width:0;
    gap:9px;
  }

  .brand-mark{
    width:34px !important;
    height:34px !important;
    font-size:17px !important;
  }

  .brand-name{
    font-size:10px !important;
    white-space:nowrap;
  }

  .brand-tag{
    display:none !important;
  }

  .account-controls{
    margin-left:auto;
    gap:6px !important;
  }

  #installAppBtn,
  #adminNavBtn{
    font-size:8px !important;
    padding:6px 8px !important;
  }

  .profile-btn{
    display:grid !important;
    width:34px !important;
    height:34px !important;
    place-items:center;
  }

  /* Existing nav becomes an app bottom bar */
  .nav{
    position:fixed !important;
    left:0;
    right:0;
    bottom:0;
    height:calc(var(--mobile-nav) + env(safe-area-inset-bottom,0px));
    z-index:90;
    display:grid !important;
    grid-template-columns:repeat(5,1fr);
    gap:0 !important;
    padding:4px 4px env(safe-area-inset-bottom,0px) !important;
    background:rgba(7,8,8,.98) !important;
    border-top:1px solid rgba(255,255,255,.08);
    overflow:visible !important;
  }

  .nav > a{
    min-width:0;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    gap:2px;
    padding:2px 0 !important;
    font-size:8px !important;
    line-height:1;
    color:#8e918c !important;
    border-radius:8px;
  }

  .nav > a::before{
    font-size:19px;
    line-height:1;
    color:#d1d3ce;
  }

  .nav > a[data-nav="home"]::before{content:"⌂"}
  .nav > a[data-nav="browse"]::before{content:"▦"}
  .nav > a[data-nav="artists"]::before{content:"●"}
  .nav > a[data-nav="rotation"]::before{content:"↻"}
  .nav > a[data-nav="labels"]::before{content:"◆"}

  /* Genres live in Browse on mobile, so don't waste a sixth nav slot */
  .nav-dropdown{
    display:none !important;
  }

  main{
    max-width:none !important;
    margin:0 !important;
    padding:8px 9px 20px !important;
  }

  #homeView,
  .detail-view{
    padding:0 2px 20px;
  }

  .hero{
    min-height:285px !important;
    border-radius:15px !important;
    border:0 !important;
  }

  .hero-content{
    min-height:285px !important;
    padding:20px 17px 18px !important;
  }

  .hero h1{
    font-size:clamp(29px,10vw,42px) !important;
  }

  .hero-copy{
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
  }

  .section{
    padding:27px 0 0 !important;
  }

  .section-head,
  .rotation-head{
    margin-bottom:10px !important;
  }

  .section-head h2,
  .rotation-head h2{
    font-size:20px !important;
  }

  /* Home shelves swipe horizontally, like native streaming apps */
  #releaseGrid,
  #artistGrid,
  #labelGrid{
    display:flex !important;
    overflow-x:auto;
    overflow-y:hidden;
    gap:11px !important;
    padding:1px 1px 11px;
    scroll-snap-type:x proximity;
    scrollbar-width:none;
  }

  #releaseGrid::-webkit-scrollbar,
  #artistGrid::-webkit-scrollbar,
  #labelGrid::-webkit-scrollbar{
    display:none;
  }

  #releaseGrid .release-card{
    flex:0 0 145px;
    scroll-snap-align:start;
  }

  #releaseGrid .release-card h3{
    font-size:12px !important;
  }

  #artistGrid .artist-card{
    flex:0 0 135px;
    display:flex !important;
    flex-direction:column;
    align-items:center;
    text-align:center;
    gap:8px;
    padding:11px 8px !important;
    border:0 !important;
    background:rgba(17,18,18,.68) !important;
    scroll-snap-align:start;
  }

  #artistGrid .artist-card .avatar{
    width:82px !important;
    height:82px !important;
  }

  #labelGrid .label-card{
    flex:0 0 285px;
    min-height:105px !important;
    padding:13px !important;
    scroll-snap-align:start;
  }

  #rotation .rotation-head{
    align-items:flex-start;
    flex-direction:column;
  }

  #rotation .rotation-head .primary{
    width:auto;
  }

  /* mini player directly above bottom navigation */
  .player{
    left:7px !important;
    right:7px !important;
    bottom:calc(var(--mobile-nav) + env(safe-area-inset-bottom,0px)) !important;
    width:auto !important;
    height:var(--player) !important;
    min-height:var(--player) !important;
    border:1px solid rgba(255,255,255,.08) !important;
    border-radius:12px !important;
    padding:6px 9px !important;
    grid-template-columns:minmax(0,1fr) 38px !important;
    gap:7px !important;
    background:rgba(24,25,24,.97) !important;
    box-shadow:0 10px 32px rgba(0,0,0,.45);
  }

  .now-playing img{
    width:42px !important;
    height:42px !important;
    border-radius:7px !important;
  }

  .now-playing strong{
    font-size:10px !important;
  }

  .now-playing span{
    font-size:8px !important;
  }

  .player-center{
    width:38px !important;
  }

  .controls .big-play{
    width:34px !important;
    height:34px !important;
  }

  .timeline,
  .controls button:not(.big-play),
  .player-right{
    display:none !important;
  }

  .site-footer{
    padding-bottom:calc(var(--mobile-nav) + var(--player) + 24px) !important;
  }

  /* album / artist surfaces */
  .album-header{
    border-radius:14px;
    padding:13px 9px 16px;
    background:linear-gradient(180deg,rgba(70,78,48,.14),rgba(12,13,13,.50));
  }

  .tracklist{
    border:0 !important;
    background:rgba(12,13,13,.74) !important;
  }

  .track-row{
    padding:9px 8px !important;
  }

  .artist-banner{
    border:0 !important;
  }
}

@media (max-width: 370px){
  #releaseGrid .release-card{flex-basis:132px}
  #labelGrid .label-card{flex-basis:255px}
}


/* =========================================================
   v0.8.1 — LISTENER PROFILES
   ========================================================= */
.listener-profile-hero{
  display:grid;
  grid-template-columns:190px minmax(0,1fr);
  align-items:end;
  gap:28px;
  padding:34px;
  min-height:270px;
  border-radius:18px;
  background:
    linear-gradient(135deg,rgba(111,130,58,.28),rgba(20,22,20,.75)),
    rgba(14,15,15,.86);
  box-shadow:0 20px 55px rgba(0,0,0,.25);
}
.listener-avatar{
  width:190px;
  height:190px;
  border-radius:50%;
  display:grid;
  place-items:center;
  overflow:hidden;
  background:linear-gradient(145deg,#252922,#111311);
  border:1px solid rgba(255,255,255,.10);
  color:var(--accent);
  font-size:58px;
  font-weight:900;
  box-shadow:0 18px 50px rgba(0,0,0,.42);
}
.listener-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.listener-profile-copy h1{
  margin:3px 0 10px;
  font-size:clamp(42px,6vw,78px);
  line-height:.94;
}
.listener-profile-copy p{
  max-width:720px;
  margin:0 0 14px;
  color:#c0c2bd;
  line-height:1.6;
}
.listener-meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  color:#a6aaa1;
  font-size:11px;
}
.listener-meta span{
  padding:6px 9px;
  border-radius:999px;
  background:rgba(0,0,0,.24);
  border:1px solid rgba(255,255,255,.07);
}
.listener-stats{
  display:flex;
  gap:12px;
  margin:16px 0 24px;
}
.listener-stat{
  min-width:130px;
  padding:15px 18px;
  border-radius:12px;
  background:rgba(18,19,19,.78);
  border:1px solid rgba(255,255,255,.06);
}
.listener-stat strong{
  display:block;
  font-size:24px;
  color:#fff;
}
.listener-stat span{
  color:#888c84;
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.listener-profile-grid{
  display:grid;
  grid-template-columns:minmax(0,1.5fr) minmax(280px,.7fr);
  gap:16px;
}
.listener-profile-card{
  padding:22px;
  border-radius:14px;
  background:rgba(14,15,15,.88);
  border:1px solid rgba(255,255,255,.07);
}
.listener-profile-card h2{
  margin:4px 0 18px;
}
.listener-profile-card textarea{
  resize:vertical;
}
.profile-visibility{
  display:flex !important;
  flex-direction:row !important;
  align-items:center;
  gap:9px !important;
}
.profile-visibility input{
  width:auto !important;
}
.listener-private-row{
  display:flex;
  justify-content:space-between;
  gap:18px;
  padding:11px 0;
  border-bottom:1px solid rgba(255,255,255,.06);
}
.listener-private-row span{
  color:#858981;
  font-size:11px;
}
.listener-private-row strong{
  font-size:11px;
  text-align:right;
  overflow-wrap:anywhere;
}
.listener-private-card .secondary{
  width:100%;
  margin-top:9px;
}

@media(max-width:820px){
  .listener-profile-hero{
    grid-template-columns:96px minmax(0,1fr);
    gap:14px;
    min-height:0;
    padding:18px 14px;
    align-items:center;
  }
  .listener-avatar{
    width:96px;
    height:96px;
    font-size:32px;
  }
  .listener-profile-copy h1{
    font-size:clamp(27px,9vw,40px);
    margin-bottom:7px;
  }
  .listener-profile-copy p{
    font-size:10px;
    line-height:1.45;
    margin-bottom:8px;
    display:-webkit-box;
    -webkit-line-clamp:3;
    -webkit-box-orient:vertical;
    overflow:hidden;
  }
  .listener-meta{
    font-size:8px;
  }
  .listener-meta span{
    padding:4px 7px;
  }
  .listener-stats{
    margin:10px 0 14px;
    gap:8px;
  }
  .listener-stat{
    flex:1;
    min-width:0;
    padding:11px 12px;
  }
  .listener-stat strong{
    font-size:19px;
  }
  .listener-profile-grid{
    grid-template-columns:1fr;
    gap:10px;
  }
  .listener-profile-card{
    padding:15px 13px;
  }
}

@media(max-width:390px){
  .listener-profile-hero{
    grid-template-columns:76px minmax(0,1fr);
  }
  .listener-avatar{
    width:76px;
    height:76px;
    font-size:25px;
  }
}


/* =========================================================
   v0.8.2 — FIXED PROFILE DOCK + FREE DEVELOPMENT SUBSCRIPTIONS
   ========================================================= */

.account-dock{
  position:fixed;
  top:14px;
  right:18px;
  z-index:120;
  display:flex;
  align-items:center;
  gap:8px;
  pointer-events:auto;
}

.profile-pill{
  min-height:40px;
  max-width:230px;
  display:flex;
  align-items:center;
  gap:9px;
  padding:4px 11px 4px 5px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:999px;
  background:rgba(15,16,16,.94);
  color:#f3f4ef;
  box-shadow:0 9px 28px rgba(0,0,0,.32);
  backdrop-filter:blur(18px);
  cursor:pointer;
  transition:.18s ease;
}
.profile-pill:hover{
  background:rgba(28,30,27,.97);
  border-color:rgba(189,212,72,.28);
}
.profile-pill-avatar{
  width:30px;
  height:30px;
  flex:0 0 auto;
  display:grid;
  place-items:center;
  overflow:hidden;
  border-radius:50%;
  background:#1a1d14;
  color:var(--accent);
  font-size:11px;
  font-weight:900;
  border:1px solid rgba(189,212,72,.24);
}
.profile-pill-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.profile-pill-name{
  min-width:0;
  max-width:145px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:11px;
  font-weight:800;
}

.subscription-btn{
  min-height:36px;
  padding:0 13px;
  border-radius:999px;
  border:1px solid rgba(189,212,72,.32);
  background:rgba(37,43,21,.94);
  color:var(--accent);
  font-size:9px;
  font-weight:900;
  letter-spacing:.09em;
  cursor:pointer;
  box-shadow:0 9px 28px rgba(0,0,0,.28);
  backdrop-filter:blur(18px);
}
.subscription-btn:hover{
  background:#30381d;
  color:#e1ef82;
}

/* Reserve enough upper-right breathing room for the always-visible account dock. */
@media(min-width:821px){
  #homeView,
  .detail-view{
    padding-top:74px !important;
  }

  /* admin/install remain in the fixed left rail */
  .topbar .account-controls{
    position:static !important;
    right:auto !important;
    top:auto !important;
    z-index:auto !important;
  }
}

/* Subscription preview */
.subscription-card{
  width:min(720px,100%);
}
.subscription-card h2{
  margin-bottom:10px;
}
.subscription-lead{
  margin:0 0 20px;
  color:#b7bab3;
  line-height:1.6;
}
.subscription-lead strong{
  color:var(--accent);
}
.subscription-plans{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
.subscription-plan{
  position:relative;
  min-height:205px;
  display:flex;
  flex-direction:column;
  padding:18px;
  border-radius:13px;
  border:1px solid rgba(255,255,255,.08);
  background:#151617;
}
.subscription-plan.active-plan{
  border-color:rgba(189,212,72,.35);
  background:linear-gradient(145deg,rgba(54,65,27,.50),rgba(17,19,17,.96));
}
.subscription-plan.future-plan{
  opacity:.78;
}
.plan-kicker{
  color:#7f8478;
  font-size:8px;
  font-weight:900;
  letter-spacing:.12em;
}
.subscription-plan h3{
  margin:6px 0 6px;
  font-size:20px;
}
.subscription-plan p{
  margin:0;
  color:#92968e;
  font-size:11px;
  line-height:1.5;
}
.plan-price{
  margin-top:auto;
  padding-top:16px;
  font-size:25px;
  font-weight:900;
}
.plan-price span{
  margin-left:3px;
  color:#777c73;
  font-size:9px;
  font-weight:600;
}
.plan-status{
  margin-top:9px;
  align-self:flex-start;
  padding:5px 8px;
  border-radius:999px;
  background:rgba(189,212,72,.10);
  color:var(--accent);
  font-size:8px;
  font-weight:900;
  letter-spacing:.08em;
}
.subscription-note{
  margin:14px 0;
  padding:11px 12px;
  border-radius:9px;
  background:rgba(255,255,255,.035);
  color:#848980;
  font-size:10px;
}
.subscription-close-main{
  width:100%;
}

/* Mobile: fixed at the top right too, like the reference UI. */
@media(max-width:820px){
  .account-dock{
    top:8px;
    right:9px;
    gap:5px;
  }
  .profile-pill{
    min-height:36px;
    max-width:138px;
    padding:3px 8px 3px 4px;
  }
  .profile-pill-avatar{
    width:28px;
    height:28px;
  }
  .profile-pill-name{
    max-width:84px;
    font-size:9px;
  }
  .subscription-btn{
    min-height:31px;
    padding:0 8px;
    font-size:7px;
  }

  /* The header remains fixed/sticky, but account itself belongs to the dock. */
  .topbar{
    padding-right:155px !important;
  }

  .subscription-plans{
    grid-template-columns:1fr;
  }
  .subscription-plan{
    min-height:175px;
  }
}

@media(max-width:420px){
  .profile-pill-name{
    display:none;
  }
  .profile-pill{
    width:36px;
    padding:3px;
  }
  .subscription-btn{
    padding:0 7px;
  }
  .topbar{
    padding-right:112px !important;
  }
}


/* =========================================================
   v0.8.3 — PRIVATE LISTENER PLAYLISTS
   ========================================================= */
.listener-playlists-section{margin:18px 0 22px}
.playlist-section-head{align-items:center}
.listener-playlist-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:10px}
.listener-playlist-card,.empty-playlist-card{min-height:82px;width:100%;display:flex;align-items:center;gap:12px;padding:12px;border:1px solid rgba(255,255,255,.07);border-radius:11px;background:rgba(16,17,17,.82);color:#fff;text-align:left;cursor:pointer}
.listener-playlist-card:hover,.empty-playlist-card:hover{background:rgba(29,31,28,.94);border-color:rgba(189,212,72,.18)}
.playlist-card-icon{width:48px;height:48px;flex:0 0 auto;display:grid;place-items:center;border-radius:8px;background:linear-gradient(145deg,#30381f,#151813);color:var(--accent);font-size:20px}
.listener-playlist-card strong,.empty-playlist-card strong{display:block;font-size:12px}
.listener-playlist-card span,.empty-playlist-card span{display:block;margin-top:4px;color:#858981;font-size:9px;line-height:1.4}
.empty-playlist-card{grid-column:1/-1;border-style:dashed}
.playlist-detail-head{display:flex;justify-content:space-between;align-items:end;gap:20px;padding:28px;border-radius:17px;background:linear-gradient(135deg,rgba(67,78,36,.32),rgba(16,17,17,.86));margin-bottom:14px}
.playlist-detail-head h1{margin:4px 0 7px;font-size:clamp(38px,6vw,70px);line-height:.96}
.playlist-detail-head p{margin:0;color:#92968e;font-size:11px}
.playlist-head-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}
.playlist-track-controls,.track-actions{display:flex;align-items:center;justify-content:flex-end;gap:5px}
.track-add-playlist,.playlist-track-controls button{border:0;background:transparent;color:#9da197;cursor:pointer;width:26px;height:26px;border-radius:50%;font-size:15px;display:grid;place-items:center}
.track-add-playlist:hover,.playlist-track-controls button:hover{background:rgba(255,255,255,.08);color:var(--accent)}
.playlist-track-controls button:disabled{opacity:.2;cursor:default}
.playlist-remove-track{color:#bc7d78!important}
.playlist-empty-detail{padding:25px;color:#848980;font-size:11px;text-align:center}
.playlist-picker-card{width:min(470px,100%)}
.playlist-picker-list{display:flex;flex-direction:column;gap:7px;max-height:45vh;overflow:auto;margin:14px 0}
.playlist-picker-item{display:flex;flex-direction:column;align-items:flex-start;gap:4px;width:100%;padding:12px;border:1px solid rgba(255,255,255,.07);border-radius:9px;background:#171818;color:#eee;cursor:pointer;text-align:left}
.playlist-picker-item:hover{background:#22241f;border-color:rgba(189,212,72,.2)}
.playlist-picker-item span{font-size:12px;font-weight:800}.playlist-picker-item small{font-size:9px;color:#7e827a}.playlist-picker-empty{padding:14px;color:#83877f;text-align:center;font-size:10px}.playlist-picker-new{width:100%}
@media(max-width:820px){
  .playlist-section-head{align-items:flex-start;gap:9px}.playlist-section-head .primary{width:auto}
  .listener-playlist-grid{grid-template-columns:1fr 1fr;gap:8px}.listener-playlist-card,.empty-playlist-card{min-height:70px;padding:9px}.playlist-card-icon{width:40px;height:40px}
  .playlist-detail-head{padding:16px 12px;align-items:flex-start;flex-direction:column}.playlist-detail-head h1{font-size:34px}.playlist-head-actions{justify-content:flex-start}
  .playlist-track-controls{gap:1px}.playlist-track-controls button,.track-add-playlist{width:24px;height:24px;font-size:13px}
}
@media(max-width:390px){.listener-playlist-grid{grid-template-columns:1fr}}


/* =========================================================
   v0.8.4 — PASSWORD RECOVERY
   ========================================================= */
.auth-link-btn{
  width:100%;
  margin-top:4px;
  padding:7px 0;
  border:0;
  background:transparent;
  color:#aeb79a;
  font-size:10px;
  text-decoration:underline;
  cursor:pointer;
}
.auth-link-btn:hover{color:var(--accent)}
.owner-recovery-box{
  margin-top:14px;
  padding:14px;
  border:1px solid rgba(189,212,72,.14);
  border-radius:10px;
  background:rgba(189,212,72,.035);
}
.password-change-block{
  margin:18px 0 14px;
  padding-top:16px;
  border-top:1px solid rgba(255,255,255,.07);
}
.password-change-block h3{
  margin:4px 0 12px;
}
.compact-auth-form{
  gap:8px;
}
.password-reset-list{
  display:flex;
  flex-direction:column;
  gap:9px;
}
.password-reset-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(280px,.8fr);
  gap:14px;
  align-items:center;
  padding:13px;
  border:1px solid rgba(255,255,255,.07);
  border-radius:10px;
  background:rgba(13,14,14,.7);
}
.password-reset-user{
  display:flex;
  flex-direction:column;
  gap:3px;
}
.password-reset-user span,
.password-reset-user small{
  color:#8e9389;
  font-size:9px;
}
.password-reset-action{
  display:grid;
  grid-template-columns:1fr auto;
  gap:8px;
}
.password-reset-action input{
  min-width:0;
  background:#0e0f10;
  color:#fff;
  border:1px solid rgba(255,255,255,.10);
  border-radius:8px;
  padding:9px 10px;
}
@media(max-width:820px){
  .password-reset-row{
    grid-template-columns:1fr;
  }
  .password-reset-action{
    grid-template-columns:1fr;
  }
}


/* =========================================================
   v0.8.6 — MOBILE FIXED HEADER / ACCOUNT DOCK CLEANUP
   ========================================================= */

.mobile-subscription-entry{
  display:none;
}

@media(max-width:820px){
  /* The mobile app chrome must never scroll away. */
  .topbar{
    position:fixed !important;
    top:0 !important;
    left:0 !important;
    right:0 !important;
    width:100% !important;
    height:54px !important;
    min-height:54px !important;
    z-index:110 !important;
    padding:7px 158px 7px 12px !important;
    background:rgba(8,9,9,.96) !important;
    backdrop-filter:blur(22px);
    -webkit-backdrop-filter:blur(22px);
  }

  /* The account profile stays independently fixed above the header. */
  .account-dock{
    position:fixed !important;
    top:8px !important;
    right:9px !important;
    z-index:120 !important;
  }

  /* Subscribe is intentionally removed from the cramped mobile header. */
  .account-dock .subscription-btn{
    display:none !important;
  }

  /* Make room for the fixed 54px header because it no longer occupies layout flow. */
  main{
    padding-top:62px !important;
  }

  .site-footer{
    margin-top:0 !important;
  }

  /* Subscription remains reachable from the listener account menu. */
  .mobile-subscription-entry{
    display:block !important;
    width:100%;
    margin-top:8px;
  }
}

@media(max-width:420px){
  .topbar{
    padding-right:58px !important;
  }

  .profile-pill{
    width:36px !important;
    max-width:36px !important;
    min-width:36px !important;
    padding:3px !important;
  }

  .profile-pill-name{
    display:none !important;
  }
}


/* =========================================================
   v0.9.0 — PERSONAL LISTENING + EXPANDABLE MOBILE PLAYER
   ========================================================= */

.track-heart,.player-heart{
  border:0;
  background:transparent;
  color:#9da09a;
  cursor:pointer;
  font-size:19px;
  line-height:1;
  padding:4px 6px;
}
.track-heart:hover,.player-heart:hover,.track-heart.liked,.player-heart.liked{color:#bdd448}
.track-heart.liked,.player-heart.liked{text-shadow:0 0 14px rgba(189,212,72,.25)}

.personal-track-shelf{
  display:flex;
  gap:13px;
  overflow-x:auto;
  padding:2px 2px 12px;
  scrollbar-width:none;
}
.personal-track-shelf::-webkit-scrollbar{display:none}
.personal-track-card{flex:0 0 155px;min-width:0;cursor:pointer}
.personal-track-cover{
  position:relative;
  aspect-ratio:1;
  overflow:hidden;
  border-radius:11px;
  background:#111;
  box-shadow:0 10px 30px rgba(0,0,0,.28);
}
.personal-track-cover img{width:100%;height:100%;object-fit:cover}
.personal-play{
  position:absolute;right:8px;bottom:8px;width:34px;height:34px;
  border:0;border-radius:50%;background:var(--accent);color:#0b0c0a;
  font-weight:900;opacity:0;transform:translateY(3px);transition:.16s ease;
}
.personal-track-card:hover .personal-play{opacity:1;transform:none}
.personal-track-card strong{
  display:block;margin-top:8px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:12px;
}
.personal-track-card span{
  display:block;margin-top:3px;color:#898d85;font-size:9px;line-height:1.35;
  overflow:hidden;white-space:nowrap;text-overflow:ellipsis;
}

.listener-liked-section{margin:28px 0 18px}
.liked-songs-card{
  width:min(440px,100%);display:flex;align-items:center;gap:14px;padding:14px;
  border:1px solid rgba(255,255,255,.07);border-radius:12px;
  background:linear-gradient(135deg,rgba(84,103,38,.34),rgba(17,18,18,.88));
  color:#fff;text-align:left;cursor:pointer;
}
.liked-songs-heart{
  width:58px;height:58px;display:grid;place-items:center;border-radius:10px;
  background:linear-gradient(135deg,#9fb83f,#3f4b1e);color:#10120d;font-size:29px;
  box-shadow:0 10px 25px rgba(0,0,0,.25);
}
.liked-songs-card strong{display:block;font-size:15px}
.liked-songs-card span{display:block;margin-top:4px;color:#a8aea0;font-size:9px}

.liked-detail-header{
  display:grid;grid-template-columns:160px minmax(0,1fr);gap:25px;align-items:end;
  margin-bottom:18px;padding:28px;border-radius:17px;
  background:linear-gradient(135deg,rgba(106,128,45,.4),rgba(20,21,21,.78));
}
.liked-detail-icon{
  width:160px;height:160px;display:grid;place-items:center;border-radius:13px;
  background:linear-gradient(135deg,#a8c243,#354018);color:#0d0e0c;font-size:74px;
  box-shadow:0 18px 45px rgba(0,0,0,.35);
}
.liked-detail-header h1{margin:4px 0 8px}
.liked-detail-header p{color:#aab0a5;margin:0 0 14px}

.player-expand-handle{display:none}

@media(max-width:820px){
  .personal-track-card{flex-basis:132px}
  .personal-play{opacity:1;width:30px;height:30px;font-size:11px}

  .liked-detail-header{grid-template-columns:82px minmax(0,1fr);gap:13px;padding:15px 12px}
  .liked-detail-icon{width:82px;height:82px;font-size:38px}
  .liked-detail-header h1{font-size:28px}

  .player-expand-handle{
    display:grid;place-items:center;position:absolute;top:-17px;left:50%;
    transform:translateX(-50%);width:46px;height:21px;
    border:1px solid rgba(255,255,255,.08);border-bottom:0;border-radius:11px 11px 0 0;
    background:rgba(24,25,24,.98);color:#b9bdb4;z-index:2;cursor:pointer;
  }

  .player.expanded{
    top:72px !important;left:7px !important;right:7px !important;
    bottom:calc(var(--mobile-nav) + env(safe-area-inset-bottom,0px)) !important;
    width:auto !important;height:auto !important;min-height:0 !important;
    display:grid !important;grid-template-columns:1fr !important;grid-template-rows:auto auto auto !important;
    gap:18px !important;padding:24px 18px 18px !important;
    border-radius:18px 18px 12px 12px !important;overflow:auto;
    background:linear-gradient(180deg,rgba(55,62,38,.98),rgba(14,15,15,.995) 42%) !important;
    box-shadow:0 -10px 50px rgba(0,0,0,.55) !important;
  }

  .player.expanded .now-playing{
    display:flex !important;flex-direction:column !important;align-items:center !important;
    text-align:center !important;gap:13px !important;
  }
  .player.expanded .now-playing img{
    width:min(72vw,310px) !important;height:min(72vw,310px) !important;
    border-radius:15px !important;box-shadow:0 22px 55px rgba(0,0,0,.42);
  }
  .player.expanded .now-playing strong{font-size:18px !important}
  .player.expanded .now-playing span{font-size:11px !important}

  .player.expanded .player-center{
    width:100% !important;display:flex !important;flex-direction:column !important;gap:16px !important;
  }
  .player.expanded .controls{display:flex !important;justify-content:center !important;gap:22px !important}
  .player.expanded .controls button{display:grid !important}
  .player.expanded .controls .big-play{width:58px !important;height:58px !important;font-size:19px !important}
  .player.expanded .controls button:not(.big-play){width:42px !important;height:42px !important}

  .player.expanded .timeline{
    display:grid !important;grid-template-columns:34px 1fr 34px;align-items:center;
    gap:8px;width:100%;
  }
  .player.expanded .timeline .bar{height:8px !important;cursor:pointer;touch-action:none}
  .player.expanded .timeline span{font-size:9px}

  .player.expanded .player-right{
    display:flex !important;justify-content:center !important;gap:12px !important;width:100% !important;
  }
  .player.expanded .player-right input,.player.expanded .player-right>span{display:none !important}
  .player.expanded .player-heart{display:block !important;font-size:26px}

  body:has(.player.expanded){overflow:hidden}
}

/* v0.9.1 analytics + release types */
.analytics-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin:16px 0 22px}.analytics-card{padding:18px;border:1px solid rgba(255,255,255,.1);border-radius:14px;background:rgba(10,12,12,.72)}.analytics-card strong{display:block;font-size:1.8rem}.analytics-card span{display:block;margin-top:4px;opacity:.7}.analytics-table-wrap{overflow-x:auto}.analytics-table{width:100%;border-collapse:collapse}.analytics-table th,.analytics-table td{text-align:left;padding:12px;border-bottom:1px solid rgba(255,255,255,.08)}.analytics-table td small{display:block;opacity:.65;margin-top:3px}.managed-release-type{min-width:105px}.discography-group{grid-column:1/-1;margin-bottom:24px}.discography-group>h3{margin:0 0 12px}.discography-group .release-grid{margin:0}.browse-tools{flex-wrap:wrap}


/* v0.9.1a — mobile profile nav + Super Admin users */
.mobile-profile-nav{display:none!important}
.users-toolbar{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0 18px}.users-toolbar input{min-width:240px;flex:1}.users-toolbar select{min-width:150px}.users-table select{min-width:120px}.user-name-cell small{display:block;opacity:.6;margin-top:3px}.user-status-btn{min-width:88px}.user-status-inactive{opacity:.55}
@media(max-width:820px){
  .account-dock{display:none!important}
  .topbar{padding:7px 12px!important}
  .nav>a[data-nav="labels"]{display:none!important}
  .nav>a[data-nav="profile"]{display:flex!important}
  .nav>a[data-nav="profile"]::before{content:"●"}
  .mobile-profile-nav{display:flex!important}
}
