:root {
  --ink: #12171b;
  --night: #1b242b;
  --rain: #2c3a44;
  --sky: #7ab8e6;
  --paper: #eef1f2;
  --muted: #8fa0ab;
}
body { background: var(--night); color: var(--paper); font-family: 'Archivo', system-ui, sans-serif; line-height: 1.55; }
a { color: var(--sky); }
a:hover { color: #fff; }
h1, h2, h3 { font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 6vw, 4rem); line-height: 1; }
.lead-in { color: var(--muted); max-width: 60ch; }

.site-nav { background: var(--ink); border-bottom: 3px solid var(--sky); }
.site-nav .navbar-brand { color: var(--paper); font-weight: 800; letter-spacing: -.01em; }
.site-nav .nav-link { color: var(--muted); }
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: var(--paper); }
.navbar-toggler { border-color: var(--rain); }
.navbar-toggler-icon { filter: invert(1); }
.year-menu { background: var(--ink); max-height: 60vh; overflow-y: auto; }
.year-menu .dropdown-item { color: var(--paper); }
.year-menu .dropdown-item:hover { background: var(--rain); }

#app { transition: opacity .15s; }
#app.is-loading { opacity: .5; }

/* Year index */
.year-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; }
.year-tile { display: block; padding: 1rem; background: var(--rain); border-left: 4px solid var(--sky); text-decoration: none; color: var(--paper); }
.year-tile strong { display: block; font-size: 2rem; font-weight: 800; line-height: 1.1; }
.year-tile span { color: var(--muted); font-size: .9rem; }
.year-tile:hover { background: #38495a; color: #fff; }

/* Concert rows */
.gig { display: flex; gap: 1.25rem; align-items: baseline; padding: 1rem 0; border-bottom: 1px solid var(--rain); text-decoration: none; color: var(--paper); }
.gig:hover { color: #fff; background: rgba(255,255,255,.03); }
.gig-date { flex: 0 0 7.5rem; color: var(--sky); font-weight: 600; }
.gig-venue { font-weight: 800; font-size: 1.15rem; }
.gig-meta { color: var(--muted); font-size: .92rem; }
@media (max-width: 575px) { .gig { flex-direction: column; gap: .1rem; } }

/* Setlist sheet: the one memorable element */
.setlist-sheet { background: var(--paper); color: var(--ink); padding: 2rem 2.25rem; max-width: 34rem; transform: rotate(-.6deg); box-shadow: 0 14px 30px rgba(0,0,0,.45); }
.setlist-sheet ol { list-style: none; padding: 0; margin: 0; font-family: 'Permanent Marker', cursive; font-size: 1.35rem; line-height: 1.7; counter-reset: s; }
.setlist-sheet li { counter-increment: s; }
.setlist-sheet li::before { content: counter(s) "."; display: inline-block; width: 2.2rem; color: #6b7a85; }
.setlist-sheet .song-note { font-family: 'Archivo', sans-serif; font-size: .8rem; color: #55636d; margin-left: .5rem; }
.setlist-sheet .encore { font-family: 'Permanent Marker', cursive; margin: 1rem 0 .25rem; border-top: 2px dashed #9aa8b1; padding-top: .5rem; color: #b3261e; }
.empty { border: 2px dashed var(--rain); padding: 2rem; color: var(--muted); }

/* Forms / admin */
.panel { background: var(--rain); padding: 1.5rem; }
.panel .form-control, .panel .form-select { background: var(--ink); border-color: #44566a; color: var(--paper); }
.panel .form-control:focus { border-color: var(--sky); box-shadow: 0 0 0 .2rem rgba(122,184,230,.25); background: var(--ink); color: var(--paper); }
.panel label { font-weight: 600; margin-bottom: .25rem; }
.btn-sky { background: var(--sky); color: var(--ink); font-weight: 600; border: 0; }
.btn-sky:hover { background: #a3d0f0; color: var(--ink); }
.site-foot { color: var(--muted); font-size: .85rem; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }

/* Footer + generic content pages */
.site-foot-wrap { border-top: 1px solid var(--rain); margin-top: 2rem; }
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--paper); }
.page-body { max-width: 65ch; }
.page-body h2 { margin-top: 2rem; font-size: 1.4rem; }

/* Show rows: badges, sorting, gallery, admin */
.gig-main { flex: 1 1 auto; min-width: 0; }
.gig-badges { margin-left: auto; display: flex; gap: .5rem; flex-wrap: wrap; justify-content: flex-end; }
.badge-songs { font-size: .8rem; background: var(--rain); color: var(--paper); padding: .15rem .65rem; border-radius: 2px; white-space: nowrap; }
.badge-songs.none { background: transparent; border: 1px dashed #44566a; color: var(--muted); }
@media (max-width: 575px) { .gig-badges { margin-left: 0; justify-content: flex-start; } }
.sort-bar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.sort-bar a { padding: .3rem .8rem; border: 1px solid var(--rain); color: var(--muted); text-decoration: none; }
.sort-bar a:hover { color: var(--paper); border-color: var(--sky); }
.sort-bar a.on { background: var(--sky); border-color: var(--sky); color: var(--ink); font-weight: 600; }
.sort-bar .sep { width: 1px; height: 1.6rem; background: var(--rain); margin: 0 .25rem; }
.tour-head { color: var(--sky); padding-top: .5rem; border-bottom: 2px solid var(--sky); padding-bottom: .4rem; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .6rem; }
.gallery a { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--rain); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.gallery a:hover img { transform: scale(1.04); }
.admin-tabs { border-bottom: 1px solid var(--rain); gap: .25rem; }
.admin-tabs .nav-link { color: var(--muted); border-bottom: 3px solid transparent; }
.admin-tabs .nav-link:hover { color: var(--paper); }
.admin-tabs .nav-link.active { color: var(--paper); border-bottom-color: var(--sky); }
.admin-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .75rem; }
.admin-thumbs figure { margin: 0; }
.admin-thumbs img { width: 100%; aspect-ratio: 4/3; object-fit: cover; margin-bottom: .35rem; }
.admin-thumbs figcaption { font-size: .8rem; color: var(--muted); margin-bottom: .35rem; }
.panel .form-check-input { background-color: var(--ink); border-color: #44566a; }
.panel .form-check-input:checked { background-color: var(--sky); border-color: var(--sky); }
.panel .form-control::placeholder,
.panel textarea.form-control::placeholder,
.panel input.form-control::placeholder {
  color: #8fa0ab !important;
  opacity: 1 !important;
  -webkit-text-fill-color: #8fa0ab;
}

.video-frame { max-width: 960px; background: #000; }

/* Contact + messages */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.msg-card.is-new { border-left: 4px solid var(--sky); }
.msg-body { white-space: normal; overflow-wrap: anywhere; }

/* Spotlight search */
.search-btn { display: inline-flex; align-items: center; gap: .5rem; background: var(--night); color: var(--muted); border: 1px solid var(--rain); border-radius: 8px; padding: .3rem .6rem; font-size: .9rem; }
.search-btn:hover { color: var(--paper); border-color: var(--sky); }
.kbd-hint, .spot-foot kbd { font-family: inherit; font-size: .72rem; background: var(--rain); color: var(--muted); border-radius: 4px; padding: .05rem .35rem; }
.spot { position: fixed; inset: 0; z-index: 2000; display: flex; justify-content: center; align-items: flex-start; padding: 15vh 1rem 1rem; background: rgba(6, 9, 14, .72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.spot[hidden] { display: none; }
body.spot-open { overflow: hidden; }
.spot-panel { width: 100%; max-width: 640px; }
.spot-bar { display: flex; align-items: center; gap: .75rem; background: #10161c; border: 1px solid #34465a; border-radius: 12px; padding: 0 1rem; color: var(--muted); box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.spot-bar:focus-within { border-color: var(--sky); }
.spot-bar input { flex: 1; background: transparent; border: 0; outline: 0; color: var(--paper); font-size: 1.1rem; padding: .95rem 0; }
.spot-results { margin-top: .6rem; background: #131a21; border: 1px solid #2c3a44; border-radius: 12px; padding: .5rem; max-height: 56vh; overflow-y: auto; box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.spot-group { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: .6rem .6rem .25rem; }
.spot-item { display: flex; align-items: center; gap: .75rem; padding: .45rem .6rem; border-radius: 8px; color: var(--paper); text-decoration: none; }
.spot-item.on { background: rgba(122, 184, 230, .16); color: #fff; }
.spot-ico { flex: 0 0 32px; height: 32px; border-radius: 7px; display: grid; place-items: center; background: var(--rain); color: var(--paper); }
.spot-ico svg { width: 17px; height: 17px; }
.ico-year { background: #1d3a5e; color: #8fc4f0; }
.ico-tour { background: #1b4a3b; color: #7fd6b2; }
.ico-show { background: #4d3a1a; color: #f0c27a; }
.ico-song { background: #3e2c57; color: #c7a6f0; }
.ico-page { background: #2c3a44; color: #b8c6d0; }
.spot-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.spot-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spot-sub { font-size: .82rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spot-badge { font-size: .78rem; background: var(--rain); color: var(--paper); padding: .1rem .55rem; border-radius: 6px; white-space: nowrap; }
.spot-empty { padding: 1.2rem; text-align: center; color: var(--muted); }
.spot-foot { display: flex; gap: 1rem; justify-content: center; margin-top: .6rem; font-size: .78rem; color: var(--muted); }
@media (max-width: 575px) { .spot { padding-top: 8vh; } .search-btn .kbd-hint { display: none; } .spot-foot { display: none; } }

/* Stats + home extras */
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; }
.stat-tile { background: var(--rain); padding: .9rem 1rem; border-left: 4px solid var(--sky); }
.stat-tile strong { display: block; font-size: 1.9rem; font-weight: 800; line-height: 1.1; }
.stat-tile span { color: var(--muted); font-size: .88rem; }
.stat-bars { list-style: none; margin: 0; padding: 0; }
.stat-bars li { display: grid; grid-template-columns: minmax(7rem, 38%) 1fr 3rem; gap: .75rem; align-items: center; padding: .3rem 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.sb-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-label small { display: block; color: var(--muted); font-size: .76rem; }
.sb-bar { height: 8px; background: var(--rain); border-radius: 4px; overflow: hidden; }
.sb-bar i { display: block; height: 100%; background: var(--sky); }
.sb-n { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.yr-chart { display: flex; align-items: flex-end; gap: 6px; height: 190px; padding-top: .5rem; overflow-x: auto; }
.yr-col { flex: 1 0 22px; max-width: 46px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.yr-col i { display: block; width: 100%; background: var(--sky); min-height: 2px; border-radius: 2px 2px 0 0; }
.yr-col span { font-size: .66rem; color: var(--muted); writing-mode: vertical-rl; transform: rotate(180deg); }
.fact { padding: .5rem 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.fact small { display: block; color: var(--muted); }
.tour-tile strong { font-size: 1.15rem; line-height: 1.25; }
.top-songs { list-style: none; padding: 0; margin: 0; }
.top-songs li { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; border-bottom: 1px solid var(--rain); }
.top-songs span { color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: .4rem; background: var(--rain); padding: .2rem .7rem; border-radius: 999px; font-size: .88rem; text-decoration: none; color: var(--paper); }
.chip:hover { background: #38495a; color: #fff; }
.setlist-sheet .song-link { color: inherit; text-decoration: none; }
.setlist-sheet .song-link:hover { color: #b3261e; }

.summary { max-width: 62ch; color: var(--paper); opacity: .85; }
