:root {
  --bg: #0E0E0F;
  --panel: #18181A;
  --panel-2: #26262A;
  --line: #2A2A2E;
  --line-2: #3A3A40;
  --text: #EDEAE4;
  --muted: #B8B3AA;
  --faint: #8F8A82;
  --accent: #FF8A45;
  --accent-ink: #140A04;
  --warn: #F2C14E;
  --ok: #7FD18B;
  --radius: 14px;
  --spotify: #1ED760;
  --head: 'Oswald', 'Arial Narrow', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
a { color: var(--accent); }
a:hover { color: #FFB07F; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
main.wrap { padding-top: 40px; padding-bottom: 64px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header */
.site-header { border-bottom: 1px solid var(--line); }
.header-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--text); min-height: 44px; }
.brand-a { font-family: 'UnifrakturMaguntia', serif; font-size: 32px; line-height: 1; }
.brand-b { font-family: var(--head); font-weight: 700; font-size: 20px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.header-nav { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.site-footer { border-top: 1px solid var(--line); padding: 20px 0; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; }
.footer-note { margin: 0; max-width: 640px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; }
.footer-links a:hover { color: var(--text); }
.footer-links .footer-coffee { color: var(--accent); }
.footer-links .footer-coffee:hover { color: #FFB07F; }
.footer-bottom { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.footer-kachihro { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--faint); text-decoration: none; font-size: 13px; }
.footer-kachihro:hover { color: var(--text); }

/* buttons */
.btn { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); }
.btn-light { background: var(--text); color: var(--bg); border-color: var(--text); font-weight: 700; }
.btn-accent { background: var(--accent); color: var(--accent-ink); border: 0; font-weight: 800; }
.btn-accent:hover { color: var(--accent-ink); filter: brightness(1.05); }
.btn-big { min-height: 52px; border-radius: 12px; font-size: 17px; justify-content: center; width: 100%; }
/* Spotify sign in / out: Spotify green so it is easy to find */
.btn-spotify { background: var(--spotify); border-color: var(--spotify); color: #000; font-weight: 700; }
.btn-spotify:hover { background: #3BE477; border-color: #3BE477; color: #000; }
.btn-spotify-outline { border: 2px solid var(--spotify); color: var(--spotify); font-weight: 700; }
.btn-spotify-outline:hover { background: var(--spotify); color: #000; }
.spotify-icon { flex: none; }
.back-btn { background: var(--panel-2); border-color: var(--line-2); font-weight: 700; margin-bottom: 18px; }
.back-btn:hover { border-color: var(--accent); color: var(--accent); }
.link-btn { background: none; border: 0; padding: 0; min-height: 44px; color: var(--muted); font-size: 15px; }

/* home */
h1 { margin: 0 0 12px; font-family: var(--head); font-size: clamp(36px, 6vw, 54px); line-height: 1.08; font-weight: 700; text-transform: uppercase; letter-spacing: .01em; }
h2 { margin: 0 0 14px; font-family: var(--head); font-size: 24px; font-weight: 600; letter-spacing: .01em; }
.lead { margin: 0 0 28px; max-width: 640px; color: var(--muted); font-size: 18px; }
.search-label { display: block; font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.search { display: flex; align-items: center; gap: 10px; max-width: 640px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; padding: 0 14px; margin-bottom: 36px; }
.search input { flex: 1; min-width: 0; min-height: 50px; background: transparent; border: 0; font-size: 17px; outline: none; }
.search input::placeholder { color: var(--faint); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.section { margin-bottom: 40px; }

.card { text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 10px; min-height: 200px; text-decoration: none; color: var(--text); }
.card:hover { border-color: var(--line-2); color: var(--text); }
.card-wrap { position: relative; display: flex; }
.card-wrap > .card { flex: 1; }
.card-save { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--muted); font-size: 22px; line-height: 1; display: flex; align-items: center; justify-content: center; }
.card-save:hover { color: var(--accent); border-color: var(--accent); }
.card-save.on { color: var(--accent); border-color: var(--accent); }
.card-wrap .card-kicker { padding-right: 48px; }
.card-kicker { font-family: var(--head); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.card-title { font-family: var(--head); font-size: 26px; font-weight: 600; line-height: 1.15; }
.card-foot { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.card-foot-empty { margin: auto 0; justify-content: center; }
.card-foot-empty .pill { padding: 8px 18px; font-size: 15px; }
.pill { background: var(--panel-2); border-radius: 999px; padding: 4px 12px; font-size: 14px; }
.pill-dashed { background: transparent; border: 1px dashed var(--line-2); color: var(--muted); }
.pill-accent { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.card-cta { font-weight: 700; color: var(--accent); }
.card-cta.muted { color: var(--muted); }

/* festival */
.fest-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin: 8px 0 24px; }
.fest-head p { margin: 0; color: var(--muted); font-size: 18px; }
.notice { display: flex; gap: 12px; align-items: flex-start; background: #17171F; border: 1px solid #2C2C3A; border-radius: 12px; padding: 14px 16px; margin-bottom: 28px; font-size: 15px; }
.notice ul { margin: 4px 0 0; padding-left: 18px; }
.layout { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.layout-main { flex: 999 1 560px; min-width: 0; }
.layout-side { flex: 1 1 320px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 22px; position: sticky; top: 16px; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.genre { min-height: 44px; padding: 0 16px; border-radius: 999px; font-size: 15px; font-weight: 600; background: transparent; border: 1px solid var(--line-2); }
.genre[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.genre[aria-pressed="mixed"] { background: #2E2620; border: 1px dashed var(--muted); }
.genre .count { opacity: .8; font-weight: 500; margin-left: 4px; }

.bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; }
.bar h2 { margin: 0; font-size: 20px; }
.bar-actions { display: flex; gap: 8px; }
.bar-actions button { min-height: 40px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line-2); background: transparent; font-size: 14px; }

.bands { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.band { display: flex; gap: 10px; align-items: flex-start; text-align: left; border-radius: 10px; padding: 10px 12px; min-height: 44px; background: #151517; border: 1px solid var(--line); cursor: pointer; }
.band input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--accent); }
.band.on { background: #221A15; border-color: #6B4A33; }
.band-name { font-weight: 600; line-height: 1.3; display: block; }
.band-genre { font-size: 13px; color: var(--muted); line-height: 1.3; display: block; }
.band-tag { font-size: 13px; color: var(--muted); line-height: 1.3; display: block; margin-top: 3px; }
.band-tag.warn { color: var(--warn); }

.field-label { display: block; font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.text-input { width: 100%; background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 14px; font-size: 16px; }
.stepper { display: flex; align-items: center; gap: 12px; }
.stepper button { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg); font-size: 22px; }
.stepper output { font-family: var(--head); font-size: 38px; font-weight: 700; min-width: 44px; text-align: center; }
.total { border-top: 1px solid var(--line); padding-top: 18px; }
.total-num { font-family: var(--head); font-size: 44px; font-weight: 700; line-height: 1; }
.total-num span { font-family: 'Inter', system-ui, sans-serif; font-size: 18px; font-weight: 600; color: var(--muted); }
.total p { margin: 6px 0 0; font-size: 14px; color: var(--muted); }

.empty { background: var(--panel); border: 1.5px dashed var(--line-2); border-radius: var(--radius); padding: 28px; max-width: 720px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.empty h2 { margin: 0; font-size: 24px; }
.empty p { margin: 0; color: var(--muted); }

/* progress + done */
.center { max-width: 640px; margin: 24px auto 0; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.center h1 { font-size: 40px; }
.tick { width: 72px; height: 72px; border-radius: 999px; background: #1F3323; display: flex; align-items: center; justify-content: center; }
.progress { width: 100%; height: 8px; border-radius: 999px; background: var(--panel-2); overflow: hidden; }
.progress > div { height: 100%; background: var(--accent); transition: width .2s; }
.problems { text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; width: 100%; font-size: 15px; }
.problems ul { margin: 6px 0 0; padding-left: 18px; color: var(--muted); }
.error { color: #FF9C8A; }

@media (max-width: 720px) {
  .layout-side { position: static; }
}
