
:root{
  --ink:#162025;
  --muted:#6f777b;
  --accent:#4d9555;
  --accent-soft:#e7f1e6;
  --paper:rgba(255,255,255,.84);
  --paper2:rgba(255,255,255,.94);
  --line:rgba(22,32,37,.11);
  --shadow:0 20px 60px rgba(25,40,31,.12);
  --bg-filter:brightness(1.06) contrast(.92) saturate(.72);
  --bg-overlay:linear-gradient(90deg,rgba(255,255,255,.89) 0%,rgba(255,255,255,.72) 34%,rgba(255,255,255,.20) 65%,rgba(255,255,255,.08) 100%);
  --bg-image:url("/backgrounds/pexels-pixabay-265152.webp");
  --plain-bg:#f3f1ea;
}
body[data-theme="warm"]{
  --ink:#2b2521;--muted:#766d66;--accent:#9c774e;--accent-soft:#f2e8dc;
  --paper:rgba(255,250,244,.84);--paper2:rgba(255,252,247,.95);
  --line:rgba(64,44,30,.11);--shadow:0 20px 60px rgba(75,54,29,.12);
  --bg-filter:brightness(1.08) contrast(.92) saturate(.80) sepia(.10);
  --bg-overlay:linear-gradient(90deg,rgba(255,248,240,.90) 0%,rgba(255,244,232,.72) 34%,rgba(255,244,232,.18) 66%,rgba(255,244,232,.05) 100%);
  --plain-bg:#f5eee5;
}
body[data-theme="sage"]{
  --ink:#19312a;--muted:#6b7a72;--accent:#458767;--accent-soft:#e1efe6;
  --paper:rgba(247,252,248,.84);--paper2:rgba(251,254,252,.95);
  --line:rgba(24,48,40,.11);--shadow:0 20px 60px rgba(28,70,52,.11);
  --bg-filter:brightness(1.05) contrast(.93) saturate(.92) hue-rotate(-5deg);
  --bg-overlay:linear-gradient(90deg,rgba(242,250,245,.90) 0%,rgba(236,247,240,.70) 34%,rgba(225,242,232,.18) 66%,rgba(225,242,232,.05) 100%);
  --plain-bg:#edf4ef;
}
body[data-theme="sand"]{
  --ink:#2d2a25;--muted:#7b756d;--accent:#b08e60;--accent-soft:#f3ecdf;
  --paper:rgba(253,250,245,.84);--paper2:rgba(255,252,247,.95);
  --line:rgba(59,52,44,.10);--shadow:0 20px 60px rgba(74,62,42,.11);
  --bg-filter:brightness(1.09) contrast(.92) saturate(.68) sepia(.05);
  --bg-overlay:linear-gradient(90deg,rgba(255,251,245,.90) 0%,rgba(248,241,229,.72) 34%,rgba(248,241,229,.18) 66%,rgba(248,241,229,.05) 100%);
  --plain-bg:#f3ede3;
}

body[data-theme="pink"]{
  --ink:#3c2731;
  --muted:#876f7b;
  --accent:#d85f91;
  --accent-soft:#fae2ec;
  --paper:rgba(255,245,249,.86);
  --paper2:rgba(255,249,252,.96);
  --line:rgba(92,43,64,.12);
  --shadow:0 20px 60px rgba(128,52,83,.14);
  --bg-filter:brightness(1.07) contrast(.92) saturate(.90) sepia(.03);
  --bg-overlay:linear-gradient(
    90deg,
    rgba(255,239,247,.91) 0%,
    rgba(255,229,241,.72) 34%,
    rgba(244,166,199,.17) 66%,
    rgba(244,166,199,.05) 100%
  );
  --plain-bg:#fff0f6;
}

body[data-theme="dynamic"]{
  --ink:#f6f2f2;
  --muted:#c2b7b7;
  --accent:#ff4b3e;
  --accent-soft:rgba(255,75,62,.18);
  --paper:rgba(30,31,34,.84);
  --paper2:rgba(36,38,42,.93);
  --line:rgba(255,255,255,.10);
  --shadow:0 24px 70px rgba(0,0,0,.34);
  --bg-filter:brightness(.56) contrast(.98) saturate(.92);
  --bg-overlay:linear-gradient(90deg,rgba(17,18,20,.84) 0%,rgba(24,25,28,.70) 34%,rgba(58,22,20,.30) 66%,rgba(58,22,20,.12) 100%);
  --plain-bg:#191a1d;
}

body[data-theme="charcoal"]{
  --ink:#edf1f2;
  --muted:#b4bec2;
  --accent:#9bb9a1;
  --accent-soft:rgba(155,185,161,.18);
  --paper:rgba(48,56,60,.82);
  --paper2:rgba(54,62,66,.92);
  --line:rgba(255,255,255,.11);
  --shadow:0 24px 70px rgba(0,0,0,.26);
  --bg-filter:brightness(.62) contrast(.88) saturate(.48);
  --bg-overlay:linear-gradient(90deg,rgba(38,43,46,.76) 0%,rgba(45,51,54,.62) 34%,rgba(46,52,55,.30) 66%,rgba(46,52,55,.12) 100%);
  --plain-bg:#3f474b;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--ink);
  background:#f2f0e9;
  overflow:hidden
}
button,input{font:inherit}
.bg{
  position:fixed;inset:0;
  background:
    var(--bg-overlay),
    var(--bg-image) center/cover no-repeat;
  filter:var(--bg-filter);
  z-index:-2;
  transition:background .25s ease,filter .25s ease
}
body[data-background="plain"] .bg{
  background:var(--plain-bg);
  filter:none
}
.page{
  height:100%;
  display:grid;
  grid-template-rows:auto 1fr auto;
  max-width:1500px;
  margin:auto;
  padding:24px 34px 22px
}
.top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px
}
.brand{
  margin:0;
  font-size:21px;
  font-weight:760;
  letter-spacing:.23em
}
.brand b{color:var(--accent)}
.top-actions{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:8px;
  width:auto;
  margin-left:auto;
}
.top-row{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
}
.control-group-label{
  width:54px;
  text-align:right;
  color:var(--muted);
  font-size:9px;
  font-weight:800;
  letter-spacing:.16em;
  line-height:1;
  white-space:nowrap;
  flex:0 0 54px;
}
.album-btn{
  min-width:112px;
}
.playlist-btn{
  min-width:170px;
  text-align:center;
}
.favorites-btn{
  min-width:122px;
}


.top-row-look #backgroundOpen{
  grid-column:2;
  grid-row:1;
}
.top-row-look .theme-row{
  grid-column:3;
  grid-row:1;
  justify-self:start;
}
.top-row-look #randomDiceBtn{
  grid-column:4;
  grid-row:1;
}
.top-row-music .control-group-label{
  grid-column:1;
  grid-row:2;
}
.top-row-music #albumsOpen{
  grid-column:2;
  grid-row:2;
}
.top-row-music #playlistOpenTop{
  grid-column:3;
  grid-row:2;
}
.top-row-music #favoritesOpen{
  grid-column:4;
  grid-row:2;
}
.control-group-label{
  width:56px;
  text-align:right;
  color:var(--muted);
  font-size:9px;
  font-weight:800;
  letter-spacing:.16em;
  line-height:1;
  white-space:nowrap;
}
.top-actions .soft-btn,
.top-actions .theme-row{
  margin:0;
}
.soft-btn{
  border:1px solid rgba(255,255,255,.78);
  background:rgba(255,255,255,.72);
  color:var(--ink);
  border-radius:999px;
  padding:10px 15px;
  cursor:pointer;
  backdrop-filter:blur(14px);
  box-shadow:0 8px 24px rgba(0,0,0,.04);
  font-size:12px
}
.soft-btn:hover{background:rgba(255,255,255,.9)}
.dice-btn{
  width:44px;
  height:44px;
  min-width:44px;
  min-height:44px;
  border:1px solid rgba(255,255,255,.78);
  background:rgba(255,255,255,.72);
  color:var(--ink);
  border-radius:50%;
  cursor:pointer;
  backdrop-filter:blur(14px);
  box-shadow:0 8px 24px rgba(0,0,0,.04);
  font-size:18px;
  line-height:1;
  display:grid;
  place-items:center;
}
.dice-btn:hover{
  background:rgba(255,255,255,.9);
  transform:translateY(-1px);
}

.theme-random-btn{
  appearance:none;
  -webkit-appearance:none;
  border:2px solid #fff;
  background:rgba(255,255,255,.84);
  color:var(--ink);
  border-radius:50%;
  cursor:pointer;
  box-shadow:0 0 0 1px rgba(0,0,0,.10);
  display:grid;
  place-items:center;
  padding:0;
  line-height:1;
  font-size:16px;
}
.theme-random-btn:hover{
  background:rgba(255,255,255,.96);
  transform:translateY(-1px);
}
body[data-theme="charcoal"] .theme-random-btn,
body[data-theme="dynamic"] .theme-random-btn{
  background:rgba(255,255,255,.22);
  color:#fff;
  border-color:rgba(255,255,255,.82);
}

.soft-btn.favorites-active{
  background:color-mix(in srgb,var(--accent) 16%,transparent);
  border-color:color-mix(in srgb,var(--accent) 35%,transparent);
  color:var(--accent);
  font-weight:700;
}
.theme-row{display:flex;align-items:center;gap:7px;padding:7px 8px;border-radius:999px;background:rgba(255,255,255,.70);border:1px solid rgba(255,255,255,.78);backdrop-filter:blur(14px)}
.theme-dot{width:20px;height:20px;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 1px rgba(0,0,0,.10);cursor:pointer}
.theme-dot[data-theme="light"]{background:#f7f4ee}
.theme-dot[data-theme="warm"]{background:#d9b88d}
.theme-dot[data-theme="sage"]{background:#7ca88d}
.theme-dot[data-theme="sand"]{background:#c7aa7d}
.theme-dot[data-theme="pink"]{background:#e78caf}
.theme-dot[data-theme="charcoal"]{background:#3a4348}
.theme-dot[data-theme="dynamic"]{background:linear-gradient(135deg,#ff6a3d 0%, #ff2d55 100%)}
.theme-dot{position:relative}
.theme-dot.active{
  outline:3px solid var(--accent);
  outline-offset:2px;
}
.theme-dot.active::after{
  content:"✓";
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  color:#fff;
  font-size:12px;
  font-weight:900;
  text-shadow:0 1px 3px rgba(0,0,0,.45);
}
.theme-dot[data-theme="light"].active::after,
.theme-dot[data-theme="sand"].active::after,
.theme-dot[data-theme="pink"].active::after{
  color:#283237;
  text-shadow:none;
}

.hero{
  display:grid;
  grid-template-columns:minmax(420px,.95fr) minmax(460px,1.05fr);
  align-items:center;
  gap:52px;
  min-height:0
}
.copy{
  align-self:center;
  padding-left:8px
}
.eyebrow{
  font-size:11px;
  letter-spacing:.30em;
  font-weight:800;
  color:var(--accent);
  margin-bottom:18px
}

.eyebrow .eyebrow-album{
  margin-top:7px;
}
.copy #heroTitle{
  margin:0;
  font-size:clamp(62px,6.4vw,104px);
  line-height:.88;
  letter-spacing:-.055em;
  font-weight:470;
  overflow-wrap:anywhere
}
.copy #heroTitle span{
  display:block;
  color:var(--accent);
  font-size:.60em;
  letter-spacing:-.03em;
  margin-top:8px
}
.tags{
  margin-top:24px;
  font-size:13px;
  letter-spacing:.17em;
  color:color-mix(in srgb,var(--ink) 78%,var(--muted))
}
.desc{
  max-width:500px;
  margin-top:24px;
  font-size:17px;
  line-height:1.65;
  color:var(--muted)
}

.player-zone{
  display:flex;
  justify-content:flex-end;
  align-items:center
}
.player{
  width:min(650px,100%);
  background:var(--paper2);
  border:1px solid rgba(255,255,255,.78);
  border-radius:28px;
  box-shadow:var(--shadow);
  backdrop-filter:blur(20px);
  padding:30px 32px 26px;
  position:relative;
  overflow:hidden
}
.player:after{
  content:"";
  position:absolute;
  width:260px;height:260px;
  right:-80px;bottom:-100px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(77,149,85,.11),transparent 70%)
}
body[data-theme="dynamic"] .player:after{
  background:radial-gradient(circle,rgba(255,75,62,.16),transparent 70%);
}
body[data-theme="dynamic"] .play{
  box-shadow:0 14px 30px rgba(255,75,62,.34);
}
.mini-top{
  display:flex;
  align-items:center;
  margin-bottom:22px;
  position:relative;
  z-index:1
}
.album-name{
  font-size:11px;
  letter-spacing:.18em;
  color:var(--muted)
}

.now-label{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:10px;
  letter-spacing:.24em;
  font-weight:800;
  color:var(--accent);
  margin-bottom:10px
}
.eq{display:inline-flex;gap:3px;align-items:flex-end;height:13px}
.eq i{display:block;width:3px;height:4px;background:var(--accent);border-radius:3px}
.playing .eq i{animation:eq .8s ease-in-out infinite}
.playing .eq i:nth-child(2){animation-delay:.12s}
.playing .eq i:nth-child(3){animation-delay:.24s}
@keyframes eq{0%,100%{height:4px}50%{height:13px}}

.track-title{
  margin:0;
  font-size:clamp(38px,4.4vw,68px);
  letter-spacing:-.045em;
  line-height:.96;
  font-weight:520;
  position:relative;
  z-index:1
}
.track-error{
  display:none;
  margin-top:10px;
  font-size:12px;
  color:#a04f4f
}
.track-error.show{display:block}
.meta-row{
  margin-top:9px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  position:relative;
  z-index:1
}
.track-meta{
  font-size:13px;
  color:var(--muted);
}
.mode-chip{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:999px;
  background:color-mix(in srgb,var(--accent) 12%,transparent);
  color:var(--accent);
  border:1px solid color-mix(in srgb,var(--accent) 22%,transparent);
  font-size:10px;
  font-weight:800;
  letter-spacing:.08em;
  white-space:nowrap;
}
.mode-chip[hidden]{
  display:none !important;
}

.transport{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:26px;
  margin:30px 0 24px;
  position:relative;
  z-index:1
}
.icon{
  border:0;
  background:transparent;
  color:var(--ink);
  cursor:pointer;
  display:grid;
  place-items:center
}
.icon svg{width:24px;height:24px;stroke:currentColor;fill:none;stroke-width:1.8}
.play{
  width:86px;height:86px;
  border:0;border-radius:50%;
  background:var(--accent);
  color:#fff;
  cursor:pointer;
  display:grid;
  place-items:center;
  box-shadow:0 14px 30px rgba(77,149,85,.25)
}
.play svg{width:38px;height:38px;fill:currentColor}

.timeline{position:relative;z-index:1}
.range{width:100%;accent-color:var(--accent);cursor:pointer}
.times{
  display:flex;
  justify-content:space-between;
  font-size:11px;
  color:var(--muted);
  font-variant-numeric:tabular-nums;
  margin-top:3px
}

.player-bottom{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:14px;
  margin-top:18px;
  position:relative;
  z-index:1
}
.text-action{
  border:0;
  background:transparent;
  color:var(--muted);
  font-size:11px;
  letter-spacing:.08em;
  cursor:pointer
}
.text-action.active{color:var(--accent);font-weight:800}
.text-action.radio-active{
  color:var(--accent);
  font-weight:800;
}
.text-action.radio-active::before{
  content:"● ";
  font-size:10px;
}
.text-action.repeat-active{
  color:var(--accent);
  font-weight:800;
}
.volume{
  display:flex;
  align-items:center;
  gap:8px
}
.volume svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.8}
.volume input{width:170px}
.playlist-open{
  justify-self:end;
  border:0;
  background:var(--ink);
  color:white;
  border-radius:999px;
  padding:10px 15px;
  cursor:pointer;
  font-size:11px;
  letter-spacing:.08em
}

.footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  color:var(--muted);
  font-size:11px;
  letter-spacing:.09em
}
.footer-links{
  display:flex;
  align-items:center;
  gap:5px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.footer-mood{
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
}
.footer-sep{
  opacity:.55;
}
#moodFooter{
  color:var(--accent);
  font-weight:800;
}

.footer-link{
  border:0;
  background:transparent;
  color:inherit;
  padding:0;
  min-width:0;
  min-height:0;
  cursor:pointer;
  font-size:inherit;
  letter-spacing:inherit;
}
.footer-link:hover{
  color:var(--accent);
}


.overlay{
  position:fixed;inset:0;
  background:rgba(24,30,27,.18);
  backdrop-filter:blur(7px);
  opacity:0;
  pointer-events:none;
  transition:.2s ease;
  z-index:10
}
.overlay.open{opacity:1;pointer-events:auto}
.drawer{
  position:absolute;
  right:22px;top:22px;bottom:22px;
  width:min(500px,calc(100vw - 44px));
  background:rgba(255,255,255,.97);
  border:1px solid rgba(255,255,255,.85);
  border-radius:24px;
  box-shadow:0 28px 80px rgba(0,0,0,.18);
  padding:20px 18px;
  display:flex;
  flex-direction:column
}
.drawer-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid var(--line);
  padding-bottom:14px
}
.drawer-head strong{font-size:16px}
.drawer-sub{margin-top:3px;font-size:11px;color:var(--muted);letter-spacing:.04em}
.background-headline{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
}
.check-option{
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:var(--muted);
  font-size:10px;
  font-weight:700;
  letter-spacing:.07em;
  cursor:pointer;
  user-select:none;
}
.check-option input{
  width:15px;
  height:15px;
  min-width:15px;
  accent-color:var(--accent);
  cursor:pointer;
}
.check-option:has(input:checked){
  color:var(--accent);
}

.close{
  border:0;background:transparent;
  color:var(--ink);
  font-size:26px;
  cursor:pointer
}
.track-list{
  overflow:auto;
  padding:8px 4px 4px 0;
  scrollbar-width:thin;
  scrollbar-color:rgba(90,95,98,.34) transparent;
}
.track-list::-webkit-scrollbar{width:8px}
.track-list::-webkit-scrollbar-track{background:transparent}
.track-list::-webkit-scrollbar-thumb{
  background:rgba(90,95,98,.28);
  border-radius:999px;
}
.track{
  width:100%;
  display:grid;
  grid-template-columns:40px minmax(0,1fr) 54px 34px;
  gap:10px;
  align-items:center;
  min-height:48px;
  padding:8px 8px 8px 12px;
  border:0;
  border-bottom:1px solid rgba(22,32,37,.07);
  border-radius:0;
  background:transparent;
  color:var(--ink);
  cursor:pointer;
  position:relative;
  text-align:left;
}
.track:hover{
  background:color-mix(in srgb,var(--accent) 6%,transparent);
}
.track.active{
  background:color-mix(in srgb,var(--accent) 10%,transparent);
  border-radius:10px;
  border-bottom-color:transparent;
}
.track.active:before{
  content:"";
  position:absolute;
  left:0;top:10px;bottom:10px;
  width:3px;
  border-radius:3px;
  background:var(--accent)
}
.track-state{
  margin-left:8px;
  padding:1px 5px;
  border:0;
  border-radius:999px;
  background:color-mix(in srgb,var(--accent) 12%,transparent);
  color:var(--accent);
  font-size:8px;
  font-weight:800;
  letter-spacing:.08em;
  vertical-align:middle
}
.num,.dur{
  font-size:12px;
  color:var(--muted);
  font-variant-numeric:tabular-nums;
}
.name{
  font-size:14px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.dur{text-align:right}
.favorite-btn{
  width:32px;
  height:32px;
  border:0;
  border-radius:50%;
  background:transparent;
  color:var(--muted);
  cursor:pointer;
  display:grid;
  place-items:center;
  font-size:19px;
  line-height:1;
  padding:0;
}
.favorite-btn:hover{
  background:color-mix(in srgb,var(--accent) 9%,transparent);
  color:var(--accent);
}
.favorite-btn.active{
  color:var(--accent);
}
.favorite-album{
  display:block;
  margin-top:2px;
  color:var(--muted);
  font-size:10px;
  letter-spacing:.03em;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.favorites-empty{
  display:none;
  margin:auto;
  padding:42px 24px;
  text-align:center;
  color:var(--muted);
  line-height:1.7;
  font-size:13px;
}
.favorites-empty.show{display:block}

.favorites-exchange{
  padding:12px 0 10px;
  border-bottom:1px solid var(--line);
}
.favorites-name-label{
  display:block;
  margin:0 0 6px 2px;
  color:var(--muted);
  font-size:9px;
  font-weight:800;
  letter-spacing:.12em;
}
.favorites-name-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto auto;
  gap:7px;
  align-items:center;
}
.favorites-name-input{
  width:100%;
  min-width:0;
  height:38px;
  border:1px solid var(--line);
  border-radius:999px;
  background:rgba(255,255,255,.72);
  color:var(--ink);
  padding:0 13px;
  outline:none;
  font:inherit;
  font-size:12px;
  font-weight:700;
  letter-spacing:.03em;
}
.favorites-name-input:focus{
  border-color:color-mix(in srgb,var(--accent) 55%,var(--line));
  box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 10%,transparent);
}
.favorites-action{
  min-height:38px;
  border:1px solid var(--line);
  border-radius:999px;
  background:transparent;
  color:var(--ink);
  padding:0 12px;
  cursor:pointer;
  font-size:10px;
  font-weight:800;
  letter-spacing:.08em;
}
.cloud-favorites-item{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 0;border-bottom:1px solid rgba(255,255,255,.14)}
.cloud-favorites-meta{min-width:0}
.cloud-favorites-name{font-weight:800;word-break:break-word}
.cloud-favorites-date{font-size:.8rem;opacity:.7;margin-top:3px}
.cloud-favorites-actions{display:flex;gap:7px;flex:0 0 auto}
.cloud-current-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:4px 9px;
  border:1px solid color-mix(in srgb,var(--accent) 50%,transparent);
  border-radius:999px;
  color:var(--accent);
  font-size:.68rem;
  font-weight:800;
  letter-spacing:.08em;
  line-height:1;
  white-space:nowrap;
}

.cloud-favorites-actions button{white-space:nowrap}
.favorites-action:hover{
  background:color-mix(in srgb,var(--accent) 7%,transparent);
  border-color:color-mix(in srgb,var(--accent) 32%,var(--line));
}

.favorites-import-label{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  user-select:none;
}

.favorites-exchange-status{
  min-height:16px;
  margin:6px 2px 0;
  color:var(--muted);
  font-size:9px;
  line-height:1.4;
  letter-spacing:.03em;
}
.favorites-exchange-status.ok{color:var(--accent)}
.favorites-exchange-status.error{color:#a04444}
.legal-link{
  color:var(--accent);
  font-weight:700;
  text-decoration-color:color-mix(in srgb,var(--accent) 60%,transparent);
  text-underline-offset:2px;
}
.legal-link:hover{
  color:var(--accent);
  text-decoration-thickness:2px;
}

@media (max-width:620px){
  .favorites-name-row{
    grid-template-columns:1fr 1fr;
  }
  .favorites-name-input{
    grid-column:1 / -1;
  }
}


.album-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:7px;
  overflow:auto;
  padding-top:10px
}
.album-card{
  border:1px solid var(--line);
  background:transparent;
  color:var(--ink);
  border-radius:12px;
  padding:12px 14px;
  text-align:left;
  cursor:pointer
}
.album-card.active{
  background:var(--accent-soft);
  border-color:color-mix(in srgb,var(--accent) 40%,var(--line));
}
.album-current{
  display:inline-block;
  margin-top:7px;
  padding:2px 6px;
  border:1px solid color-mix(in srgb,var(--accent) 55%,transparent);
  border-radius:999px;
  color:var(--accent);
  font-size:9px;
  font-weight:800;
  letter-spacing:.08em
}
.album-card b{display:block;font-size:13px;margin-bottom:3px}
.album-card span{font-size:10px;color:var(--muted);letter-spacing:.08em}


.background-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  overflow:auto;
  padding-top:12px
}
.background-card{
  position:relative;
  min-height:120px;
  border:1px solid var(--line);
  border-radius:14px;
  overflow:hidden;
  padding:0;
  background:#e9e9e5;
  cursor:pointer
}
.background-card img{
  display:block;
  width:100%;
  height:120px;
  object-fit:cover
}
.background-card span{
  position:absolute;
  left:8px;bottom:8px;
  padding:4px 7px;
  border-radius:999px;
  background:rgba(255,255,255,.84);
  color:#273036;
  font-size:10px;
  font-weight:700;
  letter-spacing:.06em
}
.background-card.active{outline:3px solid var(--accent);outline-offset:-3px}

