/* ═══════════════════════════════════════════════
   ProfilVerse — Design System
   ═══════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════
   SHOP — produktbutikk (SoundCore Studio + mer)
   ═══════════════════════════════════════════════ */
.shop-page { max-width: 900px; margin: 0 auto; padding: 1.5rem 1rem 4rem; }
.shop-page h1 { display: flex; align-items: center; gap: .5rem; }
.shop-sub { color: var(--text2, #9aa4b2); margin: .25rem 0 1.25rem; }
.shop-launch-banner {
  background: linear-gradient(90deg, rgba(124,58,237,.25), rgba(236,72,153,.18));
  border: 1px solid rgba(124,58,237,.5); border-radius: 12px;
  padding: .8rem 1rem; margin-bottom: 1.25rem;
}
.shop-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.shop-card {
  position: relative; background: var(--surface, #161622);
  border: 1px solid rgba(255,255,255,.08); border-radius: 16px;
  padding: 1.4rem; display: flex; flex-direction: column;
}
.shop-card-soon { opacity: .72; }
.shop-card-icon { font-size: 1.8rem; color: #a78bfa; margin-bottom: .4rem; }
.shop-card h2 { margin: .1rem 0 .4rem; font-size: 1.15rem; }
.shop-card p { color: var(--text2, #9aa4b2); font-size: .9rem; flex: 1; }
.shop-card-price { font-size: 1.5rem; font-weight: 800; margin: .6rem 0 .9rem; }
.shop-card-price span { font-size: .85rem; font-weight: 500; color: var(--text2, #9aa4b2); }
.shop-badge {
  position: absolute; top: 1rem; right: 1rem; font-size: .72rem; font-weight: 700;
  padding: .25rem .55rem; border-radius: 999px; background: rgba(255,255,255,.1);
}
.shop-badge-free { background: linear-gradient(90deg, #7c3aed, #ec4899); color: #fff; }
.shop-badge-active { background: #16a34a; color: #fff; }

/* Abonnementsplaner i Shop */
.shop-plan { transition: border-color .15s ease, transform .15s ease; }
.shop-plan:hover { border-color: rgba(167,139,250,.45); transform: translateY(-2px); }
.shop-plan--best { border-color: rgba(124,58,237,.6); box-shadow: 0 0 0 1px rgba(124,58,237,.35), 0 8px 30px rgba(124,58,237,.18); }
.shop-plan-period { font-size: .68rem; color: var(--text3, #6b7280); text-transform: uppercase; letter-spacing: .05em; margin-bottom: .25rem; }
.shop-plan .shop-card-price { margin: .15rem 0 .35rem; }
.shop-plan-per { font-size: .82rem; color: var(--text2, #9aa4b2); margin-bottom: 1rem; }
.shop-save { color: #4ade80; }

/* Månadens tilbod — roterande kampanje-banner (display only, endrar ikkje pris) */
.shop-offer-banner {
  display: flex; align-items: center; gap: .9rem;
  background: linear-gradient(90deg, rgba(167,139,250,.22), rgba(236,72,153,.14));
  border: 1px solid rgba(167,139,250,.45); border-radius: 14px;
  padding: .85rem 1.1rem; margin-bottom: 1.25rem;
}
.shop-offer-banner-icon {
  flex: 0 0 auto; display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 12px;
  background: rgba(167,139,250,.18); color: #c4b5fd;
}
.shop-offer-banner-icon svg { width: 22px; height: 22px; }
.shop-offer-banner-text { display: flex; flex-direction: column; gap: .15rem; }
.shop-offer-banner-text strong { font-size: .98rem; }
.shop-offer-banner-text span { font-size: .85rem; color: var(--text2, #9aa4b2); }
/* Juletilbod-variant (desember) — varmare raud/grøn jule-tone */
.shop-offer-banner--holiday {
  background: linear-gradient(90deg, rgba(220,38,38,.20), rgba(22,163,74,.16));
  border-color: rgba(74,222,128,.5);
}
.shop-offer-banner--holiday .shop-offer-banner-icon { background: rgba(74,222,128,.18); color: #86efac; }

/* Framheva plan-kort for månadens tilbod */
.shop-plan--offer { border-color: rgba(167,139,250,.55); box-shadow: 0 0 0 1px rgba(167,139,250,.3), 0 8px 28px rgba(167,139,250,.16); }
.shop-plan--holiday { border-color: rgba(74,222,128,.55); box-shadow: 0 0 0 1px rgba(74,222,128,.3), 0 8px 28px rgba(22,163,74,.18); }
.shop-offer-ribbon {
  position: absolute; top: 1rem; left: 1rem; font-size: .72rem; font-weight: 700;
  padding: .25rem .55rem; border-radius: 999px; color: #fff;
  background: linear-gradient(90deg, #7c3aed, #ec4899);
}
.shop-offer-ribbon--holiday { background: linear-gradient(90deg, #dc2626, #16a34a); }

.shop-pro-feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .55rem .9rem; margin: 0 0 1.5rem; }
.shop-pro-feat { display: flex; align-items: center; gap: .55rem; font-size: .85rem; color: var(--text, #e5e7eb);
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); border-radius: 10px; padding: .55rem .75rem; }
.shop-pro-feat svg { color: #a78bfa; flex: 0 0 auto; width: 18px; height: 18px; }
.shop-link-sm { display: inline-block; margin-top: .6rem; font-size: .78rem; color: #a78bfa; text-decoration: none; }
.shop-link-sm:hover { text-decoration: underline; }

/* Kvittering (på skjerm, etter betaling) */
.receipt-star { width: 60px; height: 60px; margin: 0 auto; border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #f472b6); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; }
.receipt-box { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px; padding: .35rem 1.1rem; }
.receipt-benefits { display: flex; flex-direction: column; gap: .35rem; }
.receipt-benefit { display: flex; align-items: center; gap: .5rem; font-size: .88rem; color: var(--text2, #9aa4b2); }
.receipt-benefit svg { color: #4ade80; width: 16px; height: 16px; flex: 0 0 auto; }

.shop-links-title { display: flex; align-items: center; gap: .5rem; margin: 2.25rem 0 .25rem; font-size: 1.2rem; }
.shop-links-title svg { color: #a78bfa; width: 20px; height: 20px; }
.shop-links-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .75rem; }
.shop-link-card {
  display: flex; align-items: center; gap: .75rem;
  padding: .85rem 1rem; border-radius: 12px;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08);
  text-decoration: none; color: var(--text, #e5e7eb);
  transition: border-color .15s ease, transform .15s ease, background .15s ease;
}
.shop-link-card:hover { border-color: rgba(167,139,250,.45); background: rgba(167,139,250,.07); transform: translateY(-2px); }
.shop-link-icon { display: grid; place-items: center; flex: 0 0 auto; width: 38px; height: 38px; border-radius: 10px; background: rgba(167,139,250,.12); }
.shop-link-icon svg { color: #a78bfa; width: 20px; height: 20px; }
.shop-link-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.shop-link-name { font-weight: 700; font-size: .95rem; }
.shop-link-desc { color: var(--text2, #9aa4b2); font-size: .8rem; }
.shop-link-arrow { flex: 0 0 auto; color: var(--text3, #6b7280); }
.shop-link-card:hover .shop-link-arrow { color: #a78bfa; }

/* ═══════════════════════════════════════════════
   PSYCHEDELIC BACKGROUND SYSTEM
   ═══════════════════════════════════════════════ */

/* Layer sits behind everything */
#bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #050510;
  animation-play-state: running;
}
#bg-layer * { animation-play-state: inherit; }

/* Nebula orbs are defined once, further down (the always-on depth layer).
   A duplicate set with heavy filter: blur(25–38px) on huge elements used to live
   here and was removed — the radial gradients are already soft, so the blur was
   near-invisible but forced an expensive fullscreen rasterization every frame.
   Per-effect intensity now comes from the prism + image layers below. */

#bg-img-wrap {
  position: absolute;
  inset: -12%;           /* extra bleed so movement doesn't reveal edges */
  will-change: transform;
}

#bg-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  will-change: transform;
  /* Breathe is a GPU-composited transform; the old bgHue filter animation was
     dropped — animating filter: hue-rotate repainted the fullscreen image every
     frame. Color motion still comes from the screen-blended prism/nebula layers. */
  animation: bgBreathe  18s ease-in-out  infinite;
  filter: brightness(0.55) saturate(2.2) hue-rotate(0deg);
}

/* Slow organic breathing / drift */
@keyframes bgBreathe {
  0%   { transform: scale(1.0) translate(0%,0%)    rotate(0deg); }
  20%  { transform: scale(1.07) translate(-2%,1%)  rotate(1.2deg); }
  45%  { transform: scale(1.05) translate(2%,-1%)  rotate(-0.8deg); }
  70%  { transform: scale(1.1)  translate(-1%,2%)  rotate(1.5deg); }
  100% { transform: scale(1.0) translate(0%,0%)    rotate(0deg); }
}

/* ── Effect presets (toggled via data-bg-effect on body) ── */

/* ACID — very fast */
body[data-bg-effect="acid"] #bg-img {
  animation: bgBreatheAcid 2.5s ease-in-out infinite;
  filter: brightness(0.65) saturate(4) hue-rotate(0deg);
}
@keyframes bgBreatheAcid {
  0%,100% { transform: scale(1.05) translate(0,0) rotate(0deg); }
  25%     { transform: scale(1.12) translate(-3%,2%) rotate(2deg); }
  75%     { transform: scale(1.08) translate(3%,-2%) rotate(-2deg); }
}

/* SPACE — very slow */
body[data-bg-effect="space"] #bg-img {
  animation: bgBreatheSpace 40s ease-in-out infinite;
  filter: brightness(0.4) saturate(1.6) hue-rotate(200deg);
}
@keyframes bgBreatheSpace {
  0%,100% { transform: scale(1.02) translate(0,0) rotate(0deg); }
  50%     { transform: scale(1.06) translate(-1%,1%) rotate(0.5deg); }
}

/* CHILL — gentle */
body[data-bg-effect="chill"] #bg-img {
  animation: bgBreatheChill 32s ease-in-out infinite;
  filter: brightness(0.6) saturate(1.8) hue-rotate(0deg);
}
@keyframes bgBreatheChill {
  0%,100% { transform: scale(1.03) translate(0,0); }
  50%     { transform: scale(1.07) translate(-1.5%,1%); }
}

/* ── Prism color overlay layers ── */
#bg-prism-1, #bg-prism-2, #bg-prism-3 {
  position: absolute;
  inset: 0;
  mix-blend-mode: screen;
  pointer-events: none;
}
#bg-prism-1 {
  background: linear-gradient(125deg,
    rgba(124,58,237,0.35) 0%,
    rgba(37,99,235,0.2) 35%,
    transparent 60%,
    rgba(236,72,153,0.25) 100%);
  background-size: 300% 300%;
  animation: prism1 36s ease infinite;
}
#bg-prism-2 {
  background: linear-gradient(225deg,
    transparent 0%,
    rgba(6,182,212,0.2) 30%,
    rgba(245,158,11,0.15) 60%,
    transparent 100%);
  background-size: 400% 400%;
  animation: prism2 48s ease-in-out infinite reverse;
}
#bg-prism-3 {
  background: radial-gradient(ellipse at 30% 60%,
    rgba(124,58,237,0.2) 0%,
    transparent 60%),
    radial-gradient(ellipse at 70% 30%,
    rgba(236,72,153,0.15) 0%,
    transparent 50%);
  animation: prism3 28s ease-in-out infinite;
}
/* Opacity-only pulses (compositor-cheap). The old versions animated
   background-position on a 300–400% gradient, repainting fullscreen every frame. */
@keyframes prism1 {
  0%,100% { opacity: 0.7; }
  33%     { opacity: 1;   }
  66%     { opacity: 0.8; }
}
@keyframes prism2 {
  0%,100% { opacity: 0.6; }
  50%     { opacity: 0.9; }
}
@keyframes prism3 {
  0%,100% { transform: scale(1)   rotate(0deg);   opacity: 0.6; }
  50%     { transform: scale(1.2) rotate(15deg);  opacity: 0.9; }
}

/* Acid mode: more intense overlays */
body[data-bg-effect="acid"] #bg-prism-1 { opacity: 1.4; animation-duration: 10s; }
body[data-bg-effect="acid"] #bg-prism-2 { opacity: 1.2; animation-duration: 8s; }
body[data-bg-effect="acid"] #bg-prism-3 { opacity: 1.3; animation-duration: 6s; }
body[data-bg-effect="space"] #bg-prism-1 { opacity: 0.4; }
body[data-bg-effect="space"] #bg-prism-2 { opacity: 0.3; }
body[data-bg-effect="chill"] #bg-prism-1 { opacity: 0.5; }

/* Particle canvas */
#bg-particles-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Vignette — dark edges for readability */
#bg-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 25%, rgba(0,0,0,0.65) 100%),
    linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, transparent 15%, transparent 80%, rgba(0,0,0,0.5) 100%);
  pointer-events: none;
}

/* ── Nebula orbs — always-on procedural depth layer ── */
#bg-nebula-a, #bg-nebula-b, #bg-nebula-c, #bg-nebula-d, #bg-nebula-e {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: screen;
  will-change: transform, opacity;
}
#bg-nebula-a {
  width: 70vmax; height: 70vmax;
  top: -20%; left: -15%;
  background: radial-gradient(circle, rgba(124,58,237,0.28) 0%, transparent 65%);
  animation: nebulaFloat 44s ease-in-out infinite;
}
#bg-nebula-b {
  width: 55vmax; height: 55vmax;
  bottom: -15%; right: -10%;
  background: radial-gradient(circle, rgba(236,72,153,0.22) 0%, transparent 65%);
  animation: nebulaFloat 56s ease-in-out infinite reverse;
}
#bg-nebula-c {
  width: 45vmax; height: 45vmax;
  top: 30%; left: 40%;
  background: radial-gradient(circle, rgba(37,99,235,0.2) 0%, transparent 65%);
  animation: nebulaFloat 36s ease-in-out infinite 4s;
}
#bg-nebula-d {
  width: 35vmax; height: 35vmax;
  top: -5%; right: 20%;
  background: radial-gradient(circle, rgba(6,182,212,0.18) 0%, transparent 65%);
  animation: nebulaFloat 64s ease-in-out infinite 2s reverse;
}
#bg-nebula-e {
  width: 50vmax; height: 50vmax;
  bottom: 10%; left: 20%;
  background: radial-gradient(circle, rgba(245,158,11,0.12) 0%, transparent 65%);
  animation: nebulaFloat 50s ease-in-out infinite 8s;
}
@keyframes nebulaFloat {
  0%,100% { transform: translate(0,0)     scale(1);    opacity: 0.7;  }
  25%     { transform: translate(3%,-4%)  scale(1.06); opacity: 0.9;  }
  50%     { transform: translate(-3%,3%)  scale(0.96); opacity: 0.75; }
  75%     { transform: translate(4%,2%)   scale(1.04); opacity: 0.85; }
}

/* ═══════════════════════════════════════════════
   COSMOS SCENE — sun + flying UFO (data-bg-effect="cosmos")
   Vector-based (CSS gradient sun + inline SVG saucer) → crisp at any DPI.
   ═══════════════════════════════════════════════ */

/* Hidden unless the cosmos theme is active */
#bg-sun, #bg-ufo { display: none; }
body[data-bg-effect="cosmos"] #bg-sun,
body[data-bg-effect="cosmos"] #bg-ufo { display: block; }

/* The UFO only flies on the front page. Open any tab and it leaves the scene —
   the starfield (and the rest of the cosmos backdrop) stays. */
body[data-bg-effect="cosmos"]:not(.route-home) #bg-ufo { display: none; }

/* ── Sun: distant glowing star, upper-right ── */
#bg-sun {
  position: absolute;
  top: -14vmax;
  right: -8vmax;
  width: 46vmax;
  height: 46vmax;
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: screen;
  background: radial-gradient(circle,
    #fff6e0 0%, #ffd27a 14%, #ff9d3c 30%,
    rgba(255,107,53,0.55) 46%, transparent 68%);
  filter: blur(2px);
  will-change: transform, opacity;
  animation: sunPulse 12s ease-in-out infinite;
}
/* Outer corona — larger, softer warm/magenta bleed */
#bg-sun::after {
  content: "";
  position: absolute;
  inset: -40%;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(255,140,60,0.35) 0%, rgba(236,72,153,0.12) 40%, transparent 70%);
  filter: blur(28px);
  animation: sunCorona 16s ease-in-out infinite;
}
@keyframes sunPulse {
  0%,100% { transform: scale(1);    opacity: 0.92; }
  50%     { transform: scale(1.06); opacity: 1;    }
}
@keyframes sunCorona {
  0%,100% { transform: scale(1)    rotate(0deg); opacity: 0.8; }
  50%     { transform: scale(1.12) rotate(8deg); opacity: 1;   }
}

/* ── UFO: vector saucer flying across the screen ── */
#bg-ufo {
  position: absolute;
  top: 18vh;
  left: 0;
  width: clamp(120px, 16vw, 230px);
  height: auto;
  pointer-events: none;
  will-change: transform;
  animation: ufoFlight 22s linear infinite;
}
#bg-ufo svg { display: block; width: 100%; height: auto; overflow: visible; }

/* UFO-størrelse — styres fra bakgrunnsvelgeren (BgManager.setUfoSize).
   "medium" er standard og bruker #bg-ufo-regelen over. */
body[data-ufo-size="small"] #bg-ufo { width: clamp(80px, 9vw, 140px); }
body[data-ufo-size="large"] #bg-ufo { width: clamp(220px, 32vw, 480px); }
/* Fullskjerm: park tallerkenen midt på siden og la den dekke skjermen */
body[data-ufo-size="full"] #bg-ufo {
  width: min(94vw, 72vh);
  top: 50%;
  left: 50%;
  animation: none;
  transform: translate(-50%, -52%);
}

/* ── UFO interaktiv: dra for å flytte, hjørnehåndtak for å endre størrelse ──
   Tallerkenen løftes til forgrunnen (over innhold, under navet) så den kan gripes.
   Når du drar eller skalerer den slutter den å fly og blir liggende (.ufo-free).
   Dobbeltklikk = nullstill og la den fly igjen. Styres av BgManager (background.js). */
#bg-ufo.ufo-interactive {
  position: fixed;
  z-index: 150;            /* over sideinnhold (--z-content:10), under navet (200) */
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}
#bg-ufo.ufo-interactive.ufo-dragging,
#bg-ufo.ufo-interactive.ufo-dragging * { cursor: grabbing; }
/* Når brukeren har plassert/skalert den: koble fra flyge-animasjonen,
   posisjon + bredde styres da av inline left/top/width fra JS. */
#bg-ufo.ufo-free {
  animation: none !important;
  transform: none !important;
}

/* Hjørnehåndtak — vises ved hover, eller mens man drar i dem */
.ufo-handle {
  position: absolute;
  width: 18px; height: 18px;
  margin: -9px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #eaffff, #69d6ff 60%, #2b8fc4);
  border: 1.5px solid #07131f;
  box-shadow: 0 0 8px rgba(105,214,255,0.85), 0 1px 2px rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease, transform .1s ease;
  z-index: 3;
}
.ufo-handle:hover { transform: scale(1.18); }
#bg-ufo.ufo-interactive:hover .ufo-handle,
#bg-ufo.ufo-resizing .ufo-handle { opacity: 0.95; pointer-events: auto; }
.ufo-handle.nw { top: 18%; left: 8%;  cursor: nwse-resize; }
.ufo-handle.ne { top: 18%; right: 8%; cursor: nesw-resize; }
.ufo-handle.sw { top: 48%; left: 8%;  cursor: nesw-resize; }
.ufo-handle.se { top: 48%; right: 8%; cursor: nwse-resize; }

/* Drift left → right across viewport with a gentle bob + subtle piloted tilt */
@keyframes ufoFlight {
  0%   { transform: translate(-26vw, 0)     rotate(-2deg);   }
  25%  { transform: translate(12vw, -2.5vh) rotate(1.5deg);  }
  50%  { transform: translate(45vw, 1.5vh)  rotate(-1.5deg); }
  75%  { transform: translate(78vw, -2vh)   rotate(2deg);    }
  100% { transform: translate(120vw, 0)     rotate(-2deg);   }
}

/* Running lights — warm-white, recessed; sequential chase via inline animation-delay */
.ufo-light {
  transform-box: fill-box;
  transform-origin: center;
  filter: drop-shadow(0 0 3px #ffdca6) drop-shadow(0 0 7px #ffae5c);
  animation: ufoBlink 1.6s ease-in-out infinite;
}
@keyframes ufoBlink {
  0%,100% { opacity: 0.4; transform: scale(0.78); }
  50%     { opacity: 1;   transform: scale(1.28); }
}

/* Pulsing tractor beam */
.ufo-beam {
  transform-box: fill-box;
  transform-origin: top center;
  animation: ufoBeam 3s ease-in-out infinite;
}
@keyframes ufoBeam {
  0%,100% { opacity: 0.35; transform: scaleY(0.92) scaleX(0.96); }
  50%     { opacity: 0.8;  transform: scaleY(1.04) scaleX(1.04); }
}

/* Cosmos mood: calm the procedural layers so the scene reads as deep space */
body[data-bg-effect="cosmos"] #bg-nebula-a,
body[data-bg-effect="cosmos"] #bg-nebula-c { opacity: 0.5; }
body[data-bg-effect="cosmos"] #bg-nebula-b,
body[data-bg-effect="cosmos"] #bg-nebula-d,
body[data-bg-effect="cosmos"] #bg-nebula-e { opacity: 0.32; }
body[data-bg-effect="cosmos"] #bg-prism-1 { opacity: 0.35; }
body[data-bg-effect="cosmos"] #bg-prism-2 { opacity: 0.22; }
body[data-bg-effect="cosmos"] #bg-prism-3 { opacity: 0.4; }
body[data-bg-effect="cosmos"] #bg-img-wrap { display: none; }

/* ═══════════════════════════════════════════════
   NASA-STYLE DEEP-SPACE FIELD  (cosmos only)
   Two cheap, mostly-static layers composited once on the GPU — no per-frame
   repaint cost (only opacity twinkles, which the compositor handles):
     • base   → near-black space
     • ::before → dense multi-distance, multi-temperature starfield + a soft
                  Milky-Way galactic dust lane (the band is the bottom-most
                  background layer, so the stars sit on top of it)
   The drifting canvas stars add live sparkle on top; the nebula orbs below
   supply the Hubble-style colour clouds.
   ═══════════════════════════════════════════════ */
body[data-bg-effect="cosmos"] #bg-layer { background: #01020a; }

body[data-bg-effect="cosmos"] #bg-layer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-repeat: repeat;
  /* tile sizes — smaller tiles = denser star populations */
  background-size:
    430px 430px, 380px 380px, 300px 300px, 360px 360px,
    260px 260px, 240px 240px, 320px 320px,
    150px 150px, 170px 170px, 130px 130px,
    100% 100%;
  background-position:
    0 0, 215px 130px, 60px 200px, 180px 40px,
    30px 90px, 120px 250px, 90px 10px,
    45px 60px, 130px 30px, 20px 120px,
    0 0;
  background-image:
    /* bright foreground stars (white / blue / warm) */
    radial-gradient(1.8px 1.8px at 40px 60px,   #ffffff 99%, transparent 100%),
    radial-gradient(1.7px 1.7px at 300px 250px,  #ffffff 99%, transparent 100%),
    radial-gradient(1.5px 1.5px at 150px 90px,   #cdd8ff 99%, transparent 100%),
    radial-gradient(1.5px 1.5px at 250px 300px,  #ffeccb 99%, transparent 100%),
    /* mid stars */
    radial-gradient(1.2px 1.2px at 200px 80px,   #ffffff 99%, transparent 100%),
    radial-gradient(1.2px 1.2px at 60px 180px,   #c7d6ff 99%, transparent 100%),
    radial-gradient(1.2px 1.2px at 260px 120px,  #ffe6c4 99%, transparent 100%),
    /* fine background dust — small + dense */
    radial-gradient(1px 1px at 40px 30px,        #d9e6ff 99%, transparent 100%),
    radial-gradient(0.9px 0.9px at 120px 60px,   #ffffff 99%, transparent 100%),
    radial-gradient(0.9px 0.9px at 30px 90px,    #cfe0ff 99%, transparent 100%),
    /* Milky-Way galactic dust lane — soft diagonal band, bottom-most */
    linear-gradient(118deg,
      transparent 32%,
      rgba(150,170,255,0.05) 43%,
      rgba(216,206,255,0.13) 50%,
      rgba(255,228,192,0.07) 57%,
      transparent 68%);
  opacity: 0.95;
  animation: starTwinkle 7s ease-in-out infinite;
}
@keyframes starTwinkle { 0%,100% { opacity: 0.74; } 50% { opacity: 1; } }

/* Re-tune the nebula orbs into Hubble-style colour clouds for cosmos.
   Kept deliberately FAINT and tight (transparent by ~45%) so the frame reads
   as deep black space with contained colour clouds — not a full-screen wash. */
body[data-bg-effect="cosmos"] #bg-nebula-a {
  background: radial-gradient(circle, rgba(124,80,255,0.26) 0%, transparent 48%);
  opacity: 0.45;
}
body[data-bg-effect="cosmos"] #bg-nebula-b {
  background: radial-gradient(circle, rgba(255,72,150,0.22) 0%, transparent 48%);
  opacity: 0.4;
}
body[data-bg-effect="cosmos"] #bg-nebula-c {
  background: radial-gradient(circle, rgba(40,182,222,0.2) 0%, transparent 48%);
  opacity: 0.36;
}
body[data-bg-effect="cosmos"] #bg-nebula-d {
  background: radial-gradient(circle, rgba(90,255,210,0.16) 0%, transparent 46%);
  opacity: 0.3;
}
body[data-bg-effect="cosmos"] #bg-nebula-e {
  background: radial-gradient(circle, rgba(255,182,92,0.16) 0%, transparent 46%);
  opacity: 0.3;
}
/* Deep-space vignette: pull the frame edges down to true black like a Hubble plate */
body[data-bg-effect="cosmos"] #bg-vignette {
  background:
    radial-gradient(ellipse at 70% 28%, transparent 30%, rgba(0,0,0,0.55) 100%),
    linear-gradient(to bottom, rgba(0,0,0,0.35) 0%, transparent 22%, transparent 72%, rgba(0,0,0,0.6) 100%);
}

/* Respect reduced-motion: park the UFO, stop blink/pulse + star twinkle */
@media (prefers-reduced-motion: reduce) {
  #bg-ufo { animation: none; transform: translate(42vw, 0); }
  .ufo-light, .ufo-beam, #bg-sun, #bg-sun::after { animation: none; }
  body[data-bg-effect="cosmos"] #bg-layer::before { animation: none; opacity: 0.8; }
}

/* ── Background change button ── */
/* #bg-change-btn now lives inside #dock — styled by .dock-btn below. */

/* ── Effect picker popup ── */
#bg-picker-panel {
  position: fixed;
  bottom: calc(var(--player-h) + 3.75rem);
  left: 1rem;
  z-index: 60;
  background: rgba(10,10,15,0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  padding: 1.1rem;
  min-width: 230px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
  animation: pickerIn 0.2s ease;
}
@keyframes pickerIn {
  from { opacity:0; transform: translateY(8px) scale(0.97); }
  to   { opacity:1; transform: none; }
}
.picker-section-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text3);
  margin-bottom: 0.5rem;
}
.picker-upload-btn {
  width: 100%;
  padding: 0.65rem;
  background: var(--accentG);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  margin-bottom: 0.9rem;
  transition: opacity 0.2s;
}
.picker-upload-btn:hover { opacity: 0.85; }
.effect-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
}
.effect-btn {
  padding: 0.5rem 0.4rem;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 9px;
  color: var(--text2);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
}
.effect-btn:hover  { border-color: var(--border2); color: var(--text); }
.effect-btn.active { border-color: var(--accent); background: rgba(124,58,237,0.18); color: #a78bfa; }
.particle-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 0.35rem;
}
.particle-btn {
  padding: 0.45rem 0.2rem;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 8px;
  color: var(--text2);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
}
.particle-btn:hover  { border-color: var(--border2); }
.particle-btn.active { border-color: var(--accent); background: rgba(124,58,237,0.18); color: #a78bfa; }

/* Ensure all content layers sit above bg-layer — canonical stacking via tokens */
#main-nav, #app, #player-bar, #modal-overlay,
#toast-container, #bg-picker-panel {
  position: relative;
  z-index: var(--z-content);
}
#main-nav        { z-index: var(--z-nav); }
#player-bar      { z-index: var(--z-player); }
#modal-overlay   { z-index: var(--z-modal); }
#toast-container { z-index: var(--z-toast); }
#bg-picker-panel { z-index: var(--z-panel); position: fixed; }

:root {
  --bg:        #0a0a0f;
  --bg2:       #111118;
  --surface:   rgba(255,255,255,0.04);
  --surface2:  rgba(255,255,255,0.08);
  --border:    rgba(255,255,255,0.09);
  --border2:   rgba(255,255,255,0.16);
  --text:      #e2e8f0;
  --text2:     #94a3b8;
  --text3:     #64748b;
  --accent:    #7c3aed;
  --accent2:   #2563eb;
  --accentG:   linear-gradient(135deg,#7c3aed,#2563eb);
  --gold:      #f59e0b;
  --red:       #ef4444;
  --green:     #22c55e;
  --radius:    14px;
  --radius-sm: 8px;
  --shadow:    0 8px 32px rgba(0,0,0,0.5);
  --shadow2:   0 2px 8px rgba(0,0,0,0.4);
  --player-h:  84px;
  --nav-h:     60px;
  --trans:     0.2s ease;

  /* ── Z-index scale — single source of truth for stacking order.
     bg < content < nav < player < embed < dock < chat/ai < panels < modal < toast.
     Replaces the old ad-hoc values that ranged 0…9999 (incl. three colliding 9999s). */
  --z-bg:      0;
  --z-content: 10;
  --z-nav:     200;
  --z-player:  400;
  --z-embed:   600;
  --z-dock:    700;
  --z-ai:      800;
  --z-panel:   850;
  --z-modal:   1000;
  --z-toast:   1100;
}

/* ════════════════════════════════════════════
   ICON SYSTEM  (thin line icons — replaces emoji UI)
   ════════════════════════════════════════════ */
.icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.14em;
  flex: 0 0 auto;
  stroke-width: 1.6;
  overflow: visible;
}
/* slightly larger optical size in dense text so 1em glyphs don't look thin */
.section-title .icon,
.btn .icon,
.np-card-emoji .icon { font-size: 1.05em; }
.icon-xs { width: 0.8em; height: 0.8em; }
.icon-lg { width: 1.4em; height: 1.4em; }
/* elements that are icon-only buttons keep the icon centred */
[data-icon] { display: inline-flex; align-items: center; justify-content: center; }

/* When a modal is open, freeze background scroll (toggled by App.openModal) */
html.modal-open, html.modal-open body { overflow: hidden !important; }

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  /* Keep anchored/scrolled content clear of the fixed nav and player bars */
  scroll-padding-top: var(--nav-h);
  scroll-padding-bottom: calc(var(--player-h) + 1rem);
}
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding-top: var(--nav-h);
  padding-bottom: var(--player-h);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, textarea, select { font: inherit; }
img, video { display: block; max-width: 100%; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 99px; }

/* ════════════════════════════════════════════
   NAV
   ════════════════════════════════════════════ */
#main-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: var(--z-nav);
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0 1.5rem;
}
.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  white-space: nowrap;
  background: linear-gradient(90deg, #a78bfa, #818cf8, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-logo span {
  font-weight: 800;
  background: linear-gradient(90deg, #f59e0b, #f472b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-center { flex: 1; max-width: 440px; margin: 0 auto; }
.search-box {
  position: relative;
  display: flex;
  align-items: center;
}
.search-icon {
  position: absolute;
  left: 12px;
  font-size: 1.1rem;
  color: var(--text3);
  pointer-events: none;
}
#nav-search {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 0.45rem 1rem 0.45rem 2.4rem;
  color: var(--text);
  outline: none;
  transition: border-color var(--trans);
}
#nav-search:focus { border-color: var(--accent); }
.search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  z-index: 300;
  box-shadow: var(--shadow);
  max-height: 320px;
  overflow-y: auto;
}
.search-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  cursor: pointer;
  transition: background var(--trans);
}
.search-item:hover { background: var(--surface2); }
.search-item-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accentG);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700; flex-shrink: 0;
}
.search-group-title {
  padding: 0.5rem 1rem 0.3rem;
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--text3); background: var(--bg2);
  position: sticky; top: 0; z-index: 1;
}
.search-item-icon {
  width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface2); color: var(--accent);
}
.search-item-icon .icon { width: 17px; height: 17px; }
.search-item-title {
  font-size: 0.85rem; font-weight: 600; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.search-item-sub {
  font-size: 0.75rem; color: var(--text2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.search-empty { padding: 0.9rem 1rem; font-size: 0.83rem; color: var(--text2); }
.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;            /* Firefox */
  -ms-overflow-style: none;         /* IE/Edge */
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}
.nav-right::-webkit-scrollbar { display: none; }  /* skjul scrollbar */
.nav-right > * { flex-shrink: 0; }                /* knappene beholder full bredde */
.nav-right.nav-scrollable { cursor: grab; }       /* viser at lina kan dras */
.nav-right.nav-grabbing {                          /* mens du drar */
  cursor: grabbing;
  user-select: none;
  scroll-behavior: auto;                           /* dra skal følge musa direkte */
}
.nav-right.nav-grabbing a,
.nav-right.nav-grabbing button { cursor: grabbing; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.2rem;
  border-radius: 99px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all var(--trans);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accentG);
  color: #fff;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-ghost {
  background: var(--surface);
  color: var(--text2);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--surface2); color: var(--text); }
.btn-danger { background: rgba(239,68,68,0.15); color: var(--red); border: 1px solid rgba(239,68,68,0.3); }
.btn-danger:hover { background: rgba(239,68,68,0.25); }
.btn-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text2);
  font-size: 0.9rem;
  transition: all var(--trans);
}
.btn-icon:hover { background: var(--surface2); color: var(--text); }
.btn-sm { padding: 0.35rem 0.85rem; font-size: 0.8rem; }

/* ════════════════════════════════════════════
   TOAST
   ════════════════════════════════════════════ */
#toast-container {
  position: fixed;
  bottom: calc(var(--player-h) + 1rem);
  right: 1rem;
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}
.toast {
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  animation: toastIn 0.3s ease, toastOut 0.3s ease 2.7s forwards;
  pointer-events: auto;
  border: 1px solid var(--border);
}
.toast-success { background: rgba(34,197,94,0.15); border-color: rgba(34,197,94,0.3); color: #4ade80; }
.toast-error   { background: rgba(239,68,68,0.15);  border-color: rgba(239,68,68,0.3);  color: #f87171; }
.toast-info    { background: rgba(124,58,237,0.15); border-color: rgba(124,58,237,0.3); color: #a78bfa; }
@keyframes toastIn  { from { opacity:0; transform: translateY(12px); } to { opacity:1; transform: none; } }
@keyframes toastOut { from { opacity:1; } to { opacity:0; transform: translateY(-8px); } }

/* ════════════════════════════════════════════
   MODAL
   ════════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: var(--z-modal);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(6px);
}
.modal-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.modal-header h2 { font-size: 1.25rem; font-weight: 700; }
.modal-header h2 .icon { width: 1.1em; height: 1.1em; color: var(--accent); vertical-align: -0.15em; margin-right: 0.35rem; }

/* ── Info modal — «Hva er Sound Core?» ── */
.info-body { display: flex; flex-direction: column; gap: 0.85rem; }
.info-intro { font-size: 0.92rem; line-height: 1.55; color: var(--text2); margin-bottom: 0.3rem; }
.info-intro strong { color: var(--text); }
.info-feat { display: flex; gap: 0.75rem; align-items: flex-start; }
.info-feat-icon {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: rgba(124,58,237,0.14);
  border: 1px solid var(--border2);
  color: var(--accent);
}
.info-feat-icon .icon { width: 1.15em; height: 1.15em; }
.info-feat-name { font-weight: 700; font-size: 0.95rem; color: var(--text); margin-bottom: 0.1rem; }
.info-feat-desc { font-size: 0.85rem; line-height: 1.5; color: var(--text2); margin: 0; }
.info-welcome {
  margin-top: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.7;
}
.info-sign { font-weight: 500; font-size: 0.9rem; color: var(--accent); }

/* ════════════════════════════════════════════
   FORMS
   ════════════════════════════════════════════ */
.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.1rem; }
.form-label { font-size: 0.8rem; font-weight: 600; color: var(--text2); text-transform: uppercase; letter-spacing: 0.05em; }
.form-input {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.9rem;
  color: var(--text);
  outline: none;
  transition: border-color var(--trans), box-shadow var(--trans);
}
.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.15);
}
.form-input::placeholder { color: var(--text3); }
textarea.form-input { resize: vertical; min-height: 80px; }
.form-hint { font-size: 0.75rem; color: var(--text3); }
.form-error { font-size: 0.78rem; color: var(--red); }

.input-group { position: relative; }
.input-group .form-input { padding-right: 2.5rem; }
.input-group-icon {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: var(--text3);
  font-size: 1rem;
}

/* ════════════════════════════════════════════
   AUTH PAGES
   ════════════════════════════════════════════ */
