/* =========================================================================
   Lura — musikk.  Mørkt neon-tema som fargar seg etter albumomslaget.
   Fargane under blir overskrivne av JS frå palettane i catalog.json.
   ========================================================================= */

/* Registrerte custom properties kan animerast — det gjev mjuk overgang
   mellom albumtema i staden for eit hardt byte. */
@property --accent  { syntax: '<color>'; inherits: true; initial-value: #7c5cff; }
@property --accent2 { syntax: '<color>'; inherits: true; initial-value: #ff4d9d; }
@property --glow    { syntax: '<color>'; inherits: true; initial-value: #a78bfa; }
@property --deep    { syntax: '<color>'; inherits: true; initial-value: #0a0616; }
@property --deep2   { syntax: '<color>'; inherits: true; initial-value: #171033; }
@property --tint    { syntax: '<color>'; inherits: true; initial-value: #e6dcff; }

:root {
  --accent:  #7c5cff;
  --accent2: #ff4d9d;
  --glow:    #a78bfa;
  --deep:    #0a0616;
  --deep2:   #171033;
  --tint:    #e6dcff;

  --ink:     #f4f1ff;
  --muted:   rgba(244, 241, 255, .62);
  --faint:   rgba(244, 241, 255, .38);
  --line:    rgba(255, 255, 255, .10);
  --panel:   rgba(255, 255, 255, .045);

  --player-h: 84px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --shell: min(1180px, 100% - 2.5rem);

  transition: --accent .9s var(--ease), --accent2 .9s var(--ease),
              --glow .9s var(--ease), --deep .9s var(--ease),
              --deep2 .9s var(--ease), --tint .9s var(--ease);
}

* { box-sizing: border-box; }

/* Klassene under set display, som elles ville slått ut [hidden]. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  padding-bottom: calc(var(--player-h) + env(safe-area-inset-bottom));
  font: 400 16px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI",
        Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: #06050d;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.no-player { padding-bottom: 0; }

h1, h2, h3 { line-height: 1.08; margin: 0; letter-spacing: -.02em; }

a { color: inherit; }

img { display: block; max-width: 100%; }

button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }

svg { width: 100%; height: 100%; fill: none; stroke: currentColor;
      stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.skip {
  position: fixed; top: -100px; left: 1rem; z-index: 200;
  padding: .7rem 1.1rem; border-radius: 10px;
  background: var(--accent); color: #fff; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 1rem; }

:focus-visible {
  outline: 2px solid var(--glow);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ============================================================ bakgrunn-fx */

#fx {
  position: fixed; inset: 0; z-index: -3;
  width: 100%; height: 100%;
  opacity: .85;
}

.aurora {
  position: fixed; inset: -30%; z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(38% 44% at 18% 22%, color-mix(in oklab, var(--accent) 55%, transparent), transparent 68%),
    radial-gradient(34% 40% at 82% 30%, color-mix(in oklab, var(--accent2) 48%, transparent), transparent 66%),
    radial-gradient(46% 50% at 50% 96%, color-mix(in oklab, var(--deep2) 90%, transparent), transparent 70%);
  filter: blur(48px) saturate(135%);
  opacity: .5;
  animation: drift 26s ease-in-out infinite alternate;
  transition: opacity .8s var(--ease);
}

body.playing .aurora { opacity: .68; }

@keyframes drift {
  0%   { transform: translate3d(-2%, -1%, 0) scale(1);    }
  50%  { transform: translate3d(3%, 2%, 0)   scale(1.08); }
  100% { transform: translate3d(-1%, 3%, 0)  scale(1.03); }
}

/* Fin filmkornstruktur, held flatene frå å sjå «plastikk» ut. */
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: .5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.34'/%3E%3C/svg%3E");
}

/* ================================================================ topbar */

.topbar {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: var(--shell); margin: 0 auto;
  padding: 1.15rem 0 .95rem;
}

.topbar::before {
  content: ''; position: absolute; inset: -1px -50vw 0;
  background: linear-gradient(#06050d f2, #06050d cc 55%, transparent);
  background: linear-gradient(rgba(6,5,13,.92), rgba(6,5,13,.72) 55%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: -1;
  mask-image: linear-gradient(#000 62%, transparent);
}

.brand {
  display: inline-flex; align-items: center; gap: .7rem;
  text-decoration: none; letter-spacing: .34em; font-weight: 700; font-size: 15px;
}

.brand-text {
  background: linear-gradient(96deg, var(--tint), var(--accent2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 26px color-mix(in oklab, var(--glow) 45%, transparent);
}

/* Fire søyler som «pustar» — står stille til noko spelar. */
.brand-mark { display: flex; align-items: flex-end; gap: 3px; height: 20px; }
.brand-mark span {
  width: 3px; height: 30%; border-radius: 2px;
  background: linear-gradient(var(--accent2), var(--accent));
  box-shadow: 0 0 10px color-mix(in oklab, var(--glow) 70%, transparent);
}
body.playing .brand-mark span { animation: eq .9s ease-in-out infinite alternate; }
.brand-mark span:nth-child(2) { animation-delay: .18s; height: 62%; }
.brand-mark span:nth-child(3) { animation-delay: .36s; height: 44%; }
.brand-mark span:nth-child(4) { animation-delay: .54s; height: 78%; }
@keyframes eq { from { height: 22%; } to { height: 100%; } }

.topnav { display: flex; align-items: center; gap: .35rem; font-size: 14.5px; }
.topnav a {
  padding: .5rem .85rem; border-radius: 999px;
  color: var(--muted); text-decoration: none;
  transition: color .2s, background .2s;
}
.topnav a:hover { color: var(--ink); background: var(--panel); }
.topnav .home-link {
  border: 1px solid var(--line);
  color: var(--tint);
}
.topnav .home-link:hover { border-color: var(--accent); }

/* ================================================================= views */

#view { width: var(--shell); margin: 0 auto; outline: none; }

.view-enter { animation: viewIn .5s var(--ease) both; }
@keyframes viewIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ================================================================== hero */

.hero {
  position: relative;
  display: grid; align-items: center; gap: 2rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  padding: clamp(2.5rem, 8vw, 5rem) 0 clamp(2rem, 5vw, 3.5rem);
}

/* Farga tekst må ha ein boks på breidda av bokstavane, elles ligg heile
   fargeovergangen utanfor glyfane og teksten blir berre kvit. */
.hero h1 {
  width: fit-content;
  font-size: clamp(3.2rem, 13vw, 8.5rem);
  font-weight: 800; letter-spacing: -.045em;
  background: linear-gradient(103deg, #fff 4%, var(--tint) 30%, var(--accent2) 72%, var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 42px color-mix(in oklab, var(--glow) 42%, transparent));
}

/* Vifte av omslag som fyller høgresida av toppen. */
.hero-deck { position: relative; aspect-ratio: 1; perspective: 1000px; }
.hero-deck img {
  /* height:auto er naudsynt: eit height-attributt på <img> er ein
     presentasjonshint som elles overstyrer aspect-ratio. */
  position: absolute; width: 58%; height: auto; aspect-ratio: 1; object-fit: cover;
  border-radius: 16px; border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 30px 60px -24px rgba(0,0,0,.9);
  animation: float 9s ease-in-out infinite;
}
.hero-deck img:nth-child(1) {
  left: 2%;  top: 26%; transform: rotate(-13deg);
  filter: brightness(.8) saturate(1.1);
}
.hero-deck img:nth-child(2) {
  right: 3%; top: 8%;  transform: rotate(10deg);
  filter: brightness(.88) saturate(1.1); animation-delay: -3s;
}
.hero-deck img:nth-child(3) {
  left: 21%; bottom: 6%; z-index: 2; width: 62%;
  transform: rotate(-2deg); animation-delay: -6s;
  box-shadow: 0 34px 70px -20px color-mix(in oklab, var(--glow) 70%, transparent);
}
@keyframes float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -14px; }
}

.hero .lede {
  max-width: 46ch; margin: 1.4rem 0 0;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--muted);
}

.hero-stats {
  display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem;
  list-style: none; padding: 0;
}
.hero-stats li {
  padding: .45rem 1rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--panel);
  font-size: 13.5px; color: var(--tint); letter-spacing: .02em;
}
.hero-stats b { color: var(--ink); font-weight: 700; }

.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* ================================================================ knappar */

.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .85rem 1.5rem; border-radius: 999px;
  font-weight: 650; font-size: 15px; letter-spacing: .01em;
  text-decoration: none; white-space: nowrap;
  border: 1px solid var(--line); background: var(--panel); color: var(--ink);
  transition: transform .2s var(--ease), background .2s, border-color .2s, box-shadow .3s;
}
.btn:hover { transform: translateY(-2px); border-color: color-mix(in oklab, var(--accent) 60%, transparent); }
.btn svg { width: 18px; height: 18px; }

.btn-primary {
  border-color: transparent; color: #0b0714; font-weight: 750;
  background: linear-gradient(100deg, var(--tint), var(--accent2));
  box-shadow: 0 10px 34px -10px color-mix(in oklab, var(--glow) 85%, transparent);
}
.btn-primary svg { stroke: none; fill: currentColor; }
.btn-primary:hover { box-shadow: 0 16px 44px -10px color-mix(in oklab, var(--glow) 95%, transparent); }

/* ============================================================== albumrutenett */

.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; margin: 3.5rem 0 1.5rem;
}
.section-head h2 { font-size: clamp(1.3rem, 3vw, 1.75rem); font-weight: 700; }
.section-head p { margin: 0; color: var(--faint); font-size: 14px; }

.grid {
  display: grid; gap: clamp(1rem, 2.4vw, 1.6rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 258px), 1fr));
}

.card {
  --c: var(--accent);
  --c2: var(--accent2);
  position: relative; display: block;
  border-radius: 20px; padding: .8rem .8rem 1.15rem;
  text-decoration: none; isolation: isolate;
  border: 1px solid var(--line);
  background: linear-gradient(168deg,
              color-mix(in oklab, var(--c) 15%, rgba(255,255,255,.03)),
              rgba(255,255,255,.02));
  transform-style: preserve-3d;
  transition: transform .35s var(--ease), border-color .3s, box-shadow .45s;
  animation: cardIn .6s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 55ms);
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(26px) scale(.97); }
  to   { opacity: 1; transform: none; }
}