.background-card.plain-card{
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,var(--plain-bg),color-mix(in srgb,var(--plain-bg) 82%,white));
  min-height:120px;
}
.background-card.plain-card strong{
  font-size:14px;
  letter-spacing:.16em
}
.background-card.plain-card small{
  display:block;
  margin-top:6px;
  color:var(--muted);
  font-size:10px;
  letter-spacing:.08em
}



body[data-theme="charcoal"] .soft-btn,
body[data-theme="charcoal"] .theme-row{
  background:rgba(69,77,81,.72);
  border-color:rgba(255,255,255,.10)
}
body[data-theme="charcoal"] .soft-btn:hover{
  background:rgba(82,90,94,.86)
}
body[data-theme="charcoal"] .playlist-open{
  background:#e9eeee;
  color:#293136
}
body[data-theme="charcoal"] .drawer{
  background:rgba(55,63,67,.97);
  border-color:rgba(255,255,255,.10)
}
body[data-theme="charcoal"] .background-card span{
  background:rgba(43,50,54,.88);
  color:#eef2f3
}

body[data-theme="dynamic"] .soft-btn,
body[data-theme="dynamic"] .theme-row{
  background:rgba(42,44,49,.76);
  border-color:rgba(255,255,255,.12);
  color:#f5f2f2;
}
body[data-theme="dynamic"] .soft-btn:hover{
  background:rgba(56,59,66,.88);
}
body[data-theme="dynamic"] .drawer{
  background:rgba(32,34,38,.97);
  border-color:rgba(255,255,255,.10);
}
body[data-theme="dynamic"] .background-card span{
  background:rgba(24,26,30,.90);
  color:#f6f2f2;
}
body[data-theme="dynamic"] .close,
body[data-theme="dynamic"] .drawer-head strong,
body[data-theme="dynamic"] .drawer,
body[data-theme="dynamic"] .track,
body[data-theme="dynamic"] .contact-select-custom,
body[data-theme="dynamic"] input,
body[data-theme="dynamic"] textarea,
body[data-theme="dynamic"] select{
  color:var(--ink);
}
body[data-theme="dynamic"] .overlay{
  background:rgba(10,11,13,.36);
}


/* V19 ACCESSIBILITY + RESPONSIVE */
:focus-visible{
  outline:3px solid var(--accent);
  outline-offset:3px;
}
button,.track,.album-card,.background-card{
  -webkit-tap-highlight-color:transparent;
}
button{
  min-width:44px;
  min-height:44px;
}
.soft-btn{min-height:44px}
.theme-dot{
  width:24px;
  height:24px;
  min-width:44px;
  min-height:44px;
  padding:10px;
  background-clip:content-box;
}
.icon{
  min-width:44px;
  min-height:44px;
}
.play{
  min-width:86px;
  min-height:86px;
}
.track{
  min-height:48px;
}
.close{
  min-width:44px;
  min-height:44px;
}
.range{
  min-height:32px;
}
.range::-webkit-slider-thumb{
  width:22px;
  height:22px;
}
.range::-moz-range-thumb{
  width:22px;
  height:22px;
}
.desc,.tags,.track-meta,.album-name,.footer,.num,.dur{
  text-wrap:pretty;
}
.overlay[aria-hidden="false"] .drawer{
  visibility:visible;
}
.sr-only{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  padding:0!important;
  margin:-1px!important;
  overflow:hidden!important;
  clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;
  border:0!important;
}

/* Tablet portrait + landscape */
@media (min-width:700px) and (max-width:1180px){
  body{overflow:auto}
  .page{
    min-height:100%;
    height:auto;
    padding:20px 24px 22px;
  }
  .top{
    align-items:flex-start;
    gap:18px;
  }
  .top-actions{
    flex-wrap:wrap;
    justify-content:flex-end;
    max-width:62%;
  }
  .hero{
    grid-template-columns:minmax(280px,.8fr) minmax(420px,1.2fr);
    gap:28px;
    padding:24px 0;
    align-items:center;
  }
  .copy #heroTitle{
    font-size:clamp(48px,6vw,72px);
  }
  .desc{
    font-size:16px;
  }
  .player{
    padding:26px 26px 24px;
  }
  .track-title{
    font-size:clamp(36px,5vw,54px);
  }
}

/* Narrow tablet / large phone */
@media (min-width:621px) and (max-width:820px){
  .hero{
    grid-template-columns:1fr;
    gap:24px;
  }
  .copy{
    padding-left:0;
  }
  .player-zone{
    justify-content:stretch;
  }
  .player{
    width:100%;
  }
  .top{
    align-items:flex-start;
  }
  .top-actions{
    max-width:none;
  }
}

/* Phone */
@media (max-width:620px){
  body{overflow:auto}
  .page{
    min-height:100%;
    height:auto;
    padding:16px 14px 18px;
  }
  .top{
    display:grid;
    grid-template-columns:1fr;
    gap:14px;
  }
  .brand{
    font-size:19px;
  }
  .top-actions{
    justify-content:flex-start;
    gap:8px;
  }
  .soft-btn{
    padding:10px 12px;
  }
  .theme-row{
    width:100%;
    justify-content:space-between;
  }
  .hero{
    grid-template-columns:1fr;
    gap:22px;
    padding:24px 0 18px;
  }
  .copy{
    padding-left:0;
  }
  .copy #heroTitle{
    font-size:clamp(46px,16vw,64px);
    line-height:.92;
  }
  .eyebrow{
    letter-spacing:.20em;
  }
  .tags{
    font-size:12px;
    line-height:1.55;
    letter-spacing:.09em;
  }
  .desc{
    font-size:16px;
    line-height:1.55;
  }
  .player-zone{
    justify-content:stretch;
  }
  .player{
    width:100%;
    border-radius:22px;
    padding:22px 18px 20px;
  }
  .mini-top{
    align-items:flex-start;
  }
  .album-name{
    max-width:62%;
    line-height:1.45;
  }
  .track-title{
    font-size:clamp(38px,13vw,52px);
    overflow-wrap:anywhere;
  }
  .transport{
    gap:22px;
  }
  .play{
    width:82px;
    height:82px;
    min-width:82px;
    min-height:82px;
  }
  .player-bottom{
    grid-template-columns:1fr;
    justify-items:center;
  }
  .volume{
    width:100%;
    justify-content:center;
  }
  .volume input{
    width:min(260px,72vw);
  }
  .text-action{
    min-height:44px;
  }
  .footer{
    flex-direction:column;
    align-items:flex-start;
    gap:8px;
    padding-top:10px;
  }
  .drawer{
    right:8px;
    left:8px;
    top:8px;
    bottom:8px;
    width:auto;
    border-radius:18px;
    padding:16px;
  }
  .background-grid{
    grid-template-columns:1fr;
  }
}

/* Landscape phone: keep player compact */
@media (max-height:560px) and (orientation:landscape){
  body{overflow:auto}
  .page{
    height:auto;
    min-height:100%;
  }
  .hero{
    grid-template-columns:minmax(260px,.8fr) minmax(420px,1.2fr);
    align-items:center;
    gap:22px;
  }
  .copy #heroTitle{
    font-size:46px;
  }
  .desc{
    display:none;
  }
  .player{
    padding:18px 20px;
  }
  .track-title{
    font-size:38px;
  }
  .transport{
    margin:18px 0 14px;
  }
  .play{
    width:68px;
    height:68px;
    min-width:68px;
    min-height:68px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion:reduce){
  *,
  *::before,
  *::after{
    scroll-behavior:auto!important;
    animation:none!important;
    transition-duration:.01ms!important;
  }
  .eq i{height:7px!important}
}


@media (max-width:620px){
  .mini-top{
    gap:10px;
  }
      .track-title{
    line-height:1.02;
  }
}


/* V20 viewport review fix: compact single-column tablet layout */
@media (min-width:621px) and (max-width:820px){
  .hero{
    align-content:start;
    grid-auto-rows:max-content;
  }
}

/* Better contrast for charcoal */
body[data-theme="charcoal"] .tags{
  color:#d5dcdf;
}
body[data-theme="charcoal"] .soft-btn,
body[data-theme="charcoal"] .theme-row{
  color:#f1f4f5;
}

@media(max-width:980px){
  body{overflow:auto}
  .page{height:auto;min-height:100%;padding:20px}
  .hero{grid-template-columns:1fr;gap:28px;padding:28px 0}
  .copy #heroTitle{font-size:68px}
  .player-zone{justify-content:flex-start}
  .player{width:100%}
}
@media(max-width:620px){
  .top{align-items:flex-start}
  .top-actions{flex-wrap:wrap;justify-content:flex-end}
  .copy #heroTitle{font-size:54px}
  .player{padding:24px 20px 22px;border-radius:22px}
  .track-title{font-size:42px}
  .player-bottom{grid-template-columns:1fr}
  .playlist-open{justify-self:center}
  .volume{justify-content:center}
  .text-action{text-align:center}
  .footer{flex-direction:column;align-items:flex-start}
}



@media (max-width:760px){
  .top{
    flex-direction:column;
    align-items:flex-start;
    gap:14px;
  }
  .top-actions{
    width:100%;
    grid-template-columns:56px auto auto;
    justify-content:start;
  }
  .top-row-look .theme-row{
    grid-column:2 / 4;
    grid-row:2;
  }
  .top-row-music .control-group-label{
    grid-column:1;
    grid-row:3;
  }
  .top-row-music #albumsOpen{
    grid-column:2;
    grid-row:3;
  }
  .top-row-music #playlistOpenTop{
    grid-column:3;
    grid-row:3;
  }
  .top-row-music #favoritesOpen{
    grid-column:2 / 4;
    grid-row:4;
    justify-self:start;
  }
}


.info-drawer{
  width:min(620px,calc(100vw - 44px));
}
.info-content{
  overflow:auto;
  padding:10px 2px 6px;
  color:var(--ink);
}
.info-content p{
  margin:0 0 14px;
  color:var(--muted);
  font-size:13px;
  line-height:1.65;
}
.info-content .info-lead{
  color:var(--ink);
  font-size:17px;
  font-weight:650;
}
.info-content h3{
  margin:18px 0 8px;
  font-size:10px;
  letter-spacing:.14em;
  color:var(--muted);
}
.info-note{
  padding:10px 12px;
  border-radius:10px;
  background:color-mix(in srgb,var(--accent) 7%,transparent);
}
.metric-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:9px;
  margin-top:14px;
}
.metric-card{
  padding:15px 12px;
  border:1px solid var(--line);
  border-radius:12px;
  background:color-mix(in srgb,var(--paper2) 88%,transparent);
}
.metric-card strong{
  display:block;
  font-size:24px;
  font-weight:600;
}
.metric-card span{
  display:block;
  margin-top:4px;
  color:var(--muted);
  font-size:9px;
  letter-spacing:.09em;
}
.about-facts{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin-top:18px;
}
.about-facts span{
  padding:6px 9px;
  border:1px solid var(--line);
  border-radius:999px;
  color:var(--muted);
  font-size:10px;
}
.help-content b{color:var(--ink)}
@media (max-width:620px){
  .metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}



  .top-actions{
    width:100%;
    grid-template-columns:48px minmax(0,1fr);
    grid-template-rows:auto;
    justify-content:start;
  }
  .look-label{grid-column:1;grid-row:1}
  .background-cell{grid-column:2;grid-row:1;width:auto}
  .theme-cell{grid-column:2;grid-row:2;width:auto;justify-content:flex-start}
  .dice-cell{grid-column:2;grid-row:3;justify-self:start}
  .music-label{grid-column:1;grid-row:4}
  .album-cell{grid-column:2;grid-row:4;width:auto}
  .playlist-cell{grid-column:2;grid-row:5;width:auto}
  .favorites-cell{grid-column:2;grid-row:6;width:auto}
}


@media (max-width:980px){
  .top{
    align-items:flex-start;
  }
  .top-row{
    flex-wrap:wrap;
    justify-content:flex-end;
  }
}
@media (max-width:760px){
  .top{
    flex-direction:column;
    gap:14px;
  }
  .top-actions{
    width:100%;
    align-items:flex-start;
  }
  .top-row{
    justify-content:flex-start;
  }
  .control-group-label{
    width:48px;
    flex-basis:48px;
    text-align:left;
  }
  .playlist-btn{
    min-width:140px;
  }
}


/* V63 — clean compact header alignment */
.top .top-actions{
  width:560px;
  max-width:560px;
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:8px;
  margin-left:auto;
}

.top .top-actions .top-row{
  width:100%;
  display:grid;
  grid-template-columns:54px 112px minmax(0,1fr) 122px;
  align-items:center;
  column-gap:10px;
}

.top .top-actions .control-group-label{
  grid-column:1 !important;
  grid-row:auto !important;
  width:54px !important;
  flex:none !important;
  text-align:right;
}

.top .top-actions .top-row-look #backgroundOpen,
.top .top-actions .top-row-music #albumsOpen{
  grid-column:2 !important;
  grid-row:auto !important;
  width:112px;
  min-width:112px;
}

.top .top-actions .top-row-look .theme-row{
  grid-column:3 !important;
  grid-row:auto !important;
  justify-self:start !important;
  width:auto !important;
}

.top .top-actions .top-row-music #playlistOpenTop{
  grid-column:3 !important;
  grid-row:auto !important;
  justify-self:start !important;
  width:142px !important;
  min-width:142px !important;
}

.top .top-actions .top-row-look #randomDiceBtn{
  grid-column:4 !important;
  grid-row:auto !important;
  justify-self:end !important;
}

.top .top-actions .top-row-music #favoritesOpen{
  grid-column:4 !important;
  grid-row:auto !important;
  justify-self:end !important;
  width:122px !important;
  min-width:122px !important;
}

@media (max-width:760px){
  .top .top-actions{
    width:100%;
    max-width:none;
  }
  .top .top-actions .top-row{
    grid-template-columns:48px 108px minmax(0,1fr) 112px;
    column-gap:8px;
  }
  .top .top-actions .control-group-label{
    width:48px !important;
    text-align:left;
  }
  .top .top-actions .top-row-look #backgroundOpen,
  .top .top-actions .top-row-music #albumsOpen{
    width:108px;
    min-width:108px;
  }
  .top .top-actions .top-row-music #favoritesOpen{
    width:112px !important;
    min-width:112px !important;
  }
}


/* V68 — Favorites = current track position / total */
.top .top-actions .top-row-music #favoritesOpen{
  width:142px !important;
  min-width:142px !important;
  white-space:nowrap !important;
  line-height:1 !important;
  text-align:center !important;
}


/* V71 — Favorites drag & drop */
.favorite-drag-row{
  cursor:grab;
}
.favorite-drag-row:active{
  cursor:grabbing;
}
.favorite-drag-row.dragging{
  opacity:.42;
}
.favorite-drag-row.drag-over{
  outline:2px solid color-mix(in srgb,var(--accent) 62%,transparent);
  outline-offset:-2px;
  background:color-mix(in srgb,var(--accent) 9%,transparent);
}
.favorite-drag-row .name,
.favorite-drag-row .num,
.favorite-drag-row .dur{
  user-select:none;
}


/* V72 — quick preview player inside Favorites */
.favorite-preview-btn{
  width:30px;
  height:30px;
  min-width:30px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--line);
  border-radius:999px;
  background:transparent;
  color:var(--ink);
  cursor:pointer;
  font-size:11px;
  line-height:1;
  padding:0;
}
.favorite-preview-btn:hover,
.favorite-preview-btn.playing{
  background:color-mix(in srgb,var(--accent) 12%,transparent);
  border-color:color-mix(in srgb,var(--accent) 45%,var(--line));
  color:var(--accent);
}
.favorite-drag-row .favorite-preview-btn{
  cursor:pointer;
}


/* V73 — compact Favorites rows, heart before title */
#favoritesList .track.favorite-drag-row{
  grid-template-columns:34px 30px minmax(0,1fr) 30px 44px !important;
  column-gap:8px !important;
  min-height:58px !important;
  padding:8px 8px !important;
  align-items:center !important;
}
#favoritesList .track.favorite-drag-row .favorite-btn{
  grid-column:auto !important;
  width:30px !important;
  min-width:30px !important;
  height:30px !important;
  margin:0 !important;
  padding:0 !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
}
#favoritesList .track.favorite-drag-row .name{
  min-width:0;
}
#favoritesList .track.favorite-drag-row .favorite-album{
  margin-top:1px;
}


/* V76 — CLEAN HEADER LAYOUT, FINAL OVERRIDE */
.top .top-actions{
  width:560px !important;
  max-width:560px !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:stretch !important;
  gap:8px !important;
  margin-left:auto !important;
}

/* LOOK: label | background | moods | dice */
.top .top-actions .top-row-look{
  width:560px !important;
  display:grid !important;
  grid-template-columns:54px 112px minmax(0,1fr) 48px !important;
  column-gap:10px !important;
  align-items:center !important;
}
.top .top-actions .top-row-look .control-group-label{
  grid-column:1 !important;
  grid-row:1 !important;
}
.top .top-actions .top-row-look #backgroundOpen{
  grid-column:2 !important;
  grid-row:1 !important;
  width:112px !important;
  min-width:112px !important;
}
.top .top-actions .top-row-look .theme-row{
  grid-column:3 !important;
  grid-row:1 !important;
  width:auto !important;
  justify-self:start !important;
}
.top .top-actions .top-row-look #randomDiceBtn{
  grid-column:4 !important;
  grid-row:1 !important;
  justify-self:end !important;
}

