.preview-badge{position:absolute;z-index:2;top:7px;left:10px;padding:5px 9px;border:1px solid #dfb85066;border-radius:999px;background:#0a0c10dd;color:var(--gold);font-size:9px;font-weight:700;letter-spacing:.08em}.transport-tools{display:flex;align-items:center;gap:6px}.mode-button,.transport-icon,.volume-button{display:grid;place-items:center;width:38px;height:38px;padding:7px!important}.mode-button svg,.transport-icon svg,.volume-button svg{width:25px;height:25px;fill:currentColor;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.mode-button svg path,.volume-button svg .sound{fill:none}.mode-button.active{color:var(--gold)!important;background:#dfb85016!important}.repeat-mark{font:700 9px "Segoe UI",sans-serif;fill:currentColor;stroke:none;text-anchor:middle}.background-audio{display:flex;align-items:center;gap:8px;margin:8px 0 0 auto;border:0;background:transparent;color:var(--muted);font-size:11px;cursor:pointer}.background-audio.active{color:var(--gold)}.background-dot{width:7px;height:7px;border-radius:50%;background:currentColor;box-shadow:0 0 8px currentColor}@media(max-width:760px){.background-audio{margin:10px auto 0}.mode-button,.transport-icon,.volume-button{width:42px;height:42px}.transport-tools{margin-top:8px}}.catalogue-empty .workspace{grid-template-columns:1fr}.catalogue-empty .library,.catalogue-empty .mobile-library-button{display:none}.catalogue-empty .empty-catalogue{grid-column:1/-1}[hidden]{display:none!important}.empty-catalogue{display:grid;place-items:center;min-height:calc(100vh - 120px);background:#07090d}.empty-catalogue img{width:min(220px,32vw);height:auto;opacity:.12;filter:saturate(.7)}:root{--bg:#07090d;--panel:#10141b;--panel2:#0b0e13;--line:#272c36;--text:#f1eef7;--muted:#aaa6b3;--purple:#ad78e5;--gold:#dfb850;--green:#6ccc7c;--sidebar:330px}*{box-sizing:border-box}html{color-scheme:dark;background:var(--bg)}body{margin:0;background:radial-gradient(circle at 70% -10%,#33294344,transparent 35%),var(--bg);color:var(--text);font-family:Inter,"Segoe UI",Arial,sans-serif;min-height:100vh}.page-shell{min-height:100vh;display:grid;grid-template-rows:76px 1fr 44px}.brand-bar{display:flex;align-items:center;justify-content:space-between;padding:8px 22px;border-bottom:1px solid var(--line);background:#07090deb}.brand{display:flex;align-items:center;gap:13px;text-decoration:none;color:var(--gold);letter-spacing:.08em}.brand img{width:55px;height:55px;object-fit:contain}.brand span{display:grid;gap:3px}.brand strong{font-family:Georgia,serif;font-size:18px}.brand small{font-size:11px;color:var(--purple)}.mobile-library-button{display:none}.workspace{display:grid;grid-template-columns:var(--sidebar) minmax(0,1fr);min-height:0}.library{border-right:1px solid var(--line);background:#0b0e13e8;padding:24px 18px;min-width:0}.library-heading{display:flex;align-items:flex-start;justify-content:space-between}.library h1{font-size:24px;margin:6px 0 16px}.eyebrow{color:var(--purple);font-size:11px;font-weight:700;letter-spacing:.07em}.track-count{display:grid;place-items:center;min-width:30px;height:30px;border:1px solid #3d3348;border-radius:20px;color:var(--gold)}.search-field{height:42px;display:flex;align-items:center;gap:9px;border:1px solid #353945;border-radius:7px;background:#090c10;padding:0 12px}.search-field input{border:0;outline:0;background:transparent;color:var(--text);width:100%;font-size:14px}.filter-row{display:flex;gap:7px;margin:13px 0}.filter,.transport button,.mobile-library-button{border:1px solid transparent;border-radius:7px;background:#121720;color:#c7c2cc;padding:8px 12px;cursor:pointer}.filter.active,.filter:hover,.transport button:hover{color:#16120a;background:linear-gradient(135deg,#f3d789,#c59638)}.track-list{display:grid;gap:8px;overflow:auto;max-height:calc(100vh - 270px);padding-right:4px}.track-card{display:grid;grid-template-columns:54px 1fr 25px;align-items:center;gap:11px;width:100%;padding:9px;border:1px solid transparent;border-radius:9px;background:#0d1117;color:var(--text);text-align:left;cursor:pointer}.track-card:hover,.track-card.active{background:#191a1f;border-color:#4b3b2a}.track-card.active{box-shadow:inset 3px 0 var(--purple)}.track-card img{width:54px;height:54px;border-radius:7px;object-fit:cover}.track-card strong,.track-card small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.track-card small{color:var(--muted);margin-top:4px;font-size:11px}.track-card .dots{font-size:19px;color:#c3bec8}.overview{position:relative;isolation:isolate;overflow:hidden;padding:25px 32px 32px;min-width:0}.hero-background{position:absolute;z-index:-2;inset:0 0 auto 0;height:590px;background:linear-gradient(90deg,#080a0eef 0%,#080a0eca 37%,#080a0e2e 76%),url('/assets/overview-dancer-fog.png') right top/cover no-repeat}.hero-background:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 60%,var(--bg) 100%)}.overview-heading{display:grid;gap:5px;margin-bottom:24px}.overview-label{width:max-content;border-bottom:2px solid var(--purple);color:var(--purple);padding-bottom:5px}.song-layout{display:grid;grid-template-columns:minmax(230px,320px) minmax(0,1fr);gap:38px;max-width:1100px}.cover{width:100%;aspect-ratio:1;border-radius:13px;object-fit:cover;border:1px solid #45414d;box-shadow:0 18px 45px #0008}.song-copy{padding-top:6px}.status-card{width:max-content;display:grid;grid-template-columns:auto auto;align-items:center;gap:5px 8px;border:1px solid #3a3d44;border-radius:8px;padding:9px 13px;background:#17191dbb;font-size:13px}.status-card small{grid-column:2;color:var(--muted)}.status-dot{width:10px;height:10px;border-radius:50%;background:var(--green);box-shadow:0 0 12px #6ccc7c88}.song-copy h2{font-size:clamp(34px,4vw,58px);font-weight:400;margin:24px 0 4px;line-height:1}.artist{font-size:24px;color:var(--purple);text-decoration:none}.metadata{display:flex;flex-wrap:wrap;gap:22px 34px;border-top:1px solid #34353c;margin:24px 0 0;padding-top:17px}.metadata div,.compact div{display:grid;gap:7px}.metadata dt,.compact dt{font-size:10px;color:var(--purple);font-weight:700}.metadata dd,.compact dd{margin:0;color:#eee}.platform-block{margin-top:23px}.platforms{display:flex;gap:12px;align-items:center;margin-top:10px;flex-wrap:wrap}.platforms a{display:grid;place-items:center;width:32px;height:32px;border-radius:8px;transition:.18s ease}.platforms a:hover{transform:translateY(-2px);background:#dfb8501b}.platforms img{width:28px;height:28px;object-fit:contain}.player{position:relative;margin-top:25px;max-width:1250px}#waveform{display:block;width:100%;height:130px;cursor:pointer}.timeline-labels{display:flex;justify-content:space-between;color:#c8c3cb;font-size:12px;margin-top:-15px;padding:0 10px}.seek,.volume input{accent-color:var(--gold);width:100%}.seek{margin:6px 0 0}.transport{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;margin-top:11px}.transport-tools{display:flex;gap:8px}.transport button{font-size:18px;padding:8px 11px;background:transparent}.main-controls{display:flex;align-items:center;gap:16px}.main-controls .play{display:grid;place-items:center;width:55px;height:55px;border-radius:50%;background:linear-gradient(145deg,#f1d17e,#c89332);color:#17120a;font-size:21px;box-shadow:0 8px 24px #d6a33f33}.volume{justify-self:end;display:flex;align-items:center;gap:8px;min-width:170px}.volume input{width:130px}.player-message{color:var(--muted);font-size:12px;text-align:center;margin:4px 0}.information-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-top:18px;max-width:1250px}.information-grid article{min-height:170px;border:1px solid #353945;border-radius:10px;background:#10141be8;padding:18px}.information-grid p{line-height:1.5;color:#d6d1d9}.muted{color:var(--muted)!important;font-size:12px}.compact{display:grid;gap:10px}.progress{display:flex;align-items:center;gap:14px;margin:17px 0}.progress strong{display:grid;place-items:center;width:70px;height:70px;border-radius:50%;border:7px solid var(--gold);font-size:20px}.milestones{list-style:none;padding:0;margin:0;display:grid;gap:7px}.milestones li:before{content:"✓";color:var(--gold);margin-right:8px}footer{display:flex;align-items:center;justify-content:space-between;padding:0 22px;border-top:1px solid var(--line);color:#9995a1;font-size:11px;background:#080a0e}*{scrollbar-color:#7951a1 #0a0d12;scrollbar-width:thin}button:focus-visible,input:focus-visible,a:focus-visible{outline:2px solid var(--gold);outline-offset:2px}@media(max-width:1050px){.information-grid{grid-template-columns:repeat(2,1fr)}.song-layout{grid-template-columns:240px 1fr}.metadata{gap:16px 24px}}@media(max-width:760px){.page-shell{grid-template-rows:68px 1fr auto}.brand-bar{padding:7px 14px}.brand img{width:48px;height:48px}.brand strong{font-size:15px}.mobile-library-button{display:block;background:#17131d;color:var(--gold);border-color:#594b2e}.workspace{display:block}.library{display:none;position:fixed;z-index:10;inset:68px 0 0 0;padding:20px}.library.open{display:block}.track-list{max-height:calc(100vh - 250px)}.overview{padding:20px 16px}.hero-background{height:730px;background-position:70% top}.song-layout{grid-template-columns:1fr;gap:22px}.cover{max-width:350px}.song-copy h2{font-size:38px}.metadata{display:grid;grid-template-columns:repeat(2,1fr)}.transport{grid-template-columns:1fr}.transport-tools,.volume{justify-self:center}.main-controls{grid-row:1;justify-content:center}.volume{margin-top:8px}.transport-tools{margin-top:6px}.information-grid{grid-template-columns:1fr}.information-grid article{min-height:auto}footer{gap:8px;flex-wrap:wrap;padding:10px 14px}}
:is(.transport button.active){color:#16120a;background:linear-gradient(135deg,#f3d789,#c59638)}.search-field:focus-within{border-color:#60487a;box-shadow:0 0 0 1px #342440 inset}.search-field input:focus-visible{outline:none}
.transport{grid-template-columns:1fr auto 1fr}.main-controls{grid-column:2}.volume{grid-column:3}.transport button.transport-icon,.transport button.volume-button{display:grid;place-items:center;background:transparent;color:#c9cbd0;border:0}.transport button.transport-icon:hover,.transport button.volume-button:hover{background:#202329;color:#f1f1f2}.transport-icon{width:48px;height:48px;border-radius:50%!important;padding:9px!important}.transport-icon svg{width:29px;height:29px;fill:currentColor}.main-controls .play{padding:0!important;color:#17120a}.main-controls .play svg{width:31px;height:31px;fill:currentColor}.pause-shape{display:none}.play.playing .play-shape{display:none}.play.playing .pause-shape{display:block}.volume-button{width:40px;height:40px;padding:7px!important;border-radius:50%!important}.volume-button svg{width:27px;height:27px}.volume-button .speaker{fill:currentColor}.volume-button .sound{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}.volume-button .mute-line{display:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}.volume-button.muted .sound{display:none}.volume-button.muted .mute-line{display:block}#waveform{image-rendering:auto}.seek,.volume input{height:18px;background:transparent}.seek::-webkit-slider-runnable-track,.volume input::-webkit-slider-runnable-track{height:2px;background:#5e626a}.seek::-webkit-slider-thumb,.volume input::-webkit-slider-thumb{appearance:none;width:12px;height:12px;border-radius:50%;background:#dfb850;margin-top:-5px;border:2px solid #8d6b25}.seek::-moz-range-track,.volume input::-moz-range-track{height:2px;background:#5e626a}.seek::-moz-range-thumb,.volume input::-moz-range-thumb{width:10px;height:10px;border-radius:50%;background:#dfb850;border:2px solid #8d6b25}

/* Mobilvisning – skal stå allersidst i filen */
@media(min-width:761px){
  :root{--sidebar:clamp(360px,22vw,430px)}
  html,body{overflow-x:hidden}
  .library,.track-list{overflow-x:hidden}
  .track-card{grid-template-columns:54px minmax(0,1fr) 25px}
  .track-card>span:nth-child(2){min-width:0}
  .overview{width:100%;max-width:none}
  .song-layout,.player,.information-grid{width:100%;max-width:none}
}

@media(max-width:760px){
  html,body{width:100%;max-width:100%;overflow-x:hidden}
  .workspace,.overview,.song-layout,.player{width:100%;max-width:100%;min-width:0}
  .library.open{display:block;position:fixed;top:68px;right:0;bottom:0;left:0;height:auto;max-height:none;overflow-x:hidden;overflow-y:scroll;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;padding-bottom:calc(120px + env(safe-area-inset-bottom))}
  .library.open .track-list{display:grid;height:auto;min-height:0;max-height:none;overflow:visible;padding-bottom:60px}
  .overview{padding:20px 16px}
  .cover{width:100%;max-width:350px;justify-self:center}
  #waveform,.seek{width:100%;max-width:100%}
  .transport{display:grid;grid-template-columns:1fr auto 1fr;grid-template-rows:auto auto;width:100%;gap:8px}
  .main-controls{grid-column:1/4;grid-row:1;justify-self:center}
  .transport-tools{grid-column:1;grid-row:2;justify-self:start;margin-top:8px}
  .volume{grid-column:3;grid-row:2;justify-self:end;min-width:0;margin-top:8px}
  .volume input{display:none}
  .volume-button{display:grid;width:44px;height:44px}
}

.artist-contact {
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid #353945;
}

.artist-contact-buttons {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 8px !important;
  margin: 0;
}

.artist-contact-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid #765c26;
  border-radius: 7px;
  background: linear-gradient(135deg, #f3d789, #c59638);
  color: #16120a;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.artist-contact-button:hover {
  background: linear-gradient(135deg, #ffe49a, #d3a241);
  transform: translateY(-1px);
}

/* Dynamic project progress supplied by data/tracks.json */
.progress strong {
  --project-progress: 0;
  border: 7px solid transparent;
  background:
    linear-gradient(var(--panel), var(--panel)) padding-box,
    conic-gradient(
      var(--gold) calc(var(--project-progress) * 1%),
      #30343b 0
    ) border-box;
}

.milestones li::before {
  content: none;
}

.milestones li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.milestones li span {
  width: 14px;
  color: var(--muted);
}

.milestones li.completed span {
  color: var(--gold);
}

.milestones li.pending {
  color: var(--muted);
}

/* Keep the divider below title/artist aligned with the metadata content. */
.metadata {
  width: max-content;
  max-width: 100%;
}

@media(max-width:760px) {
  .metadata {
    width: 100%;
  }
}
/* Melody-responsive pentagon visualizer */
#waveform{height:280px;border-radius:10px;background:transparent;margin-bottom:22px;touch-action:pan-y}
.timeline-labels{margin-top:0;color:var(--gold);padding:0 2px}
.main-controls .transport-icon{color:var(--gold)!important}
.seek::-webkit-slider-runnable-track{background:#dfb85080}
.seek::-moz-range-track{background:#dfb85080}
@media(max-width:760px){#waveform{height:230px;margin-bottom:14px}}
.main-controls .play{background:#080e17;border:2px solid var(--gold);color:var(--gold);box-shadow:0 0 20px #dfb85018}

/* Approved reference player; explicit selectors include hover and focus. */
.player{background:transparent;border-radius:12px;padding:18px 18px 22px}
.player #waveform{height:auto;aspect-ratio:3.88;min-height:210px;border-radius:0;margin-bottom:16px;background:transparent}
.player .transport .main-controls .play,.player .transport .main-controls .play:hover,.player .transport .main-controls .play:focus{background:transparent;color:var(--gold);border:2px solid var(--gold);box-shadow:0 0 16px #dfb8500d;width:58px;height:58px}
.player .transport .main-controls .transport-icon{color:var(--gold);background:transparent}
.player .seek{appearance:none;-webkit-appearance:none;height:18px;border:0;outline:none;margin-top:0}
.player .seek::-webkit-slider-runnable-track{height:2px;background:#d6b574;border:0;border-radius:0}
.player .seek::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:14px;height:14px;margin-top:-6px;border:0;border-radius:50%;background:#f0cb82}
.player .seek::-moz-range-track{height:2px;background:#d6b574;border:0}
.player .seek::-moz-range-progress{height:2px;background:#d6b574}
.player .seek::-moz-range-thumb{width:14px;height:14px;border:0;background:#f0cb82}
.player .timeline-labels{color:#d6b574;font-family:Georgia,serif;font-size:13px}
@media(max-width:760px){.player{padding:10px 8px 16px}.player #waveform{min-height:0;aspect-ratio:3.88}.player .transport .main-controls .play{width:52px;height:52px}}

.player .timeline-labels{margin-top:7px}
.player .transport{margin-top:18px}

/* The control panel begins at the seek track; the visualizer stays transparent. */
.player .player-controls{margin:0 -18px -22px;padding:0 18px 22px;border-radius:0 0 12px 12px;background:linear-gradient(to bottom,transparent 0,transparent 8px,#060e17 8px,#060e17 100%)}
@media(max-width:760px){.player .player-controls{margin:0 -8px -16px;padding:0 8px 16px}}