.auth-page {
  min-height: calc(100vh - var(--nav-h) - var(--player-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}
.auth-logo {
  text-align: center;
  margin-bottom: 1.75rem;
}
.auth-logo h1 { font-family: 'Space Grotesk', sans-serif; font-size: 2rem; font-weight: 700; }
.auth-logo h1 span { color: var(--accent); }
.auth-logo p { color: var(--text2); font-size: 0.875rem; margin-top: 0.35rem; }
.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text2);
}
.auth-footer a { color: var(--accent); font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }
.auth-divider {
  display: flex; align-items: center; gap: 0.75rem;
  margin: 1.25rem 0;
  color: var(--text3); font-size: 0.8rem;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* Activation banner */
.activation-banner {
  background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.3);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: #fbbf24;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

/* ════════════════════════════════════════════
   LANDING / FEED
   ════════════════════════════════════════════ */
/* ── Sound Core Hero ──────────────────────────────────────────────── */
.stellar-hero {
  position: relative; text-align: center;
  padding: 5rem 1rem 3.5rem; overflow: hidden;
}
.stellar-hero-compact { padding: 2.5rem 1rem 2rem; }
.stellar-hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(124,58,237,0.22) 0%, transparent 70%);
}
.stellar-hero-content { position: relative; z-index: 1; }
.stellar-hero-badge {
  display: inline-block; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: #a78bfa; background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.3); border-radius: 99px;
  padding: 0.3rem 0.9rem; margin-bottom: 1.25rem;
}
.stellar-hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.8rem,7vw,5.5rem);
  font-weight: 800; line-height: 1.0;
  background: linear-gradient(135deg, #a78bfa 0%, #818cf8 40%, #f472b6 80%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 0.75rem;
}
.stellar-hero-title span {
  background: linear-gradient(135deg, #f59e0b, #f472b6, #a78bfa);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stellar-hero-sub {
  color: var(--text2); font-size: 1.05rem;
  max-width: 560px; margin: 0 auto 1rem; line-height: 1.75;
}
.stellar-hero-welcome {
  color: rgba(167,139,250,0.75); font-size: 0.9rem;
  max-width: 560px; margin: 0 auto 2rem; letter-spacing: 0.03em;
  font-style: italic;
}
.stellar-hero-greeting {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.5rem,4vw,2.5rem); font-weight: 700;
  background: linear-gradient(135deg, #a78bfa, #f472b6);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 1.25rem;
}
.stellar-hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.stellar-cta {
  background: linear-gradient(135deg, #7c3aed, #a855f7) !important;
  box-shadow: 0 0 24px rgba(124,58,237,0.4);
}
.stellar-cta:hover { box-shadow: 0 0 36px rgba(168,85,247,0.5); transform: translateY(-1px); }

/* kept for fallback */
.landing-hero { text-align:center; padding:5rem 1rem 3rem; }
.landing-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.landing-btn-big { padding: 0.85rem 2.5rem; font-size: 1rem; border-radius: 99px; }

/* ── Stellar Featured Station Card ───────────────────────────────────── */
.stellar-featured-card {
  position: relative; margin: 0.75rem 1rem 0.25rem;
  border-radius: 16px; overflow: hidden; cursor: pointer;
  border: 1px solid rgba(124,58,237,0.3);
  transition: transform var(--trans), box-shadow var(--trans);
}
.stellar-featured-card:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(124,58,237,0.3); }
.stellar-featured-glow {
  position: absolute; inset: 0; opacity: 0.18;
}
.stellar-featured-inner {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.9rem 1rem;
}
.stellar-featured-emoji { font-size: 2rem; flex-shrink: 0; }
.stellar-featured-info { flex: 1; min-width: 0; }
.stellar-featured-label {
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: #f59e0b; margin-bottom: 0.2rem;
}
.stellar-featured-name {
  font-size: 1.05rem; font-weight: 700;
  background: linear-gradient(90deg, #a78bfa, #f472b6);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stellar-featured-desc { font-size: 0.72rem; color: var(--text2); margin-top: 0.15rem; }
.stellar-featured-play {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #fff; font-size: 1rem; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(124,58,237,0.4);
  transition: transform var(--trans);
}
.stellar-featured-play:hover { transform: scale(1.1); }
.stellar-live-bar {
  display: flex; align-items: flex-end; justify-content: center;
  gap: 3px; height: 18px; padding-bottom: 0.5rem;
}
.stellar-live-bar span {
  width: 3px; border-radius: 99px;
  background: linear-gradient(180deg, #a78bfa, #7c3aed);
  animation: stellarBar 1s ease-in-out infinite;
}
.stellar-live-bar span:nth-child(1) { height: 8px;  animation-delay: 0s; }
.stellar-live-bar span:nth-child(2) { height: 14px; animation-delay: 0.15s; }
.stellar-live-bar span:nth-child(3) { height: 10px; animation-delay: 0.3s; }
.stellar-live-bar span:nth-child(4) { height: 16px; animation-delay: 0.1s; }
.stellar-live-bar span:nth-child(5) { height: 7px;  animation-delay: 0.25s; }
@keyframes stellarBar {
  0%,100% { transform: scaleY(0.4); opacity: 0.6; }
  50%      { transform: scaleY(1);   opacity: 1; }
}

/* ── Profile Radio Widget ─────────────────────────────────────────────── */
.profile-radio-widget {
  border: 1px solid rgba(124,58,237,0.25);
  border-radius: 14px; overflow: hidden;
  background: rgba(124,58,237,0.08);
}
.profile-radio-badge {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: #a78bfa;
  padding: 0.4rem 1rem; border-bottom: 1px solid rgba(124,58,237,0.15);
}
.profile-radio-inner {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem;
}
.profile-radio-emoji { font-size: 1.6rem; flex-shrink: 0; }
.profile-radio-info { flex: 1; min-width: 0; }
.profile-radio-name { font-weight: 600; font-size: 0.9rem; }
.profile-radio-sub  { font-size: 0.72rem; color: var(--text2); margin-top: 0.15rem; }
.profile-radio-url  { font-size: 0.7rem; color: var(--text3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-radio-play {
  padding: 0.45rem 1rem; border-radius: 99px; flex-shrink: 0;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #fff; font-size: 0.82rem; font-weight: 600;
  border: none; cursor: pointer; transition: opacity var(--trans);
}
.profile-radio-play:hover { opacity: 0.85; }

.section { padding: 2rem 1.5rem; max-width: 1200px; margin: 0 auto; }
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.5rem;
}
.section-title {
  font-size: 1.2rem; font-weight: 700;
  display: flex; align-items: center; gap: 0.5rem;
}
.section-title span { color: var(--text3); font-size: 0.85rem; font-weight: 400; }

/* User cards grid */
.users-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}
.user-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: all var(--trans);
  text-decoration: none;
  display: flex;
  flex-direction: column;
}
.user-card:hover {
  transform: translateY(-4px);
  border-color: var(--border2);
  box-shadow: var(--shadow);
}
.user-card-banner {
  height: 80px;
  background: var(--accentG);
  position: relative;
}
.user-card-body { padding: 2.5rem 1rem 1rem; text-align: center; }
.user-card-avatar {
  width: 58px; height: 58px;
  border-radius: 50%;
  border: 3px solid var(--bg2);
  background: var(--accentG);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 700;
  position: absolute;
  bottom: -29px; left: 50%; transform: translateX(-50%);
  overflow: hidden;
}
.user-card-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-card-name { font-weight: 700; font-size: 0.95rem; margin-bottom: 0.25rem; }
.user-card-username { color: var(--text3); font-size: 0.8rem; }
.user-card-bio { color: var(--text2); font-size: 0.8rem; margin-top: 0.5rem; line-height: 1.5; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* ════════════════════════════════════════════
   PROFILE PAGE
   ════════════════════════════════════════════ */
.profile-page {
  --p-primary:  #7c3aed;
  --p-secondary:#2563eb;
  --p-bg:       #0f0f1a;
  --p-text:     #ffffff;
  --p-accent:   #f59e0b;
  min-height: calc(100vh - var(--nav-h) - var(--player-h));
}
.profile-hero {
  position: relative;
  height: clamp(200px, 30vh, 320px);
  overflow: hidden;
}
.profile-hero-bg {
  position: absolute; inset: 0;
  background: var(--accentG);
  background-size: cover;
  background-position: center;
  filter: brightness(0.7);
  transition: all 0.4s ease;
}
.profile-hero-bg video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.profile-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.8));
}
.profile-hero-actions {
  position: absolute;
  top: 1rem; right: 1rem;
  display: flex; gap: 0.5rem;
}
.profile-body {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}
.profile-header {
  display: flex;
  align-items: flex-end;
  gap: 1.5rem;
  margin-top: -50px;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 10;
  flex-wrap: wrap;
}
.profile-avatar {
  width: 100px; height: 100px;
  border-radius: 50%;
  border: 4px solid var(--bg);
  background: var(--accentG);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; font-weight: 700;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-edit-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: center; justify-content: center;
  font-size: 1.5rem;
  border-radius: 50%;
}
.profile-avatar:hover .avatar-edit-overlay { display: flex; }
.profile-info { flex: 1; padding-bottom: 0.5rem; min-width: 200px; }
.profile-display-name {
  font-size: 1.75rem; font-weight: 800;
  line-height: 1.1;
  font-family: var(--p-font, 'Inter'), sans-serif;
}
.profile-username { color: var(--text2); font-size: 0.9rem; margin-top: 0.2rem; }
.profile-actions { display: flex; gap: 0.75rem; align-items: center; padding-bottom: 0.5rem; }

.profile-stats {
  display: flex; gap: 2rem;
  margin-bottom: 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-value { font-size: 1.4rem; font-weight: 800; }
.stat-label { font-size: 0.75rem; color: var(--text2); }

.profile-bio {
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  white-space: pre-wrap;
}
.profile-links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.profile-link {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 0.8rem;
  color: var(--text2);
  transition: all var(--trans);
}
.profile-link:hover { border-color: var(--accent); color: var(--accent); }

/* Profile tabs */
.profile-tabs {
  display: flex; gap: 0.25rem;
  border-bottom: 1px solid var(--border);
  margin-top: 1.25rem;
  margin-bottom: 0;
}
.tab-btn {
  padding: 0.65rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text2);
  border-bottom: 2px solid transparent;
  transition: all var(--trans);
  margin-bottom: -1px;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }

/* Profile tab content panels */
.profile-tab-content { padding-top: 1.25rem; }

/* Profile bio empty nudge */
.profile-bio-empty { margin-bottom: 1rem; font-size: 0.9rem; }

/* Profile wall */
.wall-wrap { padding: 0.25rem 0; }
.wall-login-prompt { font-size: 0.85rem; color: var(--text3); margin-bottom: 1.25rem; }
.wall-input-wrap { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; }
.wall-input { flex: 1; }
.wall-post {
  display: flex; gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}
.wall-post-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.88rem; flex-shrink: 0;
  color: #fff; text-decoration: none;
}
.wall-post-body { flex: 1; min-width: 0; }
.wall-post-header {
  display: flex; align-items: center; gap: 0.45rem;
  flex-wrap: wrap; margin-bottom: 0.3rem;
}
.wall-post-name { font-weight: 700; font-size: 0.88rem; color: var(--text); text-decoration: none; }
.wall-post-name:hover { text-decoration: underline; }
.wall-post-username { color: var(--text3); font-size: 0.8rem; }
.wall-post-time { color: var(--text3); font-size: 0.78rem; margin-left: auto; white-space: nowrap; }
.wall-post-text { font-size: 0.9rem; line-height: 1.55; word-break: break-word; color: var(--text); }
.wall-post-delete {
  background: none; border: none; color: var(--text3);
  cursor: pointer; font-size: 0.8rem;
  padding: 0.1rem 0.35rem; border-radius: 4px;
  margin-left: 0.25rem;
}
.wall-post-delete:hover { color: #f87171; background: rgba(248,113,113,0.12); }

/* Media grid */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.media-item {
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: var(--surface);
  cursor: pointer;
  border: 1px solid var(--border);
}
.media-item img, .media-item video {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.media-item:hover img, .media-item:hover video { transform: scale(1.05); }
.media-item-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0);
  transition: background var(--trans);
  display: flex; align-items: center; justify-content: center;
  gap: 0.75rem;
}
.media-item:hover .media-item-overlay { background: rgba(0,0,0,0.5); }
.media-item-overlay .btn-icon { opacity: 0; transition: opacity var(--trans); }
.media-item:hover .media-item-overlay .btn-icon { opacity: 1; }
.media-badge {
  position: absolute; top: 0.5rem; right: 0.5rem;
  background: rgba(0,0,0,0.7);
  border-radius: 4px; padding: 0.15rem 0.4rem;
  font-size: 0.7rem; font-weight: 600;
}

/* Music list */
.music-list { display: flex; flex-direction: column; gap: 0.5rem; }
.music-item {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  transition: all var(--trans);
}
.music-item:hover { background: var(--surface2); border-color: var(--border2); }
.music-item.playing { border-color: var(--accent); background: rgba(124,58,237,0.1); }
.music-thumb {
  width: 44px; height: 44px;
  border-radius: 8px;
  background: var(--accentG);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  overflow: hidden;
}
.music-thumb img { width: 100%; height: 100%; object-fit: cover; }
.music-meta { flex: 1; min-width: 0; }
.music-name { font-weight: 600; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.music-artist { color: var(--text2); font-size: 0.8rem; }
.music-dur { color: var(--text3); font-size: 0.8rem; white-space: nowrap; }
.music-playing-bars {
  display: flex; align-items: flex-end; gap: 2px; height: 18px;
}
.music-playing-bars span {
  display: block; width: 3px; background: var(--accent);
  border-radius: 2px; animation: musicBar 0.8s ease infinite alternate;
}
.music-playing-bars span:nth-child(2) { animation-delay: 0.2s; }
.music-playing-bars span:nth-child(3) { animation-delay: 0.4s; }
@keyframes musicBar {
  from { height: 4px; }
  to { height: 18px; }
}
.music-item-right { display: flex; flex-direction: column; align-items: flex-end; gap: 0.35rem; flex-shrink: 0; }
.music-desc { color: var(--text2); font-size: 0.78rem; margin-top: 0.2rem; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 280px; }
.music-cat-badge { display: inline-block; margin-top: 0.3rem; font-size: 0.72rem; background: rgba(124,58,237,0.12); color: var(--accent); border-radius: 20px; padding: 0.1rem 0.55rem; font-weight: 600; }
.music-demo-wrap { position: relative; }
.music-demo-btn { font-size: 0.72rem; background: rgba(124,58,237,0.1); color: var(--accent); border: 1px solid rgba(124,58,237,0.25); border-radius: 20px; padding: 0.2rem 0.6rem; cursor: pointer; white-space: nowrap; transition: background var(--trans); }
.music-demo-btn:hover { background: rgba(124,58,237,0.2); }
.music-demo-menu { position: absolute; right: 0; top: calc(100% + 4px); background: var(--surface2); border: 1px solid var(--border2); border-radius: var(--radius); min-width: 190px; z-index: 50; box-shadow: 0 8px 24px rgba(0,0,0,0.35); padding: 0.4rem 0; }
.music-demo-link { display: block; padding: 0.45rem 1rem; font-size: 0.8rem; color: var(--text); text-decoration: none; transition: background var(--trans); }
.music-demo-link:hover { background: var(--surface3); }
.music-setcat-btn { font-size: 0.72rem; color: var(--text3); border: 1px dashed var(--border2); border-radius: 20px; padding: 0.2rem 0.55rem; text-decoration: none; white-space: nowrap; }
.music-setcat-btn:hover { color: var(--accent); border-color: var(--accent); }
.music-cover-upload {
  display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; font-size: 0.8rem;
  border-radius: 7px; border: 1px solid transparent;
  background: rgba(255,255,255,0.07); cursor: pointer;
  transition: background 0.15s, border-color 0.15s; flex-shrink: 0;
}
.music-cover-upload:hover { background: rgba(124,58,237,0.25); border-color: rgba(124,58,237,0.5); }
.music-credits-btn { width: 26px; height: 26px; font-size: 0.8rem; }

/* ── Sang-kreditering & kjøpslenker ───────────── */
.music-credits { color: var(--text3); font-size: 0.74rem; margin-top: 0.3rem; line-height: 1.4; }
.song-buy-links { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.4rem; }
.song-buy-chip {
  font-size: 0.72rem; color: var(--accent); text-decoration: none;
  background: rgba(124,58,237,0.1); border: 1px solid rgba(124,58,237,0.25);
  border-radius: 20px; padding: 0.18rem 0.6rem; white-space: nowrap;
  transition: background var(--trans);
}
.song-buy-chip:hover { background: rgba(124,58,237,0.22); }

/* ── Profil-butikk (sanger til salgs) ─────────── */
.profile-store-section { margin-top: 1.5rem; }
.profile-store-title { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.6rem; display: flex; align-items: center; gap: 0.4rem; }
.store-list { display: flex; flex-direction: column; gap: 0.5rem; }
.store-card { display: flex; align-items: center; gap: 0.75rem; padding: 0.7rem 0.85rem; background: var(--surface2); border: 1px solid var(--border2); border-radius: var(--radius); }
.store-card-meta { flex: 1; min-width: 0; }
.store-card-title { font-weight: 600; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.store-card-sub { font-size: 0.76rem; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.store-card-right { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
.store-card-price { font-size: 0.8rem; font-weight: 700; color: var(--accent); }
.store-card-owner { font-size: 0.72rem; color: var(--text3); border: 1px dashed var(--border2); border-radius: 20px; padding: 0.1rem 0.5rem; }

/* ── Upload success panel ─────────────────────── */
.disc-upload-success { max-width: 560px; margin: 0 auto; text-align: center; padding: 2rem 1rem; }
.disc-up-success-icon { font-size: 3rem; margin-bottom: 0.5rem; }
.disc-up-success-title { font-size: 1.1rem; font-weight: 700; margin: 0 0 0.4rem; }
.disc-up-success-sub { color: var(--text2); font-size: 0.85rem; margin: 0 0 1.5rem; }
.disc-up-labels-box { background: var(--surface2); border: 1px solid var(--border2); border-radius: var(--radius); padding: 1rem 1.25rem; text-align: left; margin-bottom: 1.25rem; }
.disc-up-labels-heading { font-weight: 700; font-size: 0.9rem; margin-bottom: 0.75rem; }
.disc-up-labels-list { display: flex; flex-direction: column; gap: 0.4rem; }
.disc-up-label-btn { display: block; padding: 0.5rem 0.9rem; background: rgba(124,58,237,0.08); border: 1px solid rgba(124,58,237,0.2); border-radius: 8px; font-size: 0.85rem; font-weight: 600; color: var(--accent); text-decoration: none; transition: background var(--trans); }
.disc-up-label-btn:hover { background: rgba(124,58,237,0.18); }
.disc-up-labels-note { font-size: 0.73rem; color: var(--text3); margin: 0.65rem 0 0; }
.disc-up-nocat-box { background: var(--surface2); border: 1px solid var(--border2); border-radius: var(--radius); padding: 1rem 1.25rem; font-size: 0.85rem; color: var(--text2); margin-bottom: 1.25rem; }
.disc-up-success-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; justify-content: center; }

/* ════════════════════════════════════════════
   PROFILE EDITOR PANEL
   ════════════════════════════════════════════ */
.editor-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
}
.editor-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
  height: fit-content;
}
.editor-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}
.editor-panel-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.editor-panel-body { padding: 1.25rem; }
.editor-section { margin-bottom: 1.5rem; }
.editor-section-title {
  font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text3); margin-bottom: 0.75rem;
}
.color-row { display: flex; flex-direction: column; gap: 0.5rem; }
.color-item { display: flex; align-items: center; gap: 0.75rem; font-size: 0.85rem; color: var(--text2); }
.color-item input[type="color"] {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid var(--border);
  padding: 2px;
  cursor: pointer;
  background: none;
}
.font-select { width: 100%; }
.layout-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 0.5rem; }
.layout-option {
  aspect-ratio: 4/3;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px;
  font-size: 0.7rem; color: var(--text2);
  transition: all var(--trans);
  padding: 0.5rem;
  background: var(--surface);
}
.layout-option.active { border-color: var(--accent); color: var(--accent); background: rgba(124,58,237,0.1); }
.layout-option span { font-size: 1.2rem; }
.bg-type-row { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.bg-type-btn {
  flex: 1;
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text2);
  transition: all var(--trans);
  background: var(--surface);
}
.bg-type-btn.active { border-color: var(--accent); color: var(--accent); background: rgba(124,58,237,0.1); }
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--trans);
  font-size: 0.85rem;
  color: var(--text2);
}
.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--accent);
  background: rgba(124,58,237,0.06);
  color: var(--text);
}
.upload-zone .upload-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.image-filter-row { display: flex; flex-direction: column; gap: 0.75rem; }
.filter-item { display: flex; flex-direction: column; gap: 0.25rem; }
.filter-label { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--text2); }
.filter-label span { font-weight: 600; color: var(--text); }
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 99px;
  background: var(--border2);
  outline: none;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 0 0 3px rgba(124,58,237,0.25);
  transition: box-shadow var(--trans);
}
input[type="range"]:hover::-webkit-slider-thumb { box-shadow: 0 0 0 5px rgba(124,58,237,0.3); }

.editor-preview {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  min-height: 400px;
}

/* AI panel */
.ai-panel {
  background: linear-gradient(135deg, rgba(124,58,237,0.08), rgba(37,99,235,0.08));
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: var(--radius);
  padding: 1rem;
}
.ai-panel-title {
  display: flex; align-items: center; gap: 0.5rem;
  font-weight: 700; font-size: 0.9rem; margin-bottom: 0.75rem;
  color: #a78bfa;
}
.ai-sparkle { animation: spin 3s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.ai-btn {
  width: 100%;
  padding: 0.55rem;
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: var(--radius-sm);
  color: #a78bfa;
  font-size: 0.82rem;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 0.4rem;
  transition: all var(--trans);
  margin-bottom: 0.5rem;
}
.ai-btn:hover { background: rgba(124,58,237,0.25); }
.ai-result {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  font-size: 0.83rem;
  color: var(--text2);
  line-height: 1.6;
  margin-top: 0.75rem;
  white-space: pre-wrap;
  display: none;
}
.ai-loading { display: flex; align-items: center; gap: 0.5rem; color: var(--text3); font-size: 0.82rem; }
.ai-dots span {
  display: inline-block;
  animation: bounce 1.2s infinite;
  font-size: 1.2rem;
}
.ai-dots span:nth-child(2) { animation-delay: 0.2s; }
.ai-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes bounce { 0%,80%,100% { transform: none; } 40% { transform: translateY(-4px); } }

/* ════════════════════════════════════════════
   BLEND STUDIO
   ════════════════════════════════════════════ */
.studio-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
}
.studio-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 1.5rem;
  align-items: start;
}
.studio-canvas-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}
.studio-canvas-header {
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 1rem;
  flex-wrap: wrap;
}
.studio-canvas-body { padding: 1.25rem; }
#blend-canvas {
  display: block;
  width: 100%;
  background: #000;
  border-radius: var(--radius-sm);
  cursor: crosshair;
}
.studio-layers {
  display: flex; flex-direction: column; gap: 0.5rem;
  margin-top: 1rem;
}
.layer-item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--trans);
}
.layer-item:hover { border-color: var(--border2); }
.layer-item.active { border-color: var(--accent); background: rgba(124,58,237,0.08); }
.layer-thumb {
  width: 36px; height: 36px;
  border-radius: 4px;
  background: var(--surface2);
  overflow: hidden;
  flex-shrink: 0;
}
.layer-thumb img, .layer-thumb video { width: 100%; height: 100%; object-fit: cover; }
.layer-label { flex: 1; font-size: 0.82rem; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.layer-type { font-size: 0.7rem; color: var(--text3); }
.layer-controls { display: flex; gap: 0.4rem; }
.studio-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
}
.blend-modes-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 0.35rem;
}
.blend-mode-btn {
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text2);
  transition: all var(--trans);
  background: var(--surface);
  text-align: center;
}
.blend-mode-btn.active { border-color: var(--accent); color: var(--accent); background: rgba(124,58,237,0.1); }
.blend-mode-btn:hover { border-color: var(--border2); color: var(--text); }

/* Export */
.export-options { display: flex; flex-direction: column; gap: 0.5rem; }
.export-btn {
  width: 100%;
  padding: 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 0.4rem;
  transition: all var(--trans);
}

/* ════════════════════════════════════════════
   MUSIC PLAYER BAR
   ════════════════════════════════════════════ */
.player-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(10,10,15,0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--border);
  z-index: var(--z-player);
  display: flex;
  flex-direction: column;
  transition: border-radius 0.2s, box-shadow 0.2s, width 0.2s;
}
.player-bar.hidden { display: none !important; }

/* Drag handle strip */
.player-bar-header {
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.75rem;
  cursor: grab;
  user-select: none;
  flex-shrink: 0;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  opacity: 0.7;
  transition: opacity 0.2s;
}
.player-bar:hover .player-bar-header { opacity: 1; }
.player-bar-header:active { cursor: grabbing; }
.player-drag-dots { font-size: 1rem; color: var(--text2); letter-spacing: 1px; }
.player-bar-hdr-btns { display: flex; gap: 4px; }
.pbar-hdr-btn {
  width: 22px; height: 16px;
  border: none; background: none;
  color: var(--text); cursor: pointer;
  font-size: 0.85rem; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.pbar-hdr-btn:hover { background: var(--surface2); color: var(--text); }
#player-dock-btn { display: none; }

/* Player body (the actual grid) */
.player-bar-body {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: center;
  padding: 0 1.5rem;
  gap: 1rem;
  height: var(--player-h);
}

/* ── Floating state (detached from bottom) ── */
.player-bar.floating {
  bottom: auto !important;
  right: auto !important;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(0,0,0,0.7);
  width: 420px;
}
.player-bar.floating .player-bar-body {
  grid-template-columns: 1fr 1.4fr 0.7fr;
}

/* ── Enlarged state (forstørre — litt større) ── */
.player-bar.floating.enlarged { width: 540px; }
.player-bar.enlarged .player-bar-body {
  height: auto;
  min-height: var(--player-h);
  padding-top: 0.5rem; padding-bottom: 0.5rem;
}
.player-bar.enlarged .player-artwork { width: 64px; height: 64px; }
.player-bar.enlarged .ctrl-btn  { width: 38px; height: 38px; font-size: 1.05rem; }
.player-bar.enlarged .ctrl-play { width: 48px; height: 48px; font-size: 1.3rem; }
.player-bar.enlarged .player-title { font-size: 1rem; }

/* ── Minimized state ── */
.player-bar.minimized .player-bar-body {
  grid-template-columns: 1fr auto;
  height: auto;
  padding: 0.4rem 1rem;
  gap: 0.5rem;
}
.player-bar.minimized .player-center,
.player-bar.minimized .player-right { display: none; }
.player-bar.minimized .player-artwork { width: 36px; height: 36px; }
.player-bar.minimized .player-artist { display: none; }
/* show a compact play btn next to meta when minimized */
.player-mini-play {
  display: none;
  align-items: center;
  gap: 0.5rem;
}
.player-bar.minimized .player-mini-play { display: flex; }
.player-left { display: flex; align-items: center; gap: 0.85rem; min-width: 0; }
.player-artwork {
  width: 52px; height: 52px;
  border-radius: 8px;
  background: var(--accentG);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.artwork-note { font-size: 1.4rem; }
.player-artwork img { width: 100%; height: 100%; object-fit: cover; }
.player-meta { min-width: 0; }
.player-title { font-size: 0.875rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-artist { font-size: 0.75rem; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-center { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.player-controls { display: flex; align-items: center; gap: 0.5rem; }
.ctrl-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text);
  font-size: 0.9rem;
  transition: all var(--trans);
  background: none;
  border: none;
  cursor: pointer;
}
.ctrl-btn:hover { color: #fff; }
.ctrl-play {
  width: 40px; height: 40px;
  background: var(--accent);
  color: #fff;
  font-size: 1.1rem;
}
.ctrl-play:hover { background: #6d28d9; color: #fff; }
.ctrl-btn.active { color: var(--accent); }

/* ── Radio mode player bar ───────────────────────────────────────────── */
.player-bar.radio-mode .player-progress-row,
.player-bar.radio-mode #ctrl-shuffle,
.player-bar.radio-mode #ctrl-prev,
.player-bar.radio-mode #ctrl-next,
.player-bar.radio-mode #ctrl-repeat,
.player-bar.radio-mode #ctrl-queue { display: none; }
.player-bar.radio-mode .player-left { cursor: pointer; }
.player-bar.radio-mode .player-left:hover .player-title { color: var(--accent); text-decoration: underline; }
.radio-live-badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.06em;
  color: #ef4444; background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: 99px; padding: 0.15rem 0.45rem;
  vertical-align: middle; margin-right: 0.25rem;
}
.live-dot-sm {
  display: inline-block; width: 5px; height: 5px;
  border-radius: 50%; background: #ef4444;
  animation: livePulse 1.2s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; } 50% { opacity: 0.3; }
}

.player-progress-row { display: flex; align-items: center; gap: 0.6rem; width: 100%; font-size: 0.7rem; color: var(--text3); }
.progress-track {
  position: relative;
  flex: 1;
  height: 4px;
  background: var(--border2);
  border-radius: 99px;
  overflow: visible;
}
.progress-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: var(--accent);
  border-radius: 99px;
  pointer-events: none;
  width: 0%;
  transition: width 0.1s linear;
}
.progress-track input[type="range"] {
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  margin: 0;
}
.player-right { display: flex; align-items: center; gap: 0.5rem; justify-content: flex-end; }
.vol-icon { font-size: 0.9rem; }
.vol-track { width: 90px; }
.queue-panel {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  width: 320px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-height: 400px;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.queue-header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.queue-header h3 { font-size: 0.9rem; font-weight: 700; }
#queue-list { overflow-y: auto; flex: 1; }
.queue-item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.6rem 1rem;
  cursor: pointer;
  transition: background var(--trans);
  font-size: 0.82rem;
}
.queue-item:hover { background: var(--surface); }
.queue-item.active { color: var(--accent); }
.queue-num { width: 20px; text-align: center; color: var(--text3); font-size: 0.75rem; flex-shrink: 0; }

/* ════════════════════════════════════════════
   SETTINGS PAGE
   ════════════════════════════════════════════ */
.settings-page { max-width: 700px; margin: 0 auto; padding: 2rem 1.5rem; }
.settings-page h1 { font-size: 1.75rem; font-weight: 800; margin-bottom: 1.25rem; }
.inbox-tabs {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border, rgba(255,255,255,0.08));
  padding-bottom: 0;
}
.inbox-tab-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text2);
  font-size: 0.85rem;
  padding: 0.55rem 1.1rem 0.65rem;
  cursor: pointer;
  font-weight: 500;
  transition: color 0.15s, border-color 0.15s;
  margin-bottom: -1px;
  border-radius: 0;
  white-space: nowrap;
}
.inbox-tab-btn:hover { color: var(--text); }
.inbox-tab-btn.active { color: var(--accent, #7c3aed); border-bottom-color: var(--accent, #7c3aed); font-weight: 700; }
.settings-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.settings-section-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  display: flex; align-items: center; gap: 0.5rem;
}
.settings-section-body { padding: 1.5rem; }
.settings-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}
.settings-row:last-child { border-bottom: none; }
.settings-row-label { font-size: 0.875rem; font-weight: 500; }
.settings-row-hint { font-size: 0.75rem; color: var(--text3); margin-top: 0.1rem; }

/* Template variable guide */
.template-guide {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: .5rem;
  font-size: .8rem;
}
.template-guide-title {
  font-weight: 600;
  margin-bottom: .6rem;
  color: var(--text3);
}
.template-guide-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem;
  margin-bottom: .4rem;
}
.template-guide-row:last-child { margin-bottom: 0; }
.template-guide-row strong { color: var(--text2); margin-right: .15rem; }
.template-guide code {
  background: rgba(255,255,255,.08);
  padding: .1rem .35rem;
  border-radius: .25rem;
  font-size: .77rem;
  color: var(--accent);
  font-family: monospace;
}

/* API Key fields */
.api-key-field { position: relative; }
.api-key-field input { padding-right: 3.5rem; font-family: monospace; font-size: 0.8rem; }
.api-key-toggle {
  position: absolute;
  right: 0.5rem; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  color: var(--text3); cursor: pointer;
  font-size: 0.85rem;
}

/* ════════════════════════════════════════════
   UTILITY
   ════════════════════════════════════════════ */
.hidden { display: none !important; }
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.text-accent { color: var(--accent); }
.text-muted { color: var(--text2); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.font-bold { font-weight: 700; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.w-full { width: 100%; }
.divider { height: 1px; background: var(--border); margin: 1rem 0; }
.badge {
  display: inline-flex; align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-purple { background: rgba(124,58,237,0.15); color: #a78bfa; }
.badge-gold   { background: rgba(245,158,11,0.15); color: #fbbf24; }
.badge-green  { background: rgba(34,197,94,0.15);  color: #4ade80; }
.badge-red    { background: rgba(239,68,68,0.15);  color: #f87171; }

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text3);
}
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 1rem; }
.empty-state p { font-size: 0.9rem; }

.spinner {
  width: 24px; height: 24px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

/* Page loader */
.page-loading {
  display: flex; align-items: center; justify-content: center;
  height: 60vh;
}

/* Chip inputs */
.chip-input-wrap { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.chip {
  display: flex; align-items: center; gap: 0.3rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 0.2rem 0.6rem;
  font-size: 0.78rem;
  color: var(--text2);
}
.chip button { color: var(--text3); font-size: 0.8rem; line-height: 1; }
.chip-input {
  background: none; border: none; outline: none;
  color: var(--text); font-size: 0.82rem;
  min-width: 80px; flex: 1;
}

/* Glass card */
.glass-card {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
}

/* Hover card anim */
.hover-lift { transition: transform var(--trans), box-shadow var(--trans); }
.hover-lift:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

/* Profile custom font apply (legacy values fall back gracefully to base font) */
[data-profile-font="Space Grotesk"] .profile-display-name { font-family: 'Space Grotesk', sans-serif; }
[data-profile-font="Inter"] .profile-display-name { font-family: 'Inter', sans-serif; }

/* ════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════ */
@media (max-width: 900px) {
  .editor-layout { grid-template-columns: 1fr; }
  .editor-sidebar { position: static; }
  .studio-layout { grid-template-columns: 1fr; }
  .studio-panel { position: static; }
  .player-bar-body {
    grid-template-columns: 1fr 1fr;
    height: auto;
    padding: 0.75rem 1rem;
    gap: 0.5rem;
  }
  .player-center { grid-column: 1/-1; order: -1; }
  --player-h: 110px;
}
@media (max-width: 600px) {
  .nav-center { display: none; }
  .auth-card { padding: 1.75rem 1.25rem; }
  .profile-header { flex-direction: column; align-items: flex-start; }
  .media-grid { grid-template-columns: repeat(2,1fr); }
  .users-grid { grid-template-columns: repeat(2,1fr); }
  .landing-hero h1 { font-size: clamp(2rem,8vw,3rem); }
}

/* ════════════════════════════════════════════
   RADIO PAGE
   ════════════════════════════════════════════ */
.radio-page {
  display: grid;
  grid-template-columns: 300px 1fr;
  height: calc(100vh - var(--nav-h) - var(--player-h));
  overflow: hidden;
}
.radio-sidebar {
  background: var(--bg2);
  border-right: 1px solid var(--border);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.radio-sidebar-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 0.5rem;
  font-weight: 800; font-size: 1rem;
  position: sticky; top: 0;
  background: var(--bg2);
  z-index: 10;
}
.radio-category {
  padding: 0.6rem 1.25rem 0.3rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text3);
}
.radio-station-btn {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 1.25rem;
  cursor: pointer;
  transition: background var(--trans);
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  color: var(--text2);
  position: relative;
}
.radio-station-btn:hover { background: var(--surface); color: var(--text); }
.radio-station-btn.active { background: var(--surface2); color: var(--text); }
.radio-station-btn.active::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--station-color, var(--accent));
  border-radius: 0 2px 2px 0;
}
.station-emoji { font-size: 1.3rem; flex-shrink: 0; }
.station-info { min-width: 0; }
.station-name { font-size: 0.85rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.station-desc { font-size: 0.72rem; color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.station-live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  box-shadow: 0 0 6px var(--green);
  animation: pulse 1.5s ease infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 4px var(--green); }
  50%      { box-shadow: 0 0 12px var(--green); }
}

.station-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.station-play-btn,
.station-vol-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.78rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text2);
  transition: background var(--trans), color var(--trans);
  flex-shrink: 0;
}
.station-play-btn:hover,
.station-vol-btn:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text);
}
.radio-station-btn.active .station-play-btn {
  color: var(--station-color, var(--accent));
}

/* Radio main */
.radio-main {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative; /* anchor for the resizable embed pane */
}
.radio-welcome-hero {
  padding: 2.5rem 2rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 8%, transparent), color-mix(in srgb, var(--accent2) 5%, transparent));
}
.radio-welcome-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.05;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.radio-welcome-sub {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  color: var(--text2);
  letter-spacing: 0.03em;
}
.radio-now-playing {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--surface);
  flex-shrink: 0;
}
.radio-station-art {
  width: 80px; height: 80px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.radio-station-art::before {
  content: '';
  position: absolute; inset: 0;
  background: inherit;
  filter: blur(8px);
  opacity: 0.5;
}
.radio-station-art span { position: relative; z-index: 1; }
.radio-np-info { flex: 1; min-width: 0; }
.radio-np-badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: rgba(239,68,68,0.15);
  border: 1px solid rgba(239,68,68,0.3);
  color: #f87171;
  border-radius: 99px;
  padding: 0.2rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.radio-np-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 1s ease infinite; }