/* MUSIC: label | album | playlist | heart | favorites */
.top .top-actions .top-row-music{
  width:560px !important;
  display:grid !important;
  grid-template-columns:54px 112px 164px 48px 142px !important;
  column-gap:10px !important;
  align-items:center !important;
}
.top .top-actions .top-row-music .control-group-label{
  grid-column:1 !important;
  grid-row:1 !important;
  width:54px !important;
}
.top .top-actions .top-row-music #albumsOpen{
  grid-column:2 !important;
  grid-row:1 !important;
  width:112px !important;
  min-width:112px !important;
}
.top .top-actions .top-row-music #playlistOpenTop{
  grid-column:3 !important;
  grid-row:1 !important;
  width:164px !important;
  min-width:164px !important;
}
.top .top-actions .top-row-music #currentFavoriteToggle{
  grid-column:4 !important;
  grid-row:1 !important;
  width:48px !important;
  min-width:48px !important;
  height:44px !important;
  padding:0 !important;
  border-radius:999px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  font-size:21px !important;
  line-height:1 !important;
  white-space:nowrap !important;
}
.top .top-actions .top-row-music #favoritesOpen{
  grid-column:5 !important;
  grid-row:1 !important;
  width:142px !important;
  min-width:142px !important;
  justify-self:end !important;
  white-space:nowrap !important;
  line-height:1 !important;
}
.top .top-actions #currentFavoriteToggle.active{
  color:var(--accent) !important;
  border-color:color-mix(in srgb,var(--accent) 55%,rgba(255,255,255,.78)) !important;
  background:color-mix(in srgb,var(--accent) 12%,rgba(255,255,255,.72)) !important;
}

@media (max-width:760px){
  .top .top-actions{
    width:100% !important;
    max-width:none !important;
  }
  .top .top-actions .top-row-look,
  .top .top-actions .top-row-music{
    width:100% !important;
  }
  .top .top-actions .top-row-look{
    grid-template-columns:48px 108px minmax(0,1fr) 44px !important;
    column-gap:8px !important;
  }
  .top .top-actions .top-row-music{
    grid-template-columns:48px 108px minmax(120px,1fr) 44px 112px !important;
    column-gap:8px !important;
  }
  .top .top-actions .top-row-music #albumsOpen{
    width:108px !important;
    min-width:108px !important;
  }
  .top .top-actions .top-row-music #playlistOpenTop{
    width:100% !important;
    min-width:120px !important;
  }
  .top .top-actions .top-row-music #currentFavoriteToggle{
    width:44px !important;
    min-width:44px !important;
  }
  .top .top-actions .top-row-music #favoritesOpen{
    width:112px !important;
    min-width:112px !important;
  }
}


/* V78 — FOCUS MODE / WHITE NOISE trial */
.focus-control{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:245px;
}
.focus-mode-btn{
  white-space:nowrap;
}
.focus-mode-btn.active{
  color:var(--accent);
}
.focus-mix{
  display:flex;
  align-items:center;
  gap:7px;
  min-width:132px;
}
.focus-mix-label{
  min-width:44px;
  color:var(--muted);
  font-size:9px;
  font-weight:800;
  letter-spacing:.08em;
  white-space:nowrap;
}
.focus-mix .range{
  width:84px;
}
@media (max-width:900px){
  .player-bottom{
    flex-wrap:wrap;
    row-gap:10px;
  }
  .focus-control{
    order:3;
    width:100%;
    justify-content:center;
  }
}


/* V84 — true smooth title crossfade: two layers, no layout jump */
#trackTitle{
  position:relative !important;
  display:block !important;
  min-height:1.08em !important;
  height:1.08em !important;
  overflow:visible !important;
}
#trackTitle .track-title-layer{
  position:absolute;
  inset:0;
  display:block;
  opacity:0;
  transition:opacity 1.5s cubic-bezier(.4,0,.2,1);
  pointer-events:none;
  transform:none !important;
  will-change:opacity;
}
#trackTitle .track-title-layer.active{
  opacity:1;
}


/* V89 — repaired player control layout */
.player-bottom{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
  grid-template-areas:
    "radio repeat"
    "focus volume" !important;
  align-items:center !important;
  gap:14px 22px !important;
  margin-top:18px !important;
  position:relative !important;
  z-index:1 !important;
}
#radioBtn{
  grid-area:radio;
  justify-self:start;
}
#repeatBtn{
  grid-area:repeat;
  justify-self:end;
}
.focus-control{
  grid-area:focus;
  display:flex !important;
  align-items:center !important;
  gap:14px !important;
  min-width:0 !important;
  flex-wrap:nowrap !important;
}
.focus-mix{
  display:flex !important;
  align-items:center !important;
  gap:10px !important;
  min-width:0 !important;
  flex:1 1 auto !important;
}
.focus-mix-label{
  white-space:nowrap !important;
}
.focus-mix .range{
  width:100% !important;
  min-width:84px !important;
}
.volume{
  grid-area:volume;
  display:flex !important;
  align-items:center !important;
  justify-self:end !important;
  gap:9px !important;
  min-width:0 !important;
}
.volume .range{
  width:124px !important;
}
.text-action{
  white-space:nowrap !important;
}
@media (max-width: 760px){
  .player-bottom{
    grid-template-columns:1fr !important;
    grid-template-areas:
      "radio"
      "repeat"
      "focus"
      "volume" !important;
    gap:10px !important;
  }
  #repeatBtn,
  .volume{
    justify-self:start !important;
  }
  .focus-control{
    flex-wrap:wrap !important;
    gap:10px !important;
  }
  .focus-mix{
    width:100% !important;
  }
  .volume .range{
    width:100% !important;
    min-width:120px !important;
  }
}


/* V90 — PLAYER DESIGN REPAIR */

/* Keep the title in one stable line and keep metadata BELOW it. */
#trackTitle.track-title{
  position:relative !important;
  display:block !important;
  width:100% !important;
  height:1.05em !important;
  min-height:1.05em !important;
  margin:0 !important;
  overflow:visible !important;
  font-size:clamp(38px,4vw,62px) !important;
  line-height:1.05 !important;
  white-space:nowrap !important;
}
#trackTitle .track-title-layer{
  position:absolute !important;
  left:0 !important;
  top:0 !important;
  right:auto !important;
  bottom:auto !important;
  width:100% !important;
  height:1.05em !important;
  line-height:1.05 !important;
  white-space:nowrap !important;
  overflow:visible !important;
}
.meta-row{
  position:relative !important;
  z-index:2 !important;
  margin-top:10px !important;
  min-height:20px !important;
}
.track-meta{
  display:block !important;
  position:relative !important;
  line-height:1.3 !important;
}

/* Restore the lower controls to ONE clean horizontal row. */
.player-bottom{
  display:grid !important;
  grid-template-columns:auto minmax(190px,1fr) minmax(145px,170px) auto !important;
  grid-template-areas:"radio focus volume repeat" !important;
  align-items:center !important;
  column-gap:16px !important;
  row-gap:0 !important;
  margin-top:20px !important;
  width:100% !important;
}
#radioBtn{
  grid-area:radio !important;
  justify-self:start !important;
}
#repeatBtn{
  grid-area:repeat !important;
  justify-self:end !important;
}
.focus-control{
  grid-area:focus !important;
  display:grid !important;
  grid-template-columns:auto minmax(0,1fr) !important;
  align-items:center !important;
  gap:10px !important;
  min-width:0 !important;
  width:100% !important;
}
.focus-mode-btn{
  white-space:nowrap !important;
  padding:0 !important;
}
.focus-mix{
  display:grid !important;
  grid-template-columns:auto minmax(58px,1fr) !important;
  align-items:center !important;
  gap:7px !important;
  min-width:0 !important;
  width:100% !important;
}
.focus-mix-label{
  min-width:auto !important;
  white-space:nowrap !important;
  font-size:9px !important;
}
.focus-mix .range{
  width:100% !important;
  min-width:58px !important;
}
.volume{
  grid-area:volume !important;
  display:grid !important;
  grid-template-columns:20px minmax(92px,1fr) !important;
  align-items:center !important;
  gap:8px !important;
  min-width:0 !important;
  width:100% !important;
  justify-self:stretch !important;
}
.volume svg{
  width:18px !important;
  height:18px !important;
}
.volume .range{
  width:100% !important;
  min-width:92px !important;
}

@media (max-width:900px){
  .player-bottom{
    grid-template-columns:auto minmax(170px,1fr) minmax(125px,150px) auto !important;
    grid-template-areas:"radio focus volume repeat" !important;
    column-gap:10px !important;
  }
}
@media (max-width:700px){
  #trackTitle.track-title{
    font-size:clamp(32px,8vw,52px) !important;
  }
  .player-bottom{
    grid-template-columns:1fr 1fr !important;
    grid-template-areas:
      "radio repeat"
      "focus focus"
      "volume volume" !important;
    row-gap:14px !important;
  }
  #repeatBtn{justify-self:end !important;}
  .focus-control{width:100% !important;}
  .volume{
    width:210px !important;
    justify-self:start !important;
  }
}


/* V91 — move RADIO and REPEAT into the empty right-side area */
.player-card{
  position:relative !important;
}
.player-side-controls{
  position:absolute !important;
  top:146px !important;
  right:34px !important;
  width:168px !important;
  display:flex !important;
  flex-direction:column !important;
  gap:14px !important;
  align-items:stretch !important;
  z-index:3 !important;
}
.player-side-controls .text-action{
  width:100% !important;
  text-align:left !important;
  justify-content:flex-start !important;
  white-space:nowrap !important;
}

.player-bottom{
  display:grid !important;
  grid-template-columns:minmax(245px,1fr) minmax(160px,190px) !important;
  grid-template-areas:"focus volume" !important;
  align-items:center !important;
  column-gap:18px !important;
  row-gap:0 !important;
  margin-top:20px !important;
  width:100% !important;
}
.focus-control{
  grid-area:focus !important;
  display:grid !important;
  grid-template-columns:auto minmax(0,1fr) !important;
  align-items:center !important;
  gap:10px !important;
  min-width:0 !important;
}
.volume{
  grid-area:volume !important;
  display:grid !important;
  grid-template-columns:20px minmax(88px,1fr) !important;
  align-items:center !important;
  gap:8px !important;
  min-width:0 !important;
  width:100% !important;
}

@media (max-width: 900px){
  .player-side-controls{
    position:static !important;
    width:100% !important;
    display:grid !important;
    grid-template-columns:1fr 1fr !important;
    gap:10px !important;
    margin-top:12px !important;
  }
  .player-bottom{
    grid-template-columns:1fr !important;
    grid-template-areas:
      "focus"
      "volume" !important;
    row-gap:12px !important;
  }
}


/* V92 — fine tuning:
   - RADIO / REPEAT a little higher
   - shorter FOCUS slider
   - larger VOLUME slider */

.player-side-controls{
  top:118px !important;
  right:34px !important;
  width:168px !important;
}

.player-bottom{
  grid-template-columns:minmax(200px,220px) minmax(210px,250px) !important;
  grid-template-areas:"focus volume" !important;
  column-gap:22px !important;
  align-items:end !important;
}

.focus-control{
  width:100% !important;
  max-width:220px !important;
}

.focus-mix{
  grid-template-columns:auto 78px !important;
  gap:8px !important;
}

.focus-mix .range{
  width:78px !important;
  min-width:78px !important;
  max-width:78px !important;
}

.volume{
  width:100% !important;
  max-width:250px !important;
  grid-template-columns:22px minmax(170px,1fr) !important;
  gap:10px !important;
}

.volume .range{
  width:100% !important;
  min-width:170px !important;
}

@media (max-width: 900px){
  .player-side-controls{
    top:auto !important;
    right:auto !important;
    width:100% !important;
  }
  .player-bottom{
    grid-template-columns:1fr !important;
  }
  .focus-control{
    max-width:100% !important;
  }
  .focus-mix{
    grid-template-columns:auto minmax(78px,120px) !important;
  }
  .focus-mix .range{
    width:100% !important;
    max-width:none !important;
  }
  .volume{
    max-width:260px !important;
  }
}


/* V93 — align FOCUS and VOLUME on one clean row, using labels for both */
.player-bottom{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) minmax(220px,280px) !important;
  grid-template-areas:"focus volume" !important;
  align-items:center !important;
  column-gap:28px !important;
  row-gap:0 !important;
  margin-top:20px !important;
  width:100% !important;
}
.focus-control{
  grid-area:focus !important;
  display:grid !important;
  grid-template-columns:auto minmax(0,160px) !important;
  align-items:center !important;
  column-gap:14px !important;
  min-width:0 !important;
  max-width:320px !important;
  width:100% !important;
}
.focus-mode-btn{
  white-space:nowrap !important;
  padding:0 !important;
}
.focus-mix{
  display:grid !important;
  grid-template-columns:auto minmax(0,1fr) !important;
  align-items:center !important;
  column-gap:10px !important;
  width:100% !important;
}
.focus-mix-label,
.volume-label{
  font-size:10px !important;
  letter-spacing:.18em !important;
  font-weight:800 !important;
  opacity:.95 !important;
  white-space:nowrap !important;
}
.focus-mix .range{
  width:100% !important;
  min-width:0 !important;
}
.volume{
  grid-area:volume !important;
  display:grid !important;
  grid-template-columns:auto minmax(150px,1fr) !important;
  align-items:center !important;
  column-gap:14px !important;
  justify-self:end !important;
  width:100% !important;
  max-width:280px !important;
}
.volume .range{
  width:100% !important;
  min-width:150px !important;
}
.player-side-controls{
  top:108px !important;
}
@media (max-width:900px){
  .player-side-controls{
    position:static !important;
    width:100% !important;
    display:grid !important;
    grid-template-columns:1fr 1fr !important;
    gap:10px !important;
    margin-top:12px !important;
  }
  .player-bottom{
    grid-template-columns:1fr !important;
    grid-template-areas:
      "focus"
      "volume" !important;
    row-gap:14px !important;
  }
  .volume{
    justify-self:start !important;
    max-width:260px !important;
  }
}


/* V94 — RADIO left / REPEAT right of transport.
   Fixed side zones prevent movement when ON labels become longer. */
.player-side-controls{
  display:none !important;
}
.transport.transport-with-modes{
  display:grid !important;
  grid-template-columns:
    minmax(190px,1fr)
    24px
    86px
    24px
    minmax(190px,1fr) !important;
  align-items:center !important;
  column-gap:24px !important;
  width:100% !important;
  margin:30px 0 24px !important;
}
.transport-mode{
  min-width:190px !important;
  width:100% !important;
  display:flex !important;
  align-items:center !important;
}
.transport-mode-left{
  justify-content:flex-end !important;
  text-align:right !important;
}
.transport-mode-right{
  justify-content:flex-start !important;
  text-align:left !important;
}
.transport-mode .text-action{
  min-width:180px !important;
  max-width:190px !important;
  white-space:nowrap !important;
  padding:0 !important;
}
.transport-mode-left .text-action{
  text-align:right !important;
}
.transport-mode-right .text-action{
  text-align:left !important;
}

/* Keep the center transport fixed regardless of RADIO/REPEAT text length. */
.transport.transport-with-modes #prevBtn,
.transport.transport-with-modes #playBtn,
.transport.transport-with-modes #nextBtn{
  justify-self:center !important;
}

/* Preserve the accepted FOCUS / VOLUME row exactly below. */
.player-bottom{
  margin-top:20px !important;
}

@media (max-width:900px){
  .transport.transport-with-modes{
    grid-template-columns:
      minmax(150px,1fr)
      24px
      86px
      24px
      minmax(150px,1fr) !important;
    column-gap:14px !important;
  }
  .transport-mode{
    min-width:150px !important;
  }
  .transport-mode .text-action{
    min-width:145px !important;
    max-width:150px !important;
    font-size:10px !important;
  }
}
@media (max-width:700px){
  .transport.transport-with-modes{
    grid-template-columns:1fr 24px 76px 24px 1fr !important;
    column-gap:8px !important;
  }
  .transport-mode,
  .transport-mode .text-action{
    min-width:0 !important;
    max-width:none !important;
  }
  .transport-mode .text-action{
    font-size:9px !important;
  }
  .play{
    width:76px !important;
    height:76px !important;
  }
}


/* V95 — dice moved inside the mood frame; shared frame aligned right */
.top .top-actions .top-row-look{
  width:560px !important;
  display:grid !important;
  grid-template-columns:54px 112px 164px 48px 142px !important;
  column-gap:10px !important;
  align-items:center !important;
}
.top .top-actions .top-row-look .control-group-label{
  grid-column:1 !important;
  grid-row:1 !important;
}
.top .top-actions .top-row-look #backgroundOpen{
  grid-column:2 !important;
  grid-row:1 !important;
  width:112px !important;
  min-width:112px !important;
}
.top .top-actions .top-row-look .theme-row{
  grid-column:3 / 6 !important;
  grid-row:1 !important;
  width:100% !important;
  min-width:0 !important;
  justify-self:stretch !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:10px !important;
  padding:7px 10px !important;
  border-radius:999px !important;
}
.top .top-actions .top-row-look #randomDiceBtn{
  position:static !important;
  justify-self:auto !important;
  width:20px !important;
  min-width:20px !important;
  height:20px !important;
  min-height:20px !important;
  border-radius:50% !important;
  display:grid !important;
  place-items:center !important;
  padding:0 !important;
  margin:0 !important;
  background:rgba(255,255,255,.92) !important;
  border:2px solid #fff !important;
  box-shadow:0 0 0 1px rgba(0,0,0,.10) !important;
  color:var(--ink) !important;
  font-size:11px !important;
  line-height:1 !important;
}
.top .top-actions .top-row-look #randomDiceBtn:hover{
  transform:none !important;
  background:#fff !important;
}
.top .top-actions .top-row-look .theme-dot,
.top .top-actions .top-row-look #randomDiceBtn{
  flex:0 0 auto !important;
}

/* Responsive — keep dice inside the shared frame so it cannot float away */
@media (max-width:760px){
  .top .top-actions .top-row-look{
    width:100% !important;
    grid-template-columns:48px 108px minmax(0,1fr) 44px 112px !important;
    column-gap:8px !important;
  }
  .top .top-actions .top-row-look .theme-row{
    grid-column:3 / 6 !important;
    width:100% !important;
    min-width:0 !important;
    gap:8px !important;
    padding:7px 8px !important;
    justify-content:flex-end !important;
  }
}


/* V96 — crisp vector dice and proper pointer cursor */
.top .top-actions .top-row-look #randomDiceBtn{
  cursor:pointer !important;
  color:var(--ink) !important;
}
.top .top-actions .top-row-look #randomDiceBtn svg{
  width:14px !important;
  height:14px !important;
  display:block !important;
  fill:none !important;
  stroke:currentColor !important;
  stroke-width:1.8 !important;
  stroke-linecap:round !important;
  stroke-linejoin:round !important;
  pointer-events:none !important;
}
.top .top-actions .top-row-look #randomDiceBtn svg circle{
  fill:currentColor !important;
  stroke:none !important;
}


/* V97 — fix dice size to match actual mood controls */
.top .top-actions .top-row-look #randomDiceBtn{
  width:44px !important;
  min-width:44px !important;
  height:44px !important;
  min-height:44px !important;
  border-radius:50% !important;
  padding:0 !important;
  cursor:pointer !important;
  display:grid !important;
  place-items:center !important;
}
.top .top-actions .top-row-look #randomDiceBtn svg{
  width:20px !important;
  height:20px !important;
  display:block !important;
  fill:none !important;
  stroke:currentColor !important;
  stroke-width:1.9 !important;
  pointer-events:none !important;
}
.top .top-actions .top-row-look #randomDiceBtn svg circle{
  fill:currentColor !important;
  stroke:none !important;
}


/* V98 — make the dice circle visually identical to mood circles */
.top .top-actions .top-row-look #randomDiceBtn{
  width:44px !important;
  min-width:44px !important;
  height:44px !important;
  min-height:44px !important;
  border-radius:50% !important;
  padding:0 !important;
  display:grid !important;
  place-items:center !important;
  cursor:pointer !important;
  background:rgba(255,255,255,.92) !important;
  border:2px solid #fff !important;
  box-shadow:0 0 0 1px rgba(0,0,0,.10) !important;
  flex:0 0 44px !important;
}
.top .top-actions .top-row-look #randomDiceBtn:hover{
  background:#fff !important;
}
.top .top-actions .top-row-look #randomDiceBtn:focus-visible{
  outline:3px solid var(--accent) !important;
  outline-offset:2px !important;
}
.top .top-actions .top-row-look #randomDiceBtn svg{
  width:18px !important;
  height:18px !important;
  display:block !important;
}


/* V99 — restore original dice emoji, but keep it inside the shared mood frame */
.top .top-actions .top-row-look #randomDiceBtn{
  font-size:20px !important;
  line-height:1 !important;
  text-align:center !important;
  font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif !important;
  -webkit-font-smoothing:auto !important;
  text-rendering:auto !important;
  display:grid !important;
  place-items:center !important;
  cursor:pointer !important;
}
.top .top-actions .top-row-look #randomDiceBtn svg{
  display:none !important;
}


/* V100 — FINAL mood-row alignment
   All mood controls, including DYNAMIC and DICE, occupy the same 44×44 box.
   The active state no longer changes the outside size. */
.top .top-actions .top-row-look .theme-row{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:8px !important;
  min-height:58px !important;
  padding:6px 8px !important;
  box-sizing:border-box !important;
}

/* Normalise every mood circle */
.top .top-actions .top-row-look .theme-dot,
.top .top-actions .top-row-look #randomDiceBtn{
  width:44px !important;
  height:44px !important;
  min-width:44px !important;
  min-height:44px !important;
  max-width:44px !important;
  max-height:44px !important;
  flex:0 0 44px !important;
  box-sizing:border-box !important;
  margin:0 !important;
  padding:0 !important;
  border-radius:50% !important;
  vertical-align:middle !important;
  cursor:pointer !important;
  position:relative !important;
  outline:none !important;
  transform:none !important;
}

