/* ================================================================
   Hits Quiz — WordPress Plugin CSS
   Alle stiler er scopet under .hq-wrap for å unngå konflikter
================================================================ */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Share+Tech+Mono&family=Plus+Jakarta+Sans:wght@400;600;700;800&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600&display=swap');

.hq-wrap {
  --hq-pink:   #ff2d78;
  --hq-cyan:   #00f5ff;
  --hq-yellow: #ffe600;
  --hq-purple: #c832ff;
  --hq-green:  #39ff14;
  --hq-bg:     #0a0010;
  --hq-card:   #100020;
  --hq-border: #2a004a;

  position: relative;
  background: var(--hq-bg);
  color: #eee;
  font-family: 'Share Tech Mono', monospace;
  min-height: 100vh;
  overflow-x: hidden;
  box-sizing: border-box;
}

.hq-wrap *, .hq-wrap *::before, .hq-wrap *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Scanlines */
.hq-wrap::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,.12) 2px, rgba(0,0,0,.12) 4px);
  pointer-events: none;
  z-index: 9999;
}
/* Grid */
.hq-wrap::before {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(rgba(0,245,255,.04) 1px, transparent 1px),
              linear-gradient(90deg, rgba(0,245,255,.04) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 0;
  pointer-events: none;
}

/* ── SCREENS ─────────────────────────────────────────────────── */
.hq-screen {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: none;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px 48px;
  gap: 18px;
}
.hq-screen.active { display: flex; }

/* ── TYPOGRAPHY ─────────────────────────────────────────────── */
.hq-logo {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  color: var(--hq-pink);
  text-shadow: 0 0 8px var(--hq-pink), 0 0 30px var(--hq-pink);
  font-size: clamp(42px, 8vw, 78px);
  letter-spacing: -2px;
  line-height: 1;
}
.hq-sub {
  font-size: 11px;
  color: #555;
  letter-spacing: 3px;
  margin-top: 4px;
}
.hq-slabel {
  font-family: 'Orbitron', sans-serif;
  font-size: 10px;
  letter-spacing: 4px;
  color: var(--hq-yellow);
  text-shadow: 0 0 6px var(--hq-yellow);
}

/* ── SCREEN A: TIÅRSVELGER ─────────────────────────────────── */
/* ── LISTEVELJAR ─────────────────────────────────────────────── */
.hq-list-picker { display:flex;flex-direction:column;gap:12px;width:100%;max-width:380px; }
.hq-list-pick-btn {
  display:flex;flex-direction:column;align-items:flex-start;gap:5px;
  padding:16px 20px;background:var(--hq-card);border:2px solid var(--hq-border);
  border-radius:3px;cursor:pointer;transition:all .2s;text-align:left;width:100%;
}
.hq-sub-info-link {
  width:100%;background:transparent;border:none;
  color:#555;font-family:'Share Tech Mono',monospace;font-size:11px;
  letter-spacing:2px;padding:8px 0 2px;cursor:pointer;
  transition:color .18s;text-align:center;
}
.hq-sub-info-link:hover { color:var(--hq-yellow); }
.hq-wrap.modern .hq-sub-info-link { font-family:'DM Sans',sans-serif;color:#9ca3af; }
.hq-wrap.modern .hq-sub-info-link:hover { color:#F59E0B; }
.hq-list-pick-row { display:flex;gap:6px;align-items:stretch;width:100%; }
.hq-list-pick-row .hq-list-pick-btn { flex:1; }
.hq-list-pick-user { text-align:left; }
.hq-list-delete-btn { background:transparent;border:2px solid #1a0030;color:#666;cursor:pointer;border-radius:3px;padding:0 10px;font-size:14px;transition:all .18s;flex-shrink:0; }
.hq-list-delete-btn:hover { border-color:#ff2d78;color:#ff2d78; }
.hq-list-upload-btn { width:100%;padding:12px 20px;background:transparent;border:2px dashed #2a0050;color:#555;font-family:'Share Tech Mono',monospace;font-size:12px;letter-spacing:2px;cursor:pointer;transition:all .2s;border-radius:3px;margin-top:4px; }
.hq-list-upload-btn:hover { border-color:var(--hq-cyan);color:var(--hq-cyan); }

/* Upload-skjerm */
.hq-upload-box { width:100%;max-width:380px;display:flex;flex-direction:column;gap:12px; }
.hq-upload-desc { font-family:'Share Tech Mono',monospace;font-size:11px;color:#555;line-height:1.6;margin:0; }
.hq-upload-desc a { color:var(--hq-cyan); }
.hq-upload-file-wrap { position:relative; }
.hq-upload-file-wrap input[type=file] { position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%; }
.hq-upload-file-label { border:2px dashed #2a0050;border-radius:3px;padding:14px 16px;color:#555;font-family:'Share Tech Mono',monospace;font-size:12px;cursor:pointer;transition:border-color .2s;background:var(--hq-card);letter-spacing:1px; }
.hq-upload-file-wrap:hover .hq-upload-file-label { border-color:var(--hq-cyan);color:var(--hq-cyan); }
.hq-upload-name-input { background:var(--hq-card);border:2px solid #1a0030;color:#aaa;font-family:'Share Tech Mono',monospace;font-size:12px;padding:10px 14px;letter-spacing:1px;width:100%;box-sizing:border-box; }
.hq-upload-name-input:focus { outline:none;border-color:var(--hq-cyan); }
.hq-upload-name-input::placeholder { color:#333; }
.hq-upload-status { font-family:'Share Tech Mono',monospace;font-size:12px;letter-spacing:1px;min-height:18px; }
.hq-upload-mode { display:flex;flex-direction:column;gap:8px; }
.hq-upload-mode-opt { display:flex;align-items:center;gap:8px;cursor:pointer;font-family:'Share Tech Mono',monospace;font-size:12px;letter-spacing:1px;color:#888; }
.hq-upload-mode-opt input[type=radio] { accent-color:var(--hq-cyan);width:15px;height:15px;flex-shrink:0; }
.hq-wrap.modern .hq-upload-mode-opt { font-family:'DM Sans',sans-serif;color:#6b7280; }
.hq-wrap.modern .hq-upload-mode-opt input[type=radio] { accent-color:#6C47FF; }

/* Modern overrides */
.hq-wrap.modern .hq-list-delete-btn { border-color:#e4e0ff;border-radius:8px; }
.hq-wrap.modern .hq-list-delete-btn:hover { border-color:#f87171;color:#ef4444; }
.hq-wrap.modern .hq-list-upload-btn { border-color:#e4e0ff;border-radius:12px;color:#9ca3af;font-family:'DM Sans',sans-serif; }
.hq-wrap.modern .hq-list-upload-btn:hover { border-color:#6C47FF;color:#6C47FF; }
.hq-wrap.modern .hq-upload-file-label { background:#fff;border-color:#e4e0ff;border-radius:8px;font-family:'DM Sans',sans-serif;color:#9ca3af; }
.hq-wrap.modern .hq-upload-name-input { background:#fff;border-color:#e4e0ff;border-radius:8px;color:#374151;font-family:'DM Sans',sans-serif; }
.hq-wrap.modern .hq-list-sep { color:#9ca3af;font-family:'DM Sans',sans-serif; }
  opacity: .55;
  cursor: not-allowed;
  border-style: dashed;
}
.hq-list-pick-btn.hq-list-locked:hover { border-color:var(--hq-border);box-shadow:none; }
.hq-list-pick-btn.hq-list-locked .hq-list-pick-meta em { color: var(--hq-yellow); font-style:normal; }
.hq-list-pick-name { font-family:'Orbitron',sans-serif;font-size:18px;font-weight:700;letter-spacing:2px;color:var(--hq-cyan);text-shadow:0 0 8px var(--hq-cyan); }
.hq-list-pick-meta { font-family:'Share Tech Mono',monospace;font-size:11px;letter-spacing:1px;color:#555; }
.hq-wrap.modern .hq-list-pick-btn { background:#fff;border-color:#e8e4ff;border-radius:16px;box-shadow:0 2px 12px rgba(108,71,255,.06); }
.hq-wrap.modern .hq-list-pick-btn:hover { border-color:#6C47FF;box-shadow:0 6px 24px rgba(108,71,255,.15); }
.hq-wrap.modern .hq-list-pick-name { font-family:'Plus Jakarta Sans',sans-serif;color:#6C47FF;text-shadow:none; }
.hq-wrap.modern .hq-list-pick-meta { font-family:'DM Sans',sans-serif;color:#9ca3af; }

.hq-decade-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 380px;
}
.hq-dec-btn {
  position: relative;
  background: var(--hq-card);
  border: 2px solid var(--hq-border);
  color: #555;
  font-family: 'Orbitron', sans-serif;
  font-size: 22px;
  letter-spacing: 4px;
  font-weight: 700;
  padding: 9px 20px 7px;
  cursor: pointer;
  transition: all .2s;
  border-radius: 3px;
  text-align: left;
  overflow: hidden;
  width: 100%;
}
.hq-dec-btn .hq-dec-years {
  display: block;
  font-size: 9px;
  letter-spacing: 2px;
  margin-top: 6px;
  opacity: .5;
  font-family: 'Share Tech Mono', monospace;
}
.hq-dec-btn .hq-dec-count {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 10px;
  letter-spacing: 1px;
  color: #444;
  font-family: 'Share Tech Mono', monospace;
}
.hq-dec-btn:hover:not(:disabled) { border-color: var(--hq-cyan); color: var(--hq-cyan); }
.hq-dec-btn:hover:not(:disabled) .hq-dec-count { color: var(--hq-cyan); }
.hq-dec-btn.sel {
  border-color: var(--hq-cyan);
  color: var(--hq-cyan);
  background: rgba(0,245,255,.07);
  box-shadow: 0 0 24px rgba(0,245,255,.12);
  text-shadow: 0 0 10px var(--hq-cyan);
}
.hq-dec-btn.sel .hq-dec-count { color: var(--hq-cyan); }
.hq-dec-btn.sel::before {
  content: '✓';
  position: absolute;
  bottom: 14px;
  right: 16px;
  font-size: 18px;
  color: var(--hq-cyan);
  opacity: .7;
}
.hq-ghost-btn {
  background: transparent;
  border: 1px solid #2a0040;
  color: #555;
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  padding: 9px 20px;
  cursor: pointer;
  letter-spacing: 2px;
  transition: all .18s;
  align-self: center;
}
.hq-ghost-btn:hover { border-color: #555; color: #bbb; }
.hq-stats { font-size: 11px; color: #444; letter-spacing: 2px; text-align: center; }
.hq-neste-btn {
  font-family: 'Orbitron', sans-serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 4px;
  padding: 17px 50px;
  background: transparent;
  border: 3px solid var(--hq-pink);
  color: var(--hq-pink);
  cursor: pointer;
  transition: all .2s;
  text-shadow: 0 0 8px var(--hq-pink);
  box-shadow: 0 0 18px rgba(255,45,120,.25);
  display: none;
}
.hq-neste-btn.show { display: block; }
.hq-neste-btn:hover { background: rgba(255,45,120,.08); box-shadow: 0 0 35px rgba(255,45,120,.5); }

/* ── SCREEN B: SPILLERE ─────────────────────────────────────── */
.hq-pc-row { display: flex; gap: 9px; justify-content: center; }
.hq-pc-btn {
  width: 52px;
  height: 52px;
  font-family: 'Orbitron', sans-serif;
  font-size: 20px;
  font-weight: 700;
  background: var(--hq-card);
  border: 2px solid var(--hq-border);
  color: #555;
  cursor: pointer;
  transition: all .18s;
}
.hq-pc-btn.sel {
  border-color: var(--hq-yellow);
  color: var(--hq-yellow);
  background: rgba(255,230,0,.07);
  text-shadow: 0 0 8px var(--hq-yellow);
}
.hq-name-list { display: flex; flex-direction: column; gap: 9px; width: 100%; max-width: 380px; }
.hq-name-row { display: flex; align-items: center; gap: 10px; }
.hq-name-num { font-family: 'Orbitron', sans-serif; font-size: 11px; color: var(--hq-purple); width: 22px; text-align: right; flex-shrink: 0; }
.hq-name-row input {
  flex: 1;
  background: var(--hq-card);
  border: 1px solid var(--hq-border);
  color: #eee;
  font-family: 'Share Tech Mono', monospace;
  font-size: 14px;
  padding: 10px 12px;
  outline: none;
  transition: border-color .18s;
}
.hq-name-row input:focus { border-color: var(--hq-cyan); }
.hq-name-row input::placeholder { color: #2a2a4a; }
.hq-start-btn {
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 4px;
  padding: 17px 50px;
  background: transparent;
  border: 3px solid var(--hq-green);
  color: var(--hq-green);
  cursor: pointer;
  transition: all .2s;
  text-shadow: 0 0 8px var(--hq-green);
  box-shadow: 0 0 18px rgba(57,255,20,.2);
}
.hq-start-btn:hover { background: rgba(57,255,20,.07); box-shadow: 0 0 35px rgba(57,255,20,.4); }
.hq-back-lnk { font-size: 11px; color: #333; letter-spacing: 2px; cursor: pointer; }
.hq-back-lnk:hover { color: #888; }

/* ── SCREEN C: SPILL ─────────────────────────────────────────── */
.hq-top-bar { display: flex; width: 100%; max-width: 540px; justify-content: space-between; align-items: center; }
.hq-song-ctr { color: #444; font-size: 11px; letter-spacing: 2px; }
.hq-quit-btn {
  background: transparent;
  border: 1px solid #1a0030;
  color: #666;
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  padding: 5px 10px;
  cursor: pointer;
  transition: all .18s;
  letter-spacing: 1px;
}
.hq-quit-btn:hover { border-color: var(--hq-pink); color: var(--hq-pink); }

/* Vinyl */
.hq-vinyl-wrap { position: relative; width: 150px; height: 150px; flex-shrink: 0; }
.hq-vinyl {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, #222 12%, #111 12%, #111 14%, #1a1a1a 14%, #1a1a1a 16%, #111 16%, #111 18%, #1a1a1a 18%, #1a1a1a 20%, #111 20%, #111 22%, #1a1a1a 22%, #1a1a1a 24%, #111 24%, #111 38%, #0a0a0a 38%);
  box-shadow: 0 0 28px rgba(255,45,120,.2), 0 4px 18px rgba(0,0,0,.8);
}
.hq-vinyl::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 20px; height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle, #cc2060 40%, #880030 100%);
}
.hq-vlabel {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  margin: auto;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a0030, #0a0020);
  border: 2px solid #2a0050;
  overflow: hidden;
}

/* Card / Spotify */
.hq-card {
  background: transparent;
  border: none;
  width: 100%;
  max-width: 540px;
  padding: 0;
  position: relative;
}
.hq-card::before {
  content: '';
  position: absolute;
  top: -10px; left: 16px;
  background: var(--hq-bg);
  padding: 0 8px;
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--hq-purple);
  text-shadow: 0 0 6px var(--hq-purple);
}
.hq-sp-wrap { position: relative; height: 80px; border-radius: 4px; overflow: hidden; transition: height .4s; }
.hq-sp-wrap.open { height: 152px; }
.hq-sp-wrap iframe { width: 100%; height: 152px; border: none; display: block; border-radius: 4px; }
.hq-sp-cover {
  position: absolute;
  inset: 0;
  background: #0d0022;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 10;
  border: 2px solid var(--hq-cyan);
  user-select: none;
  -webkit-user-select: none;
  pointer-events: auto;
  cursor: pointer;
}
.hq-sp-play-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid var(--hq-cyan);
  color: var(--hq-cyan);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding-left: 4px;
  pointer-events: none;
}
.hq-sp-cover:hover .hq-sp-play-btn { background: rgba(0,245,255,.12); }
.hq-sp-cover.paused .hq-sp-play-btn { border-color: #888; color: #888; padding-left: 0; }
.hq-sp-cover-right { display: flex; flex-direction: column; gap: 5px; pointer-events: none; }
.hq-sp-cover-label { display: none; }
.hq-sp-cover-status {
  font-family: 'Share Tech Mono', monospace;
  font-size: 15px;
  letter-spacing: 2px;
  color: var(--hq-cyan);
  animation: hqPls 1.6s ease-in-out infinite;
}
.hq-sp-cover.paused .hq-sp-cover-status { animation: none; color: #555; }
@keyframes hqPls { 0%,100%{opacity:1} 50%{opacity:.2} }
.hq-sp-wrap.open .hq-sp-cover { display: none; }

/* ── Dansende notar ──────────────────────────────────────────── */
.hq-note {
  position: absolute;
  font-size: 20px;
  pointer-events: none;
  user-select: none;
  opacity: 0;
  color: var(--hq-cyan);
  text-shadow: 0 0 8px var(--hq-cyan);
}
.hq-sp-cover.playing .hq-note {
  animation: hqNoteFloat 2.4s ease-in-out infinite;
}
@keyframes hqNoteFloat {
  0%   { opacity: 0;   transform: translateY(0px)  scale(0.7); }
  20%  { opacity: 1;   transform: translateY(-14px) scale(1);   }
  60%  { opacity: 0.6; transform: translateY(-34px) scale(1.1); }
  100% { opacity: 0;   transform: translateY(-56px) scale(0.8); }
}
.hq-wrap.modern .hq-note { color: #6C47FF; text-shadow: 0 0 8px rgba(108,71,255,.5); }

.hq-song-info { display: none; margin-top: 13px; padding: 13px 4px 0; border-top: 1px solid var(--hq-border); animation: hqFadeIn .3s; }
.hq-song-info.vis { display: block; }
@keyframes hqFadeIn { from{opacity:0;transform:translateY(5px)} to{opacity:1;transform:none} }
.hq-s-artist { font-family: 'Orbitron', sans-serif; font-size: 17px; font-weight: 700; color: var(--hq-cyan); text-shadow: 0 0 7px var(--hq-cyan); }
.hq-s-title { font-size: 13px; color: #bbb; margin-top: 3px; }
.hq-s-year { display: inline-block; font-family: 'Orbitron', sans-serif; font-size: 10px; padding: 3px 10px; border: 1px solid var(--hq-pink); color: var(--hq-pink); letter-spacing: 3px; margin-top: 8px; text-shadow: 0 0 5px var(--hq-pink); }

.hq-vis-btn {
  width: 100%; max-width: 540px;
  font-family: 'Orbitron', sans-serif;
  font-size: 12px; font-weight: 700; letter-spacing: 3px;
  padding: 14px;
  background: transparent;
  border: 2px solid var(--hq-cyan);
  color: var(--hq-cyan);
  cursor: pointer;
  transition: all .18s;
  text-shadow: 0 0 5px var(--hq-cyan);
}
.hq-vis-btn:hover:not(:disabled) { background: rgba(0,245,255,.07); }
.hq-vis-btn:disabled { opacity: .2; cursor: default; }
.hq-vis-btn.not-ready {
  opacity: .35;
  cursor: not-allowed;
  border-color: #555;
  color: #555;
  text-shadow: none;
}

.hq-score-panel { display: none; width: 100%; max-width: 540px; flex-direction: column; gap: 7px; }
.hq-score-panel.vis { display: flex; }
.hq-score-panel-lbl { font-size: 10px; letter-spacing: 4px; color: var(--hq-yellow); text-align: center; padding-bottom: 2px; }
.hq-prow { display: flex; align-items: center; gap: 7px; background: var(--hq-card); border: 1px solid var(--hq-border); padding: 9px 13px; }
.hq-prow .hq-pn { flex: 1; font-size: 13px; color: #aaa; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hq-prow .hq-pp { font-family: 'Orbitron', sans-serif; font-size: 11px; color: #444; min-width: 40px; text-align: right; flex-shrink: 0; }
.hq-ptbtn {
  width: 48px; height: 48px;
  font-family: 'Orbitron', sans-serif;
  font-size: 14px; font-weight: 700;
  background: transparent;
  border: 1px solid #2a0040;
  color: #444;
  cursor: pointer;
  transition: all .15s;
  flex-shrink: 0;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}
.hq-ptbtn:hover { border-color: var(--hq-green); color: var(--hq-green); background: rgba(57,255,20,.05); }
.hq-ptbtn.on { border-color: var(--hq-green); background: var(--hq-green); color: #000; transform: scale(1.08); }

.hq-next-btn {
  width: 100%; max-width: 540px;
  font-family: 'Orbitron', sans-serif;
  font-size: 13px; font-weight: 700; letter-spacing: 4px;
  padding: 14px;
  background: transparent;
  border: 2px solid var(--hq-purple);
  color: var(--hq-purple);
  cursor: pointer;
  transition: all .18s;
  display: none;
  text-shadow: 0 0 6px var(--hq-purple);
}
.hq-next-btn:hover { background: rgba(200,50,255,.07); }
.hq-next-btn.vis { display: block; }

/* Tur-indikator */
.hq-turn-banner {
  width: 100%; max-width: 540px;
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,230,0,.05);
  border: 2px solid var(--hq-yellow);
  padding: 10px 16px;
  box-shadow: 0 0 18px rgba(255,230,0,.15);
}
.hq-turn-arrow { font-size: 20px; color: var(--hq-yellow); text-shadow: 0 0 8px var(--hq-yellow); animation: hqPulse 1s ease-in-out infinite; }
@keyframes hqPulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.6;transform:scale(.9)} }
.hq-turn-label { font-size: 10px; letter-spacing: 1px; color: #666; line-height: 1.4; }
.hq-turn-name { font-family: 'Orbitron', sans-serif; font-size: 16px; font-weight: 900; color: var(--hq-yellow); text-shadow: 0 0 10px var(--hq-yellow); letter-spacing: 1px; }
.hq-prow.active-turn { border-color: var(--hq-yellow); background: rgba(255,230,0,.06); box-shadow: 0 0 10px rgba(255,230,0,.12); }
.hq-prow.active-turn .hq-pn { color: var(--hq-yellow); }

/* ── SCREEN D: SLUTTSKJERM ──────────────────────────────────── */
.hq-lb { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 8px; }
.hq-lbrow { display: flex; align-items: center; gap: 12px; padding: 13px 16px; background: var(--hq-card); border: 1px solid var(--hq-border); }
.hq-lbrow.r1 { border-color: var(--hq-yellow); box-shadow: 0 0 14px rgba(255,230,0,.13); }
.hq-lbrow.r2 { border-color: #777; }
.hq-lbrow.r3 { border-color: #8b4010; }
.hq-lbrank { font-family: 'Orbitron', sans-serif; font-size: 22px; font-weight: 900; width: 34px; text-align: center; flex-shrink: 0; }
.hq-lbrow.r1 .hq-lbrank { color: var(--hq-yellow); text-shadow: 0 0 10px var(--hq-yellow); }
.hq-lbrow.r2 .hq-lbrank { color: #999; }
.hq-lbrow.r3 .hq-lbrank { color: #b06020; }
.hq-lbname { flex: 1; font-size: 14px; color: #ccc; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hq-lbpts { font-family: 'Orbitron', sans-serif; font-size: 26px; font-weight: 900; color: var(--hq-pink); text-shadow: 0 0 7px var(--hq-pink); }
.hq-lbunit { font-size: 10px; color: #444; letter-spacing: 2px; align-self: flex-end; padding-bottom: 2px; }
.hq-replay-btn {
  font-family: 'Orbitron', sans-serif;
  font-size: 13px; font-weight: 900; letter-spacing: 4px;
  padding: 16px 48px;
  background: transparent;
  border: 3px solid var(--hq-pink);
  color: var(--hq-pink);
  cursor: pointer;
  transition: all .2s;
  text-shadow: 0 0 8px var(--hq-pink);
}
.hq-replay-btn:hover { background: rgba(255,45,120,.08); box-shadow: 0 0 30px rgba(255,45,120,.4); }

/* ── TONEARM ─────────────────────────────────────────────────── */
.hq-vinyl-wrap {
  position: relative;
  width: 210px;
  height: 155px;
  flex-shrink: 0;
}
.hq-tonearm {
  position: absolute;
  top: -4px;
  right: -4px;
  transform-origin: 50% 22px;
  transform: rotate(38deg);      /* default = på plata (brukes når .resting er fjernet) */
  transition: transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(1px 2px 4px rgba(0,0,0,0.6));
  pointer-events: none;
}
.hq-tonearm.resting {
  transform: rotate(0deg);       /* hvilestilling = rett ned */
}

/* Modern overrides */
.hq-wrap.modern .hq-tonearm {
  filter: drop-shadow(1px 2px 6px rgba(108,71,255,0.18));
}
.hq-wrap.modern .hq-tonearm svg rect,
.hq-wrap.modern .hq-tonearm svg polygon {
  fill: #d1d5db;
  stroke: #9ca3af;
}
.hq-wrap.modern .hq-tonearm svg circle[cx="30"][cy="22"] { fill: #e5e7eb; stroke: #9ca3af; }
.hq-wrap.modern .hq-tonearm svg circle[cx="30"][cy="22"] + circle { fill: #f3f4f6; }

/* ── POENGOVERSIKT ───────────────────────────────────────────── */
.hq-score-overview-btn {
  background: transparent;
  border: 1px solid #1a0030;
  color: #666;
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  padding: 5px 10px;
  cursor: pointer;
  transition: all .18s;
  letter-spacing: 1px;
}
.hq-score-overview-btn:hover { border-color: var(--hq-yellow); color: var(--hq-yellow); }
.hq-score-modal-box { max-width: 340px; }
.hq-score-modal-list { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.hq-score-modal-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--hq-border);
  border-radius: 4px;
}
.hq-score-modal-rank { font-family: 'Orbitron', sans-serif; font-size: 16px; width: 28px; text-align: center; flex-shrink: 0; }
.hq-score-modal-name { flex: 1; font-size: 14px; color: #ccc; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hq-score-modal-pts  { font-family: 'Orbitron', sans-serif; font-size: 20px; font-weight: 900; color: var(--hq-pink); text-shadow: 0 0 6px var(--hq-pink); }
.hq-score-modal-row.rank-1 { border-color: var(--hq-yellow); }
.hq-score-modal-row.rank-1 .hq-score-modal-rank { color: var(--hq-yellow); text-shadow: 0 0 8px var(--hq-yellow); }
.hq-score-modal-row.rank-2 .hq-score-modal-rank { color: #aaa; }
.hq-score-modal-row.rank-3 .hq-score-modal-rank { color: #b06020; }
.hq-wrap.modern .hq-score-overview-btn { border-color: #e4e0ff; color: #9ca3af; font-family: 'DM Sans', sans-serif; border-radius: 8px; }
.hq-wrap.modern .hq-score-overview-btn:hover { border-color: #F59E0B; color: #d97706; }
.hq-wrap.modern .hq-score-modal-row { background: #f9f8ff; border-color: #e4e0ff; border-radius: 12px; }
.hq-wrap.modern .hq-score-modal-row.rank-1 { border-color: #FCD34D; }
.hq-wrap.modern .hq-score-modal-name { color: #374151; font-family: 'DM Sans', sans-serif; }
.hq-wrap.modern .hq-score-modal-pts { color: #6C47FF; text-shadow: none; font-family: 'Plus Jakarta Sans', sans-serif; }
.hq-wrap.modern .hq-score-modal-row.rank-1 .hq-score-modal-rank { color: #F59E0B; text-shadow: none; }

/* ── RAPPORT-KNAPP ───────────────────────────────────────────── */
.hq-report-wrap {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.hq-report-btn {
  background: transparent;
  border: 1px solid #333;
  color: #666;
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: 1px;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 3px;
  transition: all .18s;
  opacity: .7;
}
.hq-report-btn:hover { border-color: #ff6b6b; color: #ff6b6b; opacity: 1; }
.hq-report-btn:disabled { opacity: .3; cursor: default; color: #555; border-color: #333; }
.hq-report-thanks {
  display: none;
  font-size: 10px;
  color: #888;
  font-family: 'Share Tech Mono', monospace;
  letter-spacing: 1px;
}
.hq-report-thanks.vis { display: inline; }

/* Modern overrides */
.hq-wrap.modern .hq-report-btn {
  border-color: #e4e0ff;
  color: #a0a0b8;
  font-family: 'DM Sans', sans-serif;
  border-radius: 8px;
}
.hq-wrap.modern .hq-report-btn:hover { border-color: #f87171; color: #ef4444; }
.hq-wrap.modern .hq-report-thanks { color: #9ca3af; font-family: 'DM Sans', sans-serif; }

/* ── TOPPLINJE: TOGGLE + REGLER ────────────────────────────── */
.hq-top-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 16px 0;
  flex-wrap: wrap;
}
.hq-rules-btn {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  padding: 5px 13px;
  border-radius: 22px;
  border: 1px solid #2a0040;
  background: rgba(0,0,0,.4);
  color: #777;
  cursor: pointer;
  transition: all .2s;
}
.hq-rules-btn:hover { border-color: #888; color: #bbb; }
.hq-wrap.modern .hq-rules-btn {
  background: rgba(255,255,255,.85);
  border-color: #d8d3ff;
  color: #9ca3af;
  font-family: 'DM Sans', sans-serif;
}
.hq-wrap.modern .hq-rules-btn:hover { border-color: #6C47FF; color: #6C47FF; }

.hq-theme-toggle {
  display: inline-flex;
  align-items: center;
  background: rgba(0,0,0,.4);
  border: 1px solid #2a0040;
  border-radius: 30px;
  padding: 2px;
}
.hq-tt-btn {
  font-family: 'Orbitron', sans-serif;
  font-size: 8px; letter-spacing: 2px;
  padding: 5px 11px;
  border-radius: 22px;
  border: none;
  cursor: pointer;
  background: transparent;
  color: #555;
  transition: all .2s;
}
.hq-tt-btn.active { background: var(--hq-pink); color: #fff; text-shadow: 0 0 6px var(--hq-pink); box-shadow: 0 0 12px rgba(255,45,120,.5); }

/* ── REGLER MODAL ────────────────────────────────────────────── */
.hq-regler-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 20000;
  background: rgba(0,0,0,.75);
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}
.hq-regler-modal.open { display: flex; }
.hq-regler-box {
  background: #100020;
  border: 2px solid var(--hq-cyan);
  max-width: 480px;
  width: 100%;
  padding: 28px 24px 22px;
  position: relative;
  box-shadow: 0 0 40px rgba(0,245,255,.15);
  animation: hqFadeIn .2s;
}
.hq-regler-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 20px; font-weight: 900;
  color: var(--hq-cyan);
  text-shadow: 0 0 8px var(--hq-cyan);
  letter-spacing: 2px;
  margin-bottom: 18px;
}
.hq-regler-body { display: flex; flex-direction: column; gap: 12px; }
.hq-regler-body p { font-size: 14px; line-height: 1.7; color: #ccc; }
.hq-regler-close {
  display: block;
  margin: 22px auto 0;
  font-family: 'Orbitron', sans-serif;
  font-size: 11px; letter-spacing: 3px;
  padding: 11px 28px;
  background: transparent;
  border: 2px solid var(--hq-pink);
  color: var(--hq-pink);
  cursor: pointer;
  transition: all .18s;
  text-shadow: 0 0 5px var(--hq-pink);
}
.hq-regler-close:hover { background: rgba(255,45,120,.08); }

/* ═══════════════════════════════════════════════════════════════
   MODERN THEME
═══════════════════════════════════════════════════════════════ */
.hq-wrap.modern {
  --hq-pink:   #6C47FF;
  --hq-cyan:   #0EA5E9;
  --hq-yellow: #F59E0B;
  --hq-purple: #A855F7;
  --hq-green:  #10B981;
  --hq-bg:     #F2F0FF;
  --hq-card:   #FFFFFF;
  --hq-border: #E4E0FF;
  background: var(--hq-bg);
  font-family: 'DM Sans', sans-serif;
  color: #1a1a2e;
}
.hq-wrap.modern::before,
.hq-wrap.modern::after { display: none; }

.hq-wrap.modern .hq-theme-toggle { background: rgba(255,255,255,.85); border-color: #d8d3ff; }
.hq-wrap.modern .hq-tt-btn { color: #9ca3af; }
.hq-wrap.modern .hq-tt-btn.active { background: #6C47FF; color: #fff; text-shadow: none; box-shadow: 0 2px 14px rgba(108,71,255,.35); }

.hq-wrap.modern .hq-logo {
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800;
  color: #1a1a2e; text-shadow: none; letter-spacing: -2px;
  background: linear-gradient(135deg, #6C47FF, #A855F7);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hq-wrap.modern .hq-sub { color: #a0a0b8; letter-spacing: 1px; }
.hq-wrap.modern .hq-slabel { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 3px; color: #6C47FF; text-shadow: none; }

.hq-wrap.modern .hq-dec-btn { background: #fff; border: 2px solid #e8e4ff; border-radius: 18px; color: #374151; box-shadow: 0 2px 12px rgba(108,71,255,.06); font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; }
.hq-wrap.modern .hq-dec-btn .hq-dec-years { color: #a0a0b8; opacity: 1; }
.hq-wrap.modern .hq-dec-btn .hq-dec-count { color: #c4bfff; }
.hq-wrap.modern .hq-dec-btn:hover:not(:disabled) { border-color: #6C47FF; color: #6C47FF; box-shadow: 0 6px 24px rgba(108,71,255,.15); }
.hq-wrap.modern .hq-dec-btn.sel { border-color: #6C47FF; color: #6C47FF; background: #F0EDFF; box-shadow: 0 6px 24px rgba(108,71,255,.18); text-shadow: none; }
.hq-wrap.modern .hq-dec-btn.sel::before { color: #6C47FF; opacity: 1; }
.hq-wrap.modern .hq-ghost-btn { border-color: #e4e0ff; color: #9ca3af; border-radius: 10px; font-family: 'DM Sans', sans-serif; }
.hq-wrap.modern .hq-ghost-btn:hover { border-color: #6C47FF; color: #6C47FF; background: rgba(108,71,255,.04); }
.hq-wrap.modern .hq-stats { color: #b0aacf; }
.hq-wrap.modern .hq-neste-btn { font-family: 'Plus Jakarta Sans', sans-serif; border-color: #6C47FF; color: #fff; background: #6C47FF; border-radius: 14px; text-shadow: none; box-shadow: 0 4px 20px rgba(108,71,255,.35); letter-spacing: 2px; }
.hq-wrap.modern .hq-neste-btn:hover { background: #5538e0; box-shadow: 0 6px 28px rgba(108,71,255,.45); }

.hq-wrap.modern .hq-pc-btn { background: #fff; border: 2px solid #e4e0ff; border-radius: 12px; color: #9ca3af; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; box-shadow: 0 1px 6px rgba(108,71,255,.06); }
.hq-wrap.modern .hq-pc-btn.sel { border-color: #F59E0B; color: #F59E0B; background: #FFFBEB; text-shadow: none; }
.hq-wrap.modern .hq-name-row input { background: #fff; border: 2px solid #e4e0ff; color: #1a1a2e; border-radius: 12px; font-family: 'DM Sans', sans-serif; }
.hq-wrap.modern .hq-name-row input:focus { border-color: #6C47FF; }
.hq-wrap.modern .hq-name-row input::placeholder { color: #c4bfff; }
.hq-wrap.modern .hq-name-num { color: #A855F7; }
.hq-wrap.modern .hq-start-btn { font-family: 'Plus Jakarta Sans', sans-serif; border-color: #10B981; color: #fff; background: #10B981; border-radius: 14px; text-shadow: none; box-shadow: 0 4px 20px rgba(16,185,129,.3); letter-spacing: 2px; }
.hq-wrap.modern .hq-start-btn:hover { background: #059669; box-shadow: 0 6px 26px rgba(16,185,129,.4); }
.hq-wrap.modern .hq-back-lnk { color: #c4bfff; }
.hq-wrap.modern .hq-back-lnk:hover { color: #6C47FF; }

.hq-wrap.modern .hq-song-ctr { color: #c4bfff; font-family: 'DM Sans', sans-serif; }
.hq-wrap.modern .hq-quit-btn { border-color: #e4e0ff; color: #9ca3af; border-radius: 8px; font-family: 'DM Sans', sans-serif; letter-spacing: 1px; }
.hq-wrap.modern .hq-quit-btn:hover { border-color: #f87171; color: #ef4444; }
.hq-wrap.modern .hq-vinyl { box-shadow: 0 6px 32px rgba(108,71,255,.18), 0 2px 10px rgba(0,0,0,.1); }
.hq-wrap.modern .hq-vlabel { background: linear-gradient(135deg, #e8e4ff, #f0edff); border-color: #c4bfff; }

.hq-wrap.modern .hq-card { background: transparent; border: none; box-shadow: none; border-radius: 0; padding: 0; }
.hq-wrap.modern .hq-card::before { background: #F2F0FF; color: #A855F7; text-shadow: none; font-family: 'DM Sans', sans-serif; font-size: 9px; letter-spacing: 2px; }
.hq-wrap.modern .hq-sp-wrap { background: #ede9ff; border-radius: 16px; }
.hq-wrap.modern .hq-sp-wrap iframe { border-radius: 14px; }
.hq-wrap.modern .hq-sp-cover { background: #ede9ff; border: 2px solid #6C47FF; border-radius: 16px; box-shadow: none; }
.hq-wrap.modern .hq-sp-play-btn { border-color: #6C47FF; color: #6C47FF; font-size: 22px; pointer-events: none; }
.hq-wrap.modern .hq-sp-cover:hover .hq-sp-play-btn { background: rgba(108,71,255,.08); }
.hq-wrap.modern .hq-sp-cover.paused .hq-sp-play-btn { border-color: #c4bfff; color: #c4bfff; }
.hq-wrap.modern .hq-sp-cover-label { display: none; }
.hq-wrap.modern .hq-sp-cover-status { color: #6C47FF; font-size: 15px; }
.hq-wrap.modern .hq-sp-cover.paused .hq-sp-cover-status { color: #c4bfff; }
.hq-wrap.modern .hq-song-info { border-top-color: #e4e0ff; }
.hq-wrap.modern .hq-s-artist { color: #6C47FF; text-shadow: none; font-family: 'Plus Jakarta Sans', sans-serif; }
.hq-wrap.modern .hq-s-title { color: #6b7280; }
.hq-wrap.modern .hq-s-year { border-color: #fda4af; color: #f43f5e; text-shadow: none; background: #fff1f2; border-radius: 6px; }
.hq-wrap.modern .hq-vis-btn { border-color: #0EA5E9; color: #0EA5E9; border-radius: 12px; text-shadow: none; font-family: 'Plus Jakarta Sans', sans-serif; }
.hq-wrap.modern .hq-vis-btn.not-ready { border-color: #c4bfff; color: #c4bfff; }
.hq-wrap.modern .hq-vis-btn:hover:not(:disabled) { background: rgba(14,165,233,.06); }

.hq-wrap.modern .hq-turn-banner { background: rgba(245,158,11,.06); border-color: #FCD34D; border-radius: 16px; box-shadow: 0 2px 14px rgba(245,158,11,.10); }
.hq-wrap.modern .hq-turn-label { color: #d97706; font-family: 'DM Sans', sans-serif; }
.hq-wrap.modern .hq-turn-name { color: #D97706; text-shadow: none; font-family: 'Plus Jakarta Sans', sans-serif; }
.hq-wrap.modern .hq-turn-arrow { color: #F59E0B; text-shadow: none; }
.hq-wrap.modern .hq-score-panel-lbl { color: #F59E0B; text-shadow: none; font-family: 'DM Sans', sans-serif; }
.hq-wrap.modern .hq-prow { background: #fff; border: 1.5px solid #e4e0ff; border-radius: 14px; box-shadow: 0 1px 6px rgba(108,71,255,.05); }
.hq-wrap.modern .hq-prow.active-turn { border-color: #FCD34D; background: #FFFDF0; box-shadow: 0 2px 12px rgba(245,158,11,.12); }
.hq-wrap.modern .hq-prow.active-turn .hq-pn { color: #D97706; }
.hq-wrap.modern .hq-prow .hq-pn { color: #374151; font-family: 'DM Sans', sans-serif; }
.hq-wrap.modern .hq-prow .hq-pp { color: #c4bfff; font-family: 'Plus Jakarta Sans', sans-serif; }
.hq-wrap.modern .hq-ptbtn { border-color: #e4e0ff; color: #c4bfff; border-radius: 10px; font-family: 'Plus Jakarta Sans', sans-serif; }
.hq-wrap.modern .hq-ptbtn:hover { border-color: #10B981; color: #10B981; background: rgba(16,185,129,.05); }
.hq-wrap.modern .hq-ptbtn.on { border-color: #10B981; background: #10B981; color: #fff; }
.hq-wrap.modern .hq-next-btn { border-color: #A855F7; color: #A855F7; border-radius: 12px; text-shadow: none; font-family: 'Plus Jakarta Sans', sans-serif; }
.hq-wrap.modern .hq-next-btn:hover { background: rgba(168,85,247,.06); }

.hq-wrap.modern .hq-lbrow { background: #fff; border: 1.5px solid #e4e0ff; border-radius: 16px; box-shadow: 0 2px 10px rgba(108,71,255,.06); }
.hq-wrap.modern .hq-lbrow.r1 { border-color: #FCD34D; box-shadow: 0 4px 18px rgba(245,158,11,.12); }
.hq-wrap.modern .hq-lbrow.r2 { border-color: #d1d5db; }
.hq-wrap.modern .hq-lbrow.r3 { border-color: #fca5a5; }
.hq-wrap.modern .hq-lbrow.r1 .hq-lbrank { color: #F59E0B; text-shadow: none; }
.hq-wrap.modern .hq-lbrow.r2 .hq-lbrank { color: #9ca3af; }
.hq-wrap.modern .hq-lbrow.r3 .hq-lbrank { color: #fb7185; }
.hq-wrap.modern .hq-lbname { color: #374151; font-family: 'DM Sans', sans-serif; }
.hq-wrap.modern .hq-lbpts { color: #6C47FF; text-shadow: none; font-family: 'Plus Jakarta Sans', sans-serif; }
.hq-wrap.modern .hq-lbunit { color: #c4bfff; font-family: 'DM Sans', sans-serif; }
.hq-wrap.modern .hq-replay-btn { border-color: #6C47FF; color: #fff; background: #6C47FF; text-shadow: none; border-radius: 14px; font-family: 'Plus Jakarta Sans', sans-serif; letter-spacing: 2px; }
.hq-wrap.modern .hq-replay-btn:hover { background: #5538e0; box-shadow: 0 6px 26px rgba(108,71,255,.35); }

.hq-wrap.modern .hq-regler-box { background: #fff; border-color: #6C47FF; box-shadow: 0 8px 40px rgba(108,71,255,.15); }
.hq-wrap.modern .hq-regler-title { color: #6C47FF; text-shadow: none; font-family: 'Plus Jakarta Sans', sans-serif; }
.hq-wrap.modern .hq-regler-body p { color: #374151; }
.hq-wrap.modern .hq-regler-close { border-color: #6C47FF; color: #6C47FF; text-shadow: none; border-radius: 10px; font-family: 'Plus Jakarta Sans', sans-serif; }
.hq-wrap.modern .hq-regler-close:hover { background: rgba(108,71,255,.06); }