.radio-np-name { font-size: 1.3rem; font-weight: 800; margin-bottom: 0.2rem; }
.radio-np-desc { color: var(--text2); font-size: 0.875rem; }
.radio-np-controls { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }
.radio-main-btns { display: flex; align-items: center; gap: 0.5rem; }
.radio-play-btn {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  border: none; cursor: pointer;
  transition: all var(--trans);
}
.radio-play-btn:hover { transform: scale(1.08); }
.radio-stop-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; border: 1px solid var(--border2);
  color: var(--text2); background: rgba(255,255,255,0.05);
  cursor: pointer; transition: all var(--trans);
}
.radio-stop-btn:hover { border-color: #ef4444; color: #ef4444; background: rgba(239,68,68,0.1); }
.radio-mute-btn {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; border: none; background: none;
  cursor: pointer; transition: transform var(--trans);
  flex-shrink: 0;
}
.radio-mute-btn:hover { transform: scale(1.15); }
.radio-vol-wrap { display: flex; align-items: center; gap: 0.4rem; }
.radio-vol-wrap input[type="range"] { width: 80px; }

/* Visualizer */
.radio-visualizer-wrap {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: #000;
  min-height: 200px;
}
.radio-visualizer-wrap.hidden { display: none; }
#radio-canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.radio-vis-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.radio-idle-text {
  font-size: 1rem;
  color: var(--text3);
  text-align: center;
  padding: 1rem;
}

/* Vis style buttons */
.vis-style-row {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  display: flex;
  gap: 0.35rem;
}
.vis-btn {
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-sm);
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--trans);
}
.vis-btn.active, .vis-btn:hover { background: rgba(124,58,237,0.4); border-color: var(--accent); color: #fff; }

/* Visualizer size control (top-left) + size presets */
.vis-size-row {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: flex;
  gap: 0.35rem;
  z-index: 2;
}
.radio-visualizer-wrap.vis-size-small  { flex: none; height: 150px; }
.radio-visualizer-wrap.vis-size-medium { flex: none; height: 260px; }
.radio-visualizer-wrap.vis-size-large  { flex: none; height: 460px; }
.radio-visualizer-wrap.vis-size-full {
  position: fixed; inset: 0; z-index: 3000;
  width: 100vw; height: 100vh; min-height: 0; border-radius: 0;
}

/* Search field */
.radio-search-wrap {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  position: relative;
  flex-shrink: 0;
}
.radio-search-box {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 0.75rem;
  gap: 0.5rem;
  transition: border-color var(--trans);
}
.radio-search-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(124,58,237,0.15);
}
.radio-search-icon { color: var(--text3); font-size: 1.1rem; flex-shrink: 0; }
.radio-search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 0.85rem;
  padding: 0.6rem 0;
  font-family: inherit;
}
.radio-search-input::placeholder { color: var(--text3); }

.radio-search-results {
  margin-top: 0.5rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow-y: auto;
  max-height: 280px;
}
.radio-search-results.hidden { display: none; }
.radio-search-loading,
.radio-search-empty {
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  color: var(--text3);
  text-align: center;
}
.radio-search-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.9rem;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background var(--trans);
}
.radio-search-item:last-child { border-bottom: none; }
.radio-search-item:hover { background: var(--surface); }
.radio-search-item-info { flex: 1; min-width: 0; }
.radio-search-item-name {
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
}
.radio-search-item-meta {
  font-size: 0.7rem;
  color: var(--text3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}
.radio-search-save-btn {
  flex-shrink: 0;
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.3);
  color: var(--accent);
  border-radius: var(--radius-sm);
  width: 26px; height: 26px;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--trans);
}
.radio-search-save-btn:hover { background: var(--accent); color: #fff; }

/* Custom stream add */
.radio-custom-stream {
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--border);
  display: flex; gap: 0.5rem;
  flex-shrink: 0;
}
.radio-custom-stream input { flex: 1; }

/* ── Radio AI Assistant ───────────────────────────────────────────────── */
.radio-ai-wrap {
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.radio-ai-toggle {
  width: 100%; padding: 0.75rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.5rem; font-size: 0.8rem; font-weight: 600;
  color: var(--text2); background: none; border: none; cursor: pointer;
  transition: color var(--trans);
}
.radio-ai-toggle:hover { color: var(--accent); }
.radio-ai-chat {
  flex-direction: column;
  border-top: 1px solid var(--border);
  max-height: 320px;
}
.radio-ai-messages {
  flex: 1; overflow-y: auto; padding: 0.75rem 1rem;
  display: flex; flex-direction: column; gap: 0.6rem;
  min-height: 0;
}
.radio-ai-welcome {
  font-size: 0.78rem; color: var(--text2);
  background: rgba(124,58,237,0.08); border-radius: 10px;
  padding: 0.6rem 0.75rem;
}
.radio-ai-suggestions {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
}
.radio-ai-suggestions button {
  font-size: 0.7rem; padding: 0.25rem 0.6rem;
  border: 1px solid var(--border2); border-radius: 99px;
  color: var(--text2); background: none; cursor: pointer;
  transition: all var(--trans);
}
.radio-ai-suggestions button:hover { border-color: var(--accent); color: var(--accent); }
.radio-ai-msg {
  font-size: 0.78rem; line-height: 1.5;
  padding: 0.5rem 0.75rem; border-radius: 10px;
  max-width: 92%; word-break: break-word;
}
.radio-ai-msg-user {
  background: var(--accent); color: #fff;
  align-self: flex-end; border-bottom-right-radius: 3px;
}
.radio-ai-msg-assistant {
  background: rgba(255,255,255,0.05); color: var(--text);
  align-self: flex-start; border-bottom-left-radius: 3px;
}
.radio-ai-station-link {
  background: none; border: none; padding: 0;
  color: var(--accent); font-weight: 600; cursor: pointer;
  text-decoration: underline; font-size: inherit;
}
.radio-ai-station-link:hover { opacity: 0.8; }
.radio-ai-typing { display: flex; gap: 4px; align-items: center; height: 1.2em; }
.radio-ai-typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--text3); animation: aiDot 1.2s ease-in-out infinite;
}
.radio-ai-typing span:nth-child(2) { animation-delay: 0.2s; }
.radio-ai-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes aiDot { 0%,80%,100%{opacity:.2;transform:scale(0.8)} 40%{opacity:1;transform:scale(1)} }
.radio-ai-input-row {
  display: flex; gap: 0.4rem;
  padding: 0.6rem 1rem; border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.radio-ai-input {
  flex: 1; background: rgba(255,255,255,0.05);
  border: 1px solid var(--border2); border-radius: 8px;
  padding: 0.4rem 0.65rem; color: var(--text); font-size: 0.78rem;
  outline: none; transition: border-color var(--trans);
}
.radio-ai-input:focus { border-color: var(--accent); }
.radio-ai-send {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--accent); color: #fff;
  border: none; cursor: pointer; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background var(--trans);
}
.radio-ai-send:hover { background: #6d28d9; }

/* ════════════════════════════════════════════
   CHAT PAGE
   ════════════════════════════════════════════ */
/* Floating chat window */
.chat-float-window {
  position: fixed;
  z-index: var(--z-ai);
  display: flex;
  flex-direction: column;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 10px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.72), 0 0 0 1px rgba(124,58,237,0.14);
  overflow: hidden;
  min-width: 420px;
  min-height: 300px;
}

.chat-float-drag-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0 0.75rem;
  height: 28px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  cursor: grab;
  user-select: none;
  flex-shrink: 0;
}
.chat-float-drag-bar:active { cursor: grabbing; }

.chat-float-grip {
  font-size: 1.1rem;
  color: var(--text3);
  letter-spacing: 1px;
  line-height: 1;
}
.chat-float-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text2);
  flex: 1;
}
.chat-float-btn {
  width: 26px; height: 22px;
  border: none; background: none;
  color: var(--text2); cursor: pointer;
  font-size: 1.1rem; font-weight: 700;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
  line-height: 1;
}
.chat-float-btn:hover { background: var(--surface2); color: var(--text); }

/* Minimized: hide everything except the drag bar */
.chat-float-window.minimized { height: auto !important; min-height: 0 !important; }
.chat-float-window.minimized .chat-page { display: none; }
.chat-float-window.minimized .cfr { display: none; }

/* Nav chat bubble toggle button */
.nav-chat-bubble-btn { position: relative; }
.nav-chat-bubble-btn.active { background: var(--accent) !important; color: #fff !important; }

/* Chat page fills remaining height inside float window */
.chat-float-window .chat-page {
  flex: 1;
  height: 0;
  min-height: 0;
}

/* Resize handles */
.cfr {
  position: absolute;
  z-index: 20;
}
.cfr.n  { top: 0;    left: 10px; right: 10px; height: 5px; cursor: n-resize; }
.cfr.s  { bottom: 0; left: 10px; right: 10px; height: 5px; cursor: s-resize; }
.cfr.e  { right: 0;  top: 10px; bottom: 10px; width: 5px;  cursor: e-resize; }
.cfr.w  { left: 0;   top: 10px; bottom: 10px; width: 5px;  cursor: w-resize; }
.cfr.ne { top: 0;    right: 0;  width: 14px; height: 14px; cursor: ne-resize; }
.cfr.nw { top: 0;    left: 0;   width: 14px; height: 14px; cursor: nw-resize; }
.cfr.se { bottom: 0; right: 0;  width: 14px; height: 14px; cursor: se-resize; }
.cfr.sw { bottom: 0; left: 0;   width: 14px; height: 14px; cursor: sw-resize; }

.chat-page {
  display: grid;
  grid-template-columns: 1fr 380px;
  height: calc(100vh - var(--nav-h) - var(--player-h));
  overflow: hidden;
}
.chat-stream-panel {
  display: flex;
  flex-direction: column;
  background: #000;
  overflow: hidden;
}
.chat-stream-header {
  padding: 0.75rem 1rem;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 0.75rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.stream-url-input { flex: 1; min-width: 200px; }
#yt-iframe-wrap {
  flex: 1;
  position: relative;
  background: #000;
}
#yt-iframe-wrap iframe {
  width: 100%; height: 100%;
  border: none;
  display: block;
}
.yt-placeholder {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text3);
  gap: 1rem;
  padding: 2rem;
  text-align: center;
}
.yt-placeholder .yt-icon { font-size: 4rem; }
.yt-placeholder p { font-size: 0.9rem; max-width: 340px; line-height: 1.6; }
.yt-live-badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  background: #dc2626;
  color: #fff;
  border-radius: 4px;
  padding: 0.15rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
}

/* Chat panel */
.chat-panel {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border);
  background: var(--bg2);
  overflow: hidden;
}
.chat-header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 0.75rem;
  flex-shrink: 0;
}
.chat-header h2 { font-size: 1rem; font-weight: 700; flex: 1; }
.online-count {
  display: flex; align-items: center; gap: 0.35rem;
  font-size: 0.75rem; color: var(--green);
  white-space: nowrap;
}
.online-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: pulse 2s ease infinite; }

/* Nickname bar */
.nick-bar {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.82rem;
  background: var(--surface);
  flex-shrink: 0;
}
.nick-bar label { color: var(--text2); white-space: nowrap; }
.nick-display {
  font-weight: 700;
  color: var(--accent);
  cursor: pointer;
  display: flex; align-items: center; gap: 0.3rem;
}
.nick-display:hover { text-decoration: underline; }
.nick-edit-form { display: flex; gap: 0.4rem; flex: 1; }
.nick-edit-form input { flex: 1; }

/* Messages */
#chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.chat-msg {
  padding: 0.3rem 1rem;
  line-height: 1.5;
  animation: msgIn 0.2s ease;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  font-size: 0.85rem;
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: none; }
}
.chat-msg:hover { background: var(--surface); }
.chat-msg-time {
  font-size: 0.68rem;
  color: var(--text3);
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 36px;
  opacity: 0;
  transition: opacity 0.15s;
}
.chat-msg:hover .chat-msg-time { opacity: 1; }
.chat-msg-nick {
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}
.chat-msg-nick.is-self { color: var(--accent); }
.chat-msg-text { color: var(--text); word-break: break-word; flex: 1; }
.chat-msg-text a { color: var(--accent); }
.chat-system-msg {
  padding: 0.25rem 1rem;
  font-size: 0.75rem;
  color: var(--text3);
  font-style: italic;
  text-align: center;
}

/* Chat input */
.chat-input-area {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--bg2);
}
.chat-input-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
#chat-text {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 0.55rem 1rem;
  color: var(--text);
  font-size: 0.875rem;
  outline: none;
  transition: border-color var(--trans);
  resize: none;
}
#chat-text:focus { border-color: var(--accent); }
#chat-send {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  border: none;
  cursor: pointer;
  transition: background var(--trans);
}
#chat-send:hover { background: #6d28d9; }
.chat-status {
  font-size: 0.7rem;
  color: var(--text3);
  text-align: center;
  margin-top: 0.35rem;
}

/* Chat emoji picker */
.emoji-bar {
  display: flex; gap: 0.25rem;
  padding: 0.3rem 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.emoji-bar::-webkit-scrollbar { display: none; }
.emoji-pill {
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background var(--trans);
  flex-shrink: 0;
  border: none;
  background: none;
}
.emoji-pill:hover { background: var(--surface2); }

/* ════════════════════════════════════════════
   NOW PLAYING — home page section
   ════════════════════════════════════════════ */
.np-section { margin-top: 0; }
.np-section .section-sub {
  font-size: 0.78rem;
  color: var(--text3);
  margin-top: 0.25rem;
}

.np-mini-player {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.45rem 0.75rem;
  margin-top: 0.65rem;
  max-width: 300px;
}
.np-mini-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--accent, #7c3aed);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.15s;
}
.np-mini-btn:hover { background: #6d28d9; transform: scale(1.08); }
.np-mini-meta { flex: 1; min-width: 0; }
.np-mini-name {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.np-mini-live {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  color: var(--text3);
  margin-top: 0.1rem;
}
.np-mini-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text3);
  flex-shrink: 0;
  transition: background 0.3s;
}
.np-mini-dot.active {
  background: #22c55e;
  animation: np-mini-pulse 1.4s ease-in-out infinite;
}
@keyframes np-mini-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.np-mini-eq {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 16px;
  opacity: 0;
  transition: opacity 0.3s;
}
.np-mini-eq.active { opacity: 1; }
.np-mini-eq span {
  width: 3px;
  background: var(--accent, #7c3aed);
  border-radius: 2px;
  transform-origin: bottom;
  animation: np-mini-bar 0.8s ease-in-out infinite alternate;
}
.np-mini-eq span:nth-child(1) { height: 40%; animation-delay: 0s; }
.np-mini-eq span:nth-child(2) { height: 80%; animation-delay: 0.15s; }
.np-mini-eq span:nth-child(3) { height: 55%; animation-delay: 0.3s; }
.np-mini-eq span:nth-child(4) { height: 90%; animation-delay: 0.1s; }
@keyframes np-mini-bar { from { transform: scaleY(0.35); } to { transform: scaleY(1); } }

.np-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.np-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow: hidden;
  transition: transform var(--trans), box-shadow var(--trans);
}
.np-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.np-card-glow {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  pointer-events: none;
}

.np-card-user {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: inherit;
  z-index: 1;
}
.np-card-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem;
  flex-shrink: 0;
  overflow: hidden;
}
.np-card-name { font-size: 0.88rem; font-weight: 600; }
.np-card-username { font-size: 0.72rem; color: var(--text3); }

.np-card-station {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 1;
}
.np-card-emoji { font-size: 1.4rem; line-height: 1; }
.np-card-station-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.np-play-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 99px;
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--trans), transform var(--trans);
  z-index: 1;
  align-self: flex-start;
}
.np-play-btn:hover { background: #6d28d9; transform: scale(1.04); }

/* ════════════════════════════════════════════
   PROFILE RADIO WIDGET (on profile page)
   ════════════════════════════════════════════ */
.profile-radio-widget {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: 14px;
  padding: 0.75rem 1rem;
  margin: 0.75rem 0;
}
.profile-radio-badge {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}
.profile-radio-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}
.profile-radio-emoji { font-size: 1.6rem; line-height: 1; }
.profile-radio-info { flex: 1; min-width: 0; }
.profile-radio-name { font-size: 0.9rem; font-weight: 700; }
.profile-radio-sub  { font-size: 0.72rem; color: var(--text3); margin-top: 0.1rem; }
.profile-radio-url  { font-size: 0.68rem; color: var(--text3); margin-top: 0.1rem; word-break: break-all; }

.profile-radio-play {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 99px;
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--trans);
}
.profile-radio-play:hover { background: #6d28d9; }

/* ════════════════════════════════════════════
   RADIO — External embed player
   ════════════════════════════════════════════ */
.radio-embed-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  overflow: hidden;
  min-height: 300px;
  position: relative; /* positioning context for the .rer resize handles */
}
.radio-embed-wrap.hidden { display: none; }

/* When the user has dragged a handle, the pane becomes an explicitly-sized,
   absolutely-positioned box anchored inside .radio-main (sidebar stays put). */
.radio-embed-wrap.resized {
  position: absolute;
  flex: none;
  z-index: 5;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.45);
}

/* Resize handles — edges (5px) + corners (14px), mirrors chat's .cfr */
.rer {
  position: absolute;
  z-index: 6;
  touch-action: none;
}
.rer.n  { top: 0;    left: 10px; right: 10px; height: 5px; cursor: n-resize; }
.rer.s  { bottom: 0; left: 10px; right: 10px; height: 5px; cursor: s-resize; }
.rer.e  { right: 0;  top: 10px; bottom: 10px; width: 5px;  cursor: e-resize; }
.rer.w  { left: 0;   top: 10px; bottom: 10px; width: 5px;  cursor: w-resize; }
.rer.ne { top: 0;    right: 0;  width: 14px; height: 14px; cursor: ne-resize; }
.rer.nw { top: 0;    left: 0;   width: 14px; height: 14px; cursor: nw-resize; }
.rer.se { bottom: 0; right: 0;  width: 14px; height: 14px; cursor: se-resize; }
.rer.sw { bottom: 0; left: 0;   width: 14px; height: 14px; cursor: sw-resize; }
/* Subtle visible grip on the bottom-right corner */
.rer.se::after {
  content: "";
  position: absolute;
  right: 3px; bottom: 3px;
  width: 7px; height: 7px;
  border-right: 2px solid var(--text3);
  border-bottom: 2px solid var(--text3);
  opacity: 0.6;
}

.radio-embed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.radio-embed-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
}
.radio-embed-info span:first-child { font-size: 1.4rem; }

.radio-embed-frame {
  flex: 1;
  width: 100%;
  border: none;
  background: #fff;
}

.ext-player-badge {
  margin-left: auto;
  background: rgba(225,29,72,0.15);
  color: #e11d48;
  border: 1px solid rgba(225,29,72,0.3);
  border-radius: 4px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 0.1rem 0.35rem;
  flex-shrink: 0;
}

/* ════════════════════════════════════════════
   RADIO — Set as favourite button
   ════════════════════════════════════════════ */
.radio-set-fav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(245,158,11,0.15);
  border: 1px solid rgba(245,158,11,0.4);
  color: var(--gold, #f59e0b);
  border-radius: 99px;
  padding: 0.3rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: background var(--trans), transform var(--trans);
}
.radio-set-fav-btn:hover:not(:disabled) { background: rgba(245,158,11,0.28); transform: scale(1.03); }
.radio-set-fav-btn:disabled { opacity: 0.6; cursor: default; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .radio-page { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .radio-sidebar { max-height: 220px; border-right: none; border-bottom: 1px solid var(--border); }
  .chat-page { grid-template-columns: 1fr; grid-template-rows: 50% 50%; }
  .chat-panel { border-left: none; border-top: 1px solid var(--border); }
  .np-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}

/* ════════════════════════════════════════════
   COLORFUL NAV — rainbow border + glowing links
   ════════════════════════════════════════════ */
/* Override the static border-bottom with an animated rainbow line */
#main-nav { border-bottom: none !important; }
/* Subtle static brand hairline — replaced the animated rainbow sweep for a
   calmer, less "generated" feel while keeping a hint of the accent palette. */
#main-nav::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent, rgba(124,58,237,0.45), rgba(37,99,235,0.45), transparent);
  pointer-events: none;
}

/* Radio nav link — purple glow */
.nav-link-radio {
  color: #c4b5fd !important;
  border-color: rgba(124,58,237,0.4) !important;
  background: rgba(124,58,237,0.12) !important;
}
.nav-link-radio:hover {
  color: #ede9fe !important;
  background: rgba(124,58,237,0.25) !important;
  border-color: rgba(167,139,250,0.6) !important;
  box-shadow: 0 0 16px rgba(124,58,237,0.35) !important;
}

/* Discover nav link — pink/fuchsia glow */
.nav-link-discover {
  color: #f9a8d4 !important;
  border-color: rgba(236,72,153,0.4) !important;
  background: rgba(236,72,153,0.1) !important;
}
.nav-link-discover:hover {
  color: #fce7f3 !important;
  background: rgba(236,72,153,0.2) !important;
  border-color: rgba(249,168,212,0.6) !important;
  box-shadow: 0 0 16px rgba(236,72,153,0.3) !important;
}

/* Shows nav link — amber/gold glow */
.nav-link-shows {
  color: #fcd34d !important;
  border-color: rgba(245,158,11,0.4) !important;
  background: rgba(245,158,11,0.08) !important;
}
.nav-link-shows:hover {
  color: #fef3c7 !important;
  background: rgba(245,158,11,0.18) !important;
  border-color: rgba(252,211,77,0.6) !important;
  box-shadow: 0 0 16px rgba(245,158,11,0.3) !important;
}

/* Chat nav link — cyan/blue glow */
.nav-link-chat {
  color: #7dd3fc !important;
  border-color: rgba(6,182,212,0.4) !important;
  background: rgba(6,182,212,0.1) !important;
}
.nav-link-chat:hover {
  color: #e0f2fe !important;
  background: rgba(6,182,212,0.2) !important;
  border-color: rgba(56,189,248,0.6) !important;
  box-shadow: 0 0 16px rgba(6,182,212,0.3) !important;
}

/* ════════════════════════════════════════════
   CHAT — PANEL TABS (Radio / YouTube switcher)
   ════════════════════════════════════════════ */
.chat-panel-tabs {
  display: flex;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
}
.chat-panel-tab {
  flex: 1;
  padding: 0.7rem 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text2);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color var(--trans), border-color var(--trans), background var(--trans);
  letter-spacing: 0.01em;
}
.chat-panel-tab:hover { color: var(--text); background: var(--surface); }
.chat-panel-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: rgba(124,58,237,0.05);
}

/* ════════════════════════════════════════════
   CHAT — RADIO PANEL (left column)
   ════════════════════════════════════════════ */
.chat-radio-tab,
.chat-yt-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}

/* Search */
.chat-radio-search-wrap {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  position: relative;
}
.chat-radio-search-input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  color: var(--text);
  font-size: 0.82rem;
  outline: none;
  transition: border-color var(--trans);
  font-family: inherit;
}
.chat-radio-search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(124,58,237,0.12);
}
.chat-radio-search-input::placeholder { color: var(--text3); }

/* Search results dropdown */
.chat-radio-search-results {
  position: absolute;
  left: 0.75rem; right: 0.75rem;
  top: calc(100% - 0.15rem);
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  z-index: 30;
  max-height: 220px;
  overflow-y: auto;
}
.chat-radio-search-results.hidden { display: none; }
.crs-result {
  padding: 0.5rem 0.85rem;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background var(--trans);
}
.crs-result:last-child { border-bottom: none; }
.crs-result:hover { background: var(--surface); }
.crs-result-name { font-size: 0.8rem; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crs-result-meta { font-size: 0.7rem; color: var(--text3); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crs-loading, .crs-empty { padding: 0.65rem 0.85rem; font-size: 0.78rem; color: var(--text3); text-align: center; }

/* Station list */
.chat-radio-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.25rem 0;
}
.crs-empty-hint {
  padding: 1.5rem 1rem;
  font-size: 0.78rem;
  color: var(--text3);
  text-align: center;
}
.chat-radio-station {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.9rem;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text2);
  transition: background var(--trans), color var(--trans);
  position: relative;
  font-family: inherit;
}
.chat-radio-station:hover { background: var(--surface); color: var(--text); }
.chat-radio-station.active { background: var(--surface2); color: var(--text); }
.chat-radio-station.active::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--scolor, var(--accent));
  border-radius: 0 2px 2px 0;
}
.crs-emoji { font-size: 1.2rem; flex-shrink: 0; line-height: 1; }
.crs-info  { flex: 1; min-width: 0; }
.crs-name  { font-size: 0.82rem; font-weight: 700; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crs-desc  { font-size: 0.7rem; color: var(--text3); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }

/* Now-playing bar */
.chat-radio-now-playing {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.9rem;
  border-top: 1px solid var(--border);
  background: linear-gradient(90deg, rgba(124,58,237,0.1), rgba(37,99,235,0.07));
  flex-shrink: 0;
}
#chat-rnp-emoji { font-size: 1.15rem; flex-shrink: 0; }
#chat-rnp-name {
  flex: 1;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-rnp-play-btn {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background var(--trans), transform var(--trans);
}
.chat-rnp-play-btn:hover { background: #6d28d9; transform: scale(1.08); }

/* ════════════════════════════════════════════
   CHAT — QUICK COLOR SWATCH (in input row)
   ════════════════════════════════════════════ */
.chat-color-swatch {
  position: relative;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,0.25);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color var(--trans), transform var(--trans), box-shadow var(--trans);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.chat-color-swatch:hover {
  border-color: rgba(255,255,255,0.6);
  transform: scale(1.15);
  box-shadow: 0 0 10px rgba(255,255,255,0.15);
}
.chat-color-swatch input[type="color"] {
  position: absolute;
  opacity: 0;
  width: 100%; height: 100%;
  cursor: pointer;
  border: none;
  padding: 0;
  margin: 0;
}

/* Nick color wrap */
.nick-color-wrap {
  display: flex; align-items: center;
  flex-shrink: 0;
}

/* ── Responsive chat radio ── */
@media (max-width: 900px) {
  .chat-radio-tab { max-height: 200px; }
}

/* ════════════════════════════════════════════
   DISCOVER PAGE  (Bandcamp-inspired)
   ════════════════════════════════════════════ */
.disc-page {
  min-height: calc(100vh - var(--nav-h) - var(--player-h));
}

/* Hero */
.disc-hero {
  position: relative;
  text-align: center;
  padding: 4rem 1rem 3rem;
  overflow: hidden;
}
.disc-hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(124,58,237,0.2) 0%, transparent 70%);
}
.disc-hero-content { position: relative; z-index: 1; }
.disc-hero-badge {
  display: inline-block; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: #a78bfa; background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.3); border-radius: 99px;
  padding: 0.3rem 0.9rem; margin-bottom: 1rem;
}
.disc-hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800; line-height: 1.05;
  background: linear-gradient(135deg, #a78bfa 0%, #818cf8 45%, #f472b6 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 0.65rem;
}
.disc-hero-sub {
  color: var(--text2); font-size: 1rem;
  max-width: 520px; margin: 0 auto 2rem; line-height: 1.7;
}
.disc-stats-row {
  display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap;
}
.disc-stat { text-align: center; }
.disc-stat-val {
  font-size: 1.75rem; font-weight: 800;
  background: linear-gradient(135deg, #a78bfa, #f472b6);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.disc-stat-label { font-size: 0.75rem; color: var(--text3); text-transform: uppercase; letter-spacing: 0.06em; }

/* Genre bar */
.disc-genre-bar {
  display: flex; gap: 0.5rem; padding: 0 1.5rem 1.25rem;
  overflow-x: auto; scrollbar-width: none; max-width: 1200px; margin: 0 auto;
}
.disc-genre-bar::-webkit-scrollbar { display: none; }
.disc-genre-btn {
  padding: 0.4rem 1rem; border-radius: 99px; white-space: nowrap;
  font-size: 0.8rem; font-weight: 600; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); color: var(--text2);
  transition: all var(--trans); flex-shrink: 0;
}
.disc-genre-btn:hover { border-color: var(--border2); color: var(--text); }
.disc-genre-btn.active {
  background: rgba(124,58,237,0.2); border-color: var(--accent); color: #a78bfa;
  box-shadow: 0 0 12px rgba(124,58,237,0.2);
}

/* Main layout */
.disc-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}
.disc-section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.25rem;
}
.disc-section-title { font-size: 1.1rem; font-weight: 700; }
.disc-section-count { font-size: 0.8rem; color: var(--text3); }