/* Remove the old "content-box dot" behaviour that made circles look uneven */
.top .top-actions .top-row-look .theme-dot{
  background-clip:border-box !important;
  border:2px solid rgba(255,255,255,.96) !important;
  box-shadow:0 0 0 1px rgba(0,0,0,.12) !important;
}

/* Active mood: ring is drawn inside the fixed 44px footprint */
.top .top-actions .top-row-look .theme-dot.active{
  outline:none !important;
  box-shadow:
    inset 0 0 0 3px var(--accent),
    inset 0 0 0 5px rgba(255,255,255,.92),
    0 0 0 1px rgba(0,0,0,.12) !important;
}
.top .top-actions .top-row-look .theme-dot.active::after{
  inset:0 !important;
  display:grid !important;
  place-items:center !important;
  font-size:13px !important;
  line-height:1 !important;
}

/* Dice uses exactly the same physical circle */
.top .top-actions .top-row-look #randomDiceBtn{
  display:grid !important;
  place-items:center !important;
  background:rgba(255,255,255,.94) !important;
  border:2px solid rgba(255,255,255,.96) !important;
  box-shadow:0 0 0 1px rgba(0,0,0,.12) !important;
  font-size:20px !important;
  line-height:1 !important;
  font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif !important;
}
.top .top-actions .top-row-look #randomDiceBtn:hover,
.top .top-actions .top-row-look .theme-dot:hover{
  transform:none !important;
}

/* Keep the whole LOOK frame aligned with the right edge of MUSIC controls */
.top .top-actions .top-row-look .theme-row{
  grid-column:3 / 6 !important;
  width:100% !important;
  justify-self:stretch !important;
}

@media (max-width:760px){
  .top .top-actions .top-row-look .theme-row{
    gap:6px !important;
    padding:6px !important;
  }
  .top .top-actions .top-row-look .theme-dot,
  .top .top-actions .top-row-look #randomDiceBtn{
    width:42px !important;
    height:42px !important;
    min-width:42px !important;
    min-height:42px !important;
    max-width:42px !important;
    max-height:42px !important;
    flex-basis:42px !important;
  }
}


/* V101 — stop the active mood circle from visually overflowing the frame */
.top .top-actions .top-row-look .theme-row{
  min-height:62px !important;
  padding:8px 10px !important;
  gap:8px !important;
  overflow:hidden !important;
  box-sizing:border-box !important;
  align-items:center !important;
}
.top .top-actions .top-row-look .theme-dot,
.top .top-actions .top-row-look #randomDiceBtn{
  width:40px !important;
  height:40px !important;
  min-width:40px !important;
  min-height:40px !important;
  max-width:40px !important;
  max-height:40px !important;
  flex:0 0 40px !important;
}
.top .top-actions .top-row-look .theme-dot.active{
  box-shadow:
    inset 0 0 0 2px var(--accent),
    inset 0 0 0 4px rgba(255,255,255,.92),
    0 0 0 1px rgba(0,0,0,.12) !important;
}
.top .top-actions .top-row-look .theme-dot.active::after{
  font-size:12px !important;
}
.top .top-actions .top-row-look #randomDiceBtn{
  font-size:18px !important;
}
@media (max-width:760px){
  .top .top-actions .top-row-look .theme-row{
    min-height:58px !important;
    padding:7px 8px !important;
    gap:6px !important;
  }
  .top .top-actions .top-row-look .theme-dot,
  .top .top-actions .top-row-look #randomDiceBtn{
    width:38px !important;
    height:38px !important;
    min-width:38px !important;
    min-height:38px !important;
    max-width:38px !important;
    max-height:38px !important;
    flex-basis:38px !important;
  }
}


/* V102 — symmetric left/right spacing in the mood frame */
.top .top-actions .top-row-look .theme-row{
  width:max-content !important;
  min-width:max-content !important;
  justify-self:end !important;
  justify-content:flex-start !important;
  padding:8px 12px !important;
  gap:8px !important;
  overflow:hidden !important;
  box-sizing:border-box !important;
}
.top .top-actions .top-row-look .theme-dot,
.top .top-actions .top-row-look #randomDiceBtn{
  flex:0 0 40px !important;
}
@media (max-width:760px){
  .top .top-actions .top-row-look .theme-row{
    width:max-content !important;
    min-width:max-content !important;
    justify-self:end !important;
    padding:7px 10px !important;
    gap:6px !important;
  }
  .top .top-actions .top-row-look .theme-dot,
  .top .top-actions .top-row-look #randomDiceBtn{
    flex:0 0 38px !important;
  }
}


/* V103 — longer mood frame, circles truly centered with equal left/right space */
.top .top-actions .top-row-look .theme-row{
  width:392px !important;
  min-width:392px !important;
  max-width:392px !important;
  justify-self:end !important;
  justify-content:center !important;
  align-items:center !important;
  gap:8px !important;
  padding:8px 0 !important;
  min-height:58px !important;
  box-sizing:border-box !important;
  overflow:hidden !important;
}
.top .top-actions .top-row-look .theme-dot,
.top .top-actions .top-row-look #randomDiceBtn{
  flex:0 0 40px !important;
}
@media (max-width:760px){
  .top .top-actions .top-row-look .theme-row{
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
    justify-content:center !important;
    gap:6px !important;
    padding:7px 8px !important;
  }
  .top .top-actions .top-row-look .theme-dot,
  .top .top-actions .top-row-look #randomDiceBtn{
    flex:0 0 38px !important;
  }
}


/* V104 — align the LEFT edge of mood frame with PLAYLIST below,
   keep the same right edge, and keep circles centered inside. */
.top .top-actions .top-row-look .theme-row{
  grid-column:3 / 6 !important;
  width:100% !important;
  min-width:0 !important;
  max-width:none !important;
  justify-self:stretch !important;
  justify-content:center !important;
  align-items:center !important;
  padding-left:12px !important;
  padding-right:12px !important;
  box-sizing:border-box !important;
}

/* Desktop: match the same horizontal start as PLAYLIST row below. */
@media (min-width:761px){
  .top .top-actions .top-row-look{
    grid-template-columns:54px 112px 164px 48px 142px !important;
    column-gap:10px !important;
  }
  .top .top-actions .top-row-look .theme-row{
    grid-column:3 / 6 !important;
  }
}

/* Keep responsive behavior intact. */
@media (max-width:760px){
  .top .top-actions .top-row-look .theme-row{
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
    justify-self:stretch !important;
    justify-content:center !important;
    padding-left:8px !important;
    padding-right:8px !important;
  }
}


/* V105 — remove dot before DJ MR. SHUFFLE and prevent FOCUS overlap */
.text-action.radio-active::before{
  content:none !important;
}

.player-bottom{
  display:grid !important;
  grid-template-columns:minmax(0,340px) minmax(220px,280px) !important;
  grid-template-areas:"focus volume" !important;
  align-items:center !important;
  column-gap:34px !important;
  row-gap:0 !important;
  margin-top:20px !important;
  width:100% !important;
}

.focus-control{
  grid-area:focus !important;
  display:grid !important;
  grid-template-columns:112px minmax(0,1fr) !important;
  align-items:center !important;
  column-gap:14px !important;
  min-width:0 !important;
  max-width:340px !important;
  width:100% !important;
}

.focus-mode-btn{
  min-width:112px !important;
  width:112px !important;
  white-space:nowrap !important;
  padding:0 !important;
  text-align:left !important;
}

.focus-mix{
  display:grid !important;
  grid-template-columns:auto minmax(100px,1fr) !important;
  align-items:center !important;
  column-gap:10px !important;
  width:100% !important;
  min-width:0 !important;
}

.focus-mix-label,
.volume-label{
  font-size:10px !important;
  letter-spacing:.18em !important;
  font-weight:800 !important;
  opacity:.95 !important;
  white-space:nowrap !important;
}

.focus-mix .range{
  width:100% !important;
  min-width:100px !important;
  max-width:none !important;
}

.volume{
  grid-area:volume !important;
  display:grid !important;
  grid-template-columns:72px minmax(160px,1fr) !important;
  align-items:center !important;
  column-gap:14px !important;
  justify-self:end !important;
  width:100% !important;
  max-width:280px !important;
}

.volume .range{
  width:100% !important;
  min-width:160px !important;
}

@media (max-width:900px){
  .player-bottom{
    grid-template-columns:1fr !important;
    grid-template-areas:
      "focus"
      "volume" !important;
    row-gap:14px !important;
  }
  .focus-control{
    max-width:100% !important;
  }
  .focus-mix{
    grid-template-columns:auto minmax(90px,140px) !important;
  }
  .volume{
    justify-self:start !important;
    max-width:280px !important;
  }
}


/* V106 — FIX: FOCUS and VOLUME must never overlap */
.player-bottom{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
  grid-template-areas:"focus volume" !important;
  align-items:center !important;
  column-gap:28px !important;
  width:100% !important;
  margin-top:20px !important;
  box-sizing:border-box !important;
}

.focus-control{
  grid-area:focus !important;
  display:grid !important;
  grid-template-columns:auto minmax(0,1fr) !important;
  align-items:center !important;
  column-gap:12px !important;
  min-width:0 !important;
  max-width:none !important;
  width:100% !important;
}

.focus-mode-btn{
  min-width:0 !important;
  width:auto !important;
  white-space:nowrap !important;
  padding:0 !important;
  text-align:left !important;
}

.focus-mix{
  display:grid !important;
  grid-template-columns:auto minmax(0,1fr) !important;
  align-items:center !important;
  column-gap:8px !important;
  min-width:0 !important;
  width:100% !important;
}

.focus-mix-label{
  min-width:54px !important;
  width:54px !important;
  white-space:nowrap !important;
}

.focus-mix .range{
  width:100% !important;
  min-width:0 !important;
  max-width:none !important;
}

.volume{
  grid-area:volume !important;
  display:grid !important;
  grid-template-columns:auto minmax(0,1fr) !important;
  align-items:center !important;
  column-gap:12px !important;
  min-width:0 !important;
  max-width:none !important;
  width:100% !important;
  justify-self:stretch !important;
}

.volume-label{
  min-width:64px !important;
  width:64px !important;
  white-space:nowrap !important;
}

.volume .range{
  width:100% !important;
  min-width:0 !important;
  max-width:none !important;
}

/* extra safety: nothing from one control may paint into the neighbor */
.focus-control,
.volume,
.focus-mix{
  overflow:visible !important;
  box-sizing:border-box !important;
}

@media (max-width:900px){
  .player-bottom{
    grid-template-columns:1fr !important;
    grid-template-areas:
      "focus"
      "volume" !important;
    row-gap:14px !important;
  }
}



/* V107 — radio/repeat back to the bottom row + playlist position in header */
.transport.transport-main{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:26px !important;
  margin:30px 0 24px !important;
  width:100% !important;
}

.player-mode-row{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:16px !important;
  margin-top:14px !important;
}

.player-mode-btn{
  padding:0 !important;
  min-width:0 !important;
  min-height:auto !important;
  text-align:left !important;
  white-space:nowrap !important;
}

.player-mode-btn-right{
  text-align:right !important;
}

.player-bottom{
  margin-top:18px !important;
}

.top .top-actions .top-row-music #playlistOpenTop{
  text-align:center !important;
}

@media (max-width:700px){
  .transport.transport-main{
    gap:22px !important;
  }
  .player-mode-row{
    gap:12px !important;
  }
  .player-mode-btn{
    font-size:10px !important;
  }
}



/* V109 — FIX: bottom-right REPEAT must remain clickable above decorative player glow */
.player:after{
  pointer-events:none !important;
}
.player-mode-row{
  position:relative !important;
  z-index:2 !important;
}
.player-mode-row .player-mode-btn{
  position:relative !important;
  z-index:3 !important;
  cursor:pointer !important;
}



/* V110 — DESKTOP POLISH PASS
   Small visual refinements only. No structural / functional changes. */
@media (min-width:981px){
  /* Player: slightly calmer surface and edge */
  .player{
    box-shadow:0 18px 48px rgba(25,40,31,.10) !important;
    border-color:rgba(255,255,255,.68) !important;
  }
  body[data-theme="charcoal"] .player{
    box-shadow:0 20px 54px rgba(0,0,0,.22) !important;
    border-color:rgba(255,255,255,.09) !important;
  }

  /* Main PLAY remains dominant, but with a softer glow */
  .play{
    box-shadow:0 10px 24px color-mix(in srgb,var(--accent) 24%,transparent) !important;
  }

  /* Precise alignment of FOCUS / VOLUME */
  .player-bottom{
    align-items:center !important;
  }
  .focus-control,
  .volume{
    min-height:36px !important;
  }
  .focus-mix-label,
  .volume-label{
    color:color-mix(in srgb,var(--ink) 74%,var(--muted)) !important;
  }
  .focus-mix .range,
  .volume .range{
    height:32px !important;
  }

  /* Secondary modes should stay visually secondary */
  .player-mode-row{
    margin-top:13px !important;
  }
  .player-mode-btn{
    color:color-mix(in srgb,var(--muted) 88%,var(--ink)) !important;
    opacity:.88 !important;
    font-size:10px !important;
    letter-spacing:.10em !important;
  }
  .player-mode-btn.radio-active,
  .player-mode-btn.repeat-active{
    color:var(--accent) !important;
    opacity:1 !important;
  }

  /* Header: keep the heart lighter than the two main music buttons */
  .top .top-actions .top-row-music #currentFavoriteToggle{
    background:rgba(255,255,255,.58) !important;
    border-color:rgba(255,255,255,.66) !important;
    box-shadow:none !important;
  }
  .top .top-actions .top-row-music #currentFavoriteToggle:hover{
    background:rgba(255,255,255,.76) !important;
  }
  body[data-theme="charcoal"] .top .top-actions .top-row-music #currentFavoriteToggle{
    background:rgba(69,77,81,.56) !important;
    border-color:rgba(255,255,255,.08) !important;
  }

  /* Left copy: improve readability over changing photos, without making it heavier */
  .eyebrow,
  .tags,
  .desc{
    text-shadow:0 1px 1px rgba(255,255,255,.18) !important;
  }
  body[data-theme="charcoal"] .eyebrow,
  body[data-theme="charcoal"] .tags,
  body[data-theme="charcoal"] .desc{
    text-shadow:0 1px 2px rgba(0,0,0,.20) !important;
  }

  /* Footer slightly quieter */
  .footer{
    opacity:.90 !important;
  }
}



/* V111 — FREE edition limits, feedback and PLUS dialogs */
.footer-plus{color:var(--accent)!important;font-weight:800!important}
.album-card.free-locked{opacity:.72;position:relative}
.album-card.free-locked:hover{opacity:.92}
.free-lock-chip{
  float:right;margin-left:8px;padding:2px 6px;border-radius:999px;
  background:color-mix(in srgb,var(--accent) 12%,transparent);
  color:var(--accent);font-size:8px;font-weight:900;letter-spacing:.10em
}
.dialog-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:16px}
.dialog-btn{
  min-height:42px;border:1px solid var(--line);border-radius:999px;
  padding:0 15px;background:transparent;color:var(--ink);cursor:pointer;
  font-size:10px;font-weight:800;letter-spacing:.09em
}
.dialog-btn.primary{background:var(--accent);border-color:var(--accent);color:#fff}
.dialog-btn:hover{filter:brightness(.98)}
.plus-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}
.plus-card{padding:14px;border:1px solid var(--line);border-radius:14px}
.plus-card strong{display:block;margin-bottom:8px;font-size:13px}
.plus-card ul{margin:0;padding-left:18px;color:var(--muted);font-size:12px;line-height:1.65}
.star-row{display:flex;gap:6px;margin:12px 0 14px}
.star-btn{
  width:44px;height:44px;min-width:44px;border:1px solid var(--line);
  border-radius:50%;background:transparent;color:var(--muted);cursor:pointer;font-size:23px;line-height:1
}
.star-btn.selected,.star-btn:hover{color:var(--accent);background:color-mix(in srgb,var(--accent) 9%,transparent)}
.feedback-text{
  width:100%;min-height:88px;resize:vertical;border:1px solid var(--line);border-radius:12px;
  padding:11px 12px;background:rgba(255,255,255,.66);color:var(--ink);font:inherit;font-size:12px;outline:none
}
.feedback-text:focus{border-color:color-mix(in srgb,var(--accent) 55%,var(--line));box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 10%,transparent)}
.limit-kicker{font-size:10px;font-weight:900;letter-spacing:.14em;color:var(--accent);margin-bottom:8px}
.free-note{color:var(--muted);font-size:11px;line-height:1.55}
@media(max-width:620px){.plus-grid{grid-template-columns:1fr}}

/* V112 — CONTACT form + local FREE/PLUS preview switch for testing */
.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:8px}
.contact-field{display:flex;flex-direction:column;gap:6px}
.contact-field.full{grid-column:1 / -1}
.contact-label{font-size:9px;font-weight:800;letter-spacing:.12em;color:var(--muted)}
.contact-input,.contact-select,.contact-message{
  width:100%;border:1px solid var(--line);border-radius:12px;background:rgba(255,255,255,.66);
  color:var(--ink);padding:11px 12px;font:inherit;font-size:12px;outline:none
}
.contact-message{min-height:120px;resize:vertical}
.contact-input:focus,.contact-select:focus,.contact-message:focus{
  border-color:color-mix(in srgb,var(--accent) 55%,var(--line));
  box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 10%,transparent)
}
.plan-preview-note{margin-top:12px;padding:10px 12px;border-radius:12px;background:color-mix(in srgb,var(--accent) 7%,transparent)}
.plan-preview-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.plan-pill{display:inline-flex;align-items:center;gap:6px;padding:4px 8px;border-radius:999px;background:color-mix(in srgb,var(--accent) 10%,transparent);color:var(--accent);font-size:9px;font-weight:900;letter-spacing:.10em}
@media(max-width:620px){.contact-grid{grid-template-columns:1fr}.contact-field.full{grid-column:auto}}



/* V113 — FOOTER CONTRAST SAFETY
   Keep footer readable on every photo without turning it into a heavy bar. */
.footer{
  opacity:1 !important;
  color:color-mix(in srgb,var(--ink) 78%,var(--muted)) !important;
}
.footer-mood,
.footer-links{
  background:color-mix(in srgb,var(--paper2) 68%,transparent) !important;
  border:1px solid color-mix(in srgb,var(--line) 70%,transparent) !important;
  border-radius:999px !important;
  padding:7px 11px !important;
  backdrop-filter:blur(12px) saturate(.9) !important;
  -webkit-backdrop-filter:blur(12px) saturate(.9) !important;
  box-shadow:0 4px 18px rgba(0,0,0,.04) !important;
  text-shadow:none !important;
}
.footer-link{
  color:inherit !important;
}
.footer-link:hover{
  color:var(--accent) !important;
}
#moodFooter,
#soundFooterState,
#backgroundFooterState,
.footer-plus{
  color:var(--accent) !important;
}
body[data-theme="charcoal"] .footer{
  color:#eef2f3 !important;
}
body[data-theme="charcoal"] .footer-mood,
body[data-theme="charcoal"] .footer-links{
  background:rgba(49,57,61,.74) !important;
  border-color:rgba(255,255,255,.10) !important;
  box-shadow:0 5px 20px rgba(0,0,0,.14) !important;
}
@media (max-width:620px){
  .footer-mood,
  .footer-links{
    border-radius:14px !important;
    padding:7px 10px !important;
  }
}


/* V119 — layout polish + lighter transparent player */
.album-card{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) auto !important;
  grid-template-areas:
    "title title"
    "meta current" !important;
  align-items:center !important;
  column-gap:10px !important;
  row-gap:4px !important;
}
.album-card > b{
  grid-area:title !important;
  display:block !important;
  margin-bottom:0 !important;
}
.album-card > span:not(.album-current){
  grid-area:meta !important;
  display:block !important;
  min-width:0 !important;
  font-size:10px !important;
  color:var(--muted) !important;
  letter-spacing:.08em !important;
}
.album-card > .album-current{
  grid-area:current !important;
  justify-self:end !important;
  align-self:center !important;
  margin-top:0 !important;
  padding:2px 8px !important;
  border:1px solid color-mix(in srgb,var(--accent) 42%,transparent) !important;
  border-radius:999px !important;
  background:color-mix(in srgb,var(--accent) 9%,transparent) !important;
  color:var(--accent) !important;
  font-size:8px !important;
  font-weight:800 !important;
  letter-spacing:.11em !important;
  line-height:1.2 !important;
  white-space:nowrap !important;
}

.player{
  background:color-mix(in srgb,var(--paper2) 90%, transparent) !important;
  border:1px solid rgba(255,255,255,.64) !important;
  backdrop-filter:blur(22px) saturate(118%) !important;
  -webkit-backdrop-filter:blur(22px) saturate(118%) !important;
  box-shadow:0 18px 54px rgba(25,40,31,.11) !important;
}
body[data-theme="charcoal"] .player{
  background:rgba(54,62,66,.82) !important;
  border-color:rgba(255,255,255,.10) !important;
  box-shadow:0 20px 58px rgba(0,0,0,.24) !important;
}

