/* Hitster hemma – gemensam stil */
:root {
  --bg: #0f0d14;
  --bg-2: #1a1622;
  --panel: #231e2d;
  --line: #3a3346;
  --text: #f4efe6;
  --muted: #a69cb5;
  --accent: #ff5a36;
  --accent-2: #ffb23f;
  --ok: #2fd18b;
  --bad: #ff4d6d;
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: radial-gradient(1200px 700px at 80% -10%, #2b1b2e 0%, transparent 60%), var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0 0 .4em; line-height: 1.1; letter-spacing: -.01em; }
p { margin: 0 0 .6em; }
a { color: var(--accent-2); }
.muted { color: var(--muted); }
.hidden { display: none !important; }

button, .btn {
  font: inherit;
  font-weight: 650;
  border: 0;
  border-radius: 999px;
  padding: .75em 1.4em;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: transform .08s ease, filter .15s ease;
}
button:hover { filter: brightness(1.08); }
button:active { transform: scale(.97); }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 3px;
}
button.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 2px var(--line); }
button.small { padding: .45em .9em; font-size: .9em; }
button:disabled { opacity: .45; cursor: not-allowed; }

input, select, textarea {
  font: inherit;
  color: var(--text);
  background: var(--bg-2);
  border: 2px solid var(--line);
  border-radius: 10px;
  padding: .65em .8em;
  width: 100%;
}
label { display: block; font-size: .9em; color: var(--muted); margin: .6em 0 .25em; }

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2em;
}

.brand {
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Kort på tidslinjen – färg efter decennium */
.card {
  --c: #6c5ce7;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 85%, #fff 15%), var(--c));
  color: #fff;
  border-radius: 12px;
  padding: .6em .7em;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
  min-width: 7.5em;
}
.card .year { font-size: 1.9em; font-weight: 900; line-height: 1; }
.card .artist { font-weight: 700; font-size: .85em; margin-top: .3em; }
.card .title { font-size: .8em; opacity: .92; }
.card.new { outline: 3px solid #fff; }
.d1950, .d1900, .d1910, .d1920, .d1930, .d1940 { --c: #8a6d3b; }
.d1960 { --c: #c0392b; }
.d1970 { --c: #d35400; }
.d1980 { --c: #c2185b; }
.d1990 { --c: #7b1fa2; }
.d2000 { --c: #1565c0; }
.d2010 { --c: #00897b; }
.d2020, .d2030 { --c: #2e7d32; }

.tokens { color: var(--accent-2); letter-spacing: .12em; white-space: nowrap; }
.tag { display: inline-block; font-size: .75em; font-weight: 700; padding: .15em .6em; border-radius: 99px; background: var(--bg-2); color: var(--muted); border: 1px solid var(--line); }
.marker {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.2em; padding: .4em .6em; border-radius: 10px;
  font-weight: 800; font-size: .85em; color: #111; background: var(--accent-2);
  writing-mode: vertical-rl; transform: rotate(180deg);
}
.marker.mine { background: #fff; }
.marker.ok { background: var(--ok); color: #0b2a1c; }
.marker.bad { background: var(--bad); color: #fff; }
.hitster-btn {
  background: linear-gradient(135deg, var(--bad), var(--accent));
  font-weight: 900; letter-spacing: .06em; text-transform: uppercase;
}

.status-dot { display: inline-block; width: .6em; height: .6em; border-radius: 50%; background: var(--ok); margin-right: .4em; }
.status-dot.off { background: var(--muted); }

.toast {
  position: fixed; left: 50%; bottom: 1.2em; transform: translateX(-50%);
  background: var(--bad); color: #fff; padding: .7em 1.2em; border-radius: 999px;
  font-weight: 650; z-index: 50; max-width: 92vw; text-align: center;
}