/* Track grid */
.disc-track-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1rem;
}
.disc-track-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: all var(--trans);
}
.disc-track-card:hover {
  transform: translateY(-3px);
  border-color: var(--border2);
  box-shadow: var(--shadow);
}
.disc-track-art {
  aspect-ratio: 1;
  background: linear-gradient(135deg, #7c3aed, #2563eb);
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.disc-play-btn {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(8px);
  border: 2px solid rgba(255,255,255,0.4); color: #fff; font-size: 1.1rem;
  cursor: pointer; transition: all var(--trans);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
}
.disc-track-card:hover .disc-play-btn { opacity: 1; transform: scale(1.05); }
.disc-track-dur {
  position: absolute; bottom: 0.4rem; right: 0.4rem;
  background: rgba(0,0,0,0.65); color: #fff; font-size: 0.68rem;
  padding: 0.1rem 0.4rem; border-radius: 4px; font-weight: 600;
}
.disc-track-body { padding: 0.75rem; }
.disc-track-title {
  font-size: 0.88rem; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 0.2rem;
}
.disc-track-artist {
  font-size: 0.78rem; color: var(--accent);
  display: block; margin-bottom: 0.5rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-decoration: none;
}
.disc-track-artist:hover { text-decoration: underline; }
.disc-track-meta {
  display: flex; align-items: center; justify-content: space-between;
}
.disc-genre-tag {
  font-size: 0.68rem; color: var(--text3); text-transform: capitalize;
}
.disc-wishlist-btn {
  background: none; border: none; color: var(--text3); font-size: 1rem;
  cursor: pointer; transition: color var(--trans), transform var(--trans);
  line-height: 1; padding: 0;
}
.disc-wishlist-btn:hover { color: #ec4899; transform: scale(1.2); }

/* Download button */
.disc-download-btn {
  background: none; border: none; color: var(--text3); font-size: 0.95rem;
  cursor: pointer; transition: color var(--trans), transform var(--trans);
  line-height: 1; padding: 0;
}
.disc-download-btn:hover { color: var(--accent); transform: scale(1.2); }

/* Price badge */
.disc-price-badge {
  font-size: 0.62rem; font-weight: 700; padding: 0.1rem 0.35rem;
  border-radius: 4px; letter-spacing: 0.03em; display: inline-block;
}
.disc-price-badge--locked  { background: rgba(239,68,68,0.15); color: #f87171; }
.disc-price-badge--free    { background: rgba(34,197,94,0.15);  color: #4ade80; }
.disc-price-badge--pro     { background: rgba(245,158,11,0.15); color: #fbbf24; }

/* Mix badge on cover art */
.disc-mix-badge {
  position: absolute; top: 0.4rem; left: 0.4rem;
  background: rgba(124,58,237,0.85); backdrop-filter: blur(4px);
  color: #fff; font-size: 0.6rem; font-weight: 800; letter-spacing: 0.08em;
  padding: 0.15rem 0.4rem; border-radius: 4px;
}

/* isMix upload toggle */
.disc-upload-ismix-row {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.75rem; background: rgba(124,58,237,0.07);
  border: 1px solid rgba(124,58,237,0.2); border-radius: 10px;
  margin-bottom: 0.5rem;
}
.disc-ismix-check { width: 1.1rem; height: 1.1rem; accent-color: var(--accent); cursor: pointer; flex-shrink: 0; }
.disc-ismix-label { font-size: 0.85rem; cursor: pointer; display: flex; align-items: center; gap: 0.35rem; flex-wrap: wrap; }
.disc-ismix-icon  { font-size: 1rem; }
.disc-ismix-hint  { color: var(--text3); font-size: 0.75rem; }

/* Download payment modal */
.dl-payment-box { max-width: 420px; position: relative; }
.dl-modal-close {
  position: absolute; top: 1rem; right: 1rem;
  background: none; border: none; color: var(--text3); font-size: 1.1rem;
  cursor: pointer; line-height: 1; padding: 0.2rem 0.4rem;
}
.dl-modal-close:hover { color: var(--text1); }
.dl-modal-header { text-align: center; margin-bottom: 1.25rem; }
.dl-modal-icon   { font-size: 2.5rem; margin-bottom: 0.4rem; }
.dl-modal-title  { margin: 0 0 0.3rem; font-size: 1.1rem; font-weight: 700; }
.dl-modal-track-info { color: var(--text2); font-size: 0.85rem; display: flex; flex-direction: column; gap: 0.1rem; }
.dl-modal-quota-box {
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-radius: 10px; padding: 0.85rem; margin-bottom: 1.25rem;
}
.dl-modal-quota-bar {
  height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; margin-bottom: 0.5rem;
}
.dl-modal-quota-fill {
  height: 100%; background: linear-gradient(90deg, #7c3aed, #ec4899); border-radius: 3px;
  transition: width 0.4s ease;
}
.dl-modal-quota-text { margin: 0; font-size: 0.8rem; color: var(--text2); line-height: 1.5; }
.dl-modal-price-row  { text-align: center; margin-bottom: 1.25rem; }
.dl-modal-price      { font-size: 2.5rem; font-weight: 800; color: var(--accent); line-height: 1; }
.dl-modal-currency   { font-size: 1.2rem; font-weight: 600; }
.dl-modal-price-sub  { font-size: 0.75rem; color: var(--text3); margin-top: 0.2rem; }
.dl-modal-actions    { display: flex; flex-direction: column; gap: 0.5rem; }
.dl-pay-btn          { font-size: 1rem; padding: 0.75rem; }
.dl-modal-note       { text-align: center; font-size: 0.72rem; color: var(--text3); margin: 1rem 0 0; }

/* Empty state */
.disc-empty {
  grid-column: 1 / -1; text-align: center;
  padding: 3rem 1rem; color: var(--text3); font-size: 0.9rem; line-height: 1.7;
}

/* Sidebar */
.disc-sidebar { display: flex; flex-direction: column; gap: 1rem; }
.disc-sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px; padding: 1rem;
}
.disc-sidebar-title {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.07em; color: var(--text2); margin-bottom: 0.85rem;
  display: flex; align-items: center; gap: 0.4rem;
}

/* Live dot */
.disc-live-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: #22c55e; flex-shrink: 0;
  animation: livePulse 1.5s ease-in-out infinite;
}

/* Activity feed */
.disc-activity-feed { display: flex; flex-direction: column; gap: 0.5rem; overflow: hidden; max-height: 260px; }
.disc-activity-item {
  display: flex; align-items: flex-start; gap: 0.6rem;
  font-size: 0.75rem; color: var(--text2);
  padding: 0.35rem; border-radius: 8px;
  transition: background 0.4s;
}
.disc-activity-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--accentG);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700; color: #fff; flex-shrink: 0;
}
.disc-activity-text { flex: 1; line-height: 1.4; }
.disc-activity-user { font-weight: 700; color: var(--text); }
.disc-activity-track { font-weight: 700; color: var(--accent); }
.disc-activity-ago { font-size: 0.68rem; color: var(--text3); white-space: nowrap; flex-shrink: 0; }

/* Featured station sidebar */
.disc-featured-station { cursor: pointer; transition: border-color var(--trans); }
.disc-featured-station:hover { border-color: rgba(124,58,237,0.4); }
.disc-featured-inner {
  display: flex; align-items: center; gap: 0.75rem;
}
.disc-featured-emoji { font-size: 1.8rem; flex-shrink: 0; }
.disc-featured-name { font-size: 0.9rem; font-weight: 700; }
.disc-featured-desc { font-size: 0.72rem; color: var(--text2); margin-top: 0.1rem; }
.disc-featured-play {
  margin-left: auto; flex-shrink: 0;
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg,#7c3aed,#a855f7);
  color: #fff; font-size: 0.9rem; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--trans);
}
.disc-featured-play:hover { transform: scale(1.1); }

/* Genre count badge */
.disc-genre-count {
  display: inline-flex; align-items: center; justify-content: center;
  margin-left: 0.3rem; padding: 0 0.35rem;
  min-width: 1.2rem; height: 1.2rem; border-radius: 99px;
  font-size: 0.65rem; font-weight: 700;
  background: rgba(124,58,237,0.18); color: #a78bfa;
}
.disc-genre-btn.active .disc-genre-count { background: rgba(255,255,255,0.25); color: #fff; }
.disc-genre-btn--empty { opacity: 0.45; }

/* Genre radio widget in sidebar */
.disc-radio-widget-item {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.55rem 0.5rem; border-radius: 8px; cursor: pointer;
  transition: background var(--trans);
}
.disc-radio-widget-item:hover { background: rgba(124,58,237,0.1); }
.disc-radio-widget-emoji { font-size: 1.35rem; flex-shrink: 0; width: 2rem; text-align: center; }
.disc-radio-widget-info { flex: 1; min-width: 0; }
.disc-radio-widget-name { font-size: 0.82rem; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.disc-radio-widget-desc { font-size: 0.7rem; color: var(--text3); margin-top: 0.1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.disc-radio-widget-play {
  flex-shrink: 0; width: 1.8rem; height: 1.8rem; border-radius: 50%;
  border: none; background: rgba(124,58,237,0.2); color: #a78bfa;
  cursor: pointer; font-size: 0.75rem; display: flex; align-items: center; justify-content: center;
  transition: background var(--trans);
}
.disc-radio-widget-play:hover { background: rgba(124,58,237,0.45); color: #fff; }
.disc-radio-more-link {
  display: block; text-align: right; font-size: 0.72rem; color: var(--accent);
  padding: 0.3rem 0.25rem 0; cursor: pointer; text-decoration: none;
}
.disc-radio-more-link:hover { text-decoration: underline; }

/* Tag cloud */
.disc-tag-cloud { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.disc-tag-pill {
  padding: 0.3rem 0.7rem; border-radius: 99px;
  font-size: 0.75rem; font-weight: 600; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); color: var(--text2);
  transition: all var(--trans);
}
.disc-tag-pill:hover { border-color: var(--border2); color: var(--text); }
.disc-tag-pill.active { border-color: var(--accent); background: rgba(124,58,237,0.15); color: #a78bfa; }

/* Useful links sidebar */
.disc-useful-links { display: flex; flex-direction: column; gap: 0.35rem; }
.disc-useful-link {
  display: block;
  padding: 0.4rem 0.6rem;
  border-radius: 0.4rem;
  font-size: 0.82rem;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s;
  word-break: break-all;
}
.disc-useful-link:hover { background: rgba(124,58,237,0.1); border-color: var(--border2); color: #a78bfa; }

/* Upload CTA */
.disc-upload-cta { border-color: rgba(124,58,237,0.25); background: rgba(124,58,237,0.06); }

/* Editorial */
.disc-editorial-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem;
}
.disc-editorial-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 1.25rem; cursor: pointer; transition: all var(--trans); text-align: center;
}
.disc-editorial-card:hover { border-color: var(--border2); transform: translateY(-2px); box-shadow: var(--shadow); }
.disc-editorial-art { font-size: 2.5rem; margin-bottom: 0.75rem; }
.disc-editorial-title { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.3rem; }
.disc-editorial-desc { font-size: 0.75rem; color: var(--text2); line-height: 1.5; }
.disc-editorial-card--ug { border-color: rgba(124,58,237,0.4); background: rgba(124,58,237,0.07); }
.disc-editorial-card--ug:hover { border-color: var(--accent); box-shadow: 0 0 20px rgba(124,58,237,0.25); }
.disc-editorial-card--psy { border-color: rgba(52,211,153,0.35); background: linear-gradient(135deg,rgba(124,58,237,0.08),rgba(52,211,153,0.06)); }
.disc-editorial-card--psy:hover { border-color: #34d399; box-shadow: 0 0 20px rgba(52,211,153,0.2); }
.disc-editorial-card--psy .disc-editorial-cta { color: #34d399; }
.disc-editorial-cta { margin-top: 0.5rem; font-size: 0.72rem; color: var(--accent); font-weight: 700; }

/* ─── Techno Underground Page ─── */
.ug-page { min-height: 100vh; }
.ug-hero {
  position: relative; overflow: hidden;
  padding: 4rem 2rem 3rem;
  background: linear-gradient(160deg, #0d0010 0%, #0a0a0f 60%, #050020 100%);
  text-align: center;
}
.ug-hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(124,58,237,0.28) 0%, transparent 70%);
}
.ug-back-btn {
  position: absolute; top: 1.25rem; left: 1.25rem;
  background: rgba(255,255,255,0.06); border: 1px solid var(--border);
  color: var(--text2); padding: 0.4rem 0.9rem; border-radius: 8px;
  font-size: 0.8rem; cursor: pointer; transition: all 0.2s;
}
.ug-back-btn:hover { background: rgba(255,255,255,0.1); color: var(--text); }
.ug-hero-badge {
  display: inline-block; background: rgba(124,58,237,0.2); border: 1px solid rgba(124,58,237,0.45);
  color: #a78bfa; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em;
  padding: 0.3rem 0.85rem; border-radius: 99px; margin-bottom: 1rem;
  text-transform: uppercase;
}
.ug-hero-title {
  font-size: clamp(2rem, 6vw, 3.5rem); font-weight: 900; letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 30%, #a78bfa 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; margin: 0 0 0.75rem;
}
.ug-hero-sub { color: var(--text2); font-size: 1rem; max-width: 520px; margin: 0 auto; line-height: 1.6; }

.ug-content { max-width: 1100px; margin: 0 auto; padding: 2.5rem 1.5rem 4rem; }

.ug-section { margin-bottom: 3.5rem; }
.ug-section-header { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }
.ug-section-flag { font-size: 2rem; line-height: 1; flex-shrink: 0; margin-top: 0.1rem; }
.ug-section-title { font-size: 1.25rem; font-weight: 800; margin: 0 0 0.25rem; }
.ug-section-sub { font-size: 0.82rem; color: var(--text2); margin: 0; }

/* Artist cards */
.ug-artist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1rem; }
.ug-artist-card {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--bg2); border: 1px solid var(--border); border-radius: 14px;
  padding: 1.1rem; transition: border-color 0.2s, transform 0.2s;
}
.ug-artist-card:hover { border-color: var(--border2); transform: translateY(-2px); }
.ug-artist-avatar {
  width: 46px; height: 46px; flex-shrink: 0; border-radius: 50%;
  background: var(--accentG); display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 800; color: #fff;
}
.ug-artist-body { flex: 1; min-width: 0; }
.ug-artist-name { font-size: 0.95rem; font-weight: 800; margin-bottom: 0.15rem; }
.ug-artist-city { font-size: 0.73rem; color: var(--text3); margin-bottom: 0.4rem; }
.ug-artist-tag {
  display: inline-block; font-size: 0.67rem; font-weight: 700; letter-spacing: 0.04em;
  background: rgba(124,58,237,0.15); border: 1px solid rgba(124,58,237,0.3);
  color: #a78bfa; padding: 0.15rem 0.5rem; border-radius: 99px; margin-bottom: 0.5rem;
  text-transform: uppercase;
}
.ug-artist-desc { font-size: 0.78rem; color: var(--text2); line-height: 1.55; margin: 0 0 0.75rem; }
.ug-artist-links { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* Shared link buttons */
.ug-link-btn {
  display: inline-flex; align-items: center; font-size: 0.72rem; font-weight: 700;
  padding: 0.3rem 0.7rem; border-radius: 7px; text-decoration: none;
  transition: opacity 0.15s, transform 0.15s; border: 1px solid transparent;
}
.ug-link-btn:hover { opacity: 0.82; transform: translateY(-1px); }
.ug-link-ra { background: rgba(124,58,237,0.18); border-color: rgba(124,58,237,0.35); color: #a78bfa; }
.ug-link-sc { background: rgba(255,85,0,0.15); border-color: rgba(255,85,0,0.35); color: #ff8040; }
.ug-link-web { background: rgba(37,99,235,0.15); border-color: rgba(37,99,235,0.35); color: #60a5fa; }

/* Venue cards */
.ug-venue-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.ug-venue-card {
  background: var(--bg2); border: 1px solid var(--border); border-radius: 14px;
  padding: 1.1rem; display: flex; flex-direction: column; gap: 0.4rem;
  transition: border-color 0.2s, transform 0.2s;
}
.ug-venue-card:hover { border-color: var(--border2); transform: translateY(-2px); }
.ug-venue-header { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.ug-venue-name { font-size: 1rem; font-weight: 800; }
.ug-venue-badge {
  font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  background: rgba(255,255,255,0.07); border: 1px solid var(--border);
  color: var(--text3); padding: 0.15rem 0.5rem; border-radius: 99px; white-space: nowrap;
}
.ug-venue-city { font-size: 0.73rem; color: var(--text3); }
.ug-venue-desc { font-size: 0.78rem; color: var(--text2); line-height: 1.5; margin: 0.2rem 0 0.5rem; flex: 1; }
.ug-venue-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: auto; }

.ug-ra-banner {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: rgba(124,58,237,0.08); border: 1px solid rgba(124,58,237,0.25);
  border-radius: 10px; padding: 0.8rem 1.2rem; font-size: 0.82rem; color: var(--text2);
  text-decoration: none; transition: background 0.2s, border-color 0.2s;
}
.ug-ra-banner:hover { background: rgba(124,58,237,0.14); border-color: rgba(124,58,237,0.4); color: var(--text); }
.ug-ra-banner strong { color: #a78bfa; }

/* Music cards */
.ug-music-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1rem; }
.ug-music-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: var(--bg2); border: 1px solid var(--border); border-radius: 14px;
  padding: 1.25rem 1rem; text-decoration: none; color: inherit;
  transition: border-color 0.2s, transform 0.2s;
}
.ug-music-card:hover { border-color: var(--border2); transform: translateY(-2px); }
.ug-music-icon {
  width: 48px; height: 48px; border-radius: 12px; font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.75rem; color: #fff;
}
.ug-music-name { font-size: 0.85rem; font-weight: 800; margin-bottom: 0.35rem; }
.ug-music-desc { font-size: 0.73rem; color: var(--text2); line-height: 1.45; }

/* Demo card */
.ug-demo-card {
  display: flex; gap: 1.5rem; align-items: flex-start;
  background: linear-gradient(135deg, rgba(124,58,237,0.1), rgba(37,99,235,0.08));
  border: 1px solid rgba(124,58,237,0.35); border-radius: 18px; padding: 2rem;
}
.ug-demo-icon { font-size: 2.5rem; flex-shrink: 0; }
.ug-demo-body { flex: 1; }
.ug-demo-title { font-size: 1.3rem; font-weight: 900; margin: 0 0 0.6rem; }
.ug-demo-desc { font-size: 0.87rem; color: var(--text2); line-height: 1.6; margin: 0 0 1.1rem; }
.ug-demo-email {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--accentG); color: #fff; font-size: 0.9rem; font-weight: 700;
  padding: 0.65rem 1.3rem; border-radius: 10px; text-decoration: none;
  transition: opacity 0.2s, transform 0.2s; margin-bottom: 1.25rem;
}
.ug-demo-email:hover { opacity: 0.88; transform: translateY(-1px); }
.ug-demo-tips { background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 10px; padding: 0.9rem 1rem; }
.ug-demo-tips-title { font-size: 0.78rem; font-weight: 700; color: var(--text2); margin: 0 0 0.5rem; text-transform: uppercase; letter-spacing: 0.05em; }
.ug-demo-tips-list { margin: 0; padding-left: 1.1rem; }
.ug-demo-tips-list li { font-size: 0.8rem; color: var(--text2); line-height: 1.7; }

@media (max-width: 700px) {
  .ug-hero { padding: 3.5rem 1rem 2rem; }
  .ug-content { padding: 1.5rem 1rem 3rem; }
  .ug-demo-card { flex-direction: column; }
  .ug-music-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Sub-tab bar (Spor | Last opp | Radio-favoritt) */
.disc-sub-tab-bar {
  display: flex; gap: 0.25rem;
  padding: 0 1.5rem 1.25rem;
  max-width: 1200px; margin: 0 auto;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}
.disc-sub-tab {
  padding: 0.5rem 1.1rem; border-radius: 8px;
  font-size: 0.82rem; font-weight: 600; cursor: pointer;
  border: 1px solid transparent; background: none; color: var(--text2);
  transition: all var(--trans); white-space: nowrap;
}
.disc-sub-tab:hover { background: var(--surface); color: var(--text); border-color: var(--border); }
.disc-sub-tab.active {
  background: rgba(124,58,237,0.15); border-color: rgba(124,58,237,0.4);
  color: #a78bfa;
}

/* Upload panel */
.disc-upload-panel {
  max-width: 580px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 2rem;
}
.disc-upload-header { text-align: center; margin-bottom: 1.5rem; }
.disc-upload-dropzone {
  border: 2px dashed var(--border2); border-radius: 14px;
  padding: 2rem 1rem; text-align: center; cursor: pointer;
  transition: all var(--trans); margin-bottom: 1.25rem;
}
.disc-upload-dropzone:hover {
  border-color: var(--accent); background: rgba(124,58,237,0.06);
}
.disc-upload-dropzone-icon { font-size: 2.2rem; margin-bottom: 0.5rem; }
.disc-upload-dropzone-text { font-weight: 600; font-size: 0.9rem; margin-bottom: 0.2rem; }
.disc-upload-dropzone-sub { font-size: 0.75rem; color: var(--text3); }
.disc-upload-filename {
  display: block; margin-top: 0.5rem; font-size: 0.78rem;
  color: var(--accent); font-weight: 600; word-break: break-all;
}
.disc-upload-fields { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.25rem; }
.disc-upload-ismix-row {
  display: flex; align-items: center; gap: 0.5rem;
  margin-bottom: 1.25rem; padding: 0.75rem;
  background: rgba(124,58,237,0.06); border-radius: 10px;
  border: 1px solid rgba(124,58,237,0.15);
}
.disc-ismix-check { width: 18px; height: 18px; cursor: pointer; accent-color: var(--accent); flex-shrink: 0; }
.disc-ismix-label { font-size: 0.85rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.disc-ismix-icon { font-size: 1rem; }
.disc-ismix-hint { font-size: 0.75rem; color: var(--text2); font-weight: 400; }
.disc-upload-submit {
  width: 100%; justify-content: center; font-size: 0.95rem; padding: 0.75rem;
}

/* Radio-favoritt tab */
.disc-radio-fav-wrap { max-width: 760px; }
.disc-radio-fav-current { margin-bottom: 1.5rem; }
.disc-radio-fav-label {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.07em; color: var(--text3); margin-bottom: 0.6rem;
}
.disc-radio-fav-card {
  display: flex; align-items: center; gap: 0.9rem;
  background: rgba(124,58,237,0.08);
  border: 1px solid rgba(124,58,237,0.35);
  border-radius: 14px; padding: 1rem 1.1rem;
}
.disc-radio-fav-emoji { font-size: 2rem; flex-shrink: 0; }
.disc-radio-fav-info { flex: 1; min-width: 0; }
.disc-radio-fav-name { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.2rem; }
.disc-radio-fav-desc { font-size: 0.78rem; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.disc-radio-fav-actions { display: flex; gap: 0.4rem; flex-shrink: 0; }

.disc-radio-fav-empty {
  text-align: center; padding: 1.5rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; margin-bottom: 1.5rem;
}

.disc-radio-pick-header {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.88rem; font-weight: 700;
  margin-bottom: 0.75rem; padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.disc-radio-pick-list { display: flex; flex-direction: column; gap: 0.4rem; }
.disc-radio-pick-item {
  display: flex; align-items: center; gap: 0.75rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 0.7rem 0.85rem;
  transition: all var(--trans);
}
.disc-radio-pick-item:hover { border-color: var(--border2); }
.disc-radio-pick-item.active {
  border-color: var(--pick-color, var(--accent));
  background: rgba(124,58,237,0.06);
}
.disc-radio-pick-emoji { font-size: 1.4rem; flex-shrink: 0; width: 2rem; text-align: center; }
.disc-radio-pick-info { flex: 1; min-width: 0; }
.disc-radio-pick-name { font-size: 0.85rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.disc-radio-pick-desc { font-size: 0.72rem; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.disc-radio-pick-acts { display: flex; gap: 0.3rem; flex-shrink: 0; }
.disc-radio-play-btn {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(124,58,237,0.15); border: 1px solid rgba(124,58,237,0.3);
  color: #a78bfa; font-size: 0.8rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--trans);
}
.disc-radio-play-btn:hover { background: rgba(124,58,237,0.3); transform: scale(1.08); }
.disc-radio-star-btn {
  width: 32px; height: 32px; border-radius: 50%;
  background: none; border: 1px solid var(--border);
  color: var(--text3); font-size: 1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--trans);
}
.disc-radio-star-btn:hover, .disc-radio-star-btn.set {
  border-color: #f59e0b; color: #f59e0b; background: rgba(245,158,11,0.1);
}

/* Genre radio sidebar widget */
.disc-radio-widget-item {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.55rem 0.5rem; border-radius: 8px; cursor: pointer;
  transition: background var(--trans);
}
.disc-radio-widget-item:hover { background: rgba(124,58,237,0.08); }
.disc-radio-widget-emoji { font-size: 1.2rem; flex-shrink: 0; }
.disc-radio-widget-info { flex: 1; min-width: 0; }
.disc-radio-widget-name { font-size: 0.8rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.disc-radio-widget-desc { font-size: 0.7rem; color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.disc-radio-widget-play {
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(124,58,237,0.15); border: none;
  color: #a78bfa; font-size: 0.7rem; cursor: pointer; flex-shrink: 0;
  transition: all var(--trans);
}
.disc-radio-widget-play:hover { background: rgba(124,58,237,0.3); }
.disc-radio-more-link {
  display: block; text-align: right; font-size: 0.75rem;
  color: var(--accent); margin-top: 0.5rem; cursor: pointer;
  text-decoration: none;
}
.disc-radio-more-link:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .disc-layout { grid-template-columns: 1fr; }
  .disc-sidebar { flex-direction: row; flex-wrap: wrap; }
  .disc-sidebar-card { flex: 1; min-width: 260px; }
}
@media (max-width: 600px) {
  .disc-track-grid { grid-template-columns: repeat(2, 1fr); }
  .disc-sub-tab-bar { padding: 0 1rem 1rem; }
  .disc-sub-tab { padding: 0.45rem 0.75rem; font-size: 0.78rem; }
  .disc-upload-panel { padding: 1.25rem; }
}

/* ─── Live Activity Panel (floating, draggable, resizable) ─── */
.disc-live-panel {
  position: fixed;
  z-index: var(--z-panel);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  min-width: 220px;
  min-height: 60px;
  max-width: 90vw;
  max-height: 85vh;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  user-select: none;
}
.disc-live-panel-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  cursor: grab;
  flex-shrink: 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.disc-live-panel:not(.collapsed) .disc-live-panel-header { border-bottom-color: var(--border); }
.disc-live-panel-header:active { cursor: grabbing; }
.disc-live-panel-header .disc-sidebar-title { margin-bottom: 0; flex: 1; }
.disc-live-panel-toggle {
  flex-shrink: 0;
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  background: none;
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--text2);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  transition: all var(--trans);
}
.disc-live-panel-toggle:hover { background: var(--border); color: var(--text); }
.disc-live-panel-body { flex: 1; overflow-y: auto; padding: 0.75rem 1rem; min-height: 0; }
.disc-live-panel.collapsed .disc-live-panel-body { display: none; }
.disc-resize-handle { position: absolute; z-index: 10; }
.disc-resize-n  { top: 0;    left: 8px;  right: 8px; height: 5px; cursor: n-resize; }
.disc-resize-s  { bottom: 0; left: 8px;  right: 8px; height: 5px; cursor: s-resize; }
.disc-resize-e  { right: 0;  top: 8px; bottom: 8px;  width: 5px;  cursor: e-resize; }
.disc-resize-w  { left: 0;   top: 8px; bottom: 8px;  width: 5px;  cursor: w-resize; }
.disc-resize-ne { top: 0;    right: 0;  width: 12px; height: 12px; cursor: ne-resize; }
.disc-resize-nw { top: 0;    left: 0;   width: 12px; height: 12px; cursor: nw-resize; }
.disc-resize-se { bottom: 0; right: 0;  width: 12px; height: 12px; cursor: se-resize; }
.disc-resize-sw { bottom: 0; left: 0;   width: 12px; height: 12px; cursor: sw-resize; }
.disc-live-panel.collapsed .disc-resize-handle { display: none; }

/* ════════════════════════════════════════════
   SHOWS PAGE  (Radio Zora-inspired)
   ════════════════════════════════════════════ */
.shows-page {
  min-height: calc(100vh - var(--nav-h) - var(--player-h));
}

/* Hero */
.shows-hero {
  position: relative;
  display: flex; flex-wrap: wrap; align-items: center; gap: 2rem;
  padding: 4rem 2rem 3rem; overflow: hidden;
  max-width: 1100px; margin: 0 auto;
}
.shows-hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 50% at 20% 50%, rgba(124,58,237,0.18) 0%, transparent 60%);
}
.shows-hero-inner { position: relative; z-index: 1; flex: 1; min-width: 260px; }
.shows-hero-badge {
  display: inline-block; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: #a78bfa; background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.3); border-radius: 99px;
  padding: 0.3rem 0.9rem; margin-bottom: 1rem;
}
.shows-hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800; line-height: 1.05; margin-bottom: 0.65rem;
  background: linear-gradient(135deg, #a78bfa 0%, #f472b6 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.shows-hero-sub { color: var(--text2); font-size: 1rem; max-width: 440px; line-height: 1.7; }

/* Hero live widget */
.shows-hero-live {
  position: relative; z-index: 1;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 1.5rem; min-width: 240px;
  backdrop-filter: blur(16px);
}
.shows-live-pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; color: #ef4444;
  background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3);
  border-radius: 99px; padding: 0.2rem 0.65rem; margin-bottom: 0.75rem;
}
.shows-live-pill--soon { color: var(--accent); background: rgba(124,58,237,0.1); border-color: rgba(124,58,237,0.3); }
.shows-live-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #ef4444;
  animation: livePulse 1s ease-in-out infinite; flex-shrink: 0;
}
.shows-live-name { font-size: 1.1rem; font-weight: 800; margin-bottom: 0.2rem; }
.shows-live-host { font-size: 0.8rem; color: var(--text2); margin-bottom: 1rem; }
.shows-live-btn {
  background: linear-gradient(135deg,#7c3aed,#a855f7);
  color: #fff; border: none; border-radius: 99px;
  padding: 0.55rem 1.4rem; font-size: 0.88rem; font-weight: 700;
  cursor: pointer; transition: opacity var(--trans), transform var(--trans);
}
.shows-live-btn:hover { opacity: 0.88; transform: translateY(-1px); }

/* Show card */
.show-card {
  display: flex; align-items: flex-start; gap: 1rem;
  background: var(--surface); border: 1px solid var(--border);
  border-left: 4px solid var(--show-color, var(--accent));
  border-radius: 14px; padding: 1.25rem; margin-bottom: 0.75rem;
  transition: all var(--trans);
}
.show-card:hover { border-color: var(--border2); box-shadow: var(--shadow); }
.show-card--live {
  background: rgba(124,58,237,0.08);
  border-color: var(--show-color, var(--accent));
  box-shadow: 0 0 24px rgba(124,58,237,0.15);
}
.show-card-left { flex-shrink: 0; }
.show-emoji { font-size: 2.2rem; line-height: 1; }
.show-card-body { flex: 1; min-width: 0; }
.show-on-air {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.65rem; font-weight: 800; letter-spacing: 0.1em;
  color: #ef4444; background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3); border-radius: 99px;
  padding: 0.15rem 0.55rem; margin-bottom: 0.5rem;
}
.show-on-air-dot {
  display: inline-block; width: 5px; height: 5px;
  border-radius: 50%; background: #ef4444;
  animation: livePulse 1s ease-in-out infinite;
}
.show-card-name { font-size: 1.1rem; font-weight: 800; margin-bottom: 0.15rem; }
.show-card-host { font-size: 0.82rem; color: var(--text2); margin-bottom: 0.25rem; }
.show-card-genre {
  font-size: 0.72rem; color: var(--accent);
  font-weight: 600; margin-bottom: 0.4rem;
}
.show-card-desc { font-size: 0.82rem; color: var(--text2); line-height: 1.5; margin-bottom: 0.5rem; }
.show-card-time {
  font-size: 0.72rem; color: var(--text3); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.show-card-actions {
  display: flex; flex-direction: column; gap: 0.4rem;
  align-items: flex-end; flex-shrink: 0;
}
.show-listen-btn {
  background: linear-gradient(135deg,#7c3aed,#a855f7);
  color: #fff; border: none; border-radius: 99px;
  padding: 0.45rem 1.1rem; font-size: 0.8rem; font-weight: 700;
  cursor: pointer; white-space: nowrap;
  transition: opacity var(--trans), transform var(--trans);
}
.show-listen-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.show-share-btn {
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--text2); border-radius: 50%; width: 30px; height: 30px;
  cursor: pointer; font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--trans);
}
.show-share-btn:hover { border-color: var(--border2); color: var(--text); }

/* Schedule grid */
.sched-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}
.sched-day {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden; min-width: 130px;
}
.sched-day--today { border-color: rgba(124,58,237,0.5); box-shadow: 0 0 16px rgba(124,58,237,0.12); }
.sched-day-header {
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  background: var(--surface2);
}
.sched-day-name { font-size: 0.78rem; font-weight: 700; }
.sched-today-badge {
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.06em;
  background: rgba(124,58,237,0.2); color: #a78bfa;
  border: 1px solid rgba(124,58,237,0.3); border-radius: 99px;
  padding: 0.1rem 0.45rem; text-transform: uppercase;
}
.sched-day-shows { display: flex; flex-direction: column; gap: 0; }
.sched-show-slot {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer; transition: background var(--trans);
  border-left: 3px solid var(--show-color, var(--accent));
}
.sched-show-slot:last-child { border-bottom: none; }
.sched-show-slot:hover { background: var(--surface2); }
.sched-show-emoji { font-size: 1.1rem; flex-shrink: 0; }
.sched-show-name { font-size: 0.72rem; font-weight: 700; line-height: 1.3; }
.sched-show-time { font-size: 0.62rem; color: var(--text3); margin-top: 1px; }
.sched-empty { padding: 0.75rem; font-size: 0.75rem; color: var(--text3); text-align: center; }

/* Archive */
.archive-list { display: flex; flex-direction: column; gap: 0.6rem; }
.archive-card {
  display: flex; align-items: center; gap: 1rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 0.9rem 1rem;
  transition: all var(--trans);
}
.archive-card:hover { border-color: var(--border2); background: var(--surface2); }
.archive-card-emoji { font-size: 1.8rem; flex-shrink: 0; }
.archive-card-body { flex: 1; min-width: 0; }
.archive-card-name { font-size: 0.9rem; font-weight: 700; }
.archive-card-meta { font-size: 0.75rem; color: var(--text2); margin-top: 0.15rem; }
.archive-card-dur { font-size: 0.7rem; color: var(--text3); margin-top: 0.15rem; }
.archive-play-btn {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--text2); cursor: pointer; font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--trans);
}
.archive-play-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Subscribe banner */
.shows-subscribe-banner {
  background: linear-gradient(135deg, rgba(124,58,237,0.12), rgba(37,99,235,0.12));
  border: 1px solid rgba(124,58,237,0.25);
  border-radius: 20px; padding: 1.75rem 2rem;
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
}
.shows-subscribe-icon { font-size: 2.5rem; flex-shrink: 0; }
.shows-subscribe-text { flex: 1; min-width: 200px; }
.shows-subscribe-title { font-size: 1.1rem; font-weight: 800; margin-bottom: 0.25rem; }
.shows-subscribe-text p { font-size: 0.85rem; color: var(--text2); line-height: 1.5; }

@media (max-width: 900px) {
  .sched-grid { grid-template-columns: repeat(4, 1fr); }
  .shows-hero { padding: 2.5rem 1rem 2rem; }
}
@media (max-width: 600px) {
  .sched-grid { grid-template-columns: repeat(2, 1fr); }
  .show-card { flex-wrap: wrap; }
  .show-card-actions { flex-direction: row; align-self: flex-start; }
  .shows-subscribe-banner { flex-direction: column; text-align: center; }
}

/* ════════════════════════════════════════════
   FESTIVAL SECTION — Profile & Editor
   ════════════════════════════════════════════ */

.profile-festivals {
  margin: 1.5rem 0;
}
.profile-festivals-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 0.75rem;
}
.festival-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.festival-card {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 12px;
  padding: 0.45rem 0.85rem;
  text-decoration: none;
  color: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  transition: background 0.18s, border-color 0.18s, transform 0.15s;
  backdrop-filter: blur(6px);
}
.festival-card:hover {
  background: rgba(124,58,237,0.22);
  border-color: rgba(124,58,237,0.5);
  transform: translateY(-1px);
}
.festival-card-emoji { font-size: 1.1rem; line-height: 1; }
.festival-card-info { display: flex; flex-direction: column; gap: 0.05rem; }
.festival-card-name { font-weight: 600; font-size: 0.83rem; }
.festival-card-country { font-size: 0.68rem; opacity: 0.55; }
.festival-card-ticket {
  margin-left: 0.35rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--accent, #f59e0b);
  opacity: 0.85;
  white-space: nowrap;
}

/* ── Editor: festival selector ── */
.festival-selector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 0.6rem;
  margin-top: 0.75rem;
}
.festival-selector-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 0.55rem 0.8rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  user-select: none;
}
.festival-selector-item:hover {
  border-color: rgba(124,58,237,0.45);
  background: rgba(124,58,237,0.08);
}
.festival-selector-item.selected {
  border-color: #7c3aed;
  background: rgba(124,58,237,0.18);
}
.festival-selector-item input[type=checkbox] {
  width: 15px; height: 15px;
  accent-color: #7c3aed;
  flex-shrink: 0;
}
.festival-sel-emoji { font-size: 1.2rem; line-height: 1; }
.festival-sel-info { flex: 1; min-width: 0; }
.festival-sel-name { font-weight: 600; font-size: 0.82rem; }
.festival-sel-meta { font-size: 0.68rem; color: var(--text2); margin-top: 0.05rem; }

@media (max-width: 600px) {
  .festival-selector-grid { grid-template-columns: 1fr 1fr; }
  .festival-cards { gap: 0.45rem; }
  .festival-card { padding: 0.4rem 0.65rem; font-size: 0.78rem; }
}

/* ════════════════════════════════════════════
   CUSTOM PAGE BUILDER (Min Side)
   ════════════════════════════════════════════ */

.cp-editor {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 1.25rem;
  min-height: 380px;
}

/* ── Palette (left column) ── */
.cp-palette {
  background: var(--surface2);
  border-radius: 14px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.cp-palette-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text3);
  margin-bottom: 0.25rem;
}
.cp-palette-grid {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.cp-palette-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text2);
  transition: background 0.15s, color 0.15s, transform 0.1s;
  user-select: none;
}
.cp-palette-item:hover {
  background: rgba(124,58,237,0.25);
  color: #c4b5fd;
  transform: translateX(3px);
}
.cp-palette-icon { font-size: 1rem; width: 20px; text-align: center; flex-shrink: 0; }
.cp-palette-tip {
  font-size: 0.7rem;
  color: var(--text3);
  line-height: 1.5;
  padding: 0.6rem;
  background: rgba(124,58,237,0.08);
  border-radius: 8px;
  margin-top: auto;
}

/* ── Canvas (right column) ── */
.cp-canvas {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-height: 280px;
}
.cp-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 220px;
  color: var(--text3);
  text-align: center;
  border: 2px dashed var(--border);
  border-radius: 14px;
  gap: 0.5rem;
  font-size: 0.88rem;
}
.cp-empty-icon {
  font-size: 2.5rem;
  animation: cpSpin 6s linear infinite;
}
@keyframes cpSpin { to { transform: rotate(360deg); } }

/* ── Block card ── */
.cp-block {
  background: var(--surface2);
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.cp-block:hover { border-color: rgba(124,58,237,0.4); }
.cp-block.drag-over {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(124,58,237,0.3);
}
.cp-block.dragging { opacity: 0.5; }

.cp-block-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.9rem;
  cursor: pointer;
  user-select: none;
  background: transparent;
  transition: background 0.15s;
}
.cp-block-header:hover { background: rgba(255,255,255,0.03); }

.cp-block-drag {
  cursor: grab;
  opacity: 0.35;
  font-size: 0.9rem;
  padding: 0 0.15rem;
  flex-shrink: 0;
}
.cp-block-drag:active { cursor: grabbing; }
.cp-block-icon { font-size: 0.95rem; flex-shrink: 0; }
.cp-block-title { font-size: 0.84rem; font-weight: 600; flex: 1; }

.cp-block-actions {
  display: flex;
  gap: 0.2rem;
  margin-left: auto;
  flex-shrink: 0;
}
.cp-block-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.82rem;
  padding: 0.25rem 0.45rem;
  border-radius: 6px;
  color: var(--text3);
  transition: background 0.15s, color 0.15s;
  line-height: 1;
}
.cp-block-btn:hover { background: var(--surface); color: var(--text); }
.cp-block-btn.del:hover { background: rgba(239,68,68,0.15); color: var(--red); }

.cp-block-settings {
  padding: 1rem;
  border-top: 1px solid var(--border);
  display: none;
  animation: cpSettingsIn 0.18s ease;
}
.cp-block-settings.open { display: block; }
@keyframes cpSettingsIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

/* ════════════════════════════════════════════
   RENDERED CUSTOM PAGE BLOCKS (profile view)
   ════════════════════════════════════════════ */

.custom-page-section {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.cp-page-divider {
  text-align: center;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  margin-bottom: 2rem;
  position: relative;
}
.cp-page-divider::before,
.cp-page-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124,58,237,0.4));
}
.cp-page-divider::before { left: 0; }
.cp-page-divider::after  { right: 0; background: linear-gradient(270deg, transparent, rgba(124,58,237,0.4)); }

.cp-rendered-block { margin-bottom: 1.75rem; }