.card:hover, .card:focus-visible {
  border-color: color-mix(in oklab, var(--c) 65%, transparent);
  box-shadow: 0 26px 60px -22px color-mix(in oklab, var(--c) 80%, transparent),
              0 0 0 1px color-mix(in oklab, var(--c) 28%, transparent) inset;
}

/* Glød som følgjer musepeikaren over kortet. */
.card::after {
  content: ''; position: absolute; inset: 0; z-index: 3;
  border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%),
              color-mix(in oklab, var(--c) 30%, transparent), transparent 72%);
  transition: opacity .3s;
}
.card:hover::after { opacity: 1; }

.card-art {
  position: relative; aspect-ratio: 1; border-radius: 14px;
  overflow: hidden; background: #100c1c;
  box-shadow: 0 14px 30px -14px rgba(0,0,0,.9);
}
.card-art img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease), filter .4s;
}
.card:hover .card-art img { transform: scale(1.07); filter: saturate(1.15); }

.card-art::before {                        /* skinnstripe over omslaget */
  content: ''; position: absolute; inset: 0; z-index: 2; opacity: 0;
  background: linear-gradient(112deg, transparent 38%,
              rgba(255,255,255,.26) 48%, transparent 60%);
  transform: translateX(-100%);
  transition: opacity .3s;
}
.card:hover .card-art::before { opacity: 1; animation: sheen 1.1s var(--ease); }
@keyframes sheen { to { transform: translateX(100%); } }

