/* Shared structure only. Each concept brings its own colors, type and layout. */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;min-height:100vh;padding-bottom:var(--player-h,84px)}
img{max-width:100%;display:block}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
a{color:inherit}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
:focus-visible{outline:3px solid var(--focus,#4da3ff);outline-offset:2px}
.demo-flag{font-size:11px;letter-spacing:.08em;text-transform:uppercase;opacity:.7}

/* ---- Player (fixed; concepts restyle) ---- */
.hhr-player{position:fixed;left:0;right:0;bottom:0;z-index:50;height:var(--player-h,84px);display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1.6fr) minmax(0,1fr);align-items:center;gap:18px;padding:0 20px}
.pl-now{display:flex;align-items:center;gap:12px;min-width:0}
.pl-art{width:54px;height:54px;border-radius:6px;object-fit:cover;flex:none;background:#222}
.pl-meta{display:flex;flex-direction:column;min-width:0}
.pl-title{font-weight:700;text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pl-artist{font-size:13px;opacity:.7;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pl-fav{background:none;border:0;font-size:22px;padding:6px}
.pl-fav.is-fav{color:var(--accent,#e33)}
.pl-controls{display:flex;flex-direction:column;align-items:center;gap:4px}
.pl-buttons{display:flex;align-items:center;gap:14px}
.pl-buttons button{background:none;border:0;font-size:18px;padding:6px;min-width:40px;min-height:40px}
.pl-play{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;position:relative}
.pl-play .i-pause,.pl-play .i-load{display:none}
body.is-playing .pl-play .i-play{display:none}
body.is-playing .pl-play .i-pause{display:inline}
.hhr-player.is-loading .pl-play .i-play,.hhr-player.is-loading .pl-play .i-pause{display:none}
.hhr-player.is-loading .pl-play .i-load{display:block;width:20px;height:20px;border:3px solid currentColor;border-right-color:transparent;border-radius:50%;animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.pl-seek{display:flex;align-items:center;gap:10px;width:100%;font-size:12px;font-variant-numeric:tabular-nums}
.pl-seek input{flex:1}
input[type=range]{-webkit-appearance:none;appearance:none;height:4px;border-radius:4px;background:linear-gradient(90deg,var(--accent,#e33) var(--p,0%),rgba(128,128,128,.35) var(--p,0%));cursor:pointer}
input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:14px;height:14px;border-radius:50%;background:#fff;box-shadow:0 0 0 2px var(--accent,#e33)}
.pl-right{display:flex;justify-content:flex-end;align-items:center;gap:14px}
.pl-vol{display:flex;align-items:center;gap:6px}
.pl-vol input{width:100px;--p:80%}
.pl-qbtn{white-space:nowrap;border-radius:20px;padding:6px 12px;background:none;border:1px solid currentColor}
.pl-queue{position:absolute;right:16px;bottom:calc(100% + 10px);width:min(360px,calc(100vw - 32px));max-height:60vh;overflow:auto;border-radius:12px;padding:12px;box-shadow:0 20px 60px rgba(0,0,0,.5)}
.pl-queue header{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}
.pl-queue header button{background:none;border:0}
.pl-queue ol{list-style:none;margin:0;padding:0}
.pl-queue li button{display:flex;gap:10px;align-items:center;width:100%;background:none;border:0;padding:6px;border-radius:8px;text-align:left}
.pl-queue li.on button{background:rgba(128,128,128,.2)}
.pl-queue li img{width:38px;height:38px;border-radius:4px}
.pl-queue li span{display:flex;flex-direction:column}
.pl-queue small{opacity:.7}
.pl-queue .empty{opacity:.7;padding:8px}

/* Play buttons anywhere */
[data-play]{cursor:pointer}
[data-play] .ic-pause{display:none}
[data-play].is-playing .ic-play{display:none}
[data-play].is-playing .ic-pause{display:inline}
[data-fav].is-fav{color:var(--accent,#e33)}

/* Toast + dialog */
#hhr-toast{position:fixed;left:50%;bottom:calc(var(--player-h,84px) + 16px);transform:translate(-50%,20px);opacity:0;transition:.25s;z-index:80;background:#111;color:#fff;padding:10px 18px;border-radius:30px;font-size:14px;pointer-events:none;box-shadow:0 8px 30px rgba(0,0,0,.4)}
#hhr-toast.show{opacity:1;transform:translate(-50%,0)}
.hhr-dialog{border:0;border-radius:14px;padding:24px;max-width:480px;width:calc(100% - 32px)}
.hhr-dialog::backdrop{background:rgba(0,0,0,.6)}
.hhr-dialog label{display:block;margin:12px 0;font-weight:600;font-size:14px}
.hhr-dialog select,.hhr-dialog textarea{display:block;width:100%;margin-top:6px;padding:10px;border-radius:8px;border:1px solid #bbb}

/* ---- Upload form ---- */
.up-form{display:grid;gap:22px}
.up-step h3{display:flex;align-items:center;gap:12px;margin:0 0 14px}
.up-step h3 span{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;font-size:15px;flex:none}
.up-form .grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.up-form label{display:flex;flex-direction:column;gap:6px;font-size:14px;font-weight:600}
.up-form label.wide{grid-column:1/-1}
.up-form label.chk{flex-direction:row;align-items:flex-start;gap:10px;font-weight:500}
.up-form label.chk input{margin-top:3px;width:18px;height:18px;flex:none}
.up-form input:not([type=checkbox]):not([type=file]),.up-form select,.up-form textarea{padding:11px 12px;border-radius:8px;font-weight:400}
.up-form small{font-weight:400;opacity:.8}
.drop{position:relative;display:flex!important;align-items:center;justify-content:center;text-align:center;min-height:120px;border:2px dashed currentColor;border-radius:14px;padding:20px;cursor:pointer}
.drop input{position:absolute;inset:0;opacity:0;cursor:pointer}
.drop b{font-size:18px}
.checks{list-style:none;margin:14px 0 0;padding:0;display:grid;gap:6px}
.checks li{display:grid;grid-template-columns:minmax(150px,auto) 1fr;gap:10px;padding:9px 12px;border-radius:8px;font-size:14px}
.checks li.ok{background:rgba(40,180,90,.14)}
.checks li.bad{background:rgba(230,50,50,.16)}
.checks li.all{font-size:15px}
.checks li.run{display:block;opacity:.8}
.wave{width:100%;height:70px;margin-top:12px}
.up-step audio{width:100%;margin-top:10px}
.warn{color:#e5484d}
.okc{color:#2fb36b}
.up-submit{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.up-locked{text-align:center;padding:48px 20px}
.up-locked-btns{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
.bulk-results{display:grid;gap:6px;margin-top:10px}
.bulk-row{display:grid;grid-template-columns:minmax(160px,auto) 1fr;gap:10px;font-size:14px}
.note{font-size:13px;opacity:.75}

/* ---- Dashboard ---- */
.dash-tabs{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:18px}
.dash-tabs button{border-radius:30px;padding:8px 16px;border:1px solid currentColor;background:none}
.dash-tabs button[aria-selected=true]{background:var(--accent,#e33);border-color:var(--accent,#e33);color:#fff}
.dash-tabs b{opacity:.85}
.dash-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:20px}
.dash-stats div{padding:16px;border-radius:12px}
.dash-stats b{display:block;font-size:30px}
.dash-stats span{font-size:13px;opacity:.75}
.dash-body{display:grid;gap:14px}
.sub-card{padding:18px;border-radius:12px;border-left:5px solid #888}
.sub-card.st-pending,.sub-card.st-draft{border-left-color:#e3a008}
.sub-card.st-approved{border-left-color:#2fb36b}
.sub-card.st-rejected,.sub-card.st-removed{border-left-color:#e5484d}
.sub-card.st-changes{border-left-color:#4da3ff}
.sub-card h4{margin:8px 0 4px;font-size:19px}
.sub-card p{margin:4px 0;font-size:14px}
.sub-card details{margin:8px 0;font-size:13px}
.sub-card ul,.sub-card ol{padding-left:18px}
.sub-top{display:flex;gap:6px;flex-wrap:wrap}
.pill{font-size:12px;padding:3px 10px;border-radius:20px;background:rgba(128,128,128,.22);font-weight:600}
.pill.warn{background:rgba(229,72,77,.2);color:inherit}
.sub-btns{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.sub-h{margin:16px 0 0}
.empty{opacity:.75}
.audit{width:100%;border-collapse:collapse;font-size:13px}
.audit td,.audit th{text-align:left;padding:8px;border-bottom:1px solid rgba(128,128,128,.3)}
.promo-list{display:grid;gap:8px}
.promo-row{display:grid;grid-template-columns:14px 180px 1fr auto;gap:12px;align-items:center;padding:10px 12px;border-radius:10px;background:rgba(128,128,128,.1);font-size:14px}
.promo-row .dot{width:12px;height:12px;border-radius:50%;background:hsl(var(--h) 80% 50%)}
.linkish{background:none;border:0;text-decoration:underline;padding:0}
.btn.sm{padding:6px 12px;font-size:13px}
.btn.danger{color:#e5484d}

@media (max-width:800px){
  body{padding-bottom:calc(var(--player-h,84px) + var(--tabbar-h,0px))}
  .hhr-player{grid-template-columns:1fr auto;height:auto;padding:8px 12px;gap:8px;bottom:var(--tabbar-h,0px)}
  .pl-right{display:none}
  .pl-controls{flex-direction:row-reverse;gap:6px}
  .pl-seek{position:absolute;left:0;right:0;top:-2px;height:4px}
  .pl-seek span{display:none}
  .pl-seek input{height:3px;border-radius:0}
  .pl-buttons{gap:2px}
  .pl-buttons [data-act=prev]{display:none}
  .pl-art{width:44px;height:44px}
  .pl-queue{right:8px}
  .up-form .grid{grid-template-columns:1fr}
  .dash-stats{grid-template-columns:1fr 1fr}
  .checks li,.bulk-row{grid-template-columns:1fr}
  .promo-row{grid-template-columns:14px 1fr;}
  .promo-row span,.promo-row em{grid-column:2}
  #hhr-toast{bottom:calc(var(--player-h,84px) + var(--tabbar-h,0px) + 16px)}
}
@media (prefers-reduced-motion:reduce){*{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