/* ── Hero block ── */
.cp-hero {
  text-align: center;
  padding: 2rem 1rem;
}
.cp-hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 0.5rem;
  word-break: break-word;
}
.cp-hero-title[data-anim="rainbow"] {
  background: linear-gradient(90deg, #f0f, #0ff, #f0f, #ff0, #0cf);
  background-size: 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: cpRainbow 4s linear infinite;
}
@keyframes cpRainbow {
  0%   { background-position: 0%; }
  100% { background-position: 300%; }
}
.cp-hero-title[data-anim="glitch"] {
  animation: cpGlitch 3s infinite;
  position: relative;
}
@keyframes cpGlitch {
  0%, 92% { text-shadow: none; transform: none; }
  93% { text-shadow: 4px 0 #f0f, -4px 0 #0ff; transform: skew(-1deg); }
  94% { text-shadow: -4px 0 #f0f, 4px 0 #0ff; transform: skew(1deg) translateX(3px); clip-path: inset(20% 0 40% 0); }
  95% { text-shadow: 4px 0 #0ff, -4px 0 #f0f; transform: translateX(-3px); clip-path: inset(60% 0 10% 0); }
  96% { text-shadow: none; transform: none; clip-path: none; }
  100% { text-shadow: none; transform: none; clip-path: none; }
}
.cp-hero-title[data-anim="pulse"] {
  animation: cpNeonPulse 2s ease-in-out infinite alternate;
}
@keyframes cpNeonPulse {
  from { text-shadow: 0 0 10px #7c3aed, 0 0 30px #7c3aed, 0 0 60px #7c3aed; }
  to   { text-shadow: 0 0 5px #ec4899,  0 0 15px #ec4899,  0 0 35px #ec4899; }
}
.cp-hero-subtitle {
  font-size: 1rem;
  opacity: 0.65;
  margin-top: 0.4rem;
  line-height: 1.6;
}

/* ── Text block ── */
.cp-text {
  line-height: 1.85;
  font-size: 0.95rem;
  opacity: 0.88;
}

/* ── Quote block ── */
.cp-quote {
  padding: 1.4rem 1.6rem;
  border-radius: 14px;
  border-left: 4px solid;
  position: relative;
  overflow: hidden;
}
.cp-quote[data-style="neon-purple"] {
  background: rgba(124,58,237,0.08);
  border-color: #7c3aed;
  box-shadow: 0 0 40px rgba(124,58,237,0.2), inset 0 0 40px rgba(124,58,237,0.04);
}
.cp-quote[data-style="neon-cyan"] {
  background: rgba(6,182,212,0.08);
  border-color: #06b6d4;
  box-shadow: 0 0 40px rgba(6,182,212,0.2), inset 0 0 40px rgba(6,182,212,0.04);
}
.cp-quote[data-style="neon-gold"] {
  background: rgba(245,158,11,0.08);
  border-color: #f59e0b;
  box-shadow: 0 0 40px rgba(245,158,11,0.2), inset 0 0 40px rgba(245,158,11,0.04);
}
.cp-quote-text {
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.75;
  margin-bottom: 0.6rem;
}
.cp-quote-author {
  font-size: 0.78rem;
  opacity: 0.55;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ── Image block ── */
.cp-image-wrap {
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}
.cp-image-wrap img {
  width: 100%;
  display: block;
  transition: transform 0.6s ease;
}
.cp-image-wrap:hover img { transform: scale(1.04); }
.cp-image-wrap[data-filter="psychedelic"] img {
  animation: cpImgHue 10s linear infinite;
}
@keyframes cpImgHue {
  0%   { filter: saturate(2.2) hue-rotate(0deg) brightness(0.95); }
  50%  { filter: saturate(2.8) hue-rotate(180deg) brightness(1.05); }
  100% { filter: saturate(2.2) hue-rotate(360deg) brightness(0.95); }
}
.cp-image-wrap[data-filter="vhs"] img {
  filter: contrast(1.3) saturate(1.6) sepia(0.35);
  animation: cpVhs 0.08s steps(1) infinite;
}
@keyframes cpVhs {
  0%, 94%  { clip-path: none; transform: none; }
  95%      { clip-path: inset(8% 0 88% 0); transform: translateX(4px); }
  96%      { clip-path: inset(75% 0 10% 0); transform: translateX(-3px); }
  97%, 100%{ clip-path: none; transform: none; }
}
.cp-image-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0.6rem 1rem;
  font-size: 0.8rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff;
}

/* ── Links block ── */
.cp-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  padding: 0.5rem 0;
}
.cp-link-btn {
  padding: 0.7rem 1.8rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.2s, filter 0.2s;
  color: #fff !important;
  animation: cpBtnGlow 3s ease-in-out infinite alternate;
}
.cp-link-btn:hover {
  transform: translateY(-3px) scale(1.04);
  filter: brightness(1.2);
}
@keyframes cpBtnGlow {
  from { box-shadow: 0 4px 15px rgba(0,0,0,0.3); }
  to   { box-shadow: 0 4px 30px rgba(0,0,0,0.2), 0 0 40px rgba(255,255,255,0.1); }
}

/* ── Divider block ── */
.cp-divider {
  position: relative;
  overflow: visible;
  margin: 0.5rem 0;
}
.cp-divider[data-style="plasma"] {
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, #7c3aed, #06b6d4, #ec4899, #f59e0b, #7c3aed);
  background-size: 300%;
  animation: cpPlasma 3s linear infinite;
  box-shadow: 0 0 12px rgba(124,58,237,0.6), 0 0 25px rgba(6,182,212,0.3);
}
@keyframes cpPlasma {
  0%   { background-position: 0%; }
  100% { background-position: 300%; }
}
.cp-divider[data-style="wave"] {
  height: 28px;
  background: none;
}
.cp-divider[data-style="wave"]::before {
  content: '';
  display: block;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 28'%3E%3Cpath fill='%237c3aed' fill-opacity='0.5' d='M0,14 C360,28 720,0 1080,14 C1260,21 1350,7 1440,14 L1440,28 L0,28 Z'/%3E%3C/svg%3E") repeat-x center;
  background-size: 1440px 100%;
  animation: cpWave 3s linear infinite;
}
@keyframes cpWave { from { background-position: 0 center; } to { background-position: 1440px center; } }
.cp-divider[data-style="stars"] {
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.5);
  animation: cpStarsFloat 2.5s ease-in-out infinite alternate;
}
@keyframes cpStarsFloat {
  from { letter-spacing: 0.4rem; opacity: 0.5; }
  to   { letter-spacing: 1.4rem; opacity: 1; }
}

/* ── Countdown block ── */
.cp-countdown {
  text-align: center;
  padding: 1.75rem;
  background: rgba(124,58,237,0.08);
  border-radius: 16px;
  border: 1px solid rgba(124,58,237,0.2);
  box-shadow: 0 0 40px rgba(124,58,237,0.1);
}
.cp-countdown-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.5;
  margin-bottom: 1.25rem;
  font-weight: 600;
}
.cp-countdown-units {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
}
.cp-countdown-unit { text-align: center; min-width: 64px; }
.cp-countdown-val {
  font-size: 2.2rem;
  font-weight: 900;
  background: linear-gradient(135deg, #a78bfa, #ec4899);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.cp-countdown-unit-label {
  font-size: 0.62rem;
  opacity: 0.4;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.3rem;
}

/* ── Vibes block ── */
.cp-vibes {
  min-height: 90px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  overflow: hidden;
  position: relative;
  letter-spacing: 0.08em;
}
.cp-vibes[data-style="aurora"] {
  animation: cpAurora 8s ease-in-out infinite alternate;
}
@keyframes cpAurora {
  0%   { background: linear-gradient(135deg, rgba(124,58,237,0.3), rgba(6,182,212,0.2), rgba(236,72,153,0.25)); }
  33%  { background: linear-gradient(225deg, rgba(6,182,212,0.3), rgba(236,72,153,0.25), rgba(124,58,237,0.2)); }
  66%  { background: linear-gradient(315deg, rgba(236,72,153,0.25), rgba(124,58,237,0.3), rgba(6,182,212,0.2)); }
  100% { background: linear-gradient(135deg, rgba(52,211,153,0.2), rgba(124,58,237,0.3), rgba(6,182,212,0.2)); }
}
.cp-vibes[data-style="lava"] {
  animation: cpLava 5s ease-in-out infinite alternate;
}
@keyframes cpLava {
  0%   { background: linear-gradient(135deg, rgba(255,60,0,0.3), rgba(220,20,80,0.25), rgba(124,58,237,0.2)); }
  50%  { background: linear-gradient(225deg, rgba(220,20,80,0.3), rgba(255,120,0,0.25), rgba(180,0,60,0.2)); }
  100% { background: linear-gradient(315deg, rgba(124,58,237,0.25), rgba(255,60,0,0.3), rgba(220,20,60,0.2)); }
}
.cp-vibes[data-style="galaxy"] {
  background: radial-gradient(ellipse at 30% 40%, rgba(124,58,237,0.35) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 60%, rgba(6,182,212,0.25) 0%, transparent 55%),
              rgba(5,5,16,0.6);
  animation: cpGalaxy 12s ease-in-out infinite;
}
@keyframes cpGalaxy {
  0%, 100% { filter: hue-rotate(0deg); }
  50%      { filter: hue-rotate(40deg); }
}
.cp-vibes-text {
  position: relative;
  z-index: 1;
  padding: 1.5rem;
  text-align: center;
  line-height: 1.6;
}

/* ── Embed block ── */
.cp-embed iframe {
  width: 100%;
  border-radius: 14px;
  border: none;
  display: block;
}

@media (max-width: 640px) {
  .cp-editor { grid-template-columns: 1fr; }
  .cp-palette { order: 2; }
  .cp-canvas  { order: 1; }
  .cp-countdown-units { gap: 0.75rem; }
  .cp-countdown-val { font-size: 1.6rem; }
}

/* ════════════════════════════════════════════
   PROFILE EVENTS
   ════════════════════════════════════════════ */
.profile-events { margin: 1.5rem 0; }
.profile-events-title {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  opacity: 0.55; margin-bottom: 0.75rem;
}
.event-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px; padding: 0.9rem 1.1rem;
  margin-bottom: 0.6rem;
  transition: border-color 0.18s, background 0.18s;
}
.event-card:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.2); }
.event-card--live {
  background: rgba(239,68,68,0.08);
  border-color: rgba(239,68,68,0.35);
  box-shadow: 0 0 20px rgba(239,68,68,0.12);
}
.event-live-badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.65rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  color: #ef4444; background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.3); border-radius: 99px;
  padding: 0.15rem 0.55rem; margin-bottom: 0.6rem;
}
.event-live-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: #ef4444; flex-shrink: 0;
  animation: livePulse 1s ease-in-out infinite;
}
.event-card-header { display: flex; align-items: flex-start; gap: 0.75rem; }
.event-type-emoji { font-size: 1.5rem; line-height: 1; flex-shrink: 0; margin-top: 0.1rem; }
.event-card-info { flex: 1; min-width: 0; }
.event-title { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.2rem; }
.event-meta { font-size: 0.78rem; opacity: 0.6; line-height: 1.4; }
.event-desc {
  font-size: 0.82rem; opacity: 0.7; line-height: 1.5;
  margin-top: 0.5rem; padding-top: 0.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.event-listen-btn {
  flex-shrink: 0; background: #ef4444; color: #fff; border: none;
  border-radius: 99px; padding: 0.4rem 0.9rem;
  font-size: 0.78rem; font-weight: 700; cursor: pointer; white-space: nowrap;
  transition: background 0.18s, transform 0.15s;
}
.event-listen-btn:hover { background: #dc2626; transform: scale(1.03); }

/* Editor */
.event-live-toggle-wrap {
  background: rgba(239,68,68,0.07); border: 1px solid rgba(239,68,68,0.2);
  border-radius: 10px; padding: 0.85rem 1rem; margin-top: 0.5rem;
}
.event-live-label {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.88rem; font-weight: 600; cursor: pointer; color: #ef4444;
}
.event-live-label input[type=checkbox] { accent-color: #ef4444; width: 16px; height: 16px; }
.event-editor-item {
  display: flex; align-items: center; gap: 0.75rem;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 10px; padding: 0.75rem 1rem; margin-bottom: 0.5rem;
}
.event-live-mini {
  font-size: 0.62rem; font-weight: 800; letter-spacing: 0.06em;
  color: #ef4444; background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.25); border-radius: 99px;
  padding: 0.1rem 0.4rem;
}

/* ════════════════════════════════════════════
   DJ HUB PAGE
   ════════════════════════════════════════════ */
.dj-page { min-height: calc(100vh - var(--nav-h) - var(--player-h)); }

.dj-hero {
  position: relative; text-align: center;
  padding: 4rem 1rem 3rem; overflow: hidden;
}
.dj-hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(239,68,68,0.18) 0%, transparent 65%);
}
.dj-hero-content { position: relative; z-index: 1; }
.dj-hero-badge {
  display: inline-block; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: #fca5a5; background: rgba(239,68,68,0.15);
  border: 1px solid rgba(239,68,68,0.3); border-radius: 99px;
  padding: 0.3rem 0.9rem; margin-bottom: 1rem;
}
.dj-hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 900; line-height: 1.05;
  background: linear-gradient(135deg, #f87171 0%, #a78bfa 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 0.65rem;
}
.dj-hero-title span { color: #a78bfa; -webkit-text-fill-color: #a78bfa; }
.dj-hero-sub { color: var(--text2); font-size: 1rem; max-width: 480px; margin: 0 auto 1.5rem; line-height: 1.7; }
.dj-hero-actions { display: flex; justify-content: center; gap: 0.75rem; flex-wrap: wrap; }

.dj-layout {
  display: grid; grid-template-columns: 1fr 280px; gap: 1.5rem;
  max-width: 1100px; margin: 0 auto; padding: 0 1.5rem 3rem;
}
.dj-main { display: flex; flex-direction: column; gap: 1.5rem; }
.dj-sidebar { display: flex; flex-direction: column; gap: 1rem; }

.dj-section {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; padding: 1.5rem;
}
.dj-section-header { margin-bottom: 1rem; }
.dj-section-title { font-size: 1.05rem; font-weight: 800; }
.dj-section-sub { font-size: 0.78rem; color: var(--text2); margin-top: 0.2rem; }

.dj-live-wrap { display: flex; flex-direction: column; gap: 0.75rem; }
.dj-live-input-row { display: flex; gap: 0.5rem; }
.dj-live-input-row input { flex: 1; }
.dj-live-player { border-radius: 14px; overflow: hidden; position: relative; }
.dj-live-badge-wrap { position: absolute; top: 0.75rem; left: 0.75rem; z-index: 2; }
.dj-live-pill {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  color: #fff; background: #ef4444; border-radius: 4px; padding: 0.2rem 0.6rem;
}
.dj-live-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: #fff; animation: livePulse 1s ease-in-out infinite;
}
.dj-live-hint { font-size: 0.78rem; color: var(--text3); }

.dj-gig-card {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 12px; padding: 1rem 1.1rem; margin-bottom: 0.75rem;
  transition: border-color var(--trans);
}
.dj-gig-card:hover { border-color: var(--border2); }
.dj-gig-type-badge {
  display: inline-block; font-size: 0.68rem; font-weight: 700;
  border-radius: 4px; padding: 0.15rem 0.55rem; margin-bottom: 0.5rem;
}
.dj-gig-type-dj-available {
  background: rgba(124,58,237,0.15); color: #a78bfa;
  border: 1px solid rgba(124,58,237,0.3);
}
.dj-gig-type-dj-wanted {
  background: rgba(245,158,11,0.12); color: #fcd34d;
  border: 1px solid rgba(245,158,11,0.3);
}
.dj-gig-title { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.35rem; }
.dj-gig-desc { font-size: 0.82rem; color: var(--text2); line-height: 1.5; margin-bottom: 0.5rem; }
.dj-gig-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.4rem; }
.dj-gig-author { font-size: 0.72rem; color: var(--text3); }

.dj-empty { text-align: center; padding: 2.5rem 1rem; color: var(--text3); }

.dj-sidebar-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 1rem;
}
.dj-sidebar-title {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text2); margin-bottom: 0.85rem;
}
.dj-profile-item { display: flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0; }
.dj-profile-link {
  display: flex; align-items: center; gap: 0.5rem;
  text-decoration: none; color: inherit; flex: 1; min-width: 0;
}
.dj-profile-av {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg,#7c3aed,#a855f7);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.82rem; color: #fff; flex-shrink: 0;
  overflow: hidden;
}
.dj-profile-name { font-size: 0.82rem; font-weight: 600; }
.dj-profile-user { font-size: 0.7rem; color: var(--text2); }

.dj-msg-search { margin-bottom: 0.5rem; }
.dj-msg-user-item {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0.5rem; border-radius: 8px; cursor: pointer;
  transition: background var(--trans);
}
.dj-msg-user-item:hover { background: var(--surface2); }

/* ── Private chat ── */
.dj-chat-page {
  display: flex; flex-direction: column;
  height: calc(100vh - var(--nav-h) - var(--player-h));
  max-width: 680px; margin: 0 auto;
}
.dj-chat-header {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.75rem 1rem; border-bottom: 1px solid var(--border);
  background: var(--surface2); flex-shrink: 0;
}
.dj-pm-messages {
  flex: 1; overflow-y: auto; padding: 1rem;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.dj-pm-msg { display: flex; flex-direction: column; max-width: 75%; }
.dj-pm-msg--mine { align-self: flex-end; align-items: flex-end; }
.dj-pm-nick { font-size: 0.7rem; color: var(--text3); margin-bottom: 0.15rem; }
.dj-pm-bubble {
  background: var(--surface2); border-radius: 14px;
  padding: 0.55rem 0.85rem; font-size: 0.88rem; line-height: 1.5;
  word-break: break-word;
}
.dj-pm-msg--mine .dj-pm-bubble { background: var(--accent); color: #fff; }
.dj-pm-time { font-size: 0.65rem; color: var(--text3); margin-top: 0.15rem; }
.dj-pm-input-row {
  display: flex; gap: 0.5rem; padding: 0.75rem 1rem;
  border-top: 1px solid var(--border); flex-shrink: 0; background: var(--bg2);
}
.dj-pm-input-row input { flex: 1; }

/* DJ nav link */
.nav-link-dj {
  color: #fca5a5 !important;
  border-color: rgba(239,68,68,0.4) !important;
  background: rgba(239,68,68,0.1) !important;
}
.nav-link-dj:hover {
  color: #fee2e2 !important;
  background: rgba(239,68,68,0.2) !important;
  border-color: rgba(248,113,113,0.6) !important;
  box-shadow: 0 0 16px rgba(239,68,68,0.3) !important;
}

@media (max-width: 900px) {
  .dj-layout { grid-template-columns: 1fr; }
  .dj-sidebar { flex-direction: row; flex-wrap: wrap; }
  .dj-sidebar-card { flex: 1; min-width: 240px; }
}

/* ══════════════════════════════════════════════════════════════
   NAV BADGE (friend request counter)
══════════════════════════════════════════════════════════════ */
.nav-badge {
  display: inline-flex; align-items: center; justify-content: center;
  background: #ef4444; color: #fff; font-size: 0.6rem; font-weight: 700;
  min-width: 16px; height: 16px; border-radius: 9999px; padding: 0 4px;
  margin-left: 4px; vertical-align: top; line-height: 16px;
}

/* ══════════════════════════════════════════════════════════════
   FRIEND REQUEST BANNER (home page)
══════════════════════════════════════════════════════════════ */
.friend-req-banner {
  display: flex; align-items: center; gap: 0.75rem;
  background: linear-gradient(135deg, rgba(124,58,237,0.2), rgba(37,99,235,0.2));
  border: 1px solid rgba(124,58,237,0.4); border-radius: 12px;
  padding: 0.85rem 1.25rem; margin: 0 auto 1rem; max-width: 900px;
  cursor: pointer; font-size: 0.9rem; transition: background 0.2s;
}
.friend-req-banner:hover { background: linear-gradient(135deg, rgba(124,58,237,0.35), rgba(37,99,235,0.35)); }
.friend-req-banner span:first-child { font-size: 1.3rem; }
.friend-req-banner span:last-child { margin-left: auto; opacity: 0.7; }

/* ══════════════════════════════════════════════════════════════
   COMING SOON SECTION
══════════════════════════════════════════════════════════════ */
.coming-soon-section { padding: 2rem 1.5rem; max-width: 1100px; margin: 0 auto; }
.coming-soon-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem;
  margin-top: 1rem;
}
.cs-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 1.5rem 1.25rem;
  display: flex; flex-direction: column; gap: 0.4rem;
  position: relative; overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}
.cs-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.cs-card-premium { border-color: rgba(245,158,11,0.4); background: rgba(245,158,11,0.05); }
.cs-icon { font-size: 2rem; }
.cs-label { font-weight: 700; font-size: 1rem; }
.cs-desc { font-size: 0.82rem; color: var(--text2); line-height: 1.5; }
.cs-price { display: flex; flex-direction: column; gap: 0.25rem; }
.cs-price div { font-size: 0.85rem; color: var(--text2); }
.cs-price strong { color: var(--text); }
.cs-badge {
  display: inline-flex; align-items: center;
  background: rgba(124,58,237,0.15); color: var(--accent);
  font-size: 0.7rem; font-weight: 700; padding: 0.2rem 0.6rem;
  border-radius: 999px; letter-spacing: 0.05em; width: fit-content;
  margin-top: 0.25rem;
}
.cs-badge-gold { background: rgba(245,158,11,0.15); color: #f59e0b; }

/* ══════════════════════════════════════════════════════════════
   PROFILE — FRIEND REQUESTS + FRIENDS LIST
══════════════════════════════════════════════════════════════ */
.friend-requests-section {
  background: var(--surface); border: 1px solid rgba(124,58,237,0.3);
  border-radius: 14px; padding: 1rem 1.25rem; margin: 1rem 0;
}
.friend-requests-title {
  font-size: 0.85rem; font-weight: 700; color: var(--accent); margin-bottom: 0.75rem;
}
.friend-request-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.5rem 0;
  border-top: 1px solid var(--border); font-size: 0.88rem;
}
.friend-request-row:first-of-type { border-top: none; }
.friend-request-name { font-weight: 600; color: var(--text); text-decoration: none; }
.friend-request-name span { color: var(--text2); font-weight: 400; }
.friend-request-name:hover { color: var(--accent); }

.friends-section { margin: 1rem 0; }
.friends-title { font-size: 0.85rem; font-weight: 700; color: var(--text2); margin-bottom: 0.6rem; }
.friends-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.friend-chip-wrap { display: flex; align-items: center; gap: 0.25rem; }
.friend-chip {
  display: flex; align-items: center; gap: 0.5rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 0.3rem 0.75rem 0.3rem 0.35rem;
  text-decoration: none; color: var(--text); font-size: 0.82rem;
  transition: border-color 0.2s, background 0.2s;
}
.friend-chip:hover { border-color: var(--accent); background: var(--surface2); }
.friend-chip-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700; color: #fff; flex-shrink: 0;
}
.friend-chip-chat-btn {
  background: none; border: 1px solid var(--border); color: var(--text2);
  border-radius: 50%; width: 26px; height: 26px; font-size: 0.75rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: border-color 0.2s, background 0.2s, color 0.2s;
  flex-shrink: 0; padding: 0;
}
.friend-chip-chat-btn:hover { border-color: var(--accent); background: var(--surface2); color: var(--accent); }

/* ══════════════════════════════════════════════════════════════
   PROFILE — FAVORITE RADIO + MUSIC SECTION
══════════════════════════════════════════════════════════════ */
/* Psychedelic generated "cover" — a little vinyl-style swirl, deterministic
   per seed (see psychedelicCover() in icons.js). Background set inline. */
.psy-cover {
  display: inline-block; flex-shrink: 0; position: relative;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18),
              0 2px 10px rgba(0,0,0,0.4),
              0 0 14px var(--psy-accent, transparent);
}
.psy-cover::after {            /* vinyl centre hole */
  content: ''; position: absolute; inset: 0; margin: auto;
  width: 24%; height: 24%; border-radius: 50%;
  background: radial-gradient(circle, #0c0a16 60%, rgba(12,10,22,0.7));
  box-shadow: 0 0 0 2px rgba(255,255,255,0.14);
}

/* Favourite-radio marker on the profile */
.profile-fav-radio {
  display: inline-flex; align-items: center; gap: 0.7rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 0.5rem 0.7rem 0.5rem 0.55rem;
  margin: 0.75rem 0; color: var(--text2);
  box-shadow: 0 0 18px -6px var(--fav-accent, transparent);
}
.profile-fav-radio .fav-radio-meta { display: flex; flex-direction: column; line-height: 1.25; }
.profile-fav-radio .fav-radio-label {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.66rem; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--text3, var(--text2));
}
.profile-fav-radio .fav-radio-label .icon { width: 0.85em; height: 0.85em; }
.profile-fav-radio .fav-radio-name { font-size: 0.92rem; font-weight: 600; color: var(--text); }
.profile-fav-radio .fav-radio-play { margin-left: 0.35rem; }
.profile-music-section { margin: 1.25rem 0; }
.profile-music-title {
  font-size: 0.88rem; font-weight: 700; color: var(--text2);
  margin-bottom: 0.6rem; display: flex; align-items: center; gap: 0.4rem;
}

/* ════════════════════════════════════════════
   DJ MIXES
   ════════════════════════════════════════════ */
.profile-mixes-section { margin: 1.5rem 0; }
.profile-mixes-title {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  opacity: 0.55; margin-bottom: 0.75rem;
}
.mixes-list { display: flex; flex-direction: column; gap: 0.75rem; }

.mix-card {
  background: rgba(124,58,237,0.07);
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: 16px; overflow: hidden;
  transition: border-color 0.18s, background 0.18s;
}
.mix-card:hover { background: rgba(124,58,237,0.11); border-color: rgba(124,58,237,0.35); }
.mix-card-body {
  display: flex; align-items: center; gap: 0.9rem;
  padding: 0.9rem 1.1rem;
}
.mix-card-icon { font-size: 1.8rem; flex-shrink: 0; }
.mix-card-meta { flex: 1; min-width: 0; }
.mix-card-title { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mix-card-desc { font-size: 0.78rem; opacity: 0.65; margin-bottom: 0.3rem; }
.mix-card-stats { display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; opacity: 0.6; }
.mix-card-actions { display: flex; align-items: center; gap: 0.4rem; flex-shrink: 0; }

.mix-play-btn {
  background: linear-gradient(135deg, #7c3aed, #2563eb);
  color: #fff; border: none; border-radius: 99px;
  padding: 0.4rem 1rem; font-size: 0.8rem; font-weight: 700;
  cursor: pointer; white-space: nowrap;
  transition: opacity 0.18s, transform 0.15s;
}
.mix-play-btn:hover { opacity: 0.88; transform: scale(1.04); }

.mix-badge {
  display: inline-flex; align-items: center; gap: 0.2rem;
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.06em;
  border-radius: 99px; padding: 0.1rem 0.5rem;
}
.mix-badge--public  { color: #34d399; background: rgba(52,211,153,0.12); border: 1px solid rgba(52,211,153,0.25); }
.mix-badge--private { color: #f59e0b; background: rgba(245,158,11,0.12); border: 1px solid rgba(245,158,11,0.25); }

.mix-comments-section {
  padding: 0.75rem 1.1rem 0.9rem;
  border-top: 1px solid rgba(255,255,255,0.07);
  background: rgba(0,0,0,0.15);
}
.mix-comments-title {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em;
  opacity: 0.5; text-transform: uppercase; margin-bottom: 0.5rem;
}
.mix-comments-list { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 0.6rem; max-height: 160px; overflow-y: auto; }
.mix-comment { display: flex; align-items: baseline; gap: 0.4rem; font-size: 0.8rem; flex-wrap: wrap; }
.mix-comment-author { font-weight: 700; color: var(--accent); text-decoration: none; flex-shrink: 0; }
.mix-comment-author:hover { text-decoration: underline; }
.mix-comment-text { opacity: 0.9; flex: 1; min-width: 0; word-break: break-word; }
.mix-comment-time { font-size: 0.68rem; opacity: 0.4; flex-shrink: 0; white-space: nowrap; }
.mix-comment-form { display: flex; gap: 0.5rem; margin-top: 0.5rem; }
.mix-comment-input { flex: 1; font-size: 0.82rem; padding: 0.45rem 0.75rem; }

.mix-editor-item {
  display: flex; align-items: center; gap: 0.75rem;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 10px; padding: 0.75rem 1rem; margin-bottom: 0.5rem;
}

.mix-sub-banner {
  background: rgba(124,58,237,0.08);
  border: 1px solid rgba(124,58,237,0.22);
  border-radius: 14px; padding: 0.9rem 1.1rem; margin-bottom: 1.25rem;
}
.mix-sub-banner--pro {
  background: rgba(245,158,11,0.08);
  border-color: rgba(245,158,11,0.3);
}
.mix-sub-banner-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.mix-sub-title { font-size: 0.88rem; font-weight: 700; margin-bottom: 0.2rem; }
.mix-sub-desc { font-size: 0.78rem; color: var(--text2); }
.mix-pro-badge {
  display: inline-flex; align-items: center; gap: 0.25rem;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em;
  color: #f59e0b; background: rgba(245,158,11,0.15);
  border: 1px solid rgba(245,158,11,0.3); border-radius: 99px;
  padding: 0.15rem 0.55rem;
}
.btn-gold {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000; border: none; font-weight: 700;
  transition: opacity 0.18s, transform 0.15s;
}
.btn-gold:hover { opacity: 0.88; transform: scale(1.03); }
.mix-pro-feature-list { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.25rem; }
.mix-pro-feature {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.88rem; padding: 0.5rem 0.75rem;
  background: rgba(255,255,255,0.04); border-radius: 8px;
}
.mix-pro-price {
  font-size: 1.5rem; font-weight: 800; color: #f59e0b;
  text-align: center; margin-bottom: 0.5rem;
}

/* Home page public mixes feed */
.pub-mixes-grid { display: flex; flex-direction: column; gap: 0.6rem; }
.pub-mix-row {
  display: flex; align-items: center; gap: 0.9rem;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.09);
  border-radius: 14px; padding: 0.75rem 1rem;
  transition: background 0.18s, border-color 0.18s;
}
.pub-mix-row:hover { background: rgba(124,58,237,0.1); border-color: rgba(124,58,237,0.25); }
.pub-mix-icon { font-size: 1.5rem; flex-shrink: 0; }
.pub-mix-meta { flex: 1; min-width: 0; }
.pub-mix-title { font-size: 0.88rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pub-mix-sub { font-size: 0.75rem; color: var(--text2); }
.pub-mix-play {
  background: linear-gradient(135deg, #7c3aed, #2563eb);
  color: #fff; border: none; border-radius: 99px;
  padding: 0.35rem 0.85rem; font-size: 0.78rem; font-weight: 700;
  cursor: pointer; white-space: nowrap; flex-shrink: 0;
  transition: opacity 0.18s;
}
.pub-mix-play:hover { opacity: 0.85; }

/* ── Mix cover-bilde ──────────────────────────────────────── */
.mix-card-cover {
  width: 56px; height: 56px; border-radius: 10px;
  flex-shrink: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  background: rgba(124,58,237,0.15);
}
.mix-cover-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* ── Tracklist visning ────────────────────────────────────── */
.mix-tracklist-section {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 0 1.1rem 0.9rem;
}
.mix-tracklist-section summary {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em;
  opacity: 0.5; text-transform: uppercase;
  cursor: pointer; user-select: none;
  padding: 0.6rem 0 0.4rem; list-style: none;
  display: flex; align-items: center; gap: 0.35rem;
}
.mix-tracklist-section summary:hover { opacity: 0.8; }
.mix-tracklist-section summary::marker,
.mix-tracklist-section summary::-webkit-details-marker { display: none; }
.mix-tracklist-list { display: flex; flex-direction: column; gap: 0; }
.tl-row {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; padding: 0.28rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.tl-row:last-child { border-bottom: none; }
.tl-num { font-size: 0.72rem; opacity: 0.35; min-width: 1.4rem; text-align: right; flex-shrink: 0; }
.tl-artist { font-weight: 600; flex-shrink: 0; }
.tl-sep { opacity: 0.35; flex-shrink: 0; }
.tl-title { opacity: 0.85; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-label-badge {
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.04em;
  padding: 0.1rem 0.45rem; border-radius: 99px;
  background: rgba(124,58,237,0.2); border: 1px solid rgba(124,58,237,0.4);
  color: #a78bfa; white-space: nowrap; flex-shrink: 0;
}
.tl-buy-link {
  font-size: 0.7rem; font-weight: 600; color: #fbbf24;
  text-decoration: none; white-space: nowrap; flex-shrink: 0;
  padding: 0.1rem 0.45rem; border-radius: 6px;
  background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.25);
  transition: background 0.15s;
}
.tl-buy-link:hover { background: rgba(245,158,11,0.22); }

/* ── Mix-editor modal (tracklist-editor) ──────────────────── */
.mix-edit-modal { max-height: 80vh; overflow-y: auto; }
.mix-edit-section-title {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; opacity: 0.55; margin: 1.1rem 0 0.5rem;
}
.mix-cover-preview {
  width: 80px; height: 80px; border-radius: 12px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; background: rgba(124,58,237,0.15);
  border: 2px dashed rgba(124,58,237,0.3); cursor: pointer;
  flex-shrink: 0;
}
.mix-cover-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tl-editor-add-row {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  background: rgba(255,255,255,0.03); border-radius: 10px;
  padding: 0.65rem; margin-bottom: 0.65rem;
  border: 1px solid rgba(255,255,255,0.07);
}
.tl-editor-add-row input, .tl-editor-add-row select {
  flex: 1; min-width: 100px;
}
.tl-editor-track-row {
  display: flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.03); border-radius: 8px;
  padding: 0.45rem 0.65rem; margin-bottom: 0.35rem;
  border: 1px solid rgba(255,255,255,0.06);
}
.tl-editor-track-num { font-size: 0.7rem; opacity: 0.35; min-width: 1.2rem; flex-shrink: 0; }
.tl-editor-track-info { flex: 1; min-width: 0; }
.tl-editor-track-info .name { font-size: 0.82rem; font-weight: 600; }
.tl-editor-track-info .sub { font-size: 0.72rem; opacity: 0.5; margin-top: 0.1rem; }

/* ── Plateselskaper-tab ───────────────────────────────────── */
.label-editor-item {
  display: flex; align-items: center; gap: 0.75rem;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px; padding: 0.6rem 1rem; margin-bottom: 0.45rem;
}
.label-editor-name { flex: 1; font-weight: 600; font-size: 0.88rem; }

/* ── Hjemmeside mix-kort cover-thumbnail ──────────────────── */
.pub-mix-icon { font-size: 1.5rem; flex-shrink: 0; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 8px; }
.pub-mix-cover-thumb { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; display: block; }

/* ── Rolle-velger (registrering + profil-editor) ─────────── */
.role-selector {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-top: 0.35rem;
}
.role-option { cursor: pointer; }
.role-option-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.6rem 0.4rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  border: 1.5px solid rgba(255,255,255,0.1);
  transition: border-color 0.15s, background 0.15s;
  user-select: none;
}
.role-option-inner:hover { border-color: var(--accent); background: rgba(245,158,11,0.08); }
.role-option-inner.active { border-color: var(--accent); background: rgba(245,158,11,0.15); }
.role-option-emoji { font-size: 1.3rem; }
.role-option-label { font-size: 0.72rem; font-weight: 600; color: var(--text2); }
.role-option-inner.active .role-option-label { color: var(--accent); }

/* ── Profil-rolle-badge ──────────────────────────────────── */
.profile-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
}

/* ── Discover: tab-bar (horisontalt scrollbar) ───────────── */
.disc-tab-scroll {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0 max(0.5rem, env(safe-area-inset-left));
  margin-bottom: 0.25rem;
}
.disc-tab-bar {
  display: flex;
  gap: 0.5rem;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;          /* Firefox */
  -ms-overflow-style: none;       /* gamle Edge/IE */
  padding: 0.2rem 0.15rem;
}
.disc-tab-bar::-webkit-scrollbar { display: none; }  /* WebKit */

/* Kant-fade som hintar om at det er meir å scrolle til */
.disc-tab-scroll:not(.no-scroll) .disc-tab-bar {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 1.5rem, #000 calc(100% - 1.5rem), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 1.5rem, #000 calc(100% - 1.5rem), transparent 100%);
}
.disc-tab-scroll.at-start:not(.no-scroll) .disc-tab-bar {
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 1.5rem), transparent 100%);
          mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 1.5rem), transparent 100%);
}
.disc-tab-scroll.at-end:not(.no-scroll) .disc-tab-bar {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 1.5rem, #000 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 1.5rem, #000 100%);
}

.disc-tab-arrow {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: var(--text2);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s, opacity 0.15s;
}
.disc-tab-arrow:hover { border-color: var(--accent); color: var(--accent); background: rgba(245,158,11,0.12); }
.disc-tab-arrow svg { width: 18px; height: 18px; }
/* Skjul piler der dei ikkje trengst (i ytterkant / når alt får plass) */
.disc-tab-scroll.at-start  .disc-tab-arrow--left,
.disc-tab-scroll.at-end    .disc-tab-arrow--right,
.disc-tab-scroll.no-scroll .disc-tab-arrow {
  opacity: 0;
  pointer-events: none;
}

.disc-tab-btn {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: var(--text2);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.disc-tab-btn:hover { border-color: var(--accent); color: var(--text); }
.disc-tab-btn.active { border-color: var(--accent); background: rgba(245,158,11,0.12); color: var(--accent); }

/* ── Discover: people grid ───────────────────────────────── */
.disc-people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}
.disc-people-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.disc-people-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
.disc-people-banner {
  height: 72px;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.disc-people-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.3rem;
  border: 3px solid var(--bg);
  position: absolute;
  bottom: -22px;
  overflow: hidden;
}
.disc-people-body {
  padding: 1.75rem 0.85rem 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.25rem;
}
.disc-people-name { font-weight: 700; font-size: 0.9rem; line-height: 1.2; }
.disc-people-username { font-size: 0.72rem; color: var(--text3); }
.disc-people-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(124,58,237,0.18);
  border: 1px solid rgba(124,58,237,0.35);
  color: #a78bfa;
  margin-top: 0.15rem;
}
.disc-people-bio { font-size: 0.72rem; color: var(--text3); margin-top: 0.25rem; line-height: 1.4; }