.player-bottom{
  column-gap:18px !important;
  row-gap:12px !important;
  align-items:end !important;
}
.focus-control,
.volume{
  min-height:42px !important;
}
.focus-control{
  min-width:0 !important;
}
.focus-mix{
  min-width:0 !important;
}
.focus-mix .range,
.volume .range{
  width:100% !important;
}
.volume{
  justify-self:end !important;
  width:min(100%,240px) !important;
}
.focus-mix-label,
.volume-label{
  font-size:10px !important;
  font-weight:800 !important;
  letter-spacing:.12em !important;
}
.player-mode-row{
  margin-top:16px !important;
}

.footer{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) auto !important;
  align-items:center !important;
  gap:12px 18px !important;
}
.footer-mood{
  justify-self:start !important;
}
.footer-links{
  justify-self:end !important;
  text-align:right !important;
}

@media (max-width:900px){
  .player{
    background:color-mix(in srgb,var(--paper2) 94%, transparent) !important;
  }
  .player-bottom{
    row-gap:14px !important;
  }
  .volume{
    width:100% !important;
    justify-self:stretch !important;
  }
  .footer{
    grid-template-columns:1fr !important;
  }
  .footer-links{
    justify-self:start !important;
    text-align:left !important;
  }
}



/* V120 — unified vertical rhythm + adjustable player glass */
:root{
  --stack-gap:10px;
  --player-glass-alpha:.88;
}

/* Desktop vertical rhythm between LOOK / MUSIC / PLAYER / FOOTER */
@media (min-width:981px){
  .top-actions{
    gap:var(--stack-gap) !important;
  }
  .hero{
    padding-top:var(--stack-gap) !important;
    padding-bottom:var(--stack-gap) !important;
  }
  .footer{
    padding-top:0 !important;
  }
  .page{
    row-gap:0 !important;
  }
}

/* Player glass surface driven by --player-glass-alpha. */
.player{
  background:rgba(255,255,255,var(--player-glass-alpha)) !important;
}
body[data-theme="warm"] .player{
  background:rgba(255,250,244,var(--player-glass-alpha)) !important;
}
body[data-theme="sage"] .player{
  background:rgba(247,252,248,var(--player-glass-alpha)) !important;
}
body[data-theme="sand"] .player{
  background:rgba(253,250,245,var(--player-glass-alpha)) !important;
}
body[data-theme="pink"] .player{
  background:rgba(255,245,249,var(--player-glass-alpha)) !important;
}
body[data-theme="charcoal"] .player{
  background:rgba(54,62,66,var(--player-glass-alpha)) !important;
}
body[data-theme="dynamic"] .player{
  background:rgba(36,38,42,var(--player-glass-alpha)) !important;
}

.glass-control{
  display:grid;
  grid-template-columns:auto minmax(140px,1fr) 46px;
  align-items:center;
  gap:10px;
  padding:12px 2px 10px;
  border-bottom:1px solid var(--line);
}
.glass-control-label{
  font-size:10px;
  font-weight:800;
  letter-spacing:.12em;
  color:var(--muted);
  white-space:nowrap;
}
.glass-control-output{
  text-align:right;
  font-size:10px;
  font-weight:800;
  letter-spacing:.08em;
  color:var(--accent);
  font-variant-numeric:tabular-nums;
}
@media (max-width:620px){
  .glass-control{
    grid-template-columns:1fr;
    gap:6px;
  }
  .glass-control-output{
    text-align:left;
  }
}



/* V121 — live glass preview + footer collision fix */
:root{
  --player-glass-blur:18px;
}

/* The player must show the opacity change clearly. */
.player{
  backdrop-filter:blur(var(--player-glass-blur)) saturate(112%) !important;
  -webkit-backdrop-filter:blur(var(--player-glass-blur)) saturate(112%) !important;
}

/* BACKGROUND is a live-preview panel: keep the player visible while adjusting glass. */
#backgroundOverlay{
  background:rgba(24,30,27,.05) !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
}
@media (min-width:981px){
  #backgroundOverlay .drawer{
    left:22px !important;
    right:auto !important;
  }
}

/* Do not let the footer occupy the player's grid area on shorter desktop viewports. */
@media (min-width:981px){
  body{
    overflow:auto !important;
  }
  .page{
    height:auto !important;
    min-height:100vh !important;
    grid-template-rows:auto auto auto !important;
  }
  .hero{
    min-height:min-content !important;
    padding-top:var(--stack-gap) !important;
    padding-bottom:0 !important;
  }
  .footer{
    margin-top:var(--stack-gap) !important;
    padding-top:0 !important;
  }
}

/* Make the transparency control easier to read while watching the player. */
.glass-control{
  position:sticky;
  top:0;
  z-index:2;
  background:color-mix(in srgb,var(--paper2) 92%,transparent);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  padding:12px 4px !important;
}



/* V122 — first impression polish */
:root{
  --default-player-glass:68;
}

@media (min-width:981px){
  .hero{
    align-items:center !important;
  }
}

.copy{
  position:relative;
  z-index:1;
}
.copy::before{
  content:none;
  display:none;
}

.player{
  position:relative !important;
  border-color:rgba(255,255,255,.42) !important;
  box-shadow:0 20px 54px rgba(28,32,33,.12), inset 0 1px 0 rgba(255,255,255,.24) !important;
}
.player::before{
  content:"";
  position:absolute;
  inset:1px;
  border-radius:27px;
  background:linear-gradient(180deg,rgba(255,255,255,.17) 0%,rgba(255,255,255,.07) 34%,rgba(255,255,255,0) 72%);
  pointer-events:none;
  z-index:0;
}
.player > *{
  position:relative;
  z-index:1;
}
body[data-theme="charcoal"] .player{
  border-color:rgba(255,255,255,.09) !important;
  box-shadow:0 24px 68px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.045) !important;
}
body[data-theme="charcoal"] .player::before{
  background:linear-gradient(180deg,rgba(255,255,255,.06) 0%,rgba(255,255,255,.018) 38%,rgba(255,255,255,0) 74%);
}
body[data-theme="pink"] .player{
  border-color:rgba(255,255,255,.46) !important;
  box-shadow:0 22px 60px rgba(104,54,74,.14), inset 0 1px 0 rgba(255,255,255,.28) !important;
}
body[data-theme="pink"] .player::before{
  background:linear-gradient(180deg,rgba(255,255,255,.19) 0%,rgba(255,255,255,.075) 34%,rgba(255,255,255,0) 72%);
}

.soft-btn,
.theme-row{
  background:color-mix(in srgb,var(--paper2) 76%,transparent) !important;
  border-color:color-mix(in srgb,rgba(255,255,255,.92) 72%,transparent) !important;
  box-shadow:0 10px 28px rgba(0,0,0,.045) !important;
}
body[data-theme="charcoal"] .soft-btn,
body[data-theme="charcoal"] .theme-row{
  background:rgba(69,77,81,.68) !important;
  border-color:rgba(255,255,255,.10) !important;
  box-shadow:0 12px 34px rgba(0,0,0,.16) !important;
}

.eyebrow,
.tags,
.desc{
  text-shadow:0 1px 2px rgba(255,255,255,.10) !important;
}
body[data-theme="charcoal"] .eyebrow,
body[data-theme="charcoal"] .tags,
body[data-theme="charcoal"] .desc,
body[data-theme="charcoal"] .brand{
  text-shadow:0 1px 2px rgba(0,0,0,.28) !important;
}



/* V126 — ADMIN PASSWORD LOCK: admin password changes blocked on web */

/* V125 — SESSION SECURITY: server logout + password recovery hardening */

/* V124 — SECURITY HARDENED: API privacy + signup enumeration protection */

/* V123 — PREMIUM CALM FINAL POLISH
   Visual refinement only. No player logic changes. */
@media (min-width:981px){
  .page{
    max-width:1480px !important;
    padding-left:34px !important;
    padding-right:34px !important;
  }
  .hero{
    grid-template-columns:minmax(430px,.96fr) minmax(500px,1.04fr) !important;
    gap:46px !important;
  }
}

/* Typography: a little calmer and more deliberate */
.brand{
  letter-spacing:.25em !important;
}
.eyebrow{
  letter-spacing:.28em !important;
}
.copy #heroTitle{
  font-weight:455 !important;
}
.track-title{
  font-weight:500 !important;
}

/* Player: slightly softer corners and cleaner premium edge */
.player{
  border-radius:30px !important;
  padding:31px 32px 27px !important;
}
.player::before{
  border-radius:29px !important;
}
.play{
  box-shadow:0 12px 28px color-mix(in srgb,var(--accent) 25%,transparent) !important;
  transition:transform .16s ease,box-shadow .16s ease,filter .16s ease !important;
}
.play:hover{
  transform:translateY(-1px) !important;
  box-shadow:0 15px 34px color-mix(in srgb,var(--accent) 30%,transparent) !important;
}
.play:active{
  transform:translateY(0) scale(.985) !important;
}

/* Timeline and sliders stay understated */
.range{
  opacity:.96;
}
.timeline .range{
  opacity:.92;
}

/* Top chrome: consistent visual weight */
.top .soft-btn,
.top .theme-row{
  min-height:46px !important;
}
.top .top-actions{
  gap:10px !important;
}
.top .top-actions .top-row-look .theme-row{
  min-height:60px !important;
}

/* Footer should read as quiet chrome, not another card */
.footer-mood,
.footer-links{
  padding:6px 10px !important;
  box-shadow:0 3px 14px rgba(0,0,0,.035) !important;
}
body[data-theme="charcoal"] .footer-mood,
body[data-theme="charcoal"] .footer-links{
  background:rgba(49,57,61,.66) !important;
  box-shadow:0 4px 16px rgba(0,0,0,.13) !important;
}

/* Dark mode: preserve text hierarchy without harsh white */
body[data-theme="charcoal"]{
  --ink:#edf1f1;
  --muted:#b5bec1;
}
body[data-theme="charcoal"] .track-title{
  color:#f0f2f2 !important;
}
body[data-theme="charcoal"] .desc{
  color:#c5ccce !important;
}

/* Keep the glass control practical rather than visually dominant */
.glass-control{
  padding-top:10px !important;
  padding-bottom:10px !important;
}
.glass-control-label,
.glass-control-output{
  font-size:9px !important;
}

@media (max-width:980px){
  .player{
    padding:26px 24px 24px !important;
    border-radius:26px !important;
  }
  .player::before{
    border-radius:25px !important;
  }
}



/* V125 — remove unwanted left copy frame in Charcoal mood */
body[data-theme="charcoal"] .copy::before{
  display:none !important;
}



/* V126 — visible FREE / PLUS state in the top brand */
.brand{
  display:inline-flex !important;
  align-items:baseline !important;
  gap:10px !important;
  flex-wrap:wrap !important;
}
.brand-core{
  display:inline-block;
}
.brand-plan{
  display:inline-block;
  font-size:.62em;
  font-weight:760;
  letter-spacing:.18em;
  opacity:.92;
  white-space:nowrap;
}
.brand-plan.is-free{
  color:color-mix(in srgb,var(--ink) 84%, var(--paper) 16%);
}
.brand-plan.is-plus{
  color:var(--accent);
}
body[data-theme="charcoal"] .brand-plan.is-free{
  color:rgba(240,244,241,.86);
}
@media (max-width:760px){
  .brand{
    gap:6px !important;
  }
  .brand-plan{
    font-size:.58em;
    letter-spacing:.16em;
  }
}



/* V128 — optimized WebP backgrounds + lightweight thumbnails */
/* V127 — faster first opening of BACKGROUND */
#backgroundGrid{
  contain:layout paint style;
}
#backgroundGrid .background-card{
  content-visibility:auto;
  contain-intrinsic-size:120px 220px;
}



/* V129 — compact feedback, intentionally lighter than CONTACT */
#feedbackOverlay{
  display:grid;
  place-items:center;
}
#feedbackOverlay .feedback-mini{
  position:relative !important;
  inset:auto !important;
  transform:none !important;
  width:min(420px,calc(100vw - 28px)) !important;
  height:auto !important;
  max-height:calc(100vh - 36px) !important;
  padding:17px 18px 16px !important;
  border-radius:20px !important;
  overflow:auto;
}
.feedback-mini .drawer-head{
  padding-bottom:11px !important;
}
.feedback-mini .drawer-head strong{
  font-size:15px !important;
}
.feedback-mini-body{
  padding-top:12px;
}
.feedback-mini-body > p{
  margin:0 0 10px;
  color:var(--muted);
  font-size:12px;
  line-height:1.45;
}
.feedback-mini .star-row{
  margin:4px 0 11px !important;
  gap:5px !important;
}
.feedback-mini .star-btn{
  width:40px !important;
  height:40px !important;
  min-width:40px !important;
  min-height:40px !important;
  font-size:21px !important;
}
.feedback-mini .feedback-text{
  min-height:58px !important;
  max-height:90px !important;
  resize:vertical !important;
  padding:9px 10px !important;
}
.feedback-mini-actions{
  margin-top:9px !important;
}
.feedback-mini-actions .dialog-btn{
  min-height:38px !important;
  padding:0 16px !important;
}
@media (max-width:620px){
  #feedbackOverlay .feedback-mini{
    width:calc(100vw - 20px) !important;
    padding:15px !important;
  }
}



/* V132 — subtle local contrast under RADIO / REPEAT at low player opacity */
.player-mode-row .player-mode-btn{
  padding:6px 10px !important;
  border-radius:999px !important;
  background:color-mix(in srgb, var(--ink) 7%, transparent) !important;
  backdrop-filter:blur(7px) !important;
  -webkit-backdrop-filter:blur(7px) !important;
  box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--ink) 5%, transparent) !important;
  color:color-mix(in srgb, var(--ink) 58%, var(--muted)) !important;
  opacity:.92 !important;
  transition:background .18s ease,color .18s ease,box-shadow .18s ease !important;
}

.player-mode-row .player-mode-btn:hover{
  background:color-mix(in srgb, var(--ink) 11%, transparent) !important;
  color:color-mix(in srgb, var(--ink) 76%, var(--muted)) !important;
}

.player-mode-row .player-mode-btn.radio-active,
.player-mode-row .player-mode-btn.repeat-active{
  background:color-mix(in srgb, var(--accent) 12%, transparent) !important;
  color:var(--accent) !important;
  box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--accent) 18%, transparent) !important;
  opacity:1 !important;
}

body[data-theme="charcoal"] .player-mode-row .player-mode-btn{
  background:rgba(0,0,0,.16) !important;
  color:rgba(255,255,255,.66) !important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.045) !important;
}

body[data-theme="charcoal"] .player-mode-row .player-mode-btn:hover{
  background:rgba(0,0,0,.23) !important;
  color:rgba(255,255,255,.82) !important;
}

body[data-theme="charcoal"] .player-mode-row .player-mode-btn.radio-active,
body[data-theme="charcoal"] .player-mode-row .player-mode-btn.repeat-active{
  background:color-mix(in srgb, var(--accent) 13%, rgba(0,0,0,.12)) !important;
  color:var(--accent) !important;
}



/* V133 — RADIO / REPEAT: no pills, only clearer text */
.player-mode-row .player-mode-btn{
  background:transparent !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
  box-shadow:none !important;
  padding:0 !important;
  border-radius:0 !important;
  color:rgba(20,20,20,.78) !important;
  opacity:1 !important;
}

.player-mode-row .player-mode-btn:hover{
  background:transparent !important;
  color:rgba(20,20,20,.95) !important;
}

.player-mode-row .player-mode-btn.radio-active,
.player-mode-row .player-mode-btn.repeat-active{
  background:transparent !important;
  box-shadow:none !important;
  color:var(--accent) !important;
}

/* Dark mood keeps enough contrast */
body[data-theme="charcoal"] .player-mode-row .player-mode-btn{
  background:transparent !important;
  box-shadow:none !important;
  color:rgba(255,255,255,.68) !important;
}

body[data-theme="charcoal"] .player-mode-row .player-mode-btn:hover{
  background:transparent !important;
  color:rgba(255,255,255,.88) !important;
}

body[data-theme="charcoal"] .player-mode-row .player-mode-btn.radio-active,
body[data-theme="charcoal"] .player-mode-row .player-mode-btn.repeat-active{
  background:transparent !important;
  color:var(--accent) !important;
}



/* V134 — custom CONTACT subject selector, mood-colored instead of browser blue */
.contact-select-wrap{
  position:relative;
}
.contact-select-custom{
  width:100%;
  min-height:44px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  border:1px solid var(--line);
  border-radius:12px;
  background:rgba(255,255,255,.66);
  color:var(--ink);
  padding:11px 12px;
  font:inherit;
  font-size:12px;
  cursor:pointer;
  text-align:left;
  outline:none;
  transition:border-color .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.contact-select-custom:focus,
.contact-select-wrap.open .contact-select-custom{
  border-color:color-mix(in srgb,var(--accent) 55%,var(--line));
  box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 10%,transparent);
}
.contact-select-arrow{
  color:var(--muted);
  transition:transform .18s ease,color .18s ease;
}
.contact-select-wrap.open .contact-select-arrow{
  transform:rotate(180deg);
  color:var(--accent);
}
.contact-select-menu{
  position:absolute;
  left:0;
  right:0;
  top:calc(100% + 8px);
  z-index:60;
  padding:6px;
  border:1px solid color-mix(in srgb,var(--accent) 20%,var(--line));
  border-radius:14px;
  background:rgba(255,255,255,.96);
  box-shadow:0 16px 36px rgba(0,0,0,.12);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}
.contact-select-option{
  width:100%;
  border:0;
  background:transparent;
  color:var(--ink);
  text-align:left;
  border-radius:10px;
  padding:10px 11px;
  font:inherit;
  font-size:12px;
  cursor:pointer;
  transition:background .14s ease,color .14s ease;
}
.contact-select-option:hover,
.contact-select-option:focus{
  background:color-mix(in srgb,var(--accent) 10%,transparent);
  color:var(--ink);
  outline:none;
}
.contact-select-option.active{
  background:color-mix(in srgb,var(--accent) 18%,transparent);
  color:var(--accent);
  font-weight:700;
}
body[data-theme="charcoal"] .contact-select-custom{
  background:rgba(255,255,255,.08);
  border-color:rgba(255,255,255,.12);
  color:var(--paper);
}
body[data-theme="charcoal"] .contact-select-menu{
  background:rgba(34,38,40,.96);
  border-color:rgba(255,255,255,.10);
  box-shadow:0 18px 44px rgba(0,0,0,.34);
}
body[data-theme="charcoal"] .contact-select-option{
  color:rgba(255,255,255,.88);
}
body[data-theme="charcoal"] .contact-select-option:hover,
body[data-theme="charcoal"] .contact-select-option:focus{
  background:color-mix(in srgb,var(--accent) 14%,rgba(255,255,255,.02));
}
body[data-theme="charcoal"] .contact-select-option.active{
  background:color-mix(in srgb,var(--accent) 18%,rgba(255,255,255,.03));
  color:var(--accent);
}



/* =========================================================
   V137 — ONE RESPONSIVE MUSIC4OFFICE
   Desktop: full visual workspace
   Tablet: compact full-feature layout
   Mobile: listening-first layout, same app and same controls
   ========================================================= */

/* Safer viewport behavior across mobile browsers */
html{
  min-width:320px;
}
body{
  min-width:320px;
}
button,input,textarea,select{
  touch-action:manipulation;
}

/* TABLET / SMALL LAPTOP */
@media (min-width:641px) and (max-width:980px){
  .page{
    min-height:100dvh !important;
    height:auto !important;
    padding:20px 24px 18px !important;
    grid-template-rows:auto auto auto !important;
    gap:22px !important;
  }

  .top{
    align-items:flex-start !important;
    gap:18px !important;
  }

  .brand{
    flex:0 0 auto !important;
  }

  .top-actions{
    width:min(620px,100%) !important;
  }

  .top-row{
    width:100% !important;
  }

  .hero{
    grid-template-columns:1fr !important;
    gap:24px !important;
    align-items:start !important;
  }

  .copy{
    width:min(720px,100%) !important;
    padding-left:0 !important;
  }

  .copy #heroTitle{
    font-size:clamp(54px,9vw,78px) !important;
    line-height:.91 !important;
  }

  .desc{
    max-width:650px !important;
    margin-top:16px !important;
  }

  .player-zone{
    justify-content:center !important;
    width:100% !important;
  }

  .player{
    width:min(760px,100%) !important;
  }

  .footer{
    width:100% !important;
    margin-top:4px !important;
  }

  .drawer{
    width:min(560px,calc(100vw - 32px)) !important;
    right:16px !important;
    top:16px !important;
    bottom:16px !important;
  }
}