.card-play {
  position: absolute; right: .7rem; bottom: .7rem; z-index: 3;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--c2), var(--c));
  color: #0b0714;
  box-shadow: 0 10px 26px -6px color-mix(in oklab, var(--c) 90%, transparent);
  transform: translateY(10px) scale(.85); opacity: 0;
  transition: transform .35s var(--ease), opacity .25s;
}
.card-play svg { width: 19px; height: 19px; fill: currentColor; stroke: none;
                 margin-left: 2px; }
.card:hover .card-play, .card:focus-visible .card-play { transform: none; opacity: 1; }

.card-body { padding: 1rem .45rem 0; }
.card-body h3 { font-size: 1.2rem; font-weight: 700; }
.card-meta {
  display: flex; align-items: center; gap: .5rem;
  margin-top: .5rem; font-size: 13px; color: var(--faint);
}
.badge {
  padding: .18rem .55rem; border-radius: 6px;
  font-size: 10.5px; font-weight: 750; letter-spacing: .13em; text-transform: uppercase;
  color: color-mix(in oklab, var(--c) 70%, #fff);
  background: color-mix(in oklab, var(--c) 20%, transparent);
  border: 1px solid color-mix(in oklab, var(--c) 35%, transparent);
}
.card-tagline {
  margin: .6rem 0 0; font-size: 13.5px; line-height: 1.5; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}

.flag-missing {
  position: absolute; top: .75rem; left: .75rem; z-index: 4;
  padding: .2rem .5rem; border-radius: 6px;
  font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(0,0,0,.62); color: #ffd9a0; border: 1px solid rgba(255,190,110,.4);
  backdrop-filter: blur(6px);
}

/* =========================================================== album-visning */

.album-hero { position: relative; padding: 2rem 0 2.5rem; }

.album-back {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: 14px; color: var(--muted); text-decoration: none; margin-bottom: 2rem;
  transition: color .2s, gap .2s;
}
.album-back:hover { color: var(--ink); gap: .7rem; }
.album-back svg { width: 16px; height: 16px; }

/* Stort, uskarpt omslag bak toppen av albumsida. */
.album-backdrop {
  position: absolute; inset: -22% -50vw auto; height: 128%; z-index: -1;
  pointer-events: none;
  background-size: cover; background-position: center;
  filter: blur(72px) saturate(150%); opacity: .34;
  mask-image: linear-gradient(#000 8%, transparent 92%);
}

.album-top {
  display: grid; gap: clamp(1.6rem, 4vw, 3rem);
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  align-items: end;
}

.album-cover {
  position: relative; border-radius: 18px; overflow: hidden;
  aspect-ratio: 1; background: #100c1c;
  box-shadow: 0 34px 80px -28px color-mix(in oklab, var(--glow) 75%, transparent),
              0 0 0 1px var(--line);
  transform-style: preserve-3d;
  transition: transform .4s var(--ease);
}
.album-cover img { width: 100%; height: 100%; object-fit: cover; }

.album-kicker {
  display: flex; align-items: center; gap: .6rem; margin: 0 0 .9rem;
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--faint);
}

.album-title {
  width: fit-content; max-width: 100%;
  font-size: clamp(2.4rem, 7.5vw, 5rem); font-weight: 800; letter-spacing: -.04em;
  background: linear-gradient(100deg, #fff, var(--tint) 46%, var(--accent2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 34px color-mix(in oklab, var(--glow) 40%, transparent));
}

.album-tagline { margin: 1rem 0 0; font-size: clamp(1rem, 2vw, 1.2rem); color: var(--tint); }
.album-blurb { margin: .8rem 0 0; max-width: 56ch; color: var(--muted); font-size: 15px; }
.album-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.8rem; }

.notice {
  display: flex; align-items: flex-start; gap: .7rem;
  margin: 2rem 0 0; padding: .9rem 1.1rem; border-radius: 14px;
  font-size: 13.5px; line-height: 1.55; color: #ffe2b8;
  background: rgba(255, 176, 80, .08); border: 1px solid rgba(255, 176, 80, .26);
}
.notice svg { width: 18px; height: 18px; flex: none; margin-top: .15rem; color: #ffbe70; }

/* =============================================================== sporliste */

.tracks { margin: 3rem 0 4rem; }

.track {
  --c: var(--accent);
  display: grid; align-items: center; gap: 1rem;
  grid-template-columns: 34px 52px minmax(0, 1fr) auto auto;
  width: 100%; padding: .6rem .8rem; border-radius: 14px;
  text-align: left; position: relative;
  border: 1px solid transparent;
  transition: background .22s, border-color .22s, transform .22s var(--ease);
  animation: cardIn .5s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 40ms);
}
.track:hover { background: var(--panel); border-color: var(--line); }
.track.current {
  background: color-mix(in oklab, var(--c) 13%, transparent);
  border-color: color-mix(in oklab, var(--c) 40%, transparent);
}

.track-n {
  font-variant-numeric: tabular-nums; font-size: 14px;
  color: var(--faint); text-align: center;
}
.track.current .track-n { color: var(--c); }

.track-thumb {
  width: 52px; height: 52px; border-radius: 10px; overflow: hidden;
  background: #100c1c; position: relative; flex: none;
}
.track-thumb img { width: 100%; height: 100%; object-fit: cover; }
.track-thumb::after {
  content: ''; position: absolute; inset: 0; opacity: 0;
  background: rgba(6,5,13,.6) center/18px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M7 4.5 20 12 7 19.5z'/%3E%3C/svg%3E");
  transition: opacity .2s;
}
.track:hover .track-thumb::after { opacity: 1; }

/* <button> arvar ikkje text-align frå .track — må settast eksplisitt. */
.track-main { min-width: 0; text-align: left; }
.track-title {
  font-weight: 600; font-size: 15.5px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.track.current .track-title { color: color-mix(in oklab, var(--c) 45%, #fff); }
.track-note { font-size: 12.5px; color: var(--faint); margin-top: .15rem; }

.track-dur { font-variant-numeric: tabular-nums; font-size: 13.5px; color: var(--faint); }

.track-lyr {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  color: var(--faint); border: 1px solid transparent;
  transition: color .2s, background .2s, border-color .2s;
}
.track-lyr svg { width: 16px; height: 16px; }
.track-lyr:hover { color: var(--ink); background: var(--panel); border-color: var(--line); }
.track-lyr[aria-expanded="true"] { color: var(--c); border-color: color-mix(in oklab, var(--c) 45%, transparent); }
.track-lyr.hidden { visibility: hidden; }

/* Lita animert kurve som viser kva spor som går no. */
.track-eq { display: none; gap: 2px; align-items: flex-end; height: 15px; }
.track.current .track-eq { display: flex; }
.track.current .track-num { display: none; }
.track-eq i {
  width: 2.5px; border-radius: 2px; background: var(--c); height: 40%;
}
body.playing .track.current .track-eq i { animation: eq .8s ease-in-out infinite alternate; }
.track-eq i:nth-child(2) { animation-delay: .2s; height: 80%; }
.track-eq i:nth-child(3) { animation-delay: .4s; height: 55%; }

.lyrics {
  grid-column: 1 / -1; margin: .35rem 0 .9rem;
  padding: 1.1rem 1.3rem; border-radius: 12px;
  background: rgba(0,0,0,.32); border: 1px solid var(--line);
  font-size: 14.5px; line-height: 1.85; color: var(--tint);
  white-space: pre-wrap; max-height: 340px; overflow-y: auto;
}

/* ================================================================= spelar */

.player {
  /* Over «no spelar»-laget (120), slik at kontrollane er tilgjengelege der òg. */
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 140;
  height: calc(var(--player-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(9, 7, 18, .82);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border-top: 1px solid color-mix(in oklab, var(--accent) 26%, var(--line));
  animation: playerIn .55s var(--ease) both;
}
@keyframes playerIn { from { transform: translateY(100%); } to { transform: none; } }

.player-viz {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: .5; pointer-events: none;
  mask-image: linear-gradient(transparent, #000 78%);
}

.player-inner {
  position: relative; display: grid; align-items: center;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.4fr) auto;
  gap: clamp(.75rem, 2.5vw, 2rem);
  width: var(--shell); height: var(--player-h); margin: 0 auto;
}

.np-open {
  display: flex; align-items: center; gap: .85rem; min-width: 0;
  padding: .35rem; border-radius: 12px; text-align: left;
  transition: background .2s;
}
.np-open:hover { background: var(--panel); }

.disc {
  position: relative; width: 56px; height: 56px; flex: none;
  border-radius: 10px; overflow: hidden; background: #100c1c;
  box-shadow: 0 6px 18px -6px color-mix(in oklab, var(--glow) 80%, transparent);
}
.disc img { width: 100%; height: 100%; object-fit: cover; }

.np-meta { display: grid; min-width: 0; }
.np-title {
  font-weight: 650; font-size: 14.5px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.np-album { font-size: 12.5px; color: var(--faint);
            overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.controls { display: flex; align-items: center; gap: .3rem; }

.ctl {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  color: var(--muted); transition: color .2s, background .2s, transform .2s var(--ease);
}
.ctl svg { width: 20px; height: 20px; }
.ctl:hover { color: var(--ink); background: var(--panel); }
.ctl:active { transform: scale(.92); }
.ctl.small { width: 34px; height: 34px; }
.ctl.small svg { width: 17px; height: 17px; }
.ctl[aria-pressed="true"] { color: var(--accent); }

.ctl-play {
  width: 48px; height: 48px; color: #0b0714;
  background: linear-gradient(140deg, var(--tint), var(--accent2));
  box-shadow: 0 8px 26px -8px color-mix(in oklab, var(--glow) 90%, transparent);
}
.ctl-play:hover { color: #0b0714; transform: scale(1.06); }
.ctl-play svg { width: 20px; height: 20px; fill: currentColor; stroke: none; }
.ctl-play .i-play { margin-left: 2px; }
.ctl-play .i-pause, body.playing .ctl-play .i-play { display: none; }
body.playing .ctl-play .i-pause { display: block; }

.seek { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.t { font-size: 12px; font-variant-numeric: tabular-nums; color: var(--faint);
     min-width: 34px; }
.t:last-child { text-align: right; }

.bar {
  position: relative; flex: 1; height: 20px; cursor: pointer;
  display: flex; align-items: center; touch-action: none;
}
.bar::before {
  content: ''; position: absolute; left: 0; right: 0; height: 4px;
  border-radius: 4px; background: rgba(255,255,255,.14);
}
.bar-fill {
  position: relative; height: 4px; border-radius: 4px; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  box-shadow: 0 0 14px color-mix(in oklab, var(--glow) 65%, transparent);
}
.bar-fill i {
  position: absolute; right: 0; top: 50%; width: 11px; height: 11px;
  border-radius: 50%; background: #fff; transform: translate(50%, -50%) scale(0);
  box-shadow: 0 0 12px color-mix(in oklab, var(--glow) 90%, transparent);
  transition: transform .2s var(--ease);
}
.bar:hover .bar-fill i, .bar:focus-visible .bar-fill i { transform: translate(50%, -50%) scale(1); }

.extras { display: flex; align-items: center; gap: .3rem; }

.vol {
  width: 82px; height: 20px; -webkit-appearance: none; appearance: none;
  background: none; cursor: pointer;
}
.vol::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: rgba(255,255,255,.16); }
.vol::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(255,255,255,.16); }
.vol::-webkit-slider-thumb {
  -webkit-appearance: none; width: 12px; height: 12px; margin-top: -4px;
  border-radius: 50%; background: var(--tint);
  box-shadow: 0 0 10px color-mix(in oklab, var(--glow) 80%, transparent);
}
.vol::-moz-range-thumb {
  width: 12px; height: 12px; border: 0; border-radius: 50%; background: var(--tint);
}

.i-mute, body.muted .i-vol { display: none; }
body.muted .i-mute { display: block; }

/* ==================================================== full skjerm «no spelar» */

.np {
  position: fixed; inset: 0; z-index: 120;
  display: grid; place-items: center;
  padding: clamp(1.2rem, 4vw, 3rem);
  padding-bottom: calc(var(--player-h) + clamp(1.2rem, 4vw, 3rem));
  background: rgba(6, 5, 13, .72);
  backdrop-filter: blur(30px) saturate(140%);
  -webkit-backdrop-filter: blur(30px) saturate(140%);
  animation: npIn .45s var(--ease) both;
}
@keyframes npIn { from { opacity: 0; } to { opacity: 1; } }
.np.closing { animation: npOut .3s var(--ease) both; }
@keyframes npOut { to { opacity: 0; } }

.np-bg {
  position: absolute; inset: 0; z-index: -1;
  background-size: cover; background-position: center;
  filter: blur(80px) saturate(160%); opacity: .38;
  transform: scale(1.2);
}

.np-close {
  position: absolute; top: clamp(1rem, 3vw, 2rem); right: clamp(1rem, 3vw, 2rem);
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  color: var(--muted); border: 1px solid var(--line); background: rgba(0,0,0,.3);
  transition: color .2s, transform .2s var(--ease);
}
.np-close:hover { color: var(--ink); transform: rotate(90deg); }
.np-close svg { width: 20px; height: 20px; }

.np-stage {
  display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  width: min(1040px, 100%);
  animation: cardIn .55s var(--ease) both;
}

.np-cover {
  position: relative; aspect-ratio: 1; border-radius: 22px; overflow: hidden;
  box-shadow: 0 40px 90px -30px color-mix(in oklab, var(--glow) 85%, transparent);
}
.np-cover img { width: 100%; height: 100%; object-fit: cover; }
.np-viz {
  position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%;
  pointer-events: none; mix-blend-mode: screen; opacity: .85;
}

.np-kicker {
  margin: 0 0 .7rem; font-size: 12px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--accent);
}
.np-info h2 {
  font-size: clamp(1.9rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -.035em;
  background: linear-gradient(100deg, #fff, var(--tint) 50%, var(--accent2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.np-sub { margin: .6rem 0 0; color: var(--muted); font-size: 15px; }

.np-lyrics {
  margin-top: 1.8rem; padding: 1.2rem 1.4rem; border-radius: 16px;
  max-height: min(38vh, 340px); overflow-y: auto;
  background: rgba(0,0,0,.34); border: 1px solid var(--line);
  white-space: pre-wrap; font-size: 14.5px; line-height: 1.85; color: var(--tint);
}

/* ============================================================== rullefelt */

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  border-radius: 10px; border: 3px solid transparent; background-clip: content-box;
  background-color: color-mix(in oklab, var(--accent) 45%, rgba(255,255,255,.12));
}

/* ================================================================= footer */

.foot {
  width: var(--shell); margin: 5rem auto 3rem; padding-top: 2rem;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: 13.5px; color: var(--faint);
}
.foot a { color: var(--tint); text-decoration: none; }
.foot a:hover { text-decoration: underline; }

/* =============================================================== responsiv */

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-deck { display: none; }
  .album-top { grid-template-columns: 1fr; align-items: start; }
  .album-cover { max-width: 280px; }
  .np-stage { grid-template-columns: 1fr; text-align: center; }
  .np-cover { max-width: 300px; margin: 0 auto; }
  .np-lyrics { text-align: left; }
}

@media (max-width: 760px) {
  :root { --player-h: 76px; --shell: min(1180px, 100% - 1.6rem); }
  .topnav .home-link { display: none; }
  .player-inner { grid-template-columns: minmax(0, 1fr) auto; gap: .6rem; }
  .seek {
    position: absolute; top: -1px; left: 0; right: 0; gap: 0;
  }
  .seek .t { display: none; }
  .bar { height: 3px; }
  .bar::before { height: 3px; }
  .bar-fill { height: 3px; border-radius: 0; }
  .extras { display: none; }
  .track { grid-template-columns: 26px 46px minmax(0, 1fr) auto; gap: .7rem; }
  .track-dur { display: none; }
  .track-thumb { width: 46px; height: 46px; }
}

@media (max-width: 420px) {
  .controls .ctl:not(.ctl-play) { display: none; }
}

/* ======================================================= redusert rørsle */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .aurora { animation: none; }
  #fx { display: none; }
}