/* ── Discover: Psytrance Peak Tour tab ───────────────────── */
.disc-psy-banner {
  background: linear-gradient(135deg, rgba(124,58,237,0.25) 0%, rgba(16,185,129,0.12) 50%, rgba(124,58,237,0.1) 100%);
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: 20px;
  padding: 2rem 1.75rem;
  margin: 1.25rem max(1rem, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.disc-psy-banner-emoji { font-size: 3rem; flex-shrink: 0; }
.disc-psy-banner-title { font-size: 1.4rem; font-weight: 800; margin-bottom: 0.3rem; background: linear-gradient(90deg,#a78bfa,#34d399); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }
.disc-psy-banner-sub { font-size: 0.85rem; color: var(--text2); line-height: 1.6; }

.disc-psy-section {
  padding: 0 max(1rem, env(safe-area-inset-left));
  margin-bottom: 2rem;
}
.disc-psy-section-hdr {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.disc-psy-section-icon { font-size: 1.4rem; }
.disc-psy-section-title { font-size: 1rem; font-weight: 700; }
.disc-psy-section-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(124,58,237,0.18);
  border: 1px solid rgba(124,58,237,0.35);
  color: #a78bfa;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.disc-psy-mix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.85rem;
}
.disc-psy-mix-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
  cursor: pointer;
}
.disc-psy-mix-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.25); }
.disc-psy-mix-thumb {
  width: 52px; height: 52px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}
.disc-psy-mix-thumb--sc { background: linear-gradient(135deg, #f50,#ff7700); }
.disc-psy-mix-thumb--yt { background: linear-gradient(135deg, #c00,#ff3d3d); }
.disc-psy-mix-thumb--bc { background: linear-gradient(135deg, #1da0c3,#0f5c70); }
.disc-psy-mix-info { flex: 1; min-width: 0; }
.disc-psy-mix-title { font-size: 0.82rem; font-weight: 700; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 0.2rem; }
.disc-psy-mix-artist { font-size: 0.72rem; color: var(--text3); }
.disc-psy-mix-arrow { font-size: 0.9rem; color: var(--text3); flex-shrink: 0; }

/* ── YouTube-søk — søk opp låtar/artistar direkte ─────────────────────── */
.yt-find { display: flex; flex-direction: column; gap: 0.5rem; }
.yt-find .disc-psy-label-card { width: 100%; }
.yt-search {
  display: flex; align-items: center; gap: 0.4rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 0.28rem 0.32rem 0.28rem 0.7rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.yt-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(124,58,237,0.18); }
.yt-search-icon { display: flex; color: var(--text3); flex-shrink: 0; }
.yt-search-icon .icon { width: 0.95em; height: 0.95em; }
.yt-search-input {
  flex: 1; min-width: 0; border: none; background: transparent;
  color: var(--text); font-size: 0.78rem; font-family: inherit;
  padding: 0.2rem 0; outline: none;
}
.yt-search-input::placeholder { color: var(--text3); }
.yt-search-btn {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border: none; border-radius: 50%;
  background: var(--accent); color: #fff; cursor: pointer;
  transition: filter 0.15s, transform 0.15s;
}
.yt-search-btn:hover { filter: brightness(1.12); transform: scale(1.05); }
.yt-search-btn .icon { width: 1em; height: 1em; }

/* Ambient Mann — in-page YouTube-søk (treff spelar i embed-en på SoundCore) */
.disc-am-yt-form { margin-bottom: 0.75rem; }
#disc-am-yt-results:not(:empty) { margin-top: 0.85rem; }
.disc-am-yt-status {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 0.25rem; color: var(--text3); font-size: 0.82rem;
}
.disc-am-yt-status .icon { width: 1em; height: 1em; }

/* Klikkbare spor/album — søkjer seg sjølv opp på YouTube */
.yt-clickable .yt-clickable-go {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  color: var(--text3); opacity: 0; transition: opacity 0.15s, color 0.15s;
}
.yt-clickable:hover .yt-clickable-go,
.yt-clickable:focus-visible .yt-clickable-go { opacity: 1; color: var(--accent); }
.yt-clickable:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.disc-psy-festival-list { display: flex; flex-direction: column; gap: 0.75rem; }
.disc-psy-festival-card {
  display: flex; align-items: center; gap: 1rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 1rem 1.1rem;
  text-decoration: none; color: inherit;
  transition: border-color 0.15s, transform 0.15s;
}
.disc-psy-festival-card:hover { border-color: rgba(52,211,153,0.5); transform: translateX(3px); }
.disc-psy-festival-date {
  min-width: 80px; text-align: center; flex-shrink: 0;
  background: rgba(52,211,153,0.1); border: 1px solid rgba(52,211,153,0.25);
  border-radius: 10px; padding: 0.4rem 0.5rem;
}
.disc-psy-festival-date-day { font-size: 0.78rem; font-weight: 800; color: #34d399; line-height: 1.1; }
.disc-psy-festival-date-mon { font-size: 0.62rem; color: var(--text3); text-transform: uppercase; letter-spacing: 0.06em; }
.disc-psy-festival-body { flex: 1; min-width: 0; }
.disc-psy-festival-name { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.2rem; }
.disc-psy-festival-loc { font-size: 0.75rem; color: var(--text2); }
.disc-psy-festival-tags { display: flex; gap: 0.35rem; flex-wrap: wrap; margin-top: 0.35rem; }
.disc-psy-festival-tag {
  font-size: 0.62rem; font-weight: 600;
  padding: 0.15rem 0.45rem; border-radius: 999px;
  background: rgba(124,58,237,0.15); border: 1px solid rgba(124,58,237,0.25);
  color: #a78bfa;
}
.disc-psy-festival-upcoming { background: rgba(52,211,153,0.12); color: #34d399; border-color: rgba(52,211,153,0.3); }
.disc-psy-festival-arrow { font-size: 1rem; color: var(--text3); flex-shrink: 0; }

.disc-psy-label-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}
.disc-psy-label-card {
  display: flex; align-items: center; gap: 0.85rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 0.9rem 1rem;
  text-decoration: none; color: inherit;
  transition: border-color 0.15s, transform 0.15s;
}
.disc-psy-label-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.disc-psy-label-icon { font-size: 1.75rem; flex-shrink: 0; }
.disc-psy-label-name { font-size: 0.85rem; font-weight: 700; margin-bottom: 0.15rem; }
.disc-psy-label-desc { font-size: 0.72rem; color: var(--text3); }

.disc-psy-cal-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; font-weight: 700; color: #34d399;
  text-decoration: none; margin-top: 1rem;
  padding: 0.5rem 1rem; border-radius: 999px;
  border: 1px solid rgba(52,211,153,0.3);
  background: rgba(52,211,153,0.08);
  transition: background 0.15s, border-color 0.15s;
}
.disc-psy-cal-link:hover { background: rgba(52,211,153,0.16); border-color: rgba(52,211,153,0.5); }

@media (max-width: 600px) {
  .disc-psy-banner { flex-direction: column; text-align: center; }
  .disc-psy-mix-grid { grid-template-columns: 1fr; }
  .disc-psy-label-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   AI DESIGN CHAT — profile editor
═══════════════════════════════════════════════════════════ */
.ai-chat-panel-body {
  display: flex;
  flex-direction: column;
  height: 420px;
  padding: 0;
  overflow: hidden;
}
.ai-no-key-banner {
  font-size: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: rgba(245,158,11,0.1);
  border-bottom: 1px solid rgba(245,158,11,0.2);
  color: #fbbf24;
  flex-shrink: 0;
}
.ai-chat-window {
  flex: 1;
  overflow-y: auto;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.ai-chat-window::-webkit-scrollbar { width: 4px; }
.ai-chat-window::-webkit-scrollbar-track { background: transparent; }
.ai-chat-window::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

.ai-chat-bubble {
  max-width: 90%;
  padding: 0.6rem 0.85rem;
  border-radius: 14px;
  font-size: 0.82rem;
  line-height: 1.55;
  animation: ai-bubble-in 0.18s ease;
}
@keyframes ai-bubble-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ai-chat-bubble--bot {
  background: rgba(124,58,237,0.14);
  border: 1px solid rgba(124,58,237,0.25);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  color: var(--text, #fff);
}
.ai-chat-bubble--user {
  background: var(--accent, #7c3aed);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  color: #fff;
  margin-left: auto;
}
.ai-typing {
  display: flex;
  gap: 4px;
  padding: 0.65rem 0.9rem;
  align-items: center;
}
.ai-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a78bfa;
  animation: ai-dot-bounce 1.2s infinite ease-in-out;
}
.ai-typing span:nth-child(2) { animation-delay: 0.2s; }
.ai-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes ai-dot-bounce {
  0%, 80%, 100% { transform: scale(0.7); opacity: 0.5; }
  40%           { transform: scale(1.1); opacity: 1; }
}

.ai-action-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.55rem;
  padding-top: 0.45rem;
  border-top: 1px solid rgba(255,255,255,0.07);
  flex-wrap: wrap;
}
.ai-bio-preview  { font-size: 0.75rem; color: var(--text2); font-style: italic; flex: 1; min-width: 0; }
.ai-layout-preview { font-size: 0.75rem; color: var(--text2); flex: 1; }

.ai-chat-quick {
  display: flex;
  gap: 0.35rem;
  padding: 0.45rem 0.7rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  flex-wrap: wrap;
  background: rgba(0,0,0,0.1);
  flex-shrink: 0;
}
.ai-tip-btn {
  font-size: 0.72rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(124,58,237,0.35);
  background: rgba(124,58,237,0.1);
  color: #c4b5fd;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.ai-tip-btn:hover {
  background: rgba(124,58,237,0.28);
  color: #fff;
}

.ai-chat-input-row {
  display: flex;
  gap: 0.5rem;
  padding: 0.6rem 0.7rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
  background: rgba(0,0,0,0.12);
}
.ai-chat-input-row .form-input {
  flex: 1;
  font-size: 0.82rem;
  padding: 0.45rem 0.75rem;
}
.ai-chat-send-btn {
  padding: 0.45rem 0.85rem;
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
}

/* ════════════════════════════════════════════
   ONLINE STATUS
════════════════════════════════════════════ */
.user-online-dot {
  position: absolute;
  bottom: -29px; left: calc(50% + 20px);
  width: 13px; height: 13px;
  background: #22c55e;
  border: 2px solid var(--bg2);
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e88;
  z-index: 2;
  animation: pulse-green 2s infinite;
}
@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 6px #22c55e88; }
  50%       { box-shadow: 0 0 14px #22c55ecc; }
}
.profile-online-dot {
  position: absolute;
  bottom: 2px; right: 2px;
  width: 14px; height: 14px;
  background: #22c55e;
  border: 2.5px solid var(--bg2);
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e88;
  animation: pulse-green 2s infinite;
}
.profile-online-badge {
  color: #4ade80;
  font-size: 0.72rem;
  font-weight: 600;
  margin-left: 0.4rem;
  animation: pulse-green 2s infinite;
}

/* Nav login/logout status light — grønn = online, svart = offline.
   Berre eitt lys synleg om gangen (styrt av innloggingsstatus i renderNav). */
.nav-status-dot {
  display: inline-block;
  width: 9px; height: 9px;
  border-radius: 50%;
  margin-right: 0.4rem;
  vertical-align: middle;
  flex-shrink: 0;
}
.nav-status-dot--online {
  background: #22c55e;
  box-shadow: 0 0 7px #22c55ecc;
  animation: pulse-green 2s infinite;
}
.nav-status-dot--offline {
  background: #111;
  border: 1px solid rgba(255,255,255,0.25);
}

/* ════════════════════════════════════════════
   USER CARD FRIEND BUTTONS
════════════════════════════════════════════ */
.user-card-friend-btn {
  margin-top: 0.6rem;
  width: 100%;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
}
.user-card-friend-btn:hover {
  background: var(--accent);
  color: #fff;
}
.user-card-friend-btn--accept {
  border-color: #22c55e;
  color: #22c55e;
}
.user-card-friend-btn--accept:hover {
  background: #22c55e;
  color: #fff;
}
.user-card-friend-btn--pending {
  border-color: var(--text3);
  color: var(--text3);
  cursor: default;
}
.user-card-friend-status {
  margin-top: 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #4ade80;
}
.user-card-friend-status--pending {
  color: var(--text3);
}

/* ════════════════════════════════════════════
   PLATFORMS TAB
════════════════════════════════════════════ */
.platform-selector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.5rem;
}
.platform-selector-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  background: var(--surface);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.18s;
  user-select: none;
}
.platform-selector-item:hover {
  border-color: var(--accent);
}
.platform-selector-item.selected {
  border-color: var(--accent);
  background: rgba(124,58,237,0.12);
}
.platform-selector-item input { display: none; }
.platform-sel-emoji { font-size: 1.15rem; flex-shrink: 0; }
.platform-sel-name { font-size: 0.8rem; font-weight: 600; line-height: 1.3; }

/* Platforms view badges */
.profile-platforms {
  margin-bottom: 1.25rem;
}
.profile-platforms-group {
  margin-bottom: 0.75rem;
}
.profile-platforms-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text2);
  margin-bottom: 0.5rem;
}
.platforms-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
}

/* ═══════════════════════════════════════════════
   SETTINGS PAGE v2 — TABBED
   ═══════════════════════════════════════════════ */
.settings-page-v2 { max-width: 760px; margin: 0 auto; padding: 2rem 1.5rem 5rem; }
.settings-page-v2 > h1 { font-size: 1.75rem; font-weight: 800; margin-bottom: 1.5rem; }

.settings-tabs {
  display: flex; gap: 0.25rem; flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.75rem;
}
.settings-tab-btn {
  padding: 0.6rem 1rem; font-size: 0.85rem; font-weight: 600;
  color: var(--text2); background: none; border: none;
  border-bottom: 2px solid transparent; cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.settings-tab-btn:hover { color: var(--text); }
.settings-tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }

.settings-tab-panel { display: none; }
.settings-tab-panel.active { display: block; }

/* Plan cards */
.plan-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem; }
@media (max-width: 500px) { .plan-cards { grid-template-columns: 1fr; } }
.plan-card {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: 16px; padding: 1.25rem; position: relative;
}
.plan-card.current-plan { border-color: var(--accent); }
.plan-card.current-plan::before {
  content: 'Aktiv'; position: absolute; top: -10px; right: 1rem;
  background: var(--accent); color: #000; font-size: 0.7rem; font-weight: 700;
  padding: 0.15rem 0.6rem; border-radius: 999px;
}
.plan-card-name { font-size: 1.1rem; font-weight: 800; margin-bottom: 0.25rem; }
.plan-card-price { font-size: 0.85rem; color: var(--text2); margin-bottom: 0.75rem; }
.plan-card-features { list-style: none; padding: 0; margin: 0 0 1rem; }
.plan-card-features li { font-size: 0.82rem; padding: 0.2rem 0; color: var(--text2); }
.plan-card-features li::before { content: '✓ '; color: #4ade80; }

/* Admin contact box */
.admin-contact-box {
  background: rgba(124,58,237,0.08); border: 1px solid rgba(124,58,237,0.25);
  border-radius: 12px; padding: 1rem 1.25rem; margin-top: 1rem;
  display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;
}
.admin-contact-box .admin-icon { font-size: 1.5rem; }
.admin-contact-box a { color: var(--accent); font-weight: 600; }

/* Image filter sliders */
.filter-sliders { display: flex; flex-direction: column; gap: 1rem; }
.filter-row { display: flex; align-items: center; gap: 0.75rem; }
.filter-row label { width: 90px; font-size: 0.82rem; font-weight: 600; color: var(--text2); flex-shrink: 0; }
.filter-row input[type=range] { flex: 1; accent-color: var(--accent); }
.filter-row .filter-val { width: 36px; text-align: right; font-size: 0.8rem; font-variant-numeric: tabular-nums; color: var(--text3); }

.preset-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.preset-btn {
  padding: 0.4rem 0.85rem; border-radius: 999px; font-size: 0.8rem; font-weight: 600;
  border: 1.5px solid var(--border); background: var(--surface2); cursor: pointer; color: var(--text);
  transition: border-color 0.2s, background 0.2s;
}
.preset-btn:hover, .preset-btn.active { border-color: var(--accent); background: rgba(245,158,11,0.12); color: var(--accent); }

/* AI assistant chat inside settings */
.set-ai-chat { display: flex; flex-direction: column; height: 420px; }
.set-ai-messages {
  flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.75rem;
  scrollbar-width: thin;
}
.set-ai-msg { max-width: 85%; padding: 0.65rem 0.9rem; border-radius: 14px; font-size: 0.875rem; line-height: 1.5; }
.set-ai-msg.user { align-self: flex-end; background: var(--accent); color: #000; border-bottom-right-radius: 4px; }
.set-ai-msg.bot  { align-self: flex-start; background: var(--surface2); border-bottom-left-radius: 4px; }
.set-ai-msg.typing { opacity: 0.6; font-style: italic; }
.set-ai-input-row { display: flex; gap: 0.5rem; padding: 0.75rem; border-top: 1px solid var(--border); }
.set-ai-input-row .form-input { flex: 1; }

/* Payment method selector */
.payment-methods { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1rem; }
.payment-method-btn {
  flex: 1; min-width: 130px; padding: 1rem; border-radius: 14px; cursor: pointer;
  border: 1.5px solid var(--border); background: var(--surface2); text-align: center;
  transition: border-color 0.2s;
}
.payment-method-btn:hover, .payment-method-btn.selected { border-color: var(--accent); }
.payment-method-btn .pm-icon { font-size: 1.75rem; margin-bottom: 0.3rem; }
.payment-method-btn .pm-label { font-size: 0.8rem; font-weight: 600; }

/* Danger zone */
.danger-zone {
  border: 1px solid rgba(239,68,68,0.3); border-radius: 12px;
  padding: 1rem 1.25rem; background: rgba(239,68,68,0.06);
}
.danger-zone-title { font-size: 0.82rem; font-weight: 700; color: var(--red); margin-bottom: 0.5rem; }
.platform-badge--daw {
  background: rgba(124,58,237,0.18);
  border: 1px solid rgba(124,58,237,0.35);
  color: #a78bfa;
}
.platform-badge--streaming {
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.3);
  color: #4ade80;
}

/* ════════════════════════════════════════════
   MINE SIDER
════════════════════════════════════════════ */
.profile-my-sites {
  margin-bottom: 1.5rem;
}
.profile-my-sites-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text2);
  margin-bottom: 0.65rem;
}
.my-sites-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.my-site-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: all 0.18s;
}
.my-site-card:hover {
  border-color: var(--accent);
  background: rgba(124,58,237,0.08);
  transform: translateX(3px);
}
.my-site-emoji { font-size: 1.4rem; flex-shrink: 0; }
.my-site-info { flex: 1; min-width: 0; }
.my-site-name { font-weight: 700; font-size: 0.88rem; }
.my-site-desc { font-size: 0.75rem; color: var(--text2); margin-top: 0.15rem; }
.my-site-arrow { font-size: 1rem; color: var(--text3); flex-shrink: 0; }

/* Editor items */
.my-site-editor-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 0.5rem;
}

/* ─── Drone Zone Essentials ─── */
.disc-editorial-card--drone {
  border-color: rgba(0,180,180,0.35);
  background: rgba(0,40,50,0.4);
}
.disc-editorial-card--drone:hover {
  border-color: #00c8c8;
  box-shadow: 0 0 20px rgba(0,200,200,0.2);
}

.dz-wrap { padding-bottom: 3rem; }

.dz-hero {
  position: relative;
  padding: 2.5rem 1.5rem 2rem;
  background: linear-gradient(160deg, #020d10 0%, #041520 50%, #000a0a 100%);
  border-radius: 16px;
  text-align: center;
  margin-bottom: 2rem;
  overflow: hidden;
}
.dz-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(0,180,180,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.dz-back-btn {
  position: absolute;
  top: 1rem; left: 1rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--text2);
  border-radius: 8px;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.18s;
}
.dz-back-btn:hover { background: rgba(255,255,255,0.13); color: var(--text); }
.dz-hero-title { font-size: 1.6rem; font-weight: 800; color: #e0f7fa; margin-bottom: 0.4rem; position: relative; }
.dz-hero-sub { font-size: 0.85rem; color: rgba(0,220,220,0.7); letter-spacing: 0.06em; margin-bottom: 1rem; position: relative; }
.dz-hero-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center; position: relative; }
.dz-hero-tag {
  font-size: 0.72rem;
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
  background: rgba(0,180,180,0.15);
  border: 1px solid rgba(0,180,180,0.3);
  color: rgba(0,220,220,0.85);
}

.dz-section { margin-bottom: 2rem; }
.dz-section-header { display: flex; align-items: baseline; gap: 0.75rem; margin-bottom: 1rem; }
.dz-section-title { font-size: 1rem; font-weight: 700; margin: 0; }
.dz-section-count { font-size: 0.78rem; color: var(--text3); }

.dz-artists-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.dz-artist-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.1rem 1.15rem 1rem;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.dz-artist-card:hover { border-color: rgba(0,180,180,0.4); box-shadow: 0 0 14px rgba(0,180,180,0.1); }
.dz-artist-header { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin-bottom: 0.55rem; }
.dz-artist-name { font-weight: 700; font-size: 0.95rem; }
.dz-artist-badge {
  font-size: 0.68rem;
  padding: 0.15rem 0.5rem;
  border-radius: 99px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--text2);
}
.dz-artist-badge--label { color: rgba(0,200,200,0.8); border-color: rgba(0,180,180,0.25); background: rgba(0,50,60,0.4); }
.dz-artist-bio { font-size: 0.8rem; color: var(--text2); line-height: 1.55; margin: 0 0 0.6rem; }
.dz-artist-albums { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-bottom: 0.7rem; }
.dz-album-pill {
  font-size: 0.67rem;
  font-style: italic;
  padding: 0.12rem 0.45rem;
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text3);
}
.dz-artist-links { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.dz-link-btn {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.72rem; font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.15s;
  border: 1px solid transparent;
}
.dz-link-btn--bc  { background: rgba(30,185,128,0.14); color: #1db954; border-color: rgba(30,185,128,0.3); }
.dz-link-btn--bc:hover  { background: rgba(30,185,128,0.25); }
.dz-link-btn--yt  { background: rgba(255,50,50,0.12); color: #ff6060; border-color: rgba(255,50,50,0.28); }
.dz-link-btn--yt:hover  { background: rgba(255,50,50,0.22); }
.dz-link-btn--fb  { background: rgba(66,103,178,0.14); color: #7b9fd4; border-color: rgba(66,103,178,0.3); }
.dz-link-btn--fb:hover  { background: rgba(66,103,178,0.25); }
.dz-link-btn--web { background: rgba(180,180,180,0.1); color: var(--text2); border-color: var(--border); }
.dz-link-btn--web:hover { background: rgba(180,180,180,0.18); color: var(--text); }

.dz-labels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}
.dz-label-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid rgba(0,180,180,0.5);
  border-radius: 14px;
  padding: 1.15rem 1.2rem 1rem;
  transition: border-color 0.18s;
}
.dz-label-card:hover { border-left-color: #00c8c8; }
.dz-label-header { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; flex-wrap: wrap; }
.dz-label-flag { font-size: 1.3rem; }
.dz-label-name { font-weight: 700; font-size: 1rem; }
.dz-label-meta { font-size: 0.73rem; color: var(--text3); margin-left: auto; }
.dz-label-desc { font-size: 0.8rem; color: var(--text2); line-height: 1.55; margin: 0 0 0.4rem; }
.dz-label-artists { font-size: 0.74rem; color: var(--text3); font-style: italic; margin: 0 0 0.65rem; }
.dz-label-links { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.85rem; }
.dz-demo-box {
  background: rgba(0,40,50,0.5);
  border: 1px solid rgba(0,180,180,0.2);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
}
.dz-demo-title { font-size: 0.75rem; font-weight: 700; color: rgba(0,210,210,0.85); margin-bottom: 0.25rem; }
.dz-demo-contact { font-size: 0.8rem; color: var(--text); font-weight: 600; margin-bottom: 0.2rem; word-break: break-all; }
.dz-demo-note { font-size: 0.74rem; color: var(--text2); line-height: 1.5; }

@media (max-width: 640px) {
  .dz-artists-grid, .dz-labels-grid { grid-template-columns: 1fr; }
  .dz-hero-title { font-size: 1.3rem; }
  .dz-back-btn { font-size: 0.72rem; padding: 0.28rem 0.55rem; }
}

/* ── Profile music visualizer ── */
#profile-vis-canvas {
  display: block;
  pointer-events: none;
}

/* ── 5-day profile background notice ── */
#bg-profile-notice-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.35s ease;
}
.bg-notice-box {
  background: linear-gradient(145deg, #0f0025 0%, #1a0040 60%, #0a001a 100%);
  border: 1px solid rgba(150,80,255,0.35);
  border-radius: 20px;
  padding: 2.25rem 2rem 2rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 0 60px rgba(124,58,237,0.4), 0 20px 60px rgba(0,0,0,0.6);
}
.bg-notice-icon {
  font-size: 2.8rem;
  margin-bottom: 0.75rem;
}
.bg-notice-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0 0 0.85rem;
  background: linear-gradient(90deg, #a78bfa, #60a5fa, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.bg-notice-body {
  font-size: 0.9rem;
  color: var(--text2);
  line-height: 1.65;
  margin-bottom: 1.1rem;
}
.bg-notice-body strong { color: var(--text1); }
.bg-notice-body em { color: #a78bfa; font-style: normal; }
.bg-notice-preview {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(124,58,237,0.25);
}
#bg-notice-canvas { display: block; width: 100%; height: 80px; background: #0a0010; }
.bg-notice-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════
   PLATFORM SWITCHER — floating bottom-right widget
   ═══════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════
   CONTROL DOCK — one tidy column (AI · language · platform · links · background)
   Replaces the scattered bottom-corner widgets that used to collide.
   ═══════════════════════════════════════════════ */
#dock {
  position: fixed;
  right: 1rem;
  bottom: calc(var(--player-h) + 1rem);
  z-index: var(--z-dock);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  font-family: 'Inter', sans-serif;
  pointer-events: none;            /* let clicks pass between buttons */
}
#dock > * { pointer-events: auto; }

/* Widgets inside the dock flow in the column instead of self-positioning */
#dock #platform-widget,
#dock #lang-widget,
#dock #dock-links-widget {
  position: relative;
  bottom: auto; right: auto; left: auto;
  z-index: auto;
}

/* Round icon buttons (AI, links, background) */
.dock-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(15, 12, 30, 0.92);
  border: 1px solid var(--border2);
  color: var(--text);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 4px 18px rgba(0,0,0,0.4);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s, background 0.2s;
}
.dock-btn:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(124,58,237,0.4);
}
.dock-btn .icon { width: 1.25em; height: 1.25em; }

/* AI launcher — the prominent "talk to me" button */
.dock-btn-ai {
  width: 52px; height: 52px;
  background: var(--accentG);
  border-color: rgba(167,139,250,0.6);
  color: #fff;
  box-shadow: 0 6px 26px rgba(124,58,237,0.5);
}
.dock-btn-ai:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 10px 32px rgba(124,58,237,0.65);
}
.dock-btn-ai .icon { width: 1.4em; height: 1.4em; }

/* Links popover (mirrors the platform/lang panel look) */
#dock-links-panel {
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  width: 230px;
  max-height: 0;
  overflow: hidden;
  background: rgba(10, 8, 22, 0.97);
  border: 1px solid var(--border2);
  border-radius: 14px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  opacity: 0;
  pointer-events: none;
  transition: max-height 0.3s cubic-bezier(0.4,0,0.2,1), opacity 0.22s ease;
}
#dock-links-panel.open {
  max-height: 220px;
  opacity: 1;
  pointer-events: all;
}
.dock-links-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.6rem;
}

#platform-widget {
  font-family: 'Inter', sans-serif;
}

/* Fri-flyttende «Platform»-fane (PlatformDrag): løsne fra dock-kolonnen og
   posisjoner fast mot vinduet, så den kan dras venstre/høyre/opp/ned. */
#dock #platform-widget.platform-floating {
  position: fixed;
  bottom: auto;
  right: auto;
  z-index: calc(var(--z-dock) + 5);
}

#platform-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  background: rgba(15, 12, 30, 0.92);
  border: 1px solid rgba(6, 182, 212, 0.5);
  border-radius: 30px;
  color: #d0f4ff;
  font-size: 0.82rem;
  font-weight: 600;
  /* Dra-håndtak: la touch styre drag i stedet for å scrolle siden, og vis
     grab-pekeren som hint om at fanen kan flyttes (klikk åpner fortsatt panelet). */
  touch-action: none;
  cursor: grab;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 4px 24px rgba(6, 100, 160, 0.3), 0 0 0 1px rgba(6,182,212,0.15);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  user-select: none;
  white-space: nowrap;
}

#platform-toggle:hover {
  border-color: rgba(103, 232, 249, 0.8);
  box-shadow: 0 6px 28px rgba(6, 182, 212, 0.45), 0 0 0 1px rgba(103,232,249,0.3);
  transform: translateY(-1px);
}

#platform-toggle:active { cursor: grabbing; }

#platform-icon { font-size: 1.05rem; }
#platform-chevron { font-size: 0.6rem; opacity: 0.7; }

#platform-panel {
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  width: 240px;
  max-height: 0;
  overflow: hidden;
  background: rgba(10, 8, 22, 0.97);
  border: 1px solid rgba(6, 182, 212, 0.35);
  border-radius: 14px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(6,182,212,0.1);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transition: max-height 0.32s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.22s ease;
  opacity: 0;
  pointer-events: none;
}

#platform-panel.open {
  max-height: 280px;
  opacity: 1;
  pointer-events: all;
}

.platform-title {
  padding: 10px 14px 6px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(6,182,212,0.6);
  font-weight: 700;
  border-bottom: 1px solid rgba(6,182,212,0.15);
}

.platform-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  text-decoration: none;
  color: rgba(210, 245, 255, 0.85);
  transition: background 0.12s;
  cursor: pointer;
}

.platform-item:hover {
  background: rgba(6, 182, 212, 0.12);
  color: #d0f4ff;
}

.platform-emoji { font-size: 1.3rem; flex-shrink: 0; }

.platform-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.platform-name {
  font-size: 0.82rem;
  font-weight: 600;
}

.platform-desc {
  font-size: 0.72rem;
  color: rgba(103,232,249,0.55);
  margin-top: 1px;
}

.platform-arrow {
  font-size: 0.85rem;
  opacity: 0.5;
}

/* ═══════════════════════════════════════════════
   LANGUAGE PICKER — floating bottom-right widget
   ═══════════════════════════════════════════════ */

#lang-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: var(--z-dock);
  font-family: 'Inter', sans-serif;
}

/* Drag-to-move: the picker can be pulled anywhere on screen.
   touch-action:none lets a finger drag it instead of scrolling. */
#lang-toggle { touch-action: none; }
#lang-widget.lang-floating #lang-toggle { cursor: grab; }
body.lang-dragging,
body.lang-dragging #lang-toggle { cursor: grabbing; user-select: none; }

#lang-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  background: rgba(15, 12, 30, 0.92);
  border: 1px solid rgba(124, 58, 237, 0.55);
  border-radius: 30px;
  color: #e2d9ff;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 4px 24px rgba(79, 20, 180, 0.35), 0 0 0 1px rgba(124,58,237,0.2);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  user-select: none;
  white-space: nowrap;
}

#lang-toggle:hover {
  border-color: rgba(167, 139, 250, 0.8);
  box-shadow: 0 6px 28px rgba(124, 58, 237, 0.5), 0 0 0 1px rgba(167,139,250,0.3);
  transform: translateY(-1px);
}

#lang-globe { font-size: 1.1rem; }
#lang-chevron { font-size: 0.6rem; opacity: 0.7; transition: transform 0.2s; }

#lang-panel {
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  width: 280px;
  max-height: 0;
  overflow: hidden;
  background: rgba(10, 8, 22, 0.97);
  border: 1px solid rgba(124, 58, 237, 0.4);
  border-radius: 14px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(124,58,237,0.15);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transition: max-height 0.32s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.22s ease;
  opacity: 0;
  pointer-events: none;
}

#lang-panel.open {
  max-height: 380px;
  opacity: 1;
  pointer-events: all;
}

#lang-search-wrap {
  padding: 10px 10px 6px;
  position: sticky;
  top: 0;
  background: rgba(10, 8, 22, 0.98);
  border-bottom: 1px solid rgba(124, 58, 237, 0.2);
  z-index: 1;
}

#lang-search {
  width: 100%;
  padding: 7px 12px;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 8px;
  color: #e2d9ff;
  font-size: 0.82rem;
  outline: none;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.15s;
}

#lang-search:focus {
  border-color: rgba(167, 139, 250, 0.7);
}

#lang-search::placeholder { color: rgba(180,160,255,0.4); }

#lang-list {
  list-style: none;
  margin: 0;
  padding: 6px 0;
  overflow-y: auto;
  max-height: 300px;
}

#lang-list::-webkit-scrollbar { width: 4px; }
#lang-list::-webkit-scrollbar-track { background: transparent; }
#lang-list::-webkit-scrollbar-thumb { background: rgba(124,58,237,0.4); border-radius: 4px; }

.lang-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  cursor: pointer;
  font-size: 0.8rem;
  color: rgba(220, 210, 255, 0.85);
  transition: background 0.12s;
  border-radius: 0;
}

.lang-item:hover {
  background: rgba(124, 58, 237, 0.18);
  color: #e2d9ff;
}