/* MOBILE — listening first, no separate mobile site */
@media (max-width:640px){
  html,body{
    width:100% !important;
    overflow-x:hidden !important;
  }

  body{
    min-height:100dvh !important;
  }

  .page{
    width:100% !important;
    max-width:none !important;
    min-height:100dvh !important;
    height:auto !important;
    padding:14px 12px 16px !important;
    display:flex !important;
    flex-direction:column !important;
    gap:16px !important;
  }

  .top{
    width:100% !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
    gap:12px !important;
  }

  .brand{
    width:100% !important;
    display:flex !important;
    align-items:baseline !important;
    justify-content:flex-start !important;
    gap:7px !important;
    font-size:17px !important;
    letter-spacing:.16em !important;
    white-space:nowrap !important;
  }

  .brand-plan{
    font-size:9px !important;
    letter-spacing:.10em !important;
  }

  .top-actions{
    width:100% !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
    gap:8px !important;
    margin:0 !important;
  }

  .control-group-label{
    display:none !important;
  }

  .top-row{
    width:100% !important;
    display:grid !important;
    gap:8px !important;
  }

  .top-row-look{
    grid-template-columns:minmax(108px,.72fr) minmax(0,1.7fr) 44px !important;
    grid-template-rows:auto !important;
  }

  .top-row-look #backgroundOpen{
    grid-column:1 !important;
    grid-row:1 !important;
    width:100% !important;
  }

  .top-row-look .theme-row{
    grid-column:2 !important;
    grid-row:1 !important;
    width:100% !important;
    min-width:0 !important;
    justify-content:flex-start !important;
    overflow-x:auto !important;
    overflow-y:hidden !important;
    scrollbar-width:none !important;
    -webkit-overflow-scrolling:touch;
  }
  .top-row-look .theme-row::-webkit-scrollbar{
    display:none !important;
  }

  .top-row-look #randomDiceBtn{
    grid-column:3 !important;
    grid-row:1 !important;
  }

  .theme-row{
    gap:7px !important;
    padding:7px 9px !important;
  }

  .theme-dot{
    width:22px !important;
    height:22px !important;
    flex:0 0 22px !important;
  }

  .theme-random-btn{
    flex:0 0 auto !important;
  }

  .top-row-music{
    grid-template-columns:1fr 1fr 44px !important;
    grid-template-rows:auto auto !important;
  }

  .top-row-music #albumsOpen{
    grid-column:1 !important;
    grid-row:1 !important;
  }

  .top-row-music #playlistOpenTop{
    grid-column:2 !important;
    grid-row:1 !important;
  }

  .top-row-music #currentFavoriteToggle{
    grid-column:3 !important;
    grid-row:1 !important;
    width:44px !important;
    min-width:44px !important;
    padding-left:0 !important;
    padding-right:0 !important;
  }

  .top-row-music #favoritesOpen{
    grid-column:1 / -1 !important;
    grid-row:2 !important;
    width:100% !important;
  }

  .soft-btn,
  .dice-btn,
  .theme-random-btn{
    min-height:44px !important;
  }

  .album-btn,
  .playlist-btn,
  .favorites-btn{
    min-width:0 !important;
    width:100% !important;
  }

  .hero{
    width:100% !important;
    display:flex !important;
    flex-direction:column !important;
    gap:14px !important;
    min-height:0 !important;
    flex:1 0 auto !important;
  }

  .copy{
    width:100% !important;
    padding:0 2px !important;
  }

  .copy::before{
    display:none !important;
  }

  .eyebrow{
    margin:0 0 7px !important;
    font-size:8px !important;
    letter-spacing:.19em !important;
  }

  .copy #heroTitle{
    max-width:100% !important;
    font-size:clamp(39px,13vw,58px) !important;
    line-height:.91 !important;
    letter-spacing:-.045em !important;
    overflow-wrap:normal !important;
    word-break:normal !important;
  }

  .copy #heroTitle span{
    margin-top:4px !important;
    font-size:.54em !important;
  }

  /* On a phone the title gives identity; details stay out of the way. */
  .tags{
    margin-top:9px !important;
    font-size:9px !important;
    line-height:1.45 !important;
    letter-spacing:.10em !important;
  }

  .desc{
    display:none !important;
  }

  .player-zone{
    width:100% !important;
    display:block !important;
  }

  .player{
    width:100% !important;
    max-width:none !important;
    padding:19px 16px 17px !important;
    border-radius:22px !important;
  }

  .mini-top{
    margin-bottom:15px !important;
  }

  .album-name{
    font-size:9px !important;
    letter-spacing:.12em !important;
  }

  .now-label{
    font-size:8px !important;
    margin-bottom:7px !important;
  }

  .track-title{
    font-size:clamp(31px,10vw,44px) !important;
    line-height:.96 !important;
    min-height:1.05em !important;
  }

  .meta-row{
    align-items:flex-start !important;
    margin-top:7px !important;
  }

  .track-meta{
    font-size:11px !important;
  }

  .mode-chip{
    font-size:8px !important;
    padding:5px 7px !important;
  }

  .transport{
    gap:28px !important;
    margin:21px 0 18px !important;
  }

  .icon{
    min-width:44px !important;
    min-height:44px !important;
  }

  .icon svg{
    width:25px !important;
    height:25px !important;
  }

  .play{
    width:76px !important;
    height:76px !important;
  }

  .play svg{
    width:33px !important;
    height:33px !important;
  }

  .timeline .range{
    min-height:28px !important;
  }

  .times{
    font-size:10px !important;
  }

  .player-bottom{
    width:100% !important;
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:13px !important;
    margin-top:12px !important;
  }

  .focus-control{
    width:100% !important;
    display:grid !important;
    grid-template-columns:auto 1fr !important;
    align-items:center !important;
    gap:12px !important;
  }

  .focus-mix{
    width:100% !important;
    min-width:0 !important;
  }

  .focus-mix .range{
    width:100% !important;
  }

  .volume{
    width:100% !important;
    display:grid !important;
    grid-template-columns:auto 1fr !important;
    align-items:center !important;
    gap:12px !important;
  }

  .volume input{
    width:100% !important;
    min-width:0 !important;
  }

  .focus-mode-btn,
  .volume-label{
    white-space:nowrap !important;
    font-size:9px !important;
    letter-spacing:.10em !important;
  }

  .player-mode-row{
    width:100% !important;
    margin-top:11px !important;
    display:flex !important;
    justify-content:space-between !important;
    align-items:center !important;
  }

  .player-mode-row .player-mode-btn{
    min-height:44px !important;
    display:flex !important;
    align-items:center !important;
    padding:0 2px !important;
    font-size:10px !important;
  }

  .footer{
    width:100% !important;
    margin-top:2px !important;
    padding-top:4px !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:flex-start !important;
    gap:8px !important;
    font-size:9px !important;
    line-height:1.55 !important;
  }

  .footer-mood,
  .footer-links{
    width:100% !important;
    justify-content:flex-start !important;
  }

  .footer-link{
    min-height:32px !important;
    display:inline-flex !important;
    align-items:center !important;
  }

  /* Panels become phone-friendly full-height sheets. */
  .overlay{
    padding:8px !important;
    overflow:hidden !important;
  }

  .drawer,
  .info-drawer,
  #feedbackOverlay .feedback-mini{
    position:absolute !important;
    inset:8px !important;
    width:auto !important;
    max-width:none !important;
    height:auto !important;
    max-height:none !important;
    border-radius:20px !important;
    overflow:auto !important;
    -webkit-overflow-scrolling:touch !important;
  }

  .drawer-head{
    position:sticky !important;
    top:0 !important;
    z-index:5 !important;
    padding-top:2px !important;
    backdrop-filter:blur(14px);
    -webkit-backdrop-filter:blur(14px);
  }

  .close{
    min-width:44px !important;
    min-height:44px !important;
  }

  .contact-grid{
    grid-template-columns:1fr !important;
  }

  .contact-field.full{
    grid-column:auto !important;
  }

  .dialog-actions{
    flex-wrap:wrap !important;
  }

  .dialog-btn{
    min-height:44px !important;
  }
}

/* VERY SMALL PHONES */
@media (max-width:380px){
  .page{
    padding-left:9px !important;
    padding-right:9px !important;
  }

  .brand{
    font-size:15px !important;
  }

  .top-row-look{
    grid-template-columns:104px minmax(0,1fr) 44px !important;
  }

  .theme-row{
    gap:6px !important;
    padding-left:7px !important;
    padding-right:7px !important;
  }

  .theme-dot{
    width:20px !important;
    height:20px !important;
    flex-basis:20px !important;
  }

  .soft-btn{
    padding-left:10px !important;
    padding-right:10px !important;
    font-size:10px !important;
  }

  .copy #heroTitle{
    font-size:clamp(36px,12vw,46px) !important;
  }

  .player{
    padding-left:13px !important;
    padding-right:13px !important;
  }

  .transport{
    gap:20px !important;
  }
}

/* TOUCH DEVICES: no hover-dependent affordance */
@media (hover:none){
  .soft-btn:hover,
  .dice-btn:hover,
  .footer-link:hover,
  .player-mode-row .player-mode-btn:hover{
    transform:none !important;
  }
}

/* Accessibility: visible keyboard focus on all interactive controls */
:where(button,input,textarea,[tabindex]):focus-visible{
  outline:3px solid color-mix(in srgb,var(--accent) 68%,white) !important;
  outline-offset:3px !important;
}



/* =========================================================
   V138 — TRUE MOBILE FIX
   At phone widths, LOOK controls stack cleanly:
   BACKGROUND first row, mood controls second row.
   Strong selectors override older desktop-era rules.
   ========================================================= */
@media (max-width:640px){

  .top .top-actions .top-row-look{
    display:grid !important;
    grid-template-columns:1fr !important;
    grid-template-rows:auto auto !important;
    width:100% !important;
    gap:8px !important;
  }

  .top .top-actions .top-row-look #backgroundOpen{
    grid-column:1 !important;
    grid-row:1 !important;
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
    justify-self:stretch !important;
  }

  .top .top-actions .top-row-look .theme-row{
    grid-column:1 !important;
    grid-row:2 !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    min-height:0 !important;
    justify-self:stretch !important;
    justify-content:space-between !important;
    align-items:center !important;
    gap:5px !important;
    padding:7px 9px !important;
    overflow:hidden !important;
    box-sizing:border-box !important;
  }

  .top .top-actions .top-row-look .theme-dot,
  .top .top-actions .top-row-look #randomDiceBtn{
    width:32px !important;
    height:32px !important;
    min-width:32px !important;
    min-height:32px !important;
    max-width:32px !important;
    max-height:32px !important;
    flex:0 0 32px !important;
  }

  .top .top-actions .top-row-look #randomDiceBtn{
    font-size:15px !important;
  }

  .top .top-actions .top-row-look .theme-dot.active::after{
    font-size:10px !important;
  }

  /* MUSIC row stays fully inside the viewport */
  .top .top-actions .top-row-music{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) 44px !important;
    grid-template-rows:auto auto !important;
    width:100% !important;
    gap:8px !important;
  }

  .top .top-actions .top-row-music #albumsOpen,
  .top .top-actions .top-row-music #playlistOpenTop,
  .top .top-actions .top-row-music #favoritesOpen{
    min-width:0 !important;
    max-width:100% !important;
  }

  .top .top-actions .top-row-music #favoritesOpen{
    grid-column:1 / -1 !important;
    width:100% !important;
  }
}

@media (max-width:420px){
  .top .top-actions .top-row-look .theme-row{
    gap:4px !important;
    padding-left:7px !important;
    padding-right:7px !important;
  }

  .top .top-actions .top-row-look .theme-dot,
  .top .top-actions .top-row-look #randomDiceBtn{
    width:29px !important;
    height:29px !important;
    min-width:29px !important;
    min-height:29px !important;
    max-width:29px !important;
    max-height:29px !important;
    flex-basis:29px !important;
  }
}



/* =========================================================
   V139 — MOBILE CONTROLS
   Hide individual mood dots on phones, keep a finger-sized dice.
   Keep ALBUM / PLAYLIST visible and prevent FAVORITES overlap.
   ========================================================= */
@media (max-width:640px){

  /* LOOK: BACKGROUND + one large random dice */
  .top .top-actions .top-row-look{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) 52px !important;
    grid-template-rows:auto !important;
    gap:8px !important;
    width:100% !important;
  }

  .top .top-actions .top-row-look #backgroundOpen{
    grid-column:1 !important;
    grid-row:1 !important;
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
  }

  .top .top-actions .top-row-look .theme-row{
    grid-column:2 !important;
    grid-row:1 !important;
    width:52px !important;
    min-width:52px !important;
    max-width:52px !important;
    height:48px !important;
    padding:0 !important;
    margin:0 !important;
    border:0 !important;
    background:transparent !important;
    box-shadow:none !important;
    backdrop-filter:none !important;
    -webkit-backdrop-filter:none !important;
    overflow:visible !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
  }

  .top .top-actions .top-row-look .theme-dot{
    display:none !important;
  }

  .top .top-actions .top-row-look #randomDiceBtn{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:48px !important;
    height:48px !important;
    min-width:48px !important;
    min-height:48px !important;
    max-width:48px !important;
    max-height:48px !important;
    flex:0 0 48px !important;
    padding:0 !important;
    margin:0 !important;
    font-size:20px !important;
    border-radius:999px !important;
  }

  /* MUSIC: album + playlist on first row, heart on second left, favorites fills rest */
  .top .top-actions .top-row-music{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
    grid-template-rows:44px 44px !important;
    gap:8px !important;
    width:100% !important;
    min-width:0 !important;
  }

  .top .top-actions .top-row-music #albumsOpen{
    grid-column:1 !important;
    grid-row:1 !important;
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
  }

  .top .top-actions .top-row-music #playlistOpenTop{
    grid-column:2 !important;
    grid-row:1 !important;
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
  }

  .top .top-actions .top-row-music #currentFavoriteToggle{
    grid-column:1 !important;
    grid-row:2 !important;
    width:44px !important;
    min-width:44px !important;
    max-width:44px !important;
    justify-self:start !important;
  }

  .top .top-actions .top-row-music #favoritesOpen{
    grid-column:1 / -1 !important;
    grid-row:2 !important;
    width:calc(100% - 52px) !important;
    min-width:0 !important;
    max-width:none !important;
    justify-self:end !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
  }
}

@media (max-width:380px){
  .top .top-actions .top-row-look{
    grid-template-columns:minmax(0,1fr) 50px !important;
  }
  .top .top-actions .top-row-look .theme-row{
    width:50px !important;
    min-width:50px !important;
    max-width:50px !important;
  }
  .top .top-actions .top-row-look #randomDiceBtn{
    width:46px !important;
    height:46px !important;
    min-width:46px !important;
    min-height:46px !important;
    max-width:46px !important;
    max-height:46px !important;
  }
}



/* =========================================================
   V140 — MOBILE: show LIGHT + CHARCOAL + DICE
   Keep mobile simple, but allow quick light/dark switching.
   ========================================================= */
@media (max-width:640px){
  .top .top-actions .top-row-look{
    display:grid !important;
    grid-template-columns:1fr !important;
    grid-template-rows:auto auto !important;
    gap:8px !important;
    width:100% !important;
  }

  .top .top-actions .top-row-look #backgroundOpen{
    grid-column:1 !important;
    grid-row:1 !important;
    width:100% !important;
  }

  .top .top-actions .top-row-look .theme-row{
    grid-column:1 !important;
    grid-row:2 !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    height:auto !important;
    padding:6px 10px !important;
    margin:0 !important;
    border-radius:999px !important;
    background:rgba(255,255,255,.68) !important;
    border:1px solid rgba(255,255,255,.78) !important;
    box-shadow:none !important;
    backdrop-filter:blur(14px) !important;
    -webkit-backdrop-filter:blur(14px) !important;
    overflow:hidden !important;
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:8px !important;
    box-sizing:border-box !important;
  }

  body[data-theme="charcoal"] .top .top-actions .top-row-look .theme-row{
    background:rgba(34,38,40,.72) !important;
    border-color:rgba(255,255,255,.12) !important;
  }

  .top .top-actions .top-row-look .theme-dot,
  .top .top-actions .top-row-look #randomDiceBtn{
    width:44px !important;
    height:44px !important;
    min-width:44px !important;
    min-height:44px !important;
    max-width:44px !important;
    max-height:44px !important;
    flex:0 0 44px !important;
    display:none !important;
  }

  .top .top-actions .top-row-look .theme-dot[data-theme="light"],
  .top .top-actions .top-row-look .theme-dot[data-theme="charcoal"],
  .top .top-actions .top-row-look #randomDiceBtn{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
  }

  .top .top-actions .top-row-look #randomDiceBtn{
    font-size:18px !important;
    padding:0 !important;
    border-radius:999px !important;
  }

  .top .top-actions .top-row-look .theme-dot.active::after{
    font-size:12px !important;
  }
}

@media (max-width:380px){
  .top .top-actions .top-row-look .theme-row{
    padding-left:8px !important;
    padding-right:8px !important;
  }
  .top .top-actions .top-row-look .theme-dot[data-theme="light"],
  .top .top-actions .top-row-look .theme-dot[data-theme="charcoal"],
  .top .top-actions .top-row-look #randomDiceBtn{
    width:42px !important;
    height:42px !important;
    min-width:42px !important;
    min-height:42px !important;
    max-width:42px !important;
    max-height:42px !important;
    flex-basis:42px !important;
  }
}



/* =========================================================
   V141 — MOBILE: BACKGROUND + 3 MOODS SIDE BY SIDE
   One clean row: BACKGROUND | LIGHT | CHARCOAL | DICE
   ========================================================= */
@media (max-width:640px){
  .top .top-actions .top-row-look{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) auto !important;
    grid-template-rows:auto !important;
    gap:8px !important;
    width:100% !important;
    align-items:center !important;
  }

  .top .top-actions .top-row-look #backgroundOpen{
    grid-column:1 !important;
    grid-row:1 !important;
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
  }

  .top .top-actions .top-row-look .theme-row{
    grid-column:2 !important;
    grid-row:1 !important;
    width:auto !important;
    min-width:auto !important;
    max-width:none !important;
    height:auto !important;
    padding:4px 6px !important;
    margin:0 !important;
    border-radius:999px !important;
    background:rgba(255,255,255,.68) !important;
    border:1px solid rgba(255,255,255,.78) !important;
    box-shadow:none !important;
    backdrop-filter:blur(14px) !important;
    -webkit-backdrop-filter:blur(14px) !important;
    overflow:hidden !important;
    display:flex !important;
    align-items:center !important;
    justify-content:flex-end !important;
    gap:6px !important;
    box-sizing:border-box !important;
  }

  body[data-theme="charcoal"] .top .top-actions .top-row-look .theme-row{
    background:rgba(34,38,40,.72) !important;
    border-color:rgba(255,255,255,.12) !important;
  }

  .top .top-actions .top-row-look .theme-dot,
  .top .top-actions .top-row-look #randomDiceBtn{
    width:38px !important;
    height:38px !important;
    min-width:38px !important;
    min-height:38px !important;
    max-width:38px !important;
    max-height:38px !important;
    flex:0 0 38px !important;
    display:none !important;
  }

  .top .top-actions .top-row-look .theme-dot[data-theme="light"],
  .top .top-actions .top-row-look .theme-dot[data-theme="charcoal"],
  .top .top-actions .top-row-look #randomDiceBtn{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
  }

  .top .top-actions .top-row-look #randomDiceBtn{
    font-size:16px !important;
    padding:0 !important;
    border-radius:999px !important;
  }

  .top .top-actions .top-row-look .theme-dot.active::after{
    font-size:11px !important;
  }
}

@media (max-width:380px){
  .top .top-actions .top-row-look{
    grid-template-columns:minmax(0,1fr) auto !important;
    gap:6px !important;
  }

  .top .top-actions .top-row-look .theme-row{
    padding:4px 5px !important;
    gap:5px !important;
  }

  .top .top-actions .top-row-look .theme-dot[data-theme="light"],
  .top .top-actions .top-row-look .theme-dot[data-theme="charcoal"],
  .top .top-actions .top-row-look #randomDiceBtn{
    width:35px !important;
    height:35px !important;
    min-width:35px !important;
    min-height:35px !important;
    max-width:35px !important;
    max-height:35px !important;
    flex-basis:35px !important;
  }

  .top .top-actions .top-row-look #randomDiceBtn{
    font-size:15px !important;
  }
}


/* V162 — footer SOUND status emphasis FIX */
#soundFooterState,
#backgroundFooterState{
  font-weight:800 !important;
}


/* ACCOUNT MODAL AUTO HEIGHT — V163
   Login stays compact; Create Account grows only as much as needed.
   Other drawers keep their existing full-height behavior. */
#accountOverlay .drawer{
  bottom:auto !important;
  height:auto !important;
  max-height:calc(100vh - 44px) !important;
  overflow-y:auto !important;
}
#accountOverlay .info-content{
  overflow:visible !important;
}
@media (max-width:640px){
  #accountOverlay .drawer{
    top:12px !important;
    right:12px !important;
    width:calc(100vw - 24px) !important;
    max-height:calc(100vh - 24px) !important;
  }
}



.m4o-account-legal-note{margin-top:12px;font-size:12px;line-height:1.55;opacity:.78;max-width:640px}
.m4o-account-extra-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}
.m4o-account-extra-actions button{white-space:normal;line-height:1.25}


#m4oDeleteModalV9{
  position:fixed;inset:0;z-index:99999;display:none;place-items:center;
  background:rgba(8,12,10,.58);backdrop-filter:blur(8px);padding:20px
}
#m4oDeleteModalV9.open{display:grid}
#m4oDeleteModalV9 .m4o-delete-box{
  width:min(520px,100%);border-radius:22px;padding:24px;
  background:#26302d;color:#eef3f0;border:1px solid rgba(255,255,255,.13);
  box-shadow:0 30px 90px rgba(0,0,0,.38)
}
#m4oDeleteModalV9 h3{margin:0 0 12px;font-size:20px}
#m4oDeleteModalV9 p{margin:8px 0;color:#c8d1cc;line-height:1.55;font-size:13px}
#m4oDeleteModalV9 input{
  width:100%;margin-top:12px;padding:12px 14px;border-radius:12px;
  border:1px solid rgba(255,255,255,.22);background:#111814;color:#fff
}
#m4oDeleteModalV9 .m4o-delete-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:16px;flex-wrap:wrap}
#m4oDeleteModalV9 button{
  border:1px solid rgba(255,255,255,.18);border-radius:999px;
  padding:10px 16px;background:transparent;color:#eef3f0;cursor:pointer
}
#m4oDeleteModalV9 .danger{border-color:#b95d5d;color:#ffdada}
#m4oDeleteModalV9 .danger:disabled{opacity:.42;cursor:not-allowed}
#m4oDeleteModalV9 .status{min-height:18px;margin-top:10px;font-size:12px;line-height:1.45}