.lang-flag { font-size: 1.05rem; flex-shrink: 0; }
.lang-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lang-empty { padding: 10px 14px; color: #9a8fb8; font-size: 0.85rem; text-align: center; }

/* Hide Google Translate toolbar banner */
.goog-te-banner-frame, #goog-te-banner-frame { display: none !important; }
body { top: 0 !important; }
.skiptranslate { display: none !important; }

/* ═══ EMBED MEDIA PANEL ═══ */
.embed-panel {
  position: fixed;
  bottom: 100px;
  right: 20px;
  width: 420px;
  background: #0d0d16;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.75);
  z-index: var(--z-embed);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: opacity .2s;
}
.embed-panel.hidden { display: none; }
.embed-panel-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255,255,255,0.05);
  font-size: 13px;
  font-weight: 500;
  color: #e0e0e0;
  gap: 8px;
  min-height: 40px;
}
.embed-panel-hdr span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.embed-panel-close {
  background: none;
  border: none;
  color: #888;
  cursor: pointer;
  font-size: 17px;
  line-height: 1;
  padding: 0 2px;
  flex-shrink: 0;
}
.embed-panel-close:hover { color: #fff; }
.embed-panel-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.03);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.embed-panel-search.hidden { display: none; }
.embed-panel-search-icon {
  display: inline-flex;
  color: #888;
  flex-shrink: 0;
}
.embed-panel-search-icon .icon { width: 15px; height: 15px; }
.embed-panel-search-input {
  flex: 1;
  min-width: 0;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: #e8e8e8;
  font-size: 13px;
  padding: 7px 10px;
  outline: none;
}
.embed-panel-search-input:focus { border-color: rgba(255,85,0,0.6); }
.embed-panel-search-input::placeholder { color: #777; }
.embed-panel-search-go {
  flex-shrink: 0;
  background: #ff5500;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 12px;
  cursor: pointer;
}
.embed-panel-search-go:hover { background: #ff6a1f; }
#embed-panel-frame {
  width: 100%;
  height: 236px;
  border: none;
  display: block;
}
@media (max-width: 500px) {
  .embed-panel {
    width: calc(100vw - 32px);
    right: 16px;
    left: 16px;
    bottom: 90px;
  }
}

/* ── Profile wall (guestbook) ── */
.wall-wrap { display: flex; flex-direction: column; gap: 0.75rem; }
.wall-input-wrap {
  display: flex; gap: 0.5rem; align-items: center;
  margin-bottom: 1rem;
}
.wall-input { flex: 1; }
.wall-login-prompt { font-size: 0.85rem; color: var(--text2); margin-bottom: 1rem; padding: 0.6rem 0; }
.wall-post {
  display: flex; gap: 0.75rem; align-items: flex-start;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  transition: border-color var(--trans);
}
.wall-post:hover { border-color: var(--accent); }
.wall-post-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.95rem; color: #fff;
  flex-shrink: 0; text-decoration: none;
}
.wall-post-body { flex: 1; min-width: 0; }
.wall-post-header {
  display: flex; align-items: center; gap: 0.4rem;
  flex-wrap: wrap; margin-bottom: 0.3rem;
}
.wall-post-name { font-weight: 700; font-size: 0.88rem; color: var(--text); text-decoration: none; }
.wall-post-name:hover { color: var(--accent); }
.wall-post-username { font-size: 0.78rem; color: var(--text3); }
.wall-post-time { font-size: 0.74rem; color: var(--text3); margin-left: auto; }
.wall-post-delete {
  font-size: 0.72rem; color: var(--text3); padding: 0.1rem 0.35rem;
  border-radius: 4px; opacity: 0; transition: opacity var(--trans), color var(--trans);
}
.wall-post:hover .wall-post-delete { opacity: 1; }
.wall-post-delete:hover { color: #ef4444; }
.wall-post-text { font-size: 0.9rem; color: var(--text2); line-height: 1.55; word-break: break-word; }

/* ── Paint / Image Editor ────────────────────────────────────────────── */
.paint-open-btn {
  margin-top: 0.5rem; width: 100%; padding: 7px 10px;
  background: var(--accent); color: #fff; border: none;
  border-radius: 6px; cursor: pointer; font-size: 0.82rem;
  font-weight: 600; transition: background 0.15s, opacity 0.15s;
}
.paint-open-btn:hover { opacity: 0.85; }
.paint-modal {
  position: fixed; inset: 0; background: rgba(0,0,0,0.9);
  backdrop-filter: blur(6px); z-index: var(--z-modal);
  display: flex; align-items: stretch; justify-content: center;
}
.paint-editor {
  display: flex; flex-direction: column; width: 100%;
  background: #18181f; color: #e0e0e0; overflow: hidden;
}
.paint-toolbar {
  display: flex; align-items: center; gap: 6px; padding: 6px 12px;
  background: #23232f; border-bottom: 1px solid #333;
  flex-wrap: wrap; flex-shrink: 0; min-height: 52px;
}
.paint-tools-group { display: flex; gap: 2px; }
.paint-tool {
  background: #2e2e3e; border: 1px solid #444; color: #ddd;
  width: 36px; height: 36px; border-radius: 5px; cursor: pointer;
  font-size: 0.95rem; font-weight: 700; display: flex;
  align-items: center; justify-content: center; transition: background 0.12s, border-color 0.12s;
  user-select: none;
}
.paint-tool:hover { background: #3a3a4e; border-color: #666; }
.paint-tool.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.paint-divider { width: 1px; height: 30px; background: #444; margin: 0 2px; align-self: center; }
.paint-color-group { display: flex; align-items: center; gap: 6px; }
.paint-label { font-size: 0.68rem; color: #888; white-space: nowrap; }
.paint-color-input {
  width: 30px; height: 30px; border: 2px solid #555; border-radius: 4px;
  cursor: pointer; padding: 1px; background: none;
}
.paint-size-range { width: 70px; cursor: pointer; }
.paint-size-val { font-size: 0.72rem; color: #bbb; min-width: 18px; text-align: center; }
.paint-text-group { display: flex; align-items: center; gap: 6px; }
.paint-text-field {
  background: #2e2e3e; border: 1px solid #555; color: #eee;
  padding: 5px 8px; border-radius: 4px; font-size: 0.82rem; width: 150px;
}
.paint-text-field:focus { outline: none; border-color: var(--accent); }
.paint-font-sel {
  background: #2e2e3e; border: 1px solid #555; color: #eee;
  padding: 4px 6px; border-radius: 4px; font-size: 0.78rem;
}
.paint-bold-check { display: flex; align-items: center; gap: 3px; font-size: 0.78rem; color: #bbb; cursor: pointer; }
.paint-actions { display: flex; gap: 6px; margin-left: auto; }
.paint-action-btn {
  padding: 6px 14px; border-radius: 5px; border: 1px solid #555;
  background: #2e2e3e; color: #eee; cursor: pointer; font-size: 0.8rem;
  font-weight: 600; transition: background 0.12s, border-color 0.12s; white-space: nowrap;
}
.paint-action-btn:hover { background: #3a3a4e; }
.paint-action-btn.p-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.paint-action-btn.p-primary:hover { opacity: 0.88; }
.paint-action-btn.p-danger { background: #7f1d1d; border-color: #991b1b; color: #fca5a5; }
.paint-action-btn.p-danger:hover { background: #991b1b; }
.paint-canvas-area {
  flex: 1; overflow: auto; display: flex; align-items: flex-start;
  justify-content: center; background: #111118; padding: 28px;
}
.paint-canvas-wrap {
  position: relative; display: inline-block;
  box-shadow: 0 0 0 1px #555, 0 10px 40px rgba(0,0,0,0.6);
}
.paint-canvas-wrap canvas {
  display: block; cursor: crosshair; touch-action: none;
}
.rh {
  position: absolute; width: 12px; height: 12px;
  background: #fff; border: 2px solid var(--accent);
  border-radius: 2px; z-index: 10;
  box-shadow: 0 0 4px rgba(124,58,237,0.5);
}
#rh-nw { top: -6px; left: -6px; cursor: nw-resize; }
#rh-ne { top: -6px; right: -6px; cursor: ne-resize; }
#rh-sw { bottom: -6px; left: -6px; cursor: sw-resize; }
#rh-se { bottom: -6px; right: -6px; cursor: se-resize; }
.paint-statusbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 3px 12px; background: #23232f; border-top: 1px solid #333;
  font-size: 0.7rem; color: #666; flex-shrink: 0;
}
.paint-canvas-dims { font-size: 0.68rem; color: #555; }

/* ── Web Radio Section ────────────────────────────────── */
.web-radio-section { margin-bottom: 2rem; }

.dice-radio-featured {
  display: flex; align-items: center; gap: 1rem;
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  border: 1px solid rgba(29,78,216,0.4);
  border-radius: 14px; padding: 1rem 1.25rem;
  cursor: pointer; position: relative; overflow: hidden;
  margin-bottom: 1rem; transition: transform 0.15s, box-shadow 0.15s;
}
.dice-radio-featured:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(29,78,216,0.4); }
.dice-radio-glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(99,130,255,0.25), transparent 70%);
  pointer-events: none;
}
.dice-radio-inner { display: flex; align-items: center; gap: 1rem; width: 100%; position: relative; }
.dice-radio-emoji { font-size: 2rem; flex-shrink: 0; }
.dice-radio-info { flex: 1; }
.dice-radio-name { font-weight: 700; font-size: 1rem; color: #fff; }
.dice-radio-desc { font-size: 0.78rem; color: rgba(255,255,255,0.65); margin-top: 2px; }
.dice-radio-play-btn {
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.25);
  color: #fff; border-radius: 8px; padding: 0.4rem 1rem;
  font-size: 0.85rem; cursor: pointer; font-weight: 600;
  transition: background 0.15s; white-space: nowrap;
}
.dice-radio-play-btn:hover { background: rgba(255,255,255,0.28); }

.genre-tab-bar { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.genre-tab {
  background: var(--card); border: 1px solid var(--border);
  color: var(--text2); border-radius: 20px;
  padding: 0.35rem 0.9rem; font-size: 0.8rem;
  cursor: pointer; transition: all 0.15s; font-weight: 500;
}
.genre-tab:hover { border-color: var(--accent); color: var(--accent); }
.genre-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.web-radio-grid { display: flex; flex-direction: column; gap: 0.4rem; }
.web-radio-card {
  display: flex; align-items: center; gap: 0.75rem;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; padding: 0.6rem 0.8rem;
  cursor: pointer; transition: border-color 0.15s, background 0.15s;
  border-left: 3px solid var(--sc, var(--accent));
}
.web-radio-card:hover { background: rgba(255,255,255,0.04); border-color: var(--sc, var(--accent)); }
.wrc-emoji { font-size: 1.3rem; flex-shrink: 0; }
.wrc-info { flex: 1; min-width: 0; }
.wrc-name { font-weight: 600; font-size: 0.88rem; color: var(--text1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wrc-desc { font-size: 0.74rem; color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wrc-play {
  background: var(--sc, var(--accent)); color: #fff;
  border: none; border-radius: 6px; padding: 0.3rem 0.6rem;
  font-size: 0.8rem; cursor: pointer; flex-shrink: 0;
  transition: opacity 0.15s;
}
.wrc-play:hover { opacity: 0.82; }

/* ── Hadra Festival artist pills ───────────────────────────────────── */
.hadra-artist-grid {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  padding: 0.25rem 0 0.5rem;
}
.hadra-artist-pill {
  background: rgba(99,60,180,0.18); color: var(--text1);
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: 20px; padding: 0.25rem 0.7rem;
  font-size: 0.78rem; white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
}
.hadra-artist-pill:hover { background: rgba(124,58,237,0.28); border-color: rgba(124,58,237,0.6); }

/* ── Shows page — festival card ────────────────────────────────────── */
.shows-festival-card {
  display: flex; flex-direction: column;
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border);
  text-decoration: none; color: inherit;
  transition: transform 0.18s, border-color 0.18s;
}
.shows-festival-card:hover { transform: translateY(-2px); border-color: rgba(124,58,237,0.5); }
.shows-festival-banner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem;
}
.shows-festival-emoji { font-size: 2.8rem; }
.shows-festival-dates { font-size: 1rem; font-weight: 700; color: rgba(255,255,255,0.9); }
.shows-festival-body { padding: 1.1rem 1.4rem 1.3rem; background: var(--card); }
.shows-festival-name { font-size: 1.1rem; font-weight: 700; color: var(--text1); margin-bottom: 0.2rem; }
.shows-festival-loc  { font-size: 0.82rem; color: var(--text2); margin-bottom: 0.2rem; }
.shows-festival-theme { font-size: 0.8rem; color: var(--accent); font-style: italic; margin-bottom: 0.65rem; }
.shows-festival-tags {
  display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.8rem;
}
.shows-festival-tag {
  background: rgba(124,58,237,0.14); color: var(--text2);
  border: 1px solid rgba(124,58,237,0.25);
  border-radius: 20px; padding: 0.18rem 0.55rem; font-size: 0.74rem;
}
.shows-festival-cta { font-size: 0.82rem; color: var(--accent); font-weight: 600; }

/* ── All Over The World page (global psytrance/psybient directory) ── */
.world-page { min-height: calc(100vh - var(--nav-h) - var(--player-h)); }
.world-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.25rem;
}
.world-card .shows-festival-banner { padding: 1.1rem 1.3rem; }
.world-card .shows-festival-emoji { font-size: 2.4rem; }
.world-card .shows-festival-theme { line-height: 1.5; }
.world-links { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.2rem; }
.world-link {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.75rem; font-weight: 600; text-decoration: none;
  color: var(--text2); background: rgba(255,255,255,0.05);
  border: 1px solid var(--border); border-radius: 99px;
  padding: 0.28rem 0.65rem; cursor: pointer;
  transition: background 0.16s, color 0.16s, border-color 0.16s, transform 0.12s;
}
.world-link:hover { color: var(--text1); background: rgba(124,58,237,0.16); border-color: rgba(124,58,237,0.45); transform: translateY(-1px); }
.world-link svg { width: 13px; height: 13px; }
.world-link--play {
  color: #fff; background: var(--accent); border-color: var(--accent);
}
.world-link--play:hover { background: var(--accent2, #f472b6); border-color: var(--accent2, #f472b6); color: #fff; }
.world-events { display: flex; flex-direction: column; gap: 0.35rem; margin-top: 0.2rem; }
.world-events-title {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--text2); margin-bottom: 0.05rem;
}
.world-events-title svg { width: 13px; height: 13px; color: var(--accent); }
.world-event {
  display: flex; align-items: center; gap: 0.5rem; text-decoration: none;
  color: var(--text2); background: rgba(255,255,255,0.04);
  border: 1px solid var(--border); border-radius: 10px; padding: 0.4rem 0.6rem;
  transition: background 0.16s, color 0.16s, border-color 0.16s, transform 0.12s;
}
.world-event:hover { color: var(--text1); background: rgba(124,58,237,0.16); border-color: rgba(124,58,237,0.45); transform: translateY(-1px); }
.world-event-date {
  flex-shrink: 0; font-size: 0.68rem; font-weight: 700; color: var(--accent);
  font-family: 'Space Grotesk', sans-serif;
}
.world-event-name { flex: 1; font-size: 0.74rem; line-height: 1.3; }
.world-event svg { width: 12px; height: 12px; flex-shrink: 0; }
.world-hero-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-bottom: 1rem;
}
.world-stat {
  font-size: 0.78rem; color: var(--text2);
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-radius: 12px; padding: 0.5rem 0.7rem;
}
.world-stat span {
  display: block; font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem; font-weight: 800; color: var(--text1); line-height: 1.1;
}
.world-outro {
  display: flex; align-items: center; gap: 1rem;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 1.25rem 1.5rem;
}
.world-outro-icon { font-size: 1.6rem; color: var(--accent); flex-shrink: 0; }
.world-outro p { color: var(--text2); line-height: 1.6; margin: 0; }
.world-outro a { color: var(--accent); }
@media (max-width: 560px) {
  .world-grid { grid-template-columns: 1fr; }
}

/* ── Social links (now live in the dock's links popover; footer floater retired) ── */
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.80);
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s;
  text-decoration: none;
  flex-shrink: 0;
}
.social-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}
.social-link[title="Facebook"] { color: #5b9cf6; border-color: rgba(91,156,246,0.3); }
.social-link[title="Facebook"]:hover { background: #1877f2; color: #fff; border-color: #1877f2; }
.social-link[title="X"] { color: rgba(255,255,255,0.85); }
.social-link[title="X"]:hover { background: #000; color: #fff; border-color: #555; }
.social-link[title="SoundCloud"] { color: #ff7700; border-color: rgba(255,119,0,0.3); }
.social-link[title="SoundCloud"]:hover { background: #ff5500; color: #fff; border-color: #ff5500; }
.social-link[title="YouTube"] { color: #ff4444; border-color: rgba(255,68,68,0.3); }
.social-link[title="YouTube"]:hover { background: #ff0000; color: #fff; border-color: #ff0000; }
.social-icon { width: 16px; height: 16px; display: block; }
.social-link-img { background: none; border: none; padding: 2px; width: auto; min-width: 40px; }
.social-link-img:hover { background: rgba(255,255,255,0.08); }
.social-logo-img { height: 28px; width: auto; max-width: 90px; object-fit: contain; display: block; filter: brightness(0.9); transition: filter 0.2s; }
.social-link-img:hover .social-logo-img { filter: brightness(1.15); }
.social-logo-img--round { height: 32px; width: 32px; border-radius: 50%; object-fit: cover; }
#app { padding-bottom: calc(var(--player-h) + 52px); }

/* ── Stellar Hero For-line ─────────────────────────────────────── */
.stellar-hero-for {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.5rem 0 1.1rem;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.6);
}
.stellar-hero-for span:not(.stellar-hero-for-dot) {
  color: rgba(255,255,255,0.85);
}
.stellar-hero-for-dot {
  color: rgba(255,255,255,0.25);
}

/* ── Site footer ─────────────────────────────────────────── */
.site-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.site-footer-inner {
  max-width: 960px; margin: 0 auto;
  padding: 2rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.site-footer-logo { font-size: 1rem; font-weight: 700; opacity: 0.7; }
.site-footer-contact { display: flex; flex-direction: column; align-items: center; gap: 0.2rem; }
.site-footer-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text3); }
.site-footer-email { font-size: 0.9rem; color: var(--accent); text-decoration: none; font-weight: 500; }
.site-footer-email:hover { text-decoration: underline; }
.site-footer-copy { font-size: 0.75rem; color: var(--text3); }

/* ── Draggable / collapsible footer (FooterWidget) ──────────── */
.site-footer { position: relative; }
.footer-drag-handle {
  position: absolute; top: 5px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 16px; color: var(--text3);
  cursor: grab; opacity: 0.45; transition: opacity 0.2s; touch-action: none;
}
.footer-drag-handle:hover { opacity: 1; }
.footer-drag-handle:active { cursor: grabbing; }
.footer-drag-handle svg { width: 18px; height: 18px; transform: rotate(90deg); }
.footer-min-btn {
  position: absolute; top: 8px; right: 10px;
  display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 7px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--border);
  color: var(--text2); cursor: pointer; transition: background 0.2s, color 0.2s;
}
.footer-min-btn:hover { background: rgba(255,255,255,0.12); color: var(--text); }
.footer-min-btn svg { width: 15px; height: 15px; }
.site-footer.footer-floating {
  position: fixed; z-index: 1200; margin: 0;
  width: min(560px, calc(100vw - 2rem));
  border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.55);
}
.footer-restore-btn {
  position: fixed; right: 18px; bottom: calc(var(--player-h) + 16px);
  z-index: 1200; display: none; align-items: center; gap: 0.35rem;
  padding: 0.5rem 0.9rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); cursor: pointer; font-size: 0.78rem; font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,0.45);
}
.footer-restore-btn:hover { background: rgba(255,255,255,0.08); }
.footer-restore-btn svg { width: 15px; height: 15px; }

/* ══════════════════════════════════════════════════════════
   HOME RADIO WIDGET
══════════════════════════════════════════════════════════ */
.home-radio-section {
  margin: 0 0 1.5rem;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(124,58,237,0.25);
  background: linear-gradient(135deg, rgba(124,58,237,0.08) 0%, rgba(14,12,32,0.6) 100%);
  backdrop-filter: blur(12px);
}

/* Now-playing bar */
.hr-nowplaying {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: rgba(124,58,237,0.12);
  border-bottom: 1px solid rgba(124,58,237,0.18);
}
.hr-np-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}
.hr-live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--text3);
  flex-shrink: 0;
  transition: background 0.3s;
}
.hr-live-dot.hr-dot-live {
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
  animation: hr-pulse 2s ease-in-out infinite;
}
@keyframes hr-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.45; }
}
.hr-np-status {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text3);
  flex-shrink: 0;
}
.hr-np-emoji {
  font-size: 1.6rem;
  flex-shrink: 0;
}
.hr-np-info {
  min-width: 0;
}
.hr-np-name {
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hr-np-desc {
  font-size: 0.74rem;
  color: var(--text3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hr-np-play {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 2px solid rgba(124,58,237,0.5);
  background: rgba(124,58,237,0.18);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.18s, border-color 0.18s, transform 0.12s;
  display: flex; align-items: center; justify-content: center;
}
.hr-np-play:hover {
  background: rgba(124,58,237,0.42);
  border-color: rgba(124,58,237,0.8);
  transform: scale(1.08);
}

/* Genre tab strip */
.hr-tab-strip {
  display: flex;
  gap: 0;
  overflow-x: auto;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid rgba(124,58,237,0.12);
  scrollbar-width: none;
}
.hr-tab-strip::-webkit-scrollbar { display: none; }
.hr-tab {
  flex-shrink: 0;
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text2);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.hr-tab:hover {
  background: rgba(124,58,237,0.12);
  color: var(--text1);
}
.hr-tab.hr-tab-active {
  background: rgba(124,58,237,0.22);
  border-color: rgba(124,58,237,0.45);
  color: #fff;
  font-weight: 700;
}

/* Channel grid */
.hr-channel-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.hr-yt-embed {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
  border-radius: 12px;
  margin-top: 0.75rem;
}
.hr-radio-embed {
  width: 100%;
  height: 520px;
  border: none;
  border-radius: 12px;
  margin-top: 0.75rem;
}
.hr-channel-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1.1rem;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.15s;
}
.hr-channel-card:last-child { border-bottom: none; }
.hr-channel-card:hover {
  background: rgba(124,58,237,0.1);
}
.hr-channel-card.hr-card-active {
  background: rgba(124,58,237,0.16);
  border-left: 3px solid var(--hc, #7c3aed);
}
.hr-channel-emoji {
  font-size: 1.4rem;
  flex-shrink: 0;
}
.hr-channel-info {
  flex: 1;
  min-width: 0;
}
.hr-channel-name {
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hr-channel-desc {
  font-size: 0.73rem;
  color: var(--text3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hr-channel-play {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 0.75rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s;
  display: flex; align-items: center; justify-content: center;
}
.hr-channel-play:hover {
  background: rgba(124,58,237,0.3);
  border-color: rgba(124,58,237,0.6);
}

/* ── Min side dashboard ── */
.ms-stat-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  text-align: center;
  min-width: 90px;
}
.ms-stat-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.ms-stat-label {
  font-size: 0.75rem;
  color: var(--text2);
  margin-top: 0.25rem;
}
.ms-list { display: flex; flex-direction: column; gap: 0.5rem; }
.ms-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  transition: background 0.15s;
}
.ms-item:hover { background: rgba(255,255,255,0.06); }
.ms-item-icon { font-size: 1.1rem; flex-shrink: 0; }
.ms-item-label { flex: 1; font-size: 0.88rem; color: var(--text); }
.ms-empty { font-size: 0.85rem; color: var(--text2); padding: 0.5rem 0; }
.ms-empty a { color: var(--accent); }

/* ── Stopp-knapp radio ── */
.hr-stop-btn {
  min-width: 100px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.hr-stop-active {
  background: #ef4444 !important;
  border-color: #ef4444 !important;
  color: #fff !important;
}
.hr-stop-active:hover {
  background: #dc2626 !important;
}

/* ════════════════════════════════════════════════════════════════════════
   Flytende widgets & overlapp-polish (layout-fix)
   Lagt til på slutten med vilje: overstyrer via kilderekkefølge så vi slipper
   å redigere spredte regler over. Rører IKKE farger/fonter/ikoner/bakgrunn.

   Stable-rekkefølge (z-index): bakgrunn 0 · innhold 10 · nav 200 · footer 395
   · spiller 400 · flytende chat 460 · modal 500 · embed 600 · toast 999.
   ════════════════════════════════════════════════════════════════════════ */

/* 1 ── Flytende chat foran spiller/nav (var z-index:150 → havnet BAK spilleren) */
.chat-float-window { z-index: var(--z-ai); }

/* Mobil: ikke tving 420px bredde på små skjermer (lot vinduet renne utenfor) */
@media (max-width: 480px) {
  .chat-float-window { min-width: 0; min-height: 0; max-width: 100vw; }
}

/* 2 ── Touch-drag: hindre at drag/resize trigger scroll/zoom på mobil */
.chat-float-drag-bar,
.chat-float-window .cfr,
.player-bar-header,
#footer-drag-handle { touch-action: none; }

/* 3 ── Spiller: tydelig «spiller nå»-indikasjon (synlig også minimert) */
.player-artwork { position: relative; }
.player-bar.playing .player-artwork {
  box-shadow: 0 0 0 1.5px rgba(34,197,94,0.55), 0 0 14px rgba(34,197,94,0.30);
}
/* Klassisk equalizer-overlay (injiseres av player.js), kun synlig ved avspilling */
.np-eq {
  display: none;
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 16px;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  padding: 0 0 2px;
  background: linear-gradient(to top, rgba(0,0,0,0.55), transparent);
  pointer-events: none;
}
.player-bar.playing .np-eq { display: flex; }
.np-eq span {
  width: 3px;
  height: 4px;
  border-radius: 2px;
  background: #34d399;
  animation: pv-eq 0.9s ease-in-out infinite;
}
.np-eq span:nth-child(2) { animation-delay: 0.18s; }
.np-eq span:nth-child(3) { animation-delay: 0.36s; }
.np-eq span:nth-child(4) { animation-delay: 0.54s; }
@keyframes pv-eq {
  0%, 100% { height: 4px; }
  50%      { height: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .np-eq span { animation: none; height: 9px; }
}

/* Minimert: behold tittel + kilde + equalizer så man alltid ser HVA og FRA HVOR */
.player-bar.minimized .player-artist { display: block; }
.player-bar.minimized .np-eq { height: 12px; }

/* 4 ── Footer: gjør «dra opp/ned»-håndtaket synlig og åpenbart gripbart */
#footer-drag-handle {
  opacity: 0.9;
  cursor: grab;
  border-radius: 6px;
  transition: opacity 0.15s, color 0.15s, background 0.15s;
}
#footer-drag-handle:hover { opacity: 1; color: var(--text2); background: rgba(255,255,255,0.06); }
#footer-drag-handle:active { cursor: grabbing; }

/* ═══════════════════════════════════════════════
   AI ASSISTANT — floating, draggable chat widget ("Core")
   ═══════════════════════════════════════════════ */
/* ── BugHelp — vennleg feilvarsel nede til venstre ──────────────────── */
.bug-toast {
  position: fixed;
  left: 16px;
  bottom: 96px;
  width: 320px;
  max-width: calc(100vw - 32px);
  z-index: var(--z-toast);
  background: rgba(12, 10, 24, 0.97);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.55), 0 0 0 1px rgba(239,68,68,0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 1rem 1.1rem 1.1rem;
  color: #e2e8f0;
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.bug-toast--in  { opacity: 1; transform: translateY(0) scale(1); }
.bug-toast--out { opacity: 0; transform: translateY(14px) scale(0.98); }
.bug-toast-x {
  position: absolute;
  top: 0.5rem;
  right: 0.6rem;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.15rem 0.35rem;
  border-radius: 6px;
}
.bug-toast-x:hover { color: #fff; background: rgba(255,255,255,0.08); }
.bug-toast-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 1.5rem 0.4rem 0;
  font-size: 0.98rem;
  color: #fff;
}
.bug-toast-ico { font-size: 1.1rem; }
.bug-toast-msg {
  margin: 0 0 0.85rem;
  color: #b8c0d0;
  line-height: 1.45;
  font-size: 0.85rem;
}
.bug-toast-actions { display: flex; gap: 0.5rem; }
.bug-toast-btn {
  flex: 1;
  padding: 0.55rem 0.6rem;
  border-radius: 9px;
  border: 1px solid var(--border2);
  background: rgba(255,255,255,0.05);
  color: #e2e8f0;
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}
.bug-toast-btn:hover { background: rgba(255,255,255,0.12); }
.bug-toast-btn:active { transform: translateY(1px); }
.bug-toast-btn:disabled { opacity: 0.7; cursor: default; }
.bug-toast-btn--ai {
  background: linear-gradient(135deg, #7c3aed, #2563eb);
  border-color: transparent;
  color: #fff;
}
.bug-toast-btn--ai:hover { filter: brightness(1.08); background: linear-gradient(135deg, #7c3aed, #2563eb); }
.bug-toast-btn--done {
  background: rgba(34,197,94,0.18) !important;
  border-color: rgba(34,197,94,0.45);
  color: #86efac;
}
@media (max-width: 480px) {
  .bug-toast { left: 12px; right: 12px; width: auto; bottom: 88px; }
}

.ai-asst {
  position: fixed;
  width: 360px;
  height: 480px;
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 90px);
  z-index: var(--z-ai);
  display: flex;
  flex-direction: column;
  background: rgba(12, 10, 24, 0.96);
  border: 1px solid var(--border2);
  border-radius: 18px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(124,58,237,0.15);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  overflow: hidden;
}
.ai-asst.hidden { display: none !important; }

.ai-asst-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  background: var(--accentG);
  cursor: grab;
  user-select: none;
}
.ai-asst-header:active { cursor: grabbing; }
.ai-asst-title {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; color: #fff; font-size: 0.95rem;
}
.ai-asst-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
}
.ai-asst-avatar .icon { width: 16px; height: 16px; }
.ai-asst-hdr-right { display: flex; align-items: center; gap: 0.35rem; }
.ai-asst-lang {
  max-width: 110px;
  background: rgba(0,0,0,0.25);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 8px;
  font-size: 0.72rem;
  padding: 3px 5px;
  cursor: pointer;
  outline: none;
}
.ai-asst-lang option { color: #111; }
.ai-asst-hbtn {
  width: 26px; height: 26px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; background: rgba(255,255,255,0.12);
  transition: background 0.15s;
}
.ai-asst-hbtn:hover { background: rgba(255,255,255,0.28); }
.ai-asst-hbtn .icon { width: 15px; height: 15px; }

.ai-asst-body { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.ai-asst-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.ai-asst-msg {
  max-width: 85%;
  padding: 0.55rem 0.75rem;
  border-radius: 14px;
  font-size: 0.85rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}
.ai-asst-msg-user {
  align-self: flex-end;
  background: var(--accentG);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.ai-asst-msg-assistant {
  align-self: flex-start;
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}
.ai-asst-typing { display: flex; gap: 4px; align-items: center; }
.ai-asst-typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--text2);
  animation: aiTyping 1s infinite ease-in-out;
}
.ai-asst-typing span:nth-child(2) { animation-delay: 0.15s; }
.ai-asst-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes aiTyping {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30%           { opacity: 1;   transform: translateY(-3px); }
}

.ai-asst-input-row {
  display: flex; gap: 0.5rem;
  padding: 0.65rem;
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,0.2);
}
.ai-asst-input {
  flex: 1;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 10px;
  color: var(--text);
  padding: 0.55rem 0.75rem;
  font-size: 0.85rem;
  outline: none;
}
.ai-asst-input:focus { border-color: var(--accent); }
.ai-asst-send {
  width: 40px; flex-shrink: 0;
  border-radius: 10px;
  background: var(--accentG);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.15s, box-shadow 0.15s;
}
.ai-asst-send:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(124,58,237,0.5); }
.ai-asst-send .icon { width: 18px; height: 18px; }

@media (max-width: 480px) {
  .ai-asst { width: calc(100vw - 24px); height: 70vh; }
}

/* ══════════════════════════════════════════════════════════════
   STEMME-LAG — mikrofon (snakk inn) + AI les opp + opptak
   Delt verktøylinje for Core (#ai-asst) og A1-chat (.a1-chat).
   Mikrofon/opptak: GRØN = på/aktiv, RAUD = av.
══════════════════════════════════════════════════════════════ */
.voice-tb {
  display: flex; align-items: center; gap: 0.35rem;
  padding: 0.4rem 0.6rem;
  border-top: 1px solid var(--border2);
  background: rgba(0,0,0,0.18);
  flex-wrap: wrap;
}
.voice-lang {
  max-width: 120px; flex: 0 1 auto;
  background: rgba(255,255,255,0.06); color: #fff;
  border: 1px solid var(--border2); border-radius: 8px;
  font-size: 0.7rem; padding: 3px 5px; cursor: pointer; outline: none;
}
.voice-lang option { color: #111; }
.voice-btn {
  width: 32px; height: 32px; flex: none; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.15s, color 0.15s, box-shadow 0.15s, border-color 0.15s;
  color: var(--text2);
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border2);
}
.voice-btn:hover { color: #fff; background: rgba(255,255,255,0.14); }
.voice-btn .icon { width: 17px; height: 17px; }
.voice-btn.hidden { display: none; }

/* Mikrofon: raud i ro, GRØN + pulserande medan den lyttar */
.voice-mic { color: #f87171; border-color: rgba(248,113,113,0.45); }
.voice-mic.is-listening {
  color: #fff; background: #16a34a; border-color: #16a34a;
  box-shadow: 0 0 0 0 rgba(34,197,94,0.6);
  animation: voicePulse 1.2s infinite;
}
/* Opptak: raud-tint i ro, GRØN + pulserande medan det tek opp */
.voice-rec { color: #f87171; border-color: rgba(248,113,113,0.45); }
.voice-rec.is-on {
  color: #fff; background: #16a34a; border-color: #16a34a;
  box-shadow: 0 0 0 0 rgba(34,197,94,0.6);
  animation: voicePulse 1.4s infinite;
}
/* Høgtalar: lyser opp når AI les opp svara */
.voice-spk.is-on { color: #fff; background: rgba(124,58,237,0.55); border-color: rgba(124,58,237,0.7); }
.voice-dl { color: #93c5fd; border-color: rgba(147,197,253,0.4); }
.voice-status {
  margin-left: auto; font-size: 0.68rem; color: var(--text2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 50%;
}
@keyframes voicePulse {
  0%   { box-shadow: 0 0 0 0 rgba(34,197,94,0.55); }
  70%  { box-shadow: 0 0 0 7px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}
/* Skjul verktøylinja når A1-chatten er minimert */
.a1-chat.is-collapsed .voice-tb { display: none; }

/* ═══ About SoundCore side tab + extra brand links ═══ */
.social-link[title="iTunes"]   { color:#ff5e9c; border-color: rgba(255,94,156,0.35); }
.social-link[title="iTunes"]:hover   { background: linear-gradient(135deg,#fa57c1,#b14dff,#5a6bff); color:#fff; border-color: transparent; }
.social-link[title="Spotify"]  { color:#1DB954; border-color: rgba(29,185,84,0.35); }
.social-link[title="Spotify"]:hover  { background:#1DB954; color:#fff; border-color:#1DB954; }
.social-link[title="Bandcamp"] { color:#629aa9; border-color: rgba(98,154,169,0.4); }
.social-link[title="Bandcamp"]:hover { background:#629aa9; color:#fff; border-color:#629aa9; }

/* Give the links popover room for the extra rows */
#dock-links-panel.open { max-height: 340px; overflow-y: auto; }

/* Pull-out tab anchored to the right edge */
#about-tab { font-family: 'Inter', sans-serif; }
#about-tab-handle {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: var(--z-dock);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 9px;
  background: rgba(15, 12, 30, 0.92);
  border: 1px solid var(--border2);
  border-right: none;
  border-radius: 14px 0 0 14px;
  color: var(--text);
  cursor: pointer;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: -4px 4px 22px rgba(0,0,0,0.45);
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
#about-tab-handle:hover {
  border-color: var(--accent);
  background: rgba(30, 20, 55, 0.95);
  transform: translateY(-50%) translateX(-3px);
  box-shadow: -6px 6px 28px rgba(124,58,237,0.45);
}
.about-tab-dots { display: flex; flex-direction: column; gap: 4px; }
.about-tab-dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); display: block; }
#about-tab-handle:hover .about-tab-dots i { background: #c4b5fd; }
.about-tab-label {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  white-space: nowrap;
  color: var(--text);
}

/* Slide-out panel */
.about-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  height: 100dvh;
  width: 340px;
  max-width: 88vw;
  background: rgba(10, 8, 22, 0.98);
  border-left: 1px solid var(--border2);
  box-shadow: -16px 0 60px rgba(0,0,0,0.6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: var(--z-panel);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.about-panel.open { transform: translateX(0); }
.about-panel-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border2);
  position: sticky;
  top: 0;
  background: rgba(10, 8, 22, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
.about-panel-hdr h2 {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  background: var(--accentG);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.about-panel-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border2);
  color: var(--text2);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.about-panel-close:hover { background: rgba(255,255,255,0.12); color: var(--text); border-color: var(--accent); }
.about-panel-body { padding: 20px; display: flex; flex-direction: column; gap: 22px; }
.about-block { display: flex; flex-direction: column; align-items: flex-start; }
.about-block h3 {
  margin: 0 0 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
}
.about-lead { margin: 0 0 10px; font-size: 0.95rem; line-height: 1.55; color: var(--text); }
.about-lead strong { color: #c4b5fd; }
.about-contact { margin: 0 0 14px; font-size: 0.85rem; color: var(--text2); }
.about-contact a { color: #a78bfa; text-decoration: none; }
.about-contact a:hover { text-decoration: underline; }
.about-quote { margin: 0 0 12px; font-size: 0.92rem; line-height: 1.55; color: var(--text2); font-style: italic; }
.about-cta {
  display: inline-block;
  padding: 9px 20px;
  border-radius: 30px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border2);
  color: var(--text);
  text-decoration: none;
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.about-cta:hover { border-color: var(--accent); background: rgba(124,58,237,0.18); color: #fff; transform: translateY(-1px); }
.about-cta--primary {
  background: var(--accentG);
  border-color: rgba(167,139,250,0.6);
  color: #fff;
  box-shadow: 0 6px 22px rgba(124,58,237,0.4);
}
.about-cta--primary:hover { box-shadow: 0 9px 28px rgba(124,58,237,0.6); color: #fff; }

@media (max-width: 600px) {
  .about-tab-label { font-size: 0.7rem; }
  #about-tab-handle { padding: 13px 7px; }
}

/* ════════════════════════════════════════════════════════════════════
   A1 — eiga fane (#/a1): drabar chat + universalsøk + vekevis galleri
   ════════════════════════════════════════════════════════════════════ */
.a1-nav-link { color: #c4b5fd !important; }
.a1-page { max-width: 1100px; margin: 0 auto; padding: 1.5rem 1.25rem 6rem; }

/* Hero */
.a1-hero { text-align: center; padding: 1.5rem 0 1.25rem; }
.a1-hero-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.3rem 0.9rem; border-radius: 999px;
  background: linear-gradient(135deg, rgba(124,58,237,0.25), rgba(37,99,235,0.25));
  border: 1px solid rgba(124,58,237,0.45); color: #c4b5fd;
  font-weight: 700; font-size: 0.8rem; letter-spacing: 0.5px;
}
.a1-hero h1 { margin: 0.75rem 0 0.4rem; font-size: clamp(1.6rem, 4vw, 2.4rem); }
.a1-hero p { margin: 0 auto; max-width: 620px; color: var(--text2); line-height: 1.6; }

/* Universal search */
.a1-search-box {
  margin: 0.5rem auto 2.25rem; max-width: 760px;
  background: rgba(12,10,24,0.65); border: 1px solid var(--border2);
  border-radius: 18px; padding: 1rem 1.1rem;
  box-shadow: 0 14px 44px rgba(0,0,0,0.4);
}
.a1-search-row { display: flex; align-items: center; gap: 0.6rem; }
.a1-search-ico { color: var(--text2); display: inline-flex; }
.a1-search-input {
  flex: 1; background: rgba(255,255,255,0.05); border: 1px solid var(--border2);
  border-radius: 12px; padding: 0.7rem 0.9rem; color: #fff; font-size: 0.95rem;
}
.a1-search-input:focus { outline: none; border-color: rgba(124,58,237,0.6); }
.a1-search-ask { white-space: nowrap; }
.a1-search-engines { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 0.85rem; }
.a1-search-engines-lbl { color: var(--text2); font-size: 0.8rem; }
.a1-engine-btn {
  display: inline-flex; align-items: center; gap: 0.25rem;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border2);
  color: #e2e8f0; border-radius: 999px; padding: 0.4rem 0.85rem;
  font-size: 0.82rem; font-weight: 600; cursor: pointer; transition: background 0.15s ease;
}
.a1-engine-btn:hover { background: rgba(124,58,237,0.25); }

/* Sections */
.a1-section { margin: 0 auto 2.5rem; }
.a1-section h2 { display: flex; align-items: center; gap: 0.5rem; font-size: 1.15rem; margin: 0 0 0.25rem; }
.a1-section-sub { color: var(--text2); font-size: 0.85rem; margin: 0 0 1rem; }

/* Link gallery */
.a1-link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0.9rem; }
.a1-link-card {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 0.55rem; padding: 1.25rem 1rem 1rem; text-decoration: none;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border2); border-radius: 16px;
  color: #e2e8f0; transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.a1-link-card:hover { transform: translateY(-3px); border-color: rgba(124,58,237,0.6); background: rgba(124,58,237,0.1); }
.a1-link-card--feat { grid-column: 1 / -1; flex-direction: row; justify-content: center; gap: 1rem; padding: 1.4rem; background: linear-gradient(135deg, rgba(124,58,237,0.18), rgba(37,99,235,0.12)); border-color: rgba(124,58,237,0.5); }
.a1-link-card--feat .a1-link-logo { width: 56px; height: 56px; }
.a1-feat-badge {
  position: absolute; top: 0.6rem; left: 0.6rem;
  display: inline-flex; align-items: center; gap: 0.25rem;
  background: linear-gradient(135deg, #f59e0b, #f472b6); color: #fff;
  font-size: 0.68rem; font-weight: 800; padding: 0.2rem 0.55rem; border-radius: 999px;
}
.a1-link-logo { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,0.08); object-fit: contain; }
.a1-link-name { font-weight: 700; font-size: 0.92rem; }
.a1-link-host { display: inline-flex; align-items: center; gap: 0.2rem; color: var(--text2); font-size: 0.75rem; }

/* Video rotator */
.a1-video-player { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--border2); background: #000; }
.a1-video-player .a1-feat-badge { z-index: 2; }
.a1-video-frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; }
.a1-video-cap { padding: 0.6rem 0.9rem; background: rgba(12,10,24,0.85); font-weight: 600; font-size: 0.88rem; }
.a1-video-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.65rem; margin-top: 0.85rem; }
.a1-video-thumb { position: relative; padding: 0; border: 1px solid var(--border2); border-radius: 12px; overflow: hidden; background: rgba(255,255,255,0.04); cursor: pointer; text-align: left; }
.a1-video-thumb img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.a1-video-thumb-fallback { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; color: var(--text2); }
.a1-video-thumb-title { display: block; padding: 0.4rem 0.55rem; font-size: 0.76rem; color: #e2e8f0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a1-video-empty { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; padding: 2.5rem 1rem; color: var(--text2); text-align: center; border: 1px dashed var(--border2); border-radius: 16px; }
.a1-video-add { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.a1-vid-input { flex: 1 1 240px; background: rgba(255,255,255,0.05); border: 1px solid var(--border2); border-radius: 10px; padding: 0.6rem 0.8rem; color: #fff; font-size: 0.85rem; }
.a1-vid-input:focus { outline: none; border-color: rgba(124,58,237,0.6); }
.a1-vid-title { flex: 1 1 160px; }
.a1-video-login { margin-top: 1rem; color: var(--text2); font-size: 0.88rem; }
.a1-video-login a { color: #c4b5fd; font-weight: 600; }

/* Draggable A1 chat */
.a1-chat {
  position: fixed; width: 340px; height: 440px;
  max-width: calc(100vw - 24px); max-height: calc(100vh - 100px);
  z-index: var(--z-ai); display: flex; flex-direction: column;
  background: rgba(12,10,24,0.96); border: 1px solid rgba(124,58,237,0.35); border-radius: 18px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(124,58,237,0.15);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); overflow: hidden;
}
.a1-chat-head {
  display: flex; align-items: center; gap: 0.5rem; padding: 0.7rem 0.85rem;
  cursor: grab; user-select: none; background: rgba(124,58,237,0.16); border-bottom: 1px solid var(--border2);
}
.a1-chat-head:active { cursor: grabbing; }
.a1-chat-grip { color: var(--text2); display: inline-flex; }
.a1-chat-title { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 700; font-size: 0.92rem; }
.a1-chat-hint { margin-left: auto; color: var(--text2); font-size: 0.68rem; opacity: 0.8; }
.a1-chat-min {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 26px; height: 26px; padding: 0; margin-left: 0.4rem;
  background: rgba(255,255,255,0.06); border: 1px solid var(--border2);
  border-radius: 8px; color: var(--text2); cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.a1-chat-min:hover { background: rgba(124,58,237,0.28); color: #fff; }
.a1-chat-min .icon { width: 16px; height: 16px; }
.a1-chat.is-collapsed { height: auto; }
.a1-chat.is-collapsed .a1-chat-head { border-bottom: none; }
.a1-chat.is-collapsed .a1-chat-msgs,
.a1-chat.is-collapsed .a1-chat-form { display: none; }
.a1-chat-msgs { flex: 1; overflow-y: auto; padding: 0.85rem; display: flex; flex-direction: column; gap: 0.5rem; }
.a1-chat-msg { max-width: 85%; padding: 0.55rem 0.75rem; border-radius: 13px; font-size: 0.86rem; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
.a1-chat-msg-user { align-self: flex-end; background: linear-gradient(135deg, #7c3aed, #2563eb); color: #fff; border-bottom-right-radius: 4px; }
.a1-chat-msg-assistant { align-self: flex-start; background: rgba(255,255,255,0.06); color: #e2e8f0; border-bottom-left-radius: 4px; }
.a1-chat-typing { display: inline-flex; gap: 4px; }
.a1-chat-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--text2); animation: a1blink 1.2s infinite ease-in-out; }
.a1-chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.a1-chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes a1blink { 0%,80%,100% { opacity: 0.25; } 40% { opacity: 1; } }
.a1-chat-form { display: flex; gap: 0.4rem; padding: 0.6rem; border-top: 1px solid var(--border2); }
.a1-chat-input { flex: 1; background: rgba(255,255,255,0.05); border: 1px solid var(--border2); border-radius: 10px; padding: 0.55rem 0.7rem; color: #fff; font-size: 0.85rem; }
.a1-chat-input:focus { outline: none; border-color: rgba(124,58,237,0.6); }
.a1-chat-send { background: linear-gradient(135deg, #7c3aed, #2563eb); border: none; color: #fff; border-radius: 10px; padding: 0 0.8rem; cursor: pointer; display: inline-flex; align-items: center; }

@media (max-width: 600px) {
  .a1-search-row { flex-wrap: wrap; }
  .a1-search-ask { width: 100%; }
  .a1-link-card--feat { flex-direction: column; }
  .a1-chat { width: calc(100vw - 24px); height: 60vh; }
}

/* ══════════════════════════════════════════════════════════════
   SOSIALT LAG — vennechat-dock, varslingssenter, community-vegg
══════════════════════════════════════════════════════════════ */

/* ── Vennechat-dock (flytande, nede til høgre) ── */
.fc-dock {
  position: fixed; right: 16px; bottom: 16px; width: 300px;
  max-height: 64vh; display: flex; flex-direction: column;
  background: var(--bg2); border: 1px solid var(--border2);
  border-radius: 12px; overflow: hidden; z-index: var(--z-dock);
  box-shadow: 0 16px 48px rgba(0,0,0,0.6), 0 0 0 1px rgba(124,58,237,0.14);
}
.fc-dock.minimized { max-height: none; }
.fc-dock.minimized .fc-body { display: none; }

.fc-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.5rem; padding: 0.45rem 0.6rem; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(124,58,237,0.22), rgba(37,99,235,0.18));
  border-bottom: 1px solid var(--border);
}
.fc-bar-left { display: flex; align-items: center; gap: 0.4rem; min-width: 0; }
.fc-bar-right { display: flex; align-items: center; gap: 0.15rem; flex-shrink: 0; }
.fc-bar-title { font-weight: 600; font-size: 0.86rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc-bar-title .icon { width: 16px; height: 16px; vertical-align: -3px; }
.fc-bar-btn, .fc-bar-back {
  background: none; border: none; color: var(--text2); cursor: pointer;
  width: 26px; height: 26px; border-radius: 6px; font-size: 0.95rem;
  display: inline-flex; align-items: center; justify-content: center;
}
.fc-bar-btn:hover, .fc-bar-back:hover { background: rgba(255,255,255,0.08); color: var(--text); }
.fc-bar-btn .icon, .fc-bar-back .icon { width: 16px; height: 16px; }

.fc-badge {
  display: inline-flex; align-items: center; justify-content: center;
  background: #ef4444; color: #fff; font-size: 0.6rem; font-weight: 700;
  min-width: 16px; height: 16px; border-radius: 9999px; padding: 0 4px; margin-left: auto;
}

.fc-body { overflow-y: auto; display: flex; flex-direction: column; min-height: 0; }

.fc-friend {
  display: flex; align-items: center; gap: 0.55rem; width: 100%;
  padding: 0.5rem 0.65rem; background: none; border: none; cursor: pointer;
  color: var(--text); text-align: left; border-bottom: 1px solid rgba(255,255,255,0.04);
}
.fc-friend:hover { background: rgba(255,255,255,0.04); }
.fc-friend-av {
  position: relative; width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700;
  font-size: 0.82rem; color: #fff; background: linear-gradient(135deg,#7c3aed,#2563eb);
}
.fc-group-av .icon { width: 17px; height: 17px; }
.fc-dot {
  position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--text3); border: 2px solid var(--bg2);
}
.fc-dot.on { background: #22c55e; }
.fc-friend-name { font-size: 0.85rem; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc-friend-sub { display: block; font-size: 0.68rem; color: var(--text3); }
.fc-group-row { background: rgba(124,58,237,0.08); }
.fc-list-divider { padding: 0.4rem 0.65rem 0.2rem; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text3); }
.fc-empty { padding: 1.2rem 0.65rem; text-align: center; color: var(--text3); font-size: 0.82rem; }

.fc-messages { flex: 1; overflow-y: auto; padding: 0.6rem; display: flex; flex-direction: column; gap: 0.35rem; min-height: 180px; }
.fc-msg {
  max-width: 85%; align-self: flex-start; background: rgba(255,255,255,0.05);
  border-radius: 10px; padding: 0.35rem 0.55rem; font-size: 0.84rem; line-height: 1.35; word-break: break-word;
}
.fc-msg.mine { align-self: flex-end; background: linear-gradient(135deg, rgba(124,58,237,0.5), rgba(37,99,235,0.45)); }
.fc-msg-from { display: block; font-size: 0.68rem; font-weight: 700; color: var(--accent); text-decoration: none; }
.fc-msg-text { color: var(--text); }
.fc-msg-time { display: block; font-size: 0.6rem; color: var(--text3); margin-top: 1px; text-align: right; }
.fc-input-row { display: flex; gap: 0.35rem; padding: 0.5rem; border-top: 1px solid var(--border); flex-shrink: 0; }
.fc-input { flex: 1; background: rgba(255,255,255,0.05); border: 1px solid var(--border); border-radius: 8px; padding: 0.45rem 0.6rem; color: var(--text); font-size: 0.84rem; }
.fc-input:focus { outline: none; border-color: var(--accent); }
.fc-send { background: var(--accent); border: none; color: #fff; border-radius: 8px; width: 36px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.fc-send:hover { filter: brightness(1.1); }
.fc-send .icon { width: 17px; height: 17px; }

/* ── Varslings-bjelle + dropdown ── */
.nav-bell-badge {
  position: absolute; top: 2px; right: 2px; background: #ef4444; color: #fff;
  font-size: 0.58rem; font-weight: 700; min-width: 15px; height: 15px;
  border-radius: 9999px; padding: 0 3px; display: inline-flex; align-items: center; justify-content: center;
}
.sc-notif-panel {
  position: fixed; top: 64px; right: 16px; width: 340px; max-width: calc(100vw - 24px);
  max-height: 70vh; display: flex; flex-direction: column; overflow: hidden;
  background: var(--bg2); border: 1px solid var(--border2); border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.6); z-index: var(--z-ai);
}
.sc-notif-head { display: flex; align-items: center; justify-content: space-between; padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--border); font-weight: 600; color: var(--text); }
.sc-notif-head .icon { width: 17px; height: 17px; vertical-align: -3px; }
.sc-notif-close { background: none; border: none; color: var(--text2); cursor: pointer; }
.sc-notif-list { overflow-y: auto; }
.sc-notif-item { display: flex; gap: 0.6rem; padding: 0.65rem 0.8rem; border-bottom: 1px solid rgba(255,255,255,0.04); text-decoration: none; color: var(--text); }
.sc-notif-item:hover { background: rgba(255,255,255,0.04); }
.sc-notif-ic { width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; background: rgba(124,58,237,0.18); display: inline-flex; align-items: center; justify-content: center; color: var(--accent); }
.sc-notif-ic .icon { width: 16px; height: 16px; }
.sc-notif-body { min-width: 0; }
.sc-notif-text { display: block; font-size: 0.84rem; line-height: 1.35; }
.sc-notif-time { display: block; font-size: 0.68rem; color: var(--text3); margin-top: 1px; }
.sc-notif-empty { padding: 1.6rem 0.8rem; text-align: center; color: var(--text3); font-size: 0.84rem; }

/* ── Community-vegg / Innlegg ── */
.community-wrap { max-width: 680px; margin: 0 auto; padding: 1.5rem 1rem 5rem; }
.community-head h1 { margin: 0 0 0.2rem; font-size: 1.5rem; }
.community-head h1 .icon { width: 24px; height: 24px; vertical-align: -4px; }
.community-head p { margin: 0 0 1.1rem; color: var(--text2); font-size: 0.9rem; }
.community-login { padding: 1.2rem; text-align: center; color: var(--text2); background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.community-login a { color: var(--accent); }
.community-composer { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 0.8rem; margin-bottom: 1.1rem; }
.community-input { width: 100%; min-height: 64px; resize: vertical; background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 8px; padding: 0.55rem 0.7rem; color: var(--text); font-size: 0.9rem; font-family: inherit; }
.community-input:focus { outline: none; border-color: var(--accent); }
.community-composer-row { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin-top: 0.55rem; flex-wrap: wrap; }
.community-vis { font-size: 0.8rem; color: var(--text2); display: inline-flex; align-items: center; gap: 0.35rem; }
.community-vis .icon { width: 15px; height: 15px; }
.community-vis select { background: var(--bg2); color: var(--text); border: 1px solid var(--border); border-radius: 6px; padding: 0.25rem 0.4rem; font-size: 0.8rem; }
.community-feed { display: flex; flex-direction: column; gap: 0.6rem; }
.community-post { display: flex; gap: 0.65rem; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 0.8rem; }
.community-post-av { width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; text-decoration: none; background: linear-gradient(135deg,#7c3aed,#2563eb); }
.community-post-body { min-width: 0; flex: 1; }
.community-post-head { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.community-post-name { font-weight: 600; color: var(--text); text-decoration: none; }
.community-post-name:hover { color: var(--accent); }
.community-post-time { font-size: 0.72rem; color: var(--text3); }
.community-aud { font-size: 0.66rem; color: var(--text2); background: rgba(255,255,255,0.06); border-radius: 9999px; padding: 0.05rem 0.45rem; }
.community-post-del { margin-left: auto; background: none; border: none; color: var(--text3); cursor: pointer; }
.community-post-del:hover { color: #ef4444; }
.community-post-del .icon { width: 15px; height: 15px; }
.community-post-text { margin-top: 0.25rem; color: var(--text); font-size: 0.92rem; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
.community-empty { padding: 2.5rem 1rem; text-align: center; color: var(--text3); }

/* ── Community 2.0: filter, auto-del, media, kommentarar, reaksjonar ─────── */
.community-autoshare { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.74rem; color: var(--text2); cursor: pointer; }
.community-autoshare input { accent-color: var(--accent); }

.community-filter { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.9rem; }
.community-filter-btn { background: var(--surface); border: 1px solid var(--border); color: var(--text2); border-radius: 9999px; padding: 0.28rem 0.8rem; font-size: 0.78rem; cursor: pointer; transition: all 0.15s; }
.community-filter-btn:hover { color: var(--text); }
.community-filter-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.community-media { margin-top: 0.55rem; border-radius: 10px; overflow: hidden; }
.community-media-title { font-size: 0.82rem; font-weight: 600; color: var(--text); margin-bottom: 0.35rem; display: flex; align-items: center; gap: 0.35rem; }
.community-media-title .icon { width: 15px; height: 15px; }
.community-audio audio { width: 100%; height: 38px; }
.community-media video { width: 100%; max-height: 360px; border-radius: 10px; background: #000; display: block; }
.community-yt { position: relative; padding-bottom: 56.25%; height: 0; }
.community-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 10px; }
.community-blend img { width: 100%; border-radius: 10px; display: block; }
a.community-link { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.5rem 0.7rem; background: rgba(255,255,255,0.05); border: 1px solid var(--border); color: var(--accent); text-decoration: none; font-size: 0.85rem; word-break: break-all; }
a.community-link .icon { width: 15px; height: 15px; }

/* Reaksjonar (👍/👎) */
.sc-react { display: flex; gap: 0.4rem; margin-top: 0.55rem; }
.sc-react-btn { display: inline-flex; align-items: center; gap: 0.3rem; background: var(--surface); border: 1px solid var(--border); color: var(--text2); border-radius: 9999px; padding: 0.18rem 0.6rem; font-size: 0.82rem; cursor: pointer; transition: all 0.15s; }
.sc-react-btn:hover { color: var(--text); border-color: var(--accent); }
.sc-react-btn.active { background: rgba(124,58,237,0.18); border-color: var(--accent); color: var(--text); }
.sc-react-btn.down.active { background: rgba(239,68,68,0.16); border-color: #ef4444; }
.sc-react-btn span { font-size: 0.74rem; color: var(--text3); }

/* Kommentarar */
.sc-cmt-block { margin-top: 0.6rem; border-top: 1px solid var(--border); padding-top: 0.55rem; }
.sc-cmt-bar { font-size: 0.74rem; color: var(--text3); display: flex; align-items: center; gap: 0.3rem; margin-bottom: 0.4rem; }
.sc-cmt-bar .icon { width: 14px; height: 14px; }
.sc-cmt-list { display: flex; flex-direction: column; gap: 0.5rem; }
.sc-cmt-row { display: flex; gap: 0.5rem; }
.sc-cmt-av { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.78rem; color: #fff; text-decoration: none; background: linear-gradient(135deg,#7c3aed,#2563eb); }
.sc-cmt-main { min-width: 0; flex: 1; background: rgba(255,255,255,0.04); border-radius: 10px; padding: 0.4rem 0.6rem; }
.sc-cmt-head { display: flex; align-items: center; gap: 0.45rem; flex-wrap: wrap; }
.sc-cmt-name { font-weight: 600; font-size: 0.82rem; color: var(--text); text-decoration: none; }
.sc-cmt-name:hover { color: var(--accent); }
.sc-cmt-time { font-size: 0.68rem; color: var(--text3); }
.sc-cmt-del { margin-left: auto; background: none; border: none; color: var(--text3); cursor: pointer; padding: 0; }
.sc-cmt-del:hover { color: #ef4444; }
.sc-cmt-del .icon { width: 13px; height: 13px; }
.sc-cmt-text { margin-top: 0.15rem; font-size: 0.86rem; color: var(--text); line-height: 1.4; word-break: break-word; white-space: pre-wrap; }
.sc-cmt-main .sc-react { margin-top: 0.35rem; }
.sc-cmt-main .sc-react-btn { padding: 0.08rem 0.45rem; font-size: 0.74rem; }
.sc-cmt-composer { display: flex; align-items: center; gap: 0.4rem; margin-top: 0.55rem; flex-wrap: wrap; }
.sc-cmt-input { flex: 1; min-width: 0; background: var(--surface); border: 1px solid var(--border); color: var(--text); border-radius: 9999px; padding: 0.4rem 0.8rem; font-size: 0.85rem; }
.sc-cmt-input:focus { outline: none; border-color: var(--accent); }
.sc-cmt-emoji-btn { background: none; border: none; font-size: 1.05rem; cursor: pointer; line-height: 1; }
.sc-cmt-login { font-size: 0.8rem; color: var(--text3); margin-top: 0.5rem; }
.sc-cmt-login a { color: var(--accent); }
.sc-emoji-bar { display: flex; flex-wrap: wrap; gap: 0.15rem; width: 100%; margin-top: 0.3rem; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 0.3rem; }
.sc-emoji-pill { background: none; border: none; font-size: 1.1rem; cursor: pointer; padding: 0.1rem 0.25rem; border-radius: 6px; line-height: 1; }
.sc-emoji-pill:hover { background: rgba(255,255,255,0.08); }

/* Venn-knapp overalt */
.sc-friend { display: inline-flex; gap: 0.25rem; }
.sc-friend-btn-mini { background: var(--surface); border: 1px solid var(--border); color: var(--text2); border-radius: 9999px; padding: 0.1rem 0.5rem; font-size: 0.7rem; cursor: pointer; display: inline-flex; align-items: center; gap: 0.2rem; }
.sc-friend-btn-mini:hover { color: var(--text); border-color: var(--accent); }
.sc-friend-btn-mini.sc-friend-add { background: var(--accent); border-color: var(--accent); color: #fff; }
.sc-friend-btn-mini .icon { width: 12px; height: 12px; }
.disc-people-friend { margin-top: 0.5rem; }

@media (max-width: 520px) {
  .fc-dock { right: 8px; left: 8px; bottom: 8px; width: auto; }
  .sc-notif-panel { right: 8px; left: 8px; width: auto; }
}

/* ── Friends-side (/friends) ─────────────────────────────────────────────── */
.fr-page { max-width: 880px; margin: 0 auto; padding: 1.5rem 1rem 6rem; }
.fr-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.fr-title { font-size: 1.6rem; font-weight: 800; margin: 0 0 0.2rem; display: flex; align-items: center; gap: 0.5rem; }
.fr-title .icon { width: 24px; height: 24px; color: var(--accent); }
.fr-subtitle { color: var(--text2); font-size: 0.9rem; margin: 0; }
.fr-legend { display: inline-flex; align-items: center; gap: 0.35rem; margin-left: 0.5rem; font-size: 0.8rem; color: var(--text3); }
.fr-legend .fr-status-dot { position: static; }

/* Test-admin-panel */
.fr-test-panel { margin-bottom: 1rem; }
.fr-test-inner { display: flex; align-items: center; gap: 0.75rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.75rem 0.9rem; }
.fr-test-ico { display: inline-flex; }
.fr-test-ico .icon { width: 22px; height: 22px; color: var(--gold); }
.fr-test-text { display: flex; flex-direction: column; gap: 0.1rem; flex: 1; min-width: 0; }
.fr-test-text strong { font-size: 0.9rem; }
.fr-test-text span { font-size: 0.8rem; color: var(--text2); line-height: 1.35; }

/* Faner */
.fr-tabbar { display: flex; gap: 0.4rem; margin-bottom: 1rem; }
.fr-tab { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; background: var(--surface); border: 1px solid var(--border); color: var(--text2); border-radius: 9999px; padding: 0.5rem 0.9rem; font-size: 0.88rem; font-weight: 600; cursor: pointer; transition: var(--trans); }
.fr-tab .icon { width: 16px; height: 16px; }
.fr-tab:hover { color: var(--text); border-color: var(--border2); }
.fr-tab.active { background: var(--accentG); border-color: transparent; color: #fff; }
.fr-tab-count { background: rgba(0,0,0,0.25); border-radius: 9999px; padding: 0.05rem 0.45rem; font-size: 0.75rem; }
.fr-tab.active .fr-tab-count { background: rgba(255,255,255,0.25); }

/* Liste + kort */
.fr-list { display: flex; flex-direction: column; gap: 0.55rem; }
.fr-card { position: relative; display: flex; align-items: center; gap: 0.8rem; background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--red); border-radius: var(--radius); padding: 0.7rem 0.9rem; transition: var(--trans); }
.fr-card.is-friend { border-left-color: var(--green); }
.fr-card:hover { border-color: var(--border2); background: var(--surface2); }
.fr-status-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 0 3px rgba(0,0,0,0.15); }
.fr-status-dot.on-friend { background: var(--green); }
.fr-status-dot.on-stranger { background: var(--red); }
.fr-av { position: relative; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; font-size: 1.1rem; text-decoration: none; flex-shrink: 0; }
.fr-online-dot { position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border-radius: 50%; background: var(--green); border: 2px solid var(--bg2); }
.fr-info { flex: 1; min-width: 0; }
.fr-name { display: block; font-weight: 600; font-size: 0.95rem; color: var(--text); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fr-name:hover { color: var(--accent); }
.fr-test-tag { font-size: 0.62rem; font-weight: 700; background: var(--gold); color: #1a1206; border-radius: 4px; padding: 0.05rem 0.3rem; vertical-align: middle; }
.fr-sub { font-size: 0.78rem; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fr-online-text { color: var(--green); font-weight: 600; }
.fr-actions { display: flex; gap: 0.4rem; flex-shrink: 0; }

/* Knappar */
.fr-btn { display: inline-flex; align-items: center; gap: 0.3rem; border-radius: 9999px; padding: 0.4rem 0.8rem; font-size: 0.8rem; font-weight: 600; cursor: pointer; border: 1px solid var(--border); transition: var(--trans); white-space: nowrap; }
.fr-btn .icon { width: 14px; height: 14px; }
.fr-btn-ghost { background: var(--surface); color: var(--text2); }
.fr-btn-ghost:hover { color: var(--text); border-color: var(--border2); }
.fr-btn-primary { background: var(--accentG); color: #fff; border-color: transparent; }
.fr-btn-primary:hover { filter: brightness(1.1); }

/* Tomtilstand */
.fr-empty { text-align: center; color: var(--text2); padding: 3rem 1rem; }
.fr-empty .icon { width: 42px; height: 42px; color: var(--text3); margin-bottom: 0.6rem; }
.fr-empty p { margin: 0; font-size: 0.92rem; }
.fr-empty a { color: var(--accent); }

@media (max-width: 520px) {
  .fr-card { flex-wrap: wrap; }
  .fr-actions { width: 100%; justify-content: flex-end; }
}

/* ═══ FLYTENDE RADIO-FANE ═══════════════════════════════════════════════
   Liten draggbar kontroll for valgt radiokanal: lyd opp/ned + start/stopp.
   Vises kun når en kanal er valgt; kan flyttes og åpnes/lukkes.            */
.radio-dock {
  position: fixed;
  right: 18px;
  bottom: 96px;            /* over docked player-bar */
  z-index: var(--z-dock);
  width: 232px;
  border-radius: 16px;
  background: var(--surface, #161622);
  border: 1px solid var(--border, rgba(255,255,255,0.1));
  box-shadow: 0 12px 34px rgba(0,0,0,0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
  user-select: none;
  transition: box-shadow .2s ease;
}
.radio-dock.hidden { display: none; }

.radio-dock-handle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.6rem;
  cursor: grab;
  touch-action: none;
  background: linear-gradient(135deg, rgba(124,58,237,0.22), rgba(124,58,237,0.06));
  border-bottom: 1px solid var(--border, rgba(255,255,255,0.1));
}
.radio-dock-handle:active { cursor: grabbing; }
.radio-dock-grip { display: flex; color: var(--text3, #6b7280); flex: 0 0 auto; }
.radio-dock-grip .icon { width: 16px; height: 16px; }
.radio-dock-name {
  flex: 1; min-width: 0;
  font-size: 0.82rem; font-weight: 700; color: var(--text, #fff);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.radio-dock-toggle {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; padding: 0;
  border: none; border-radius: 8px; cursor: pointer;
  background: rgba(255,255,255,0.06); color: var(--text2, #9aa4b2);
  transition: background .15s ease, color .15s ease;
}
.radio-dock-toggle:hover { background: rgba(255,255,255,0.14); color: #fff; }
.radio-dock-toggle .icon { width: 16px; height: 16px; }

.radio-dock-body {
  display: flex; flex-direction: column; gap: 0.6rem;
  padding: 0.7rem 0.7rem 0.8rem;
}
.radio-dock.collapsed .radio-dock-body { display: none; }

.radio-dock-vol { display: flex; align-items: center; gap: 0.5rem; }
.radio-dock-vol-meter {
  flex: 1; height: 6px; border-radius: 999px;
  background: rgba(255,255,255,0.1); overflow: hidden;
}
.radio-dock-vol-fill {
  height: 100%; width: 80%; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent, #7c3aed), var(--accent2, #a78bfa));
  transition: width .12s ease;
}
.radio-dock-transport { display: flex; gap: 0.5rem; }
.radio-dock-transport .radio-dock-btn { flex: 1; }

.radio-dock-btn {
  display: flex; align-items: center; justify-content: center;
  height: 40px; padding: 0;
  border: 1px solid var(--border, rgba(255,255,255,0.1));
  border-radius: 10px; cursor: pointer;
  background: rgba(255,255,255,0.05); color: var(--text, #fff);
  font-size: 1.05rem; line-height: 1;
  transition: background .15s ease, border-color .15s ease, transform .08s ease;
}
.radio-dock-btn:hover  { background: rgba(255,255,255,0.12); }
.radio-dock-btn:active { transform: scale(0.94); }
.radio-dock-btn .icon  { width: 18px; height: 18px; }
.radio-dock-vol-btn    { width: 40px; flex: 0 0 40px; }

.radio-dock-play {
  background: var(--accent, #7c3aed);
  border-color: transparent; color: #fff;
}
.radio-dock-play:hover { background: var(--accent2, #8b5cf6); }
.radio-dock.is-playing .radio-dock-play { box-shadow: 0 0 0 2px rgba(124,58,237,0.4); }
.radio-dock-stop:hover { border-color: #ef4444; color: #ef4444; }

@media (max-width: 520px) {
  .radio-dock { right: 10px; bottom: 84px; width: 200px; }
}

/* ── RadioSearch — global web-radio search (World + Shows pages) ──────────── */
.rsx { width: 100%; }

.rsx-box {
  display: flex; align-items: center; gap: 0.6rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.7rem 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.rsx-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.18);
}
.rsx-icon { color: var(--text3); display: flex; flex-shrink: 0; }
.rsx-input {
  flex: 1; min-width: 0; background: none; border: none; outline: none;
  color: var(--text); font-size: 0.95rem;
}
.rsx-input::placeholder { color: var(--text3); }
.rsx-clear {
  background: none; border: none; color: var(--text3); cursor: pointer;
  display: flex; padding: 2px; border-radius: 6px;
}
.rsx-clear:hover { color: var(--text); background: var(--surface2); }

.rsx-genres { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.8rem; }
.rsx-genre {
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text2); border-radius: 999px;
  padding: 0.4rem 0.85rem; font-size: 0.82rem; cursor: pointer;
  white-space: nowrap; transition: all 0.15s;
}
.rsx-genre:hover { border-color: var(--accent); color: var(--text); }
.rsx-genre.active {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-color: transparent; color: #fff;
}

.rsx-results {
  margin-top: 1rem; border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; background: var(--bg);
}
.rsx-results.hidden { display: none; }
.rsx-loading, .rsx-empty {
  padding: 1.1rem; text-align: center; color: var(--text3); font-size: 0.9rem;
}
.rsx-count {
  padding: 0.55rem 1rem; font-size: 0.76rem; color: var(--text3);
  letter-spacing: 0.04em; text-transform: uppercase;
  border-bottom: 1px solid var(--border); background: var(--surface);
}
.rsx-item {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.7rem 1rem; cursor: pointer;
  border-bottom: 1px solid var(--border); transition: background 0.15s;
}
.rsx-item:last-child { border-bottom: none; }
.rsx-item:hover { background: var(--surface); }
.rsx-item-fav {
  width: 34px; height: 34px; flex-shrink: 0; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface2); font-size: 1.1rem; overflow: hidden;
}
.rsx-item-fav img { width: 100%; height: 100%; object-fit: cover; }
.rsx-item-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.15rem; }
.rsx-item-name {
  font-weight: 600; color: var(--text); font-size: 0.92rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rsx-item-meta {
  font-size: 0.78rem; color: var(--text3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rsx-item-actions { display: flex; gap: 0.4rem; flex-shrink: 0; }
.rsx-play, .rsx-save {
  width: 34px; height: 34px; border-radius: 8px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--text2); font-size: 1rem; transition: all 0.15s;
}
.rsx-play:hover { background: var(--accent); border-color: transparent; color: #fff; }
.rsx-save:hover { background: var(--surface); color: var(--text); }

/* ═══════════════════════════════════════════════════════════════════════
   FORENKLA FORSIDE — Facebook + SoundCloud-aktig feed (2026-06-29)
   Nav «Mer»-meny · onboarding · komponer · live-stripe · samla feed · cover
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Nav: «Mer ▾»-dropdown ─────────────────────────────────────────────── */
.nav-more-btn .icon { vertical-align: middle; }
.nav-more-btn.active { background: var(--surface2); color: var(--text); }
.nav-more-panel {
  position: fixed; z-index: 4000; min-width: 232px; max-width: 280px;
  max-height: 78vh; overflow-y: auto; padding: 0.4rem;
  background: #14141c; border: 1px solid var(--border); border-radius: var(--radius, 14px);
  box-shadow: 0 18px 50px rgba(0,0,0,0.55); animation: scMoreIn 0.13s ease;
}
@keyframes scMoreIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.nav-more-item {
  display: flex; align-items: center; gap: 0.65rem; width: 100%;
  padding: 0.6rem 0.7rem; border-radius: 9px; border: none; background: transparent;
  color: var(--text); font-size: 0.9rem; font-weight: 500; text-align: left;
  text-decoration: none; cursor: pointer; transition: background 0.12s;
}
.nav-more-item:hover { background: var(--surface2); }
.nav-more-item .icon { width: 18px; height: 18px; flex: 0 0 18px; color: var(--text2); }
.nav-more-item span { flex: 1 1 auto; }
.nav-more-sep { height: 1px; margin: 0.35rem 0.4rem; background: var(--border); }
.nav-more-badge {
  margin-left: auto; background: #ef4444; color: #fff; font-size: 0.7rem; font-weight: 700;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ── Onboarding-kort ───────────────────────────────────────────────────── */
.sc-onboard {
  position: relative; margin: 1rem auto 1.25rem; max-width: 1000px;
  padding: 1.25rem 1.4rem; border-radius: 18px;
  background: linear-gradient(135deg, rgba(124,58,237,0.16), rgba(37,99,235,0.12));
  border: 1px solid rgba(124,58,237,0.32);
}
.sc-onboard-close {
  position: absolute; top: 0.7rem; right: 0.7rem; width: 30px; height: 30px;
  border-radius: 50%; border: 1px solid var(--border); background: rgba(0,0,0,0.25);
  color: var(--text2); cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.sc-onboard-close:hover { color: var(--text); background: rgba(0,0,0,0.45); }
.sc-onboard-title { font-size: 1.2rem; font-weight: 800; display: flex; align-items: center; gap: 0.5rem; }
.sc-onboard-title .icon { color: var(--accent); }
.sc-onboard-lead { color: var(--text2); margin: 0.35rem 0 1rem; font-size: 0.92rem; max-width: 70ch; }
.sc-onboard-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0.7rem; }
.sc-onboard-step {
  display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.8rem 0.9rem;
  border-radius: 13px; background: var(--surface); border: 1px solid var(--border);
  text-decoration: none; color: var(--text); transition: transform 0.12s, border-color 0.12s;
}
.sc-onboard-step:hover { transform: translateY(-2px); border-color: var(--accent); }
.sc-onboard-ic {
  flex: 0 0 38px; width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff;
}
.sc-onboard-ic .icon { width: 20px; height: 20px; }
.sc-onboard-tx { display: flex; flex-direction: column; font-size: 0.82rem; color: var(--text2); line-height: 1.35; }
.sc-onboard-tx strong { color: var(--text); font-size: 0.95rem; margin-bottom: 0.15rem; }

/* ── Komponer-boks ─────────────────────────────────────────────────────── */
.sc-composer {
  display: flex; gap: 0.8rem; align-items: flex-start; max-width: 1000px;
  margin: 0 auto 1.25rem; padding: 1rem 1.1rem; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--border);
}
.sc-composer-av {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
}
.sc-composer-main { flex: 1 1 auto; min-width: 0; }
.sc-composer-input {
  width: 100%; min-height: 54px; resize: vertical; padding: 0.6rem 0.75rem;
  border-radius: 12px; border: 1px solid var(--border); background: var(--bg);
  color: var(--text); font-family: inherit; font-size: 0.95rem;
}
.sc-composer-input:focus { outline: none; border-color: var(--accent); }
.sc-composer-row { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin-top: 0.6rem; flex-wrap: wrap; }
.sc-composer-media {
  display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; font-weight: 600;
  color: var(--text2); text-decoration: none; padding: 0.4rem 0.55rem; border-radius: 9px;
}
.sc-composer-media:hover { color: var(--text); background: var(--surface2); }
.sc-composer-guest { align-items: center; color: var(--text2); font-size: 0.92rem; }
.sc-composer-guest a { color: var(--accent); font-weight: 600; }
.sc-composer-guest-ic { color: var(--accent); display: inline-flex; }

/* ── «Live & spiller nå»-stripe ────────────────────────────────────────── */
.sc-livestrip-wrap { max-width: 1000px; margin: 0 auto 1.4rem; }
.sc-livestrip-head { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; margin-bottom: 0.6rem; }
.sc-livestrip-count {
  font-size: 0.72rem; color: var(--text2); background: var(--surface2);
  padding: 0.1rem 0.5rem; border-radius: 999px;
}
.sc-livestrip { display: flex; gap: 0.7rem; overflow-x: auto; padding-bottom: 0.4rem; scrollbar-width: thin; }
.sc-live-card {
  flex: 0 0 230px; display: flex; align-items: center; gap: 0.6rem;
  padding: 0.6rem 0.7rem; border-radius: 13px; background: var(--surface); border: 1px solid var(--border);
}
.sc-live-card--live { border-color: rgba(239,68,68,0.4); }
.sc-live-av {
  flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; overflow: hidden;
  display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; text-decoration: none;
}
.sc-live-meta { flex: 1 1 auto; min-width: 0; }
.sc-live-name { font-weight: 600; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-live-sub { font-size: 0.76rem; color: var(--text2); display: flex; align-items: center; gap: 0.3rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-live-sub .icon { width: 13px; height: 13px; }
.sc-live-play {
  flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
  border: none; color: #fff; display: flex; align-items: center; justify-content: center; text-decoration: none;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
}
.sc-live-card--live .sc-live-play { background: #ef4444; }
.sc-live-play .icon { width: 17px; height: 17px; }

/* ── Samla feed ────────────────────────────────────────────────────────── */
.sc-feed { display: flex; flex-direction: column; gap: 0.9rem; }
.sc-feed-empty { padding: 2.5rem 1rem; text-align: center; color: var(--text2); }
.sc-feed-empty a { color: var(--accent); font-weight: 600; }
.feed-card {
  display: flex; align-items: center; gap: 0.85rem; padding: 0.8rem 0.9rem;
  border-radius: 14px; background: var(--surface); border: 1px solid var(--border);
}
.feed-card-kind { font-size: 0.72rem; color: var(--text2); font-weight: 600; display: flex; align-items: center; gap: 0.3rem; margin-bottom: 0.15rem; }
.feed-card-kind .icon { width: 13px; height: 13px; }
.feed-track-art {
  position: relative; flex: 0 0 60px; width: 60px; height: 60px; border-radius: 11px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.feed-track-play {
  position: absolute; inset: 0; border: none; background: rgba(0,0,0,0.28); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.15s;
}
.feed-track-art:hover .feed-track-play { opacity: 1; }
.feed-track-body { flex: 1 1 auto; min-width: 0; }
.feed-track-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-track-artist { font-size: 0.82rem; color: var(--text2); text-decoration: none; }
.feed-track-artist:hover { color: var(--accent); }
.feed-track-go, .feed-member-go {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 0.35rem; cursor: pointer;
  padding: 0.45rem 0.75rem; border-radius: 9px; font-size: 0.82rem; font-weight: 600; text-decoration: none;
  border: 1px solid var(--border); background: var(--surface2); color: var(--text);
}
.feed-track-go:hover, .feed-member-go:hover { background: var(--accent); border-color: transparent; color: #fff; }
.feed-track-go .icon { width: 15px; height: 15px; }
.feed-member-av {
  flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%; overflow: hidden;
  display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; text-decoration: none;
}
.feed-member-body { flex: 1 1 auto; min-width: 0; }
.feed-member-name { font-weight: 600; text-decoration: none; color: var(--text); }
.feed-member-name:hover { color: var(--accent); }
.feed-member-sub { font-size: 0.8rem; color: var(--text2); }

/* ── Cover-bilde i Discover-opplasting ─────────────────────────────────── */
.disc-up-cover-row { display: flex; align-items: center; gap: 0.85rem; margin: 0.4rem 0 0.2rem; }
.disc-up-cover-drop {
  flex: 0 0 64px; width: 64px; height: 64px; border-radius: 12px; cursor: pointer; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface2); border: 1px dashed var(--border); transition: border-color 0.15s;
}
.disc-up-cover-drop:hover { border-color: var(--accent); }
.disc-up-cover-preview { width: 100%; height: 100%; object-fit: cover; }
.disc-up-cover-placeholder { color: var(--text2); display: flex; }
.disc-up-cover-placeholder .icon { width: 26px; height: 26px; }
.disc-up-cover-info { flex: 1 1 auto; min-width: 0; }
.disc-up-cover-label { font-weight: 600; font-size: 0.92rem; }
.disc-up-cover-opt { color: var(--text3, var(--text2)); font-weight: 400; font-size: 0.8rem; }
.disc-up-cover-sub { font-size: 0.78rem; color: var(--text2); margin-top: 0.15rem; }

@media (max-width: 640px) {
  .sc-composer { flex-wrap: wrap; }
  .sc-live-card { flex-basis: 200px; }
}