#m4oGdprModalV9{
  position:fixed;inset:0;z-index:99998;display:none;place-items:center;
  background:rgba(8,12,10,.58);backdrop-filter:blur(8px);padding:20px
}
#m4oGdprModalV9.open{display:grid}
#m4oGdprModalV9 .box{
  width:min(620px,100%);max-height:min(760px,90vh);overflow:auto;
  border-radius:22px;padding:24px;background:#26302d;color:#eef3f0;
  border:1px solid rgba(255,255,255,.13);box-shadow:0 30px 90px rgba(0,0,0,.38)
}
#m4oGdprModalV9 h3{margin:0 0 12px;font-size:20px}
#m4oGdprModalV9 .grid{display:grid;grid-template-columns:minmax(130px,.7fr) 1.3fr;gap:8px 14px;margin:16px 0;font-size:13px}
#m4oGdprModalV9 .k{opacity:.65}
#m4oGdprModalV9 .v{overflow-wrap:anywhere}
#m4oGdprModalV9 p{font-size:12px;line-height:1.55;opacity:.78}
#m4oGdprModalV9 .actions{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap;margin-top:18px}
#m4oGdprModalV9 button{border:1px solid rgba(255,255,255,.18);border-radius:999px;padding:10px 16px;background:transparent;color:#eef3f0;cursor:pointer}


#m4oBrandDialog143{
  position:fixed;inset:0;z-index:100000;display:none;place-items:center;
  background:rgba(8,12,10,.58);backdrop-filter:blur(8px);padding:20px
}
#m4oBrandDialog143.open{display:grid}
#m4oBrandDialog143 .box{
  width:min(520px,100%);border-radius:22px;padding:24px;
  background:#26302d;color:#eef3f0;border:1px solid rgba(255,255,255,.13);
  box-shadow:0 30px 90px rgba(0,0,0,.38)
}
#m4oBrandDialog143 h3{margin:0 0 10px;font-size:20px}
#m4oBrandDialog143 p{margin:8px 0;color:#c8d1cc;line-height:1.5;font-size:13px;white-space:pre-line}
#m4oBrandDialog143 input{
  width:100%;margin-top:12px;padding:12px 14px;border-radius:12px;
  border:1px solid rgba(255,255,255,.22);background:#111814;color:#fff
}
#m4oBrandDialog143 .actions{display:flex;justify-content:flex-end;gap:10px;margin-top:16px;flex-wrap:wrap}
#m4oBrandDialog143 button{
  border:1px solid rgba(255,255,255,.18);border-radius:999px;
  padding:10px 16px;background:transparent;color:#eef3f0;cursor:pointer
}
#m4oBrandDialog143 .primary{background:#9bb9a1;color:#172019;border-color:#9bb9a1}


body[data-theme="dynamic"] .soft-btn,
body[data-theme="dynamic"] .dice-btn,
body[data-theme="dynamic"] .theme-row,
body[data-theme="dynamic"] .drawer,
body[data-theme="dynamic"] .player{
  border-color:rgba(146,152,158,.26) !important;
}
body[data-theme="dynamic"] .theme-dot{
  border-color:#c9cccf !important;
  box-shadow:0 0 0 1px rgba(62,68,74,.24) !important;
}
body[data-theme="dynamic"] .player{
  box-shadow:0 24px 68px rgba(0,0,0,.28), inset 0 1px 0 rgba(156,162,168,.08) !important;
}


body[data-theme="dynamic"] .soft-btn,
body[data-theme="dynamic"] .dice-btn,
body[data-theme="dynamic"] .theme-row,
body[data-theme="dynamic"] .drawer,
body[data-theme="dynamic"] .player{
  border-color:rgba(102,108,114,.44) !important;
}
body[data-theme="dynamic"] .player{
  box-shadow:0 24px 68px rgba(0,0,0,.30), inset 0 1px 0 rgba(128,134,140,.10) !important;
}
body[data-theme="dynamic"] .theme-dot{
  border-color:#aeb3b8 !important;
  box-shadow:0 0 0 1px rgba(56,60,65,.40) !important;
}
body[data-theme="dynamic"] .range{
  -webkit-appearance:none;
  appearance:none;
  background:transparent;
}
body[data-theme="dynamic"] .range::-webkit-slider-runnable-track{
  height:6px;
  border-radius:999px;
  background:rgba(55,58,63,.94);
  border:1px solid rgba(112,118,124,.52);
}
body[data-theme="dynamic"] .range::-webkit-slider-thumb{
  -webkit-appearance:none;
  appearance:none;
  width:16px;
  height:16px;
  margin-top:-6px;
  border-radius:50%;
  background:var(--accent);
  border:0;
  box-shadow:0 0 0 2px rgba(255,75,62,.18);
}
body[data-theme="dynamic"] .range::-moz-range-track{
  height:6px;
  border-radius:999px;
  background:rgba(55,58,63,.94);
  border:1px solid rgba(112,118,124,.52);
}
body[data-theme="dynamic"] .range::-moz-range-thumb{
  width:16px;
  height:16px;
  border-radius:50%;
  background:var(--accent);
  border:0;
  box-shadow:0 0 0 2px rgba(255,75,62,.18);
}
body[data-theme="dynamic"] .timeline .range::-webkit-slider-runnable-track,
body[data-theme="dynamic"] .focus-mix .range::-webkit-slider-runnable-track,
body[data-theme="dynamic"] .volume .range::-webkit-slider-runnable-track{
  border-color:rgba(118,124,130,.60);
  background:rgba(48,51,56,.96);
}
body[data-theme="dynamic"] .timeline .range::-moz-range-track,
body[data-theme="dynamic"] .focus-mix .range::-moz-range-track,
body[data-theme="dynamic"] .volume .range::-moz-range-track{
  border-color:rgba(118,124,130,.60);
  background:rgba(48,51,56,.96);
}


/* V149 — DYNAMIC only: keep darker slider framing, but restore stronger slider height */
body[data-theme="dynamic"] .range::-webkit-slider-runnable-track{
  height:8px !important;
  border-radius:999px !important;
  background:rgba(42,45,49,.98) !important;
  border:1px solid rgba(92,98,104,.82) !important;
}
body[data-theme="dynamic"] .range::-webkit-slider-thumb{
  width:18px !important;
  height:18px !important;
  margin-top:-6px !important;
  border-radius:50% !important;
  background:var(--accent) !important;
  border:0 !important;
  box-shadow:0 0 0 2px rgba(255,75,62,.18) !important;
}
body[data-theme="dynamic"] .range::-moz-range-track{
  height:8px !important;
  border-radius:999px !important;
  background:rgba(42,45,49,.98) !important;
  border:1px solid rgba(92,98,104,.82) !important;
}
body[data-theme="dynamic"] .range::-moz-range-thumb{
  width:18px !important;
  height:18px !important;
  border-radius:50% !important;
  background:var(--accent) !important;
  border:0 !important;
  box-shadow:0 0 0 2px rgba(255,75,62,.18) !important;
}
body[data-theme="dynamic"] .timeline .range::-webkit-slider-runnable-track,
body[data-theme="dynamic"] .focus-mix .range::-webkit-slider-runnable-track,
body[data-theme="dynamic"] .volume .range::-webkit-slider-runnable-track{
  background:rgba(39,42,46,.99) !important;
  border-color:rgba(86,92,98,.88) !important;
}
body[data-theme="dynamic"] .timeline .range::-moz-range-track,
body[data-theme="dynamic"] .focus-mix .range::-moz-range-track,
body[data-theme="dynamic"] .volume .range::-moz-range-track{
  background:rgba(39,42,46,.99) !important;
  border-color:rgba(86,92,98,.88) !important;
}


/* V150 — DYNAMIC only: RADIO / REPEAT default color should match FOCUS muted labeling */
body[data-theme="dynamic"] .player-mode-row .player-mode-btn{
  color:var(--muted) !important;
}
body[data-theme="dynamic"] .player-mode-row .player-mode-btn:hover{
  color:var(--muted) !important;
}
body[data-theme="dynamic"] .player-mode-row .player-mode-btn.radio-active,
body[data-theme="dynamic"] .player-mode-row .player-mode-btn.repeat-active{
  color:var(--accent) !important;
}


/* V151 — DYNAMIC only: slider thumbs should match the other profiles better */
body[data-theme="dynamic"] .range::-webkit-slider-thumb{
  width:16px !important;
  height:16px !important;
  margin-top:-5px !important;
}
body[data-theme="dynamic"] .range::-moz-range-thumb{
  width:16px !important;
  height:16px !important;
}


/* V152 — DYNAMIC only: make slider thumbs smaller to match the other profiles */
body[data-theme="dynamic"] .range::-webkit-slider-thumb{
  width:14px !important;
  height:14px !important;
  margin-top:-4px !important;
}
body[data-theme="dynamic"] .range::-moz-range-thumb{
  width:14px !important;
  height:14px !important;
}


/* V153 — DYNAMIC only: restore themed fill behind sliders, no empty-looking track */
body[data-theme="dynamic"] .timeline .range,
body[data-theme="dynamic"] .focus-mix .range,
body[data-theme="dynamic"] .volume .range{
  --range-pct:0;
}
body[data-theme="dynamic"] .timeline .range::-webkit-slider-runnable-track,
body[data-theme="dynamic"] .focus-mix .range::-webkit-slider-runnable-track,
body[data-theme="dynamic"] .volume .range::-webkit-slider-runnable-track{
  height:8px !important;
  border-radius:999px !important;
  border:1px solid rgba(86,92,98,.88) !important;
  background:linear-gradient(
    90deg,
    rgba(255,75,62,.88) 0%,
    rgba(255,75,62,.88) calc(var(--range-pct) * 1%),
    rgba(40,43,47,.99) calc(var(--range-pct) * 1%),
    rgba(40,43,47,.99) 100%
  ) !important;
}
body[data-theme="dynamic"] .timeline .range::-moz-range-progress,
body[data-theme="dynamic"] .focus-mix .range::-moz-range-progress,
body[data-theme="dynamic"] .volume .range::-moz-range-progress{
  height:8px !important;
  border-radius:999px !important;
  background:rgba(255,75,62,.88) !important;
}
body[data-theme="dynamic"] .timeline .range::-moz-range-track,
body[data-theme="dynamic"] .focus-mix .range::-moz-range-track,
body[data-theme="dynamic"] .volume .range::-moz-range-track{
  height:8px !important;
  border-radius:999px !important;
  background:rgba(40,43,47,.99) !important;
  border:1px solid rgba(86,92,98,.88) !important;
}


/* V154 — DYNAMIC only: solid player surface, no gradient/glow, border like reference 02 */
body[data-theme="dynamic"] .player{
  background:rgba(86,92,98,.78) !important;
  border:2px solid rgba(66,72,78,.92) !important;
  box-shadow:0 20px 54px rgba(0,0,0,.18) !important;
}
body[data-theme="dynamic"] .player:after{
  content:none !important;
  display:none !important;
  background:none !important;
}


/* V155 — DYNAMIC only: no gradient in player, thin border like the other moods */
body[data-theme="dynamic"] .player{
  background:#626970 !important;
  background-image:none !important;
  border:1px solid rgba(72,78,84,.92) !important;
  box-shadow:0 20px 54px rgba(0,0,0,.18) !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
}
body[data-theme="dynamic"] .player:after{
  content:none !important;
  display:none !important;
  background:none !important;
}


/* V156 — DYNAMIC only: transparency works again, still no gradient */
body[data-theme="dynamic"] .player{
  background:rgba(98,105,112,var(--player-glass-alpha)) !important;
  background-image:none !important;
  border:1px solid rgba(72,78,84,.92) !important;
  backdrop-filter:blur(var(--player-glass-blur)) saturate(108%) !important;
  -webkit-backdrop-filter:blur(var(--player-glass-blur)) saturate(108%) !important;
}
body[data-theme="dynamic"] .player::before,
body[data-theme="dynamic"] .player::after{
  content:none !important;
  display:none !important;
  background:none !important;
}


/* V157 — DYNAMIC only: lighter player outline, same border feel as CHARCOAL */
body[data-theme="dynamic"] .player{
  border:1px solid rgba(255,255,255,.09) !important;
}


/* V159 — SOUND profiles + NIGHT + live preset sliders + CUSTOM */
.sound-content{padding-top:14px!important}
.sound-profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:10px 0 18px}
.sound-profile-card{position:relative;min-height:108px;border:1px solid var(--line);border-radius:15px;background:transparent;color:var(--ink);padding:14px 14px 30px;text-align:left;cursor:pointer;transition:border-color .16s ease,background .16s ease,transform .16s ease}
.sound-profile-card:hover{background:color-mix(in srgb,var(--accent) 6%,transparent)}
.sound-profile-card.active{border-color:color-mix(in srgb,var(--accent) 52%,var(--line));background:color-mix(in srgb,var(--accent) 10%,transparent);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--accent) 18%,transparent)}
.sound-profile-card strong{display:block;font-size:13px;letter-spacing:.09em}
.sound-profile-card span{display:block;margin-top:7px;color:var(--muted);font-size:11px;line-height:1.45}
.sound-profile-card small{position:absolute;left:14px;bottom:10px;color:var(--accent);font-size:8px;font-weight:900;letter-spacing:.13em}
.sound-profile-card.locked{opacity:.64}
.sound-profile-card.locked::after{content:'PLUS';position:absolute;right:10px;top:10px;padding:3px 6px;border-radius:999px;background:color-mix(in srgb,var(--accent) 11%,transparent);color:var(--accent);font-size:8px;font-weight:900;letter-spacing:.1em}
.sound-advanced{border-top:1px solid var(--line);padding-top:14px;margin-top:2px}
.sound-advanced.is-locked{opacity:.58}
.sound-advanced-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:9px}
.sound-advanced-head>div strong{display:block;font-size:11px;letter-spacing:.1em}
.sound-advanced-head>div span{display:block;margin-top:3px;color:var(--muted);font-size:9px;letter-spacing:.08em}
.sound-slider-row{display:grid;grid-template-columns:72px minmax(0,1fr) 52px;align-items:center;gap:10px;min-height:42px;color:var(--muted);font-size:9px;font-weight:800;letter-spacing:.1em}
.sound-slider-row output{text-align:right;color:var(--accent);font-variant-numeric:tabular-nums;letter-spacing:.03em}
.sound-slider-row input:disabled,.sound-advanced button:disabled{cursor:not-allowed}
body[data-theme="charcoal"] .sound-profile-card,body[data-theme="dynamic"] .sound-profile-card{border-color:rgba(255,255,255,.10)}
@media(max-width:620px){.sound-profile-grid{grid-template-columns:1fr}.sound-slider-row{grid-template-columns:60px minmax(0,1fr) 48px}}

/* V163 — unified panel scrollbars */
.drawer,
.info-content,
.track-list,
.album-grid,
.background-grid,
.feedback-mini,
.sound-content{
  scrollbar-width:thin;
  scrollbar-color:color-mix(in srgb,var(--muted) 46%,transparent) transparent;
}
.drawer::-webkit-scrollbar,
.info-content::-webkit-scrollbar,
.track-list::-webkit-scrollbar,
.album-grid::-webkit-scrollbar,
.background-grid::-webkit-scrollbar,
.feedback-mini::-webkit-scrollbar,
.sound-content::-webkit-scrollbar{
  width:8px;
  height:8px;
}
.drawer::-webkit-scrollbar-track,
.info-content::-webkit-scrollbar-track,
.track-list::-webkit-scrollbar-track,
.album-grid::-webkit-scrollbar-track,
.background-grid::-webkit-scrollbar-track,
.feedback-mini::-webkit-scrollbar-track,
.sound-content::-webkit-scrollbar-track{
  background:transparent;
}
.drawer::-webkit-scrollbar-thumb,
.info-content::-webkit-scrollbar-thumb,
.track-list::-webkit-scrollbar-thumb,
.album-grid::-webkit-scrollbar-thumb,
.background-grid::-webkit-scrollbar-thumb,
.feedback-mini::-webkit-scrollbar-thumb,
.sound-content::-webkit-scrollbar-thumb{
  background:color-mix(in srgb,var(--muted) 34%,transparent);
  border:2px solid transparent;
  background-clip:padding-box;
  border-radius:999px;
}
.drawer::-webkit-scrollbar-thumb:hover,
.info-content::-webkit-scrollbar-thumb:hover,
.track-list::-webkit-scrollbar-thumb:hover,
.album-grid::-webkit-scrollbar-thumb:hover,
.background-grid::-webkit-scrollbar-thumb:hover,
.feedback-mini::-webkit-scrollbar-thumb:hover,
.sound-content::-webkit-scrollbar-thumb:hover{
  background:color-mix(in srgb,var(--accent) 52%,var(--muted));
  border:2px solid transparent;
  background-clip:padding-box;
}


/* V165 — SOUND scrollbar optical centering */
#soundOverlay .sound-content{
  margin-right:8px !important;
  padding-right:8px !important;
}
@media(max-width:620px){
  #soundOverlay .sound-content{
    margin-right:5px !important;
    padding-right:5px !important;
  }
}


/* Public language switch */
.language-switch{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;letter-spacing:.09em}
.language-switch button{border:0;background:transparent;color:inherit;font:inherit;letter-spacing:inherit;cursor:pointer;padding:2px 1px}
.language-switch button[aria-pressed="true"]{color:var(--accent);font-weight:800;text-decoration:underline;text-underline-offset:3px}
.language-switch button:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:2px}

/* V183: give the two footer groups their own rows before they can squeeze. */
@media (min-width:621px) and (max-width:1399px){
  .footer{grid-template-columns:minmax(0,1fr) !important;row-gap:var(--stack-gap,10px) !important}
  .footer-mood,
  .footer-links{justify-self:start !important;text-align:left !important;max-width:100%}
  .footer-mood{white-space:nowrap}
}

/* V185: the links wrap within their own column; CZ/EN keeps a fixed column. */
.footer-links{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) auto;
  column-gap:12px;
  align-items:center;
  min-width:0;
}
.footer-nav{
  min-width:0;
  line-height:1.7;
  white-space:normal;
  overflow-wrap:normal;
}
.footer-links .language-switch{justify-self:end}
@media (min-width:621px) and (max-width:1399px){
  .footer-links{width:fit-content !important;max-width:100%}
}

/* V186: compact navigation on wide screens; separate language pill when narrow. */
@media (max-width:980px){
  .footer-links,
  body[data-theme="charcoal"] .footer-links{
    display:flex !important;
    flex-direction:column;
    align-items:flex-start;
    gap:10px;
    width:fit-content !important;
    max-width:100%;
    background:transparent !important;
    border:0 !important;
    padding:0 !important;
    box-shadow:none !important;
    backdrop-filter:none !important;
    -webkit-backdrop-filter:none !important;
  }
  .footer-nav,
  .footer-links .language-switch{
    max-width:100%;
    padding:6px 10px;
    border:1px solid color-mix(in srgb,var(--line) 70%,transparent);
    border-radius:999px;
    background:color-mix(in srgb,var(--paper2) 68%,transparent);
    backdrop-filter:blur(12px) saturate(.9);
    -webkit-backdrop-filter:blur(12px) saturate(.9);
  }
  body[data-theme="charcoal"] .footer-nav,
  body[data-theme="charcoal"] .footer-links .language-switch{
    background:rgba(49,57,61,.66);
    border-color:rgba(255,255,255,.10);
  }
}
@media (max-width:620px){
  .footer-nav{border-radius:14px}
}

/* V193: Android browser bars change the visual viewport while scrolling.
   Keep the image in the document's paint layer and use the stable viewport
   height so scrolling does not resize or recompose the whole player. */
@media (max-width:980px){
  body{
    position:relative;
    height:auto !important;
    min-height:100svh !important;
    overflow-y:auto !important;
  }
  .bg{
    position:absolute;
    inset:0;
    z-index:0;
    pointer-events:none;
  }
  .page{
    position:relative;
    z-index:1;
    min-height:100svh !important;
  }
}

/* V187: the footer message and its technical states have fixed lines. */
.footer-mood{
  display:flex !important;
  flex-direction:column;
  align-items:flex-start !important;
  gap:3px !important;
  max-width:100%;
  white-space:normal !important;
}
.footer-slogan{max-width:100%}
.footer-status{
  display:inline-flex;
  align-items:center;
  flex-wrap:wrap;
  gap:6px;
  max-width:100%;
}


/* =========================================================
   V205 — SIMPLIFIED HEADER + FOOTER MOOD/SOUND SETTINGS
   LOOK controls moved out of the header. MOOD opens a compact
   desktop popover and a phone-friendly bottom sheet.
   ========================================================= */
.top .top-actions{
  width:560px !important;
  max-width:560px !important;
}
.top .top-actions .top-row-music{
  margin-top:0 !important;
}

.footer-state-btn{
  appearance:none;
  border:0;
  background:transparent;
  color:inherit;
  font:inherit;
  letter-spacing:inherit;
  padding:0;
  margin:0;
  cursor:pointer;
  min-width:0;
  min-height:0;
  line-height:inherit;
}
.footer-state-btn:hover #moodFooter,
.footer-state-btn:hover #soundFooterState,
.footer-state-btn:hover #backgroundFooterState{
  filter:brightness(1.08);
  text-decoration:underline;
  text-underline-offset:3px;
  text-decoration-thickness:1px;
}

.look-quick-panel{
  position:fixed;
  left:86px;
  bottom:76px;
  z-index:18;
  width:min(520px,calc(100vw - 44px));
  padding:14px;
  border-radius:22px;
  background:color-mix(in srgb,var(--paper2) 91%,transparent);
  border:1px solid color-mix(in srgb,var(--line) 82%,transparent);
  box-shadow:0 18px 48px rgba(0,0,0,.18);
  backdrop-filter:blur(18px) saturate(.95);
  -webkit-backdrop-filter:blur(18px) saturate(.95);
  opacity:0;
  transform:translateY(8px) scale(.985);
  pointer-events:none;
  visibility:hidden;
  transition:opacity .16s ease, transform .16s ease, visibility .16s linear;
}
.look-quick-panel.open{
  opacity:1;
  transform:translateY(0) scale(1);
  pointer-events:auto;
  visibility:visible;
}
body[data-theme="charcoal"] .look-quick-panel,
body[data-theme="dynamic"] .look-quick-panel{
  background:rgba(43,48,51,.94);
  border-color:rgba(255,255,255,.11);
  color:#eef2f3;
}
.look-quick-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
  font-size:10px;
  font-weight:900;
  letter-spacing:.14em;
}
.look-quick-close{
  width:30px;
  height:30px;
  border:0;
  border-radius:999px;
  background:transparent;
  color:inherit;
  font-size:21px;
  line-height:1;
  cursor:pointer;
}
.look-quick-close:hover{background:color-mix(in srgb,var(--ink) 8%,transparent)}
.look-quick-controls{
  display:grid;
  grid-template-columns:132px minmax(0,1fr);
  gap:10px;
  align-items:center;
}
.look-quick-controls .look-background-btn{
  width:132px !important;
  min-width:132px !important;
}
.look-quick-controls .theme-row{
  width:100%;
  justify-content:space-between;
  box-sizing:border-box;
}
.look-quick-controls .theme-dot,
.look-quick-controls .theme-random-btn{
  width:38px !important;
  height:38px !important;
  min-width:38px !important;
  min-height:38px !important;
  max-width:38px !important;
  max-height:38px !important;
  flex:0 0 38px !important;
}
.look-quick-controls .theme-random-btn{
  border-radius:50% !important;
  padding:0 !important;
}

@media (max-width:640px){
  .top .top-actions{
    width:100% !important;
    max-width:100% !important;
  }
  .look-quick-panel{
    left:10px;
    right:10px;
    bottom:10px;
    width:auto;
    max-height:min(62svh,480px);
    overflow:auto;
    border-radius:22px;
    padding:16px;
    transform:translateY(18px);
  }
  .look-quick-panel.open{transform:translateY(0)}
  .look-quick-controls{
    grid-template-columns:1fr;
    gap:12px;
  }
  .look-quick-controls .look-background-btn{
    width:100% !important;
    min-width:0 !important;
  }
  .look-quick-controls .theme-row{
    display:grid !important;
    grid-template-columns:repeat(7,minmax(36px,1fr));
    gap:7px !important;
    padding:8px !important;
    justify-items:center;
  }
  .look-quick-controls .theme-dot,
  .look-quick-controls .theme-random-btn{
    width:38px !important;
    height:38px !important;
    min-width:38px !important;
    min-height:38px !important;
    max-width:38px !important;
    max-height:38px !important;
  }
  .footer-state-btn{
    min-height:28px;
    display:inline-flex;
    align-items:center;
  }
}

@media (max-width:390px){
  .look-quick-controls .theme-row{
    grid-template-columns:repeat(4,1fr);
    row-gap:9px !important;
  }
  .look-quick-controls .theme-dot,
  .look-quick-controls .theme-random-btn{
    width:42px !important;
    height:42px !important;
    min-width:42px !important;
    min-height:42px !important;
    max-width:42px !important;
    max-height:42px !important;
  }
}


/* V209 — unify bottom-left footer panels */
#soundOverlay .drawer,
#backgroundOverlay .drawer{
  left:22px;
  right:auto;
  top:auto;
  bottom:88px;
  height:auto;
  max-height:min(68vh, 760px);
}
#soundOverlay .drawer{
  width:min(620px,calc(100vw - 44px));
}
#backgroundOverlay .drawer{
  width:min(720px,calc(100vw - 44px));
}
#backgroundOverlay .background-grid{
  max-height:min(46vh, 420px);
  overflow:auto;
}
#soundOverlay .info-content{
  max-height:min(52vh, 520px);
}
@media(max-width:620px){
  #soundOverlay .drawer,
  #backgroundOverlay .drawer{
    left:auto;
    right:auto;
    top:auto;
    bottom:auto;
    width:auto;
    max-height:none;
  }
  #backgroundOverlay .background-grid,
  #soundOverlay .info-content{
    max-height:none;
  }
}

/* V242 — tall SOUND and BACKGROUND panels open from the upper-left on desktop */
@media (min-width:621px){
  #soundOverlay .drawer,
  #backgroundOverlay .drawer{
    left:22px !important;
    right:auto !important;
    top:22px !important;
    bottom:auto !important;
  }
}

/* V243 — cleanup baseline before Stripe; no visual change */


/* V257 — Music4Office social links */
.social-dock{
  position:fixed;
  right:42px;
  bottom:34px;
  z-index:4;
  display:flex;
  align-items:center;
  gap:22px;
  padding:14px 24px;
  border:1px solid rgba(255,255,255,.22);
  border-radius:999px;
  background:rgba(31,34,35,.72);
  box-shadow:0 12px 34px rgba(0,0,0,.12);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
}
.social-link{
  width:24px;
  height:24px;
  display:grid;
  place-items:center;
  color:rgba(255,255,255,.82);
  text-decoration:none;
  transition:color .16s ease,transform .16s ease,opacity .16s ease;
}
.social-link svg{width:21px;height:21px;fill:currentColor;display:block}
.social-link:hover{color:#fff;transform:translateY(-1px)}
.social-link:focus-visible{outline:2px solid var(--accent);outline-offset:5px;border-radius:5px}
@media (max-width:980px){
  .social-dock{
    position:static;
    width:fit-content;
    margin:10px 0 0 0;
    padding:11px 18px;
    gap:18px;
    background:rgba(31,34,35,.78);
  }
}


/* V258 — social icons integrated into the footer bar */
.social-dock{display:none !important}
.footer-links{
  grid-template-columns:minmax(0,1fr) auto auto;
  column-gap:12px;
}
.footer-social{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding-left:12px;
  margin-left:2px;
  border-left:1px solid color-mix(in srgb,var(--line) 70%,transparent);
}
.footer-social-link{
  width:20px;
  height:20px;
  display:grid;
  place-items:center;
  color:inherit;
  opacity:.88;
  text-decoration:none;
  transition:color .16s ease,opacity .16s ease,transform .16s ease;
}
.footer-social-link svg{width:18px;height:18px;fill:currentColor;display:block}
.footer-social-link:hover{color:var(--accent);opacity:1;transform:translateY(-1px)}
.footer-social-link:focus-visible{outline:2px solid var(--accent);outline-offset:4px;border-radius:4px}
body[data-theme="charcoal"] .footer-social{
  border-left-color:rgba(255,255,255,.12);
}
@media (max-width:980px){
  .footer-links{
    grid-template-columns:minmax(0,1fr);
    row-gap:10px;
  }
  .footer-links .language-switch,
  .footer-social{
    justify-self:flex-start;
  }
  .footer-social{
    padding-left:0;
    margin-left:0;
    border-left:0;
  }
}


/* V259 — responsive social footer framing
   Wide screens: social icons stay integrated in the main footer capsule.
   Narrow screens: when footer rows stack, socials get their own matching capsule. */
@media (max-width:980px){
  .footer-social{
    display:inline-flex !important;
    align-items:center;
    gap:12px;
    width:fit-content;
    padding:7px 11px !important;
    margin:0 !important;
    border:1px solid color-mix(in srgb,var(--line) 70%,transparent) !important;
    border-radius:999px !important;
    background:color-mix(in srgb,var(--paper2) 68%,transparent) !important;
    box-shadow:0 4px 18px rgba(0,0,0,.04) !important;
    backdrop-filter:blur(12px) saturate(.9) !important;
    -webkit-backdrop-filter:blur(12px) saturate(.9) !important;
  }
  body[data-theme="charcoal"] .footer-social{
    background:rgba(49,57,61,.74) !important;
    border-color:rgba(255,255,255,.10) !important;
    box-shadow:0 5px 20px rgba(0,0,0,.14) !important;
  }
}
@media (max-width:620px){
  .footer-social{
    border-radius:14px !important;
    padding:7px 10px !important;
  }
}


/* V260 — language + social capsules share one row on narrow layouts */
@media (max-width:980px){
  .footer-links{
    display:grid !important;
    grid-template-columns:auto auto !important;
    justify-content:start !important;
    align-items:center !important;
    column-gap:10px !important;
    row-gap:10px !important;
    width:fit-content !important;
    max-width:100% !important;
  }
  .footer-nav{
    grid-column:1 / -1 !important;
    grid-row:1 !important;
    justify-self:start !important;
  }
  .footer-links .language-switch{
    grid-column:1 !important;
    grid-row:2 !important;
    justify-self:start !important;
    align-self:center !important;
  }
  .footer-social{
    grid-column:2 !important;
    grid-row:2 !important;
    justify-self:start !important;
    align-self:center !important;
  }
}


/* V262 — restore readable footer type; keep language + socials as one compact unit */
.footer-tools{
  display:inline-flex;
  align-items:center;
  gap:8px;
  white-space:nowrap;
}
@media (max-width:980px){
  .footer-links{
    display:flex !important;
    flex-direction:column !important;
    align-items:flex-start !important;
    gap:8px !important;
    width:fit-content !important;
    max-width:100% !important;
  }
  .footer-nav{order:1 !important}
  .footer-tools{
    order:2 !important;
    display:inline-flex !important;
    align-items:center !important;
    gap:8px !important;
    width:fit-content !important;
  }
  .footer-links .language-switch,
  .footer-social{
    margin:0 !important;
    justify-self:auto !important;
    align-self:center !important;
  }
}
@media (max-width:620px){
  .footer{
    font-size:11px !important;
    line-height:1.5 !important;
  }
  .footer-nav,
  .footer-links .language-switch,
  .footer-social{
    font-size:11px !important;
  }
  .footer-social-link{
    width:22px !important;
    height:22px !important;
  }
  .footer-social-link svg{
    width:18px !important;
    height:18px !important;
  }
}


/* V263 — equal visual weight for language and social footer pills */
@media (max-width:980px){
  .footer-tools{
    display:inline-flex !important;
    align-items:center !important;
    gap:8px !important;
  }
  .footer-links .language-switch,
  .footer-social{
    box-sizing:border-box !important;
    height:42px !important;
    min-height:42px !important;
    padding:0 14px !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:10px !important;
    border:1px solid color-mix(in srgb,var(--line) 70%,transparent) !important;
    border-radius:999px !important;
    background:color-mix(in srgb,var(--paper2) 68%,transparent) !important;
    box-shadow:0 4px 18px rgba(0,0,0,.04) !important;
    backdrop-filter:blur(12px) saturate(.9) !important;
    -webkit-backdrop-filter:blur(12px) saturate(.9) !important;
    line-height:1 !important;
  }
  body[data-theme="charcoal"] .footer-links .language-switch,
  body[data-theme="charcoal"] .footer-social{
    background:rgba(49,57,61,.74) !important;
    border-color:rgba(255,255,255,.10) !important;
    box-shadow:0 5px 20px rgba(0,0,0,.14) !important;
  }
  .footer-links .language-switch button{
    line-height:1 !important;
  }
  .footer-social-link{
    width:20px !important;
    height:20px !important;
  }
  .footer-social-link svg{
    width:18px !important;
    height:18px !important;
  }
}


/* =========================================================
   V264 — COLLAPSIBLE / COMPACT PLAYER
   UI-only: audio engine remains unchanged.
   ========================================================= */
.player-compact-toggle{
  position:absolute;
  top:14px;
  right:14px;
  z-index:8;
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  border:1px solid color-mix(in srgb,var(--line) 75%,transparent);
  border-radius:999px;
  background:color-mix(in srgb,var(--paper2) 80%,transparent);
  color:color-mix(in srgb,var(--ink) 78%,var(--muted));
  font:700 19px/1 system-ui,sans-serif;
  cursor:pointer;
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  transition:transform .16s ease,color .16s ease,background .16s ease;
}
.player-compact-toggle:hover{
  color:var(--accent);
  transform:translateY(-1px);
}
.compact-player{
  display:none;
  align-items:center;
  gap:14px;
  min-width:0;
  position:relative;
  z-index:4;
}
.compact-brand{
  flex:0 0 52px;
  width:52px;
  height:52px;
  display:grid;
  place-items:center;
  border-radius:13px;
  background:var(--accent);
  border:1px solid color-mix(in srgb,var(--accent) 72%,rgba(0,0,0,.10));
  color:#fff;
  box-shadow:0 10px 24px color-mix(in srgb,var(--accent) 28%,transparent);
  font-size:14px;
  font-weight:900;
  letter-spacing:.08em;
}
body[data-theme="charcoal"] .compact-brand,
body[data-theme="sage"] .compact-brand{
  color:#102118;
}
.compact-track{
  min-width:0;
  width:180px;
  display:flex;
  flex-direction:column;
  gap:3px;
}
.compact-track strong{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:14px;
  font-weight:750;
  color:var(--ink);
}
.compact-track span{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:9px;
  letter-spacing:.04em;
  color:var(--muted);
}
.compact-controls{
  display:flex;
  align-items:center;
  gap:7px;
  flex:0 0 auto;
}
.compact-icon,
.compact-play,
.compact-expand{
  border:0;
  background:transparent;
  color:var(--ink);
  display:grid;
  place-items:center;
  cursor:pointer;
}
.compact-icon{
  width:31px;
  height:31px;
}
.compact-icon svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.compact-play{
  width:48px;
  height:48px;
  border-radius:50%;
  background:var(--accent);
  color:#fff;
  box-shadow:0 8px 22px color-mix(in srgb,var(--accent) 28%,transparent);
}
.compact-play svg{width:23px;height:23px;fill:currentColor}
.compact-volume{
  flex:1 1 150px;
  min-width:110px;
  display:flex;
  align-items:center;
  gap:9px;
}
.compact-volume > svg{
  flex:0 0 18px;
  width:18px;
  height:18px;
  color:var(--ink);
}
.compact-volume .range{
  width:100%;
  min-width:70px;
}
.compact-expand{
  flex:0 0 34px;
  width:34px;
  height:34px;
  border-radius:999px;
  border:1px solid color-mix(in srgb,var(--line) 70%,transparent);
  background:color-mix(in srgb,var(--paper2) 68%,transparent);
}
.compact-expand svg{width:17px;height:17px}

.player.is-compact{
  width:min(650px,100%) !important;
  padding:10px 12px !important;
  border-radius:20px !important;
  min-height:74px !important;
  overflow:visible !important;
  transition:padding .18s ease,border-radius .18s ease,width .18s ease;
}
.player.is-compact > :not(.compact-player):not(audio):not(#liveStatus){
  display:none !important;
}
.player.is-compact .compact-player{
  display:flex !important;
}
.player.is-compact:after{
  display:none !important;
}
body[data-theme="charcoal"] .compact-expand,
body[data-theme="charcoal"] .player-compact-toggle{
  border-color:rgba(255,255,255,.12);
  background:rgba(49,57,61,.60);
  color:#eef2f3;
}

@media (max-width:760px){
  .player.is-compact{
    width:100% !important;
    padding:9px 10px !important;
  }
  .compact-player{gap:9px}
  .compact-brand{
    width:44px;
    height:44px;
    flex-basis:44px;
    font-size:12px;
  }
  .compact-track{width:min(150px,25vw)}
  .compact-volume{min-width:90px}
}
@media (max-width:560px){
  .compact-brand{display:none}
  .compact-track{width:clamp(95px,26vw,130px)}
  .compact-volume{display:none}
  .compact-player{justify-content:space-between}
  .compact-controls{margin-left:auto}
  .player.is-compact{min-height:66px !important}
}


/* =========================================================
   V266 — COMPACT PLAYER MOOD SURFACE
   Solid mood-aware surface; no transparency required.
   ========================================================= */
.player.is-compact{
  background:var(--paper2) !important;
  border-color:var(--line) !important;
  box-shadow:0 16px 38px var(--shadow) !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
}
body[data-theme="warm"] .player.is-compact{background:#f2e5d8 !important}
body[data-theme="sage"] .player.is-compact{background:#dfeee4 !important}
body[data-theme="sand"] .player.is-compact{background:#efe5d4 !important}
body[data-theme="pink"] .player.is-compact{background:#f5dfe8 !important}
body[data-theme="dynamic"] .player.is-compact{background:#4a4f55 !important}
body[data-theme="charcoal"] .player.is-compact{background:#414a4e !important}

/* Compact controls inherit the mood surface cleanly. */
.player.is-compact .compact-expand{
  background:color-mix(in srgb,var(--paper2) 78%,var(--accent) 8%) !important;
  border-color:color-mix(in srgb,var(--line) 78%,var(--accent) 12%) !important;
}
body[data-theme="dynamic"] .player.is-compact .compact-expand,
body[data-theme="charcoal"] .player.is-compact .compact-expand{
  background:rgba(255,255,255,.08) !important;
  border-color:rgba(255,255,255,.14) !important;
}

/* Keep M4O tile strongly tied to the active mood color. */
.player.is-compact .compact-brand{
  background:var(--accent) !important;
  border-color:color-mix(in srgb,var(--accent) 78%,rgba(0,0,0,.10)) !important;
}


/* =========================================================
   V267 — LIVE PLAYING INDICATOR
   Animated equalizer in compact mode + subtle active pulse.
   Animation runs only while the existing .player.playing state is active.
   ========================================================= */
.compact-track-title-row{
  min-width:0;
  display:flex;
  align-items:center;
  gap:7px;
}
.compact-track-title-row strong{min-width:0}
.compact-eq{
  flex:0 0 13px;
  height:13px;
  display:inline-flex;
  align-items:flex-end;
  justify-content:center;
  gap:2px;
}
.compact-eq i{
  display:block;
  width:2px;
  height:4px;
  border-radius:999px;
  background:var(--accent);
  opacity:.72;
}
.player.playing .compact-eq i{
  opacity:1;
  animation:m4oCompactEq .72s ease-in-out infinite;
}
.player.playing .compact-eq i:nth-child(2){animation-delay:.11s}
.player.playing .compact-eq i:nth-child(3){animation-delay:.22s}
@keyframes m4oCompactEq{
  0%,100%{height:4px}
  35%{height:12px}
  70%{height:7px}
}
.player.playing .compact-play{
  animation:m4oCompactPlayPulse 1.8s ease-in-out infinite;
}
@keyframes m4oCompactPlayPulse{
  0%,100%{box-shadow:0 8px 22px color-mix(in srgb,var(--accent) 28%,transparent)}
  50%{box-shadow:0 8px 30px color-mix(in srgb,var(--accent) 48%,transparent)}
}
@media (prefers-reduced-motion:reduce){
  .player.playing .compact-eq i,
  .player.playing .compact-play{
    animation:none !important;
  }
  .player.playing .compact-eq i:nth-child(1){height:7px}
  .player.playing .compact-eq i:nth-child(2){height:12px}
  .player.playing .compact-eq i:nth-child(3){height:9px}
}

/* =========================================================
   V268 — COMPACT TIMELINE + COUNTDOWN
   Volume is intentionally omitted from compact mode.
   ========================================================= */
.compact-volume{display:none !important}
.compact-timeline{
  flex:1 1 190px;
  min-width:150px;
  display:grid;
  grid-template-columns:minmax(90px,1fr) auto;
  align-items:center;
  gap:12px;
}
.compact-timeline .range{
  width:100%;
  min-width:90px;
}
.compact-remaining{
  min-width:48px;
  text-align:right;
  color:var(--muted);
  font-size:12px;
  font-weight:500;
  letter-spacing:.02em;
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
}
body[data-theme="dynamic"] .compact-remaining,
body[data-theme="charcoal"] .compact-remaining{
  color:color-mix(in srgb,var(--ink) 78%,var(--muted));
}
@media (max-width:760px){
  .compact-timeline{
    min-width:120px;
    flex-basis:150px;
    gap:7px;
  }
  .compact-remaining{font-size:11px;min-width:44px}
}
@media (max-width:560px){
  .compact-timeline{
    min-width:100px;
    flex:1 1 120px;
    grid-template-columns:minmax(64px,1fr) auto;
  }
  .compact-track{width:clamp(86px,24vw,116px)}
}


/* =========================================================
   V269 — COMPACT COUNTDOWN READABILITY
   Slightly larger, lighter countdown for clean readability.
   ========================================================= */
