@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Palette and type follow music.tonypreece.co.uk */
:root {
  --bg: #020403;
  --surface: rgba(2, 8, 7, .72);
  --surface-2: rgba(255, 255, 255, .06);
  --border: rgba(180, 255, 209, .16);
  --text: #f5fff8;
  --soft: #dff5e7;
  --muted: #93a89b;
  --accent: #00d26a;
  --accent-ink: #00170b;
  --navy: #12234d;
  --navy-soft: rgba(18, 35, 77, .68);
  /* Confidence colours are semantic; labels always accompany them */
  --c-very-high: #00d26a;
  --c-high: #a3e635;
  --c-medium: #fbbf24;
  --c-low: #fb7185;
  --radius: 22px;
  --gutter: max(16px, env(safe-area-inset-left));
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--text); font: 16px/1.5 var(--font);
  min-height: 100dvh; display: flex; flex-direction: column;
  background:
    radial-gradient(circle at 20% 0%, rgba(0, 187, 99, .18), transparent 28rem),
    radial-gradient(circle at 85% 0%, rgba(18, 35, 77, .55), transparent 34rem),
    linear-gradient(135deg, #020403 0%, #07110d 42%, #020607 100%) fixed;
  background-color: var(--bg);
}
a { color: var(--accent); }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, h4 { line-height: 1.05; margin: 0; letter-spacing: -.03em; font-weight: 800; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; z-index: 9; border-radius: 8px; }

.site-header { display: flex; justify-content: space-between; align-items: center; padding: 16px var(--gutter) 8px; max-width: 760px; width: 100%; margin: 0 auto; }
.brand { color: var(--text); text-decoration: none; font-size: 1.35rem; font-weight: 800; letter-spacing: -.04em; display: flex; gap: 9px; align-items: center; }
.brand b { color: var(--accent); font-weight: 800; }
.brand svg { width: 28px; height: 28px; flex: none; }
.net { background: var(--navy-soft); border: 1px solid var(--border); color: var(--soft); font-size: .8rem; font-weight: 700; padding: 3px 12px; border-radius: 99px; }

main { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 8px var(--gutter) 32px; outline: none; }
.hero h1 { font-size: clamp(2.2rem, 10vw, 3.6rem); letter-spacing: -.05em; line-height: .98; margin: 10px 0 12px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lede { color: var(--soft); margin: 0 0 18px; max-width: 34rem; }
.eyebrow, .group, .enc, .dl dt, .tag { font-size: .72rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }

.card, .panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 18px 50px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .07); }
.panel { padding: 18px; margin-block: 14px; }
.panel > h2 { font-size: 1.45rem; margin-bottom: 12px; }
.panel > h2 small, .muted { color: var(--muted); font-weight: 500; letter-spacing: 0; }
.small { font-size: .875rem; }

/* form */
form.search { display: grid; gap: 16px; padding: 18px; }
.field { display: grid; gap: 6px; position: relative; }
.field > label, .field > .lab { font-weight: 700; font-size: .9rem; }
input, select { width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; color: var(--text); background: rgba(2, 8, 7, .72); border: 1px solid var(--border); border-radius: 14px; }
input:focus, select:focus { outline: none; border-color: rgba(0, 210, 106, .72); box-shadow: 0 0 0 3px rgba(0, 210, 106, .14); }
select option { background: #0b1612; }
input::placeholder { color: var(--muted); }
.row { display: flex; gap: 8px; flex-wrap: wrap; }
.row > input { flex: 1 1 160px; }
.btn { min-height: 48px; padding: 0 20px; font: inherit; font-weight: 800; border: 0; border-radius: 999px; cursor: pointer; background: var(--accent); color: var(--accent-ink); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.btn:hover { color: var(--accent-ink); box-shadow: 0 0 0 3px rgba(0, 210, 106, .25); }
.btn.ghost { background: var(--navy-soft); color: var(--text); border: 1px solid rgba(0, 210, 106, .34); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
.btn.ghost:hover { color: #fff; border-color: rgba(0, 210, 106, .7); box-shadow: 0 0 0 3px rgba(0, 210, 106, .16); }
.btn.small { min-height: 40px; padding: 0 14px; font-size: .9rem; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.help { color: var(--muted); font-size: .85rem; margin: 0; }
.error { color: #ffc2cb; background: rgba(251, 113, 133, .12); border: 1px solid rgba(251, 113, 133, .4); padding: 10px 14px; border-radius: 14px; margin: 0; }
.notice { background: var(--navy-soft); border: 1px solid var(--border); border-left: 4px solid var(--accent); padding: 10px 14px; border-radius: 14px; margin: 12px 0; color: var(--soft); }
.notice.warn { border-left-color: var(--c-medium); }

.suggest { position: absolute; top: 100%; left: 0; right: 0; z-index: 5; margin: 6px 0 0; padding: 6px; list-style: none; background: #08120e; border: 1px solid rgba(0, 210, 106, .5); border-radius: 16px; max-height: 280px; overflow: auto; box-shadow: 0 24px 60px rgba(0, 0, 0, .7); }
.suggest button { all: unset; box-sizing: border-box; display: block; width: 100%; padding: 10px 12px; border-radius: 12px; cursor: pointer; min-height: 44px; }
.suggest button:hover, .suggest button:focus-visible { background: var(--surface-2); }
.suggest .k { font-size: .65rem; color: var(--accent); font-weight: 900; letter-spacing: .1em; margin-right: 8px; }
.picked { display: flex; align-items: center; gap: 8px; background: rgba(2, 8, 7, .72); border: 1px solid rgba(0, 210, 106, .5); border-radius: 14px; padding: 8px 14px; min-height: 48px; }
.picked span { flex: 1; } .picked button { all: unset; cursor: pointer; padding: 6px 10px; color: var(--muted); }
.picked button:hover { color: #fff; }

/* results */
.summary { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 4px; }
.pill { background: var(--navy-soft); border: 1px solid var(--border); border-radius: 99px; padding: 4px 14px; font-size: .875rem; font-weight: 600; }
a.pill { color: var(--accent); text-decoration: none; }
.group { color: var(--accent); margin: 24px 0 10px; }
.gigs { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
a.gig { display: grid; grid-template-columns: 58px 1fr auto; gap: 14px; align-items: center; padding: 12px 14px 12px 12px; color: var(--text); text-decoration: none; }
a.gig:hover, a.gig:focus-visible { border-color: rgba(0, 210, 106, .6); box-shadow: 0 0 0 3px rgba(0, 210, 106, .12), 0 18px 50px rgba(0, 0, 0, .4); }
.when { text-align: center; background: var(--navy-soft); border: 1px solid var(--border); border-radius: 14px; padding: 7px 0; line-height: 1; }
.when .day { display: block; font-size: .65rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); } .when b { display: block; font-size: 1.5rem; letter-spacing: -.03em; margin: 3px 0; } .when .mon { font-size: .65rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.gig h3 { font-size: 1.15rem; } .gig p { margin: 3px 0 0; color: var(--muted); font-size: .9rem; line-height: 1.3; }
.gig .meta { text-align: right; font-size: .85rem; color: var(--muted); display: grid; gap: 4px; } .gig .time { color: var(--text); font-weight: 800; font-size: 1.05rem; }
.tag { display: inline-block; padding: 2px 9px; border-radius: 99px; background: var(--c-medium); color: #1a1200; vertical-align: middle; }

/* gig */
.back { display: inline-block; margin: 6px 0 10px; font-weight: 700; text-decoration: none; }
.gig-hero { position: relative; overflow: hidden; border-radius: 28px; border: 1px solid var(--border); background: var(--surface); box-shadow: 0 24px 70px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .08); }
.gig-hero img { width: 100%; aspect-ratio: 16/8; object-fit: cover; display: block; opacity: .55; }
.gig-hero .txt { padding: 18px; }
.gig-hero.has-img .txt { position: absolute; inset: auto 0 0 0; background: linear-gradient(transparent, rgba(2, 4, 3, .95) 55%); padding-top: 48px; }
.gig-hero h1 { font-size: clamp(2rem, 9vw, 3.2rem); letter-spacing: -.055em; line-height: .95; }
.gig-hero p { margin: 6px 0 0; color: var(--soft); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.timeline li { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: baseline; padding: 11px 14px; background: var(--surface-2); border: 1px solid rgba(180, 255, 209, .1); border-radius: 18px; }
.timeline li.headline { border-color: rgba(0, 210, 106, .55); background: rgba(0, 210, 106, .08); }
.timeline .t { font-weight: 800; font-variant-numeric: tabular-nums; font-size: 1.1rem; letter-spacing: -.02em; }
.timeline .n { font-weight: 700; } .timeline .d { color: var(--muted); font-size: .85rem; display: block; }
.timeline li.edge { background: transparent; border: 1px dashed rgba(180, 255, 209, .25); }

.conf { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 800; padding: 3px 12px; border-radius: 99px; border: 1px solid currentColor; white-space: nowrap; }
.conf::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.lv-very-high { color: var(--c-very-high); } .lv-high { color: var(--c-high); } .lv-medium { color: var(--c-medium); } .lv-low { color: var(--c-low); }
.act-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.act-head h3 { font-size: 1.5rem; }
.songs { list-style: none; counter-reset: s; padding: 0; margin: 10px 0 0; display: grid; gap: 2px; }
.songs li { counter-increment: s; display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; align-items: center; padding: 8px 4px; border-bottom: 1px solid rgba(180, 255, 209, .1); }
.songs li::before { content: counter(s); color: var(--muted); font-size: .8rem; text-align: right; font-variant-numeric: tabular-nums; }
.songs .nm { font-weight: 600; } .songs .nm small { color: var(--muted); display: block; font-size: .75rem; font-weight: 500; }
.bar { width: 64px; height: 6px; background: rgba(255, 255, 255, .1); border-radius: 3px; overflow: hidden; }
.bar i { display: block; height: 100%; background: currentColor; border-radius: 3px; }
.r0 { width: 0 } .r1 { width: 10% } .r2 { width: 20% } .r3 { width: 30% } .r4 { width: 40% } .r5 { width: 50% } .r6 { width: 60% } .r7 { width: 70% } .r8 { width: 80% } .r9 { width: 90% } .r10 { width: 100% }
.songs .rt { display: flex; align-items: center; gap: 8px; font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.enc { color: var(--accent); margin: 18px 0 0; }
.story { margin: 12px 0 0; padding-left: 18px; color: var(--soft); } .story li { margin: 5px 0; }
details { margin-top: 12px; } summary { cursor: pointer; font-weight: 700; min-height: 36px; display: flex; align-items: center; }
details ul { padding-left: 18px; color: var(--soft); }
.dl { display: grid; gap: 12px; margin: 0; } .dl dt { color: var(--muted); } .dl dd { margin: 2px 0 0; }
ul.plain { padding-left: 18px; margin: 6px 0; } ul.plain li { margin: 6px 0; }

.skeleton { height: 72px; border-radius: var(--radius); background: linear-gradient(90deg, rgba(255, 255, 255, .03) 25%, rgba(255, 255, 255, .08) 50%, rgba(255, 255, 255, .03) 75%); background-size: 200% 100%; animation: sh 1.4s infinite; margin-block: 10px; }
@keyframes sh { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } * { scroll-behavior: auto !important; } }

.prose { background: var(--surface); border: 1px solid var(--border); border-radius: 28px; padding: 22px 20px; box-shadow: 0 24px 70px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .08); }
.prose h1 { font-size: clamp(2rem, 9vw, 3rem); letter-spacing: -.05em; margin: 0 0 14px; }
.prose h2 { font-size: 1.3rem; margin: 26px 0 6px; } .prose p, .prose li { color: var(--soft); } .prose ul { padding-left: 20px; }
.site-footer { border-top: 1px solid var(--border); background: rgba(2, 4, 3, .8); padding: 22px var(--gutter) calc(22px + env(safe-area-inset-bottom)); text-align: center; color: var(--muted); font-size: .85rem; }
.site-footer nav { display: flex; justify-content: center; gap: 4px 8px; flex-wrap: wrap; margin-bottom: 10px; } .site-footer nav a { padding: 8px 14px; font-weight: 700; color: var(--soft); text-decoration: none; border-radius: 99px; } .site-footer nav a:hover { background: var(--surface-2); color: #fff; }
.site-footer .support { display: inline-flex; align-items: center; gap: 6px; color: var(--soft); font-weight: 700; text-decoration: none; } .site-footer .support:hover { color: #fff; }
.site-footer p { max-width: 560px; margin: 6px auto; }
.visually { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
main:focus, main:focus-visible { outline: none; }

/* expandable "more about this prediction" card section */
.legend { margin-top: 12px; }
details.more { margin-top: 14px; }
details.more > summary { list-style: none; width: 100%; justify-content: center; }
details.more > summary::-webkit-details-marker { display: none; }
details.more .when-open, details.more[open] .when-closed { display: none; }
details.more[open] .when-open { display: inline; }
.more-body { margin-top: 6px; padding-top: 4px; border-top: 1px solid rgba(180, 255, 209, .1); }

/* error pages */
.oops { text-align: center; padding: 28px 20px 30px; margin-top: 22px; }
.oops .oops-code { margin: 0; font-size: clamp(4.5rem, 24vw, 8rem); font-weight: 900; letter-spacing: -.08em; line-height: .9; color: var(--accent); text-shadow: 0 0 60px rgba(0, 210, 106, .35); }
.oops h1 { font-size: clamp(1.7rem, 7vw, 2.4rem); margin: 10px 0 8px; }
.oops p { color: var(--soft); max-width: 30rem; margin-inline: auto; }
.oops .btn { margin-top: 8px; }
.oops .detail { color: var(--muted); font-size: .85rem; }

/* calm loading line (shown while a busy data provider is retried in the background) */
.waitline { display: flex; align-items: center; gap: 12px; margin: 12px 0 4px; color: var(--soft); font-size: .95rem; }
.eq { display: inline-flex; align-items: flex-end; gap: 3px; height: 18px; flex: none; }
.eq i { width: 4px; border-radius: 2px; background: var(--accent); animation: eq 1.1s ease-in-out infinite; height: 40%; }
.eq i:nth-child(2) { animation-delay: .15s; } .eq i:nth-child(3) { animation-delay: .3s; } .eq i:nth-child(4) { animation-delay: .45s; }
@keyframes eq { 0%, 100% { height: 25%; } 50% { height: 100%; } }
@media (prefers-reduced-motion: reduce) { .eq i { animation: none; height: 70%; } }

/* sharing, playlists, notices */
.share-row { margin: 12px 0; }
.share-menu { margin-top: 10px; }
.flash { max-width: 760px; margin: 8px auto 0; padding: 12px 16px; border-radius: 14px; background: var(--navy-soft); border: 1px solid var(--border); border-left: 4px solid var(--accent); color: var(--soft); width: calc(100% - 2 * var(--gutter)); }
.flash.bad { border-left-color: var(--c-low); }
.flash[hidden] { display: none; }
details.playlist { margin-top: 14px; }
details.playlist > summary { list-style: none; width: 100%; justify-content: center; }
details.playlist > summary::-webkit-details-marker { display: none; }
.tag.support { background: var(--navy-soft); color: var(--soft); border: 1px solid var(--border); }
.chips .btn[hidden] { display: none; }

/* ---------- splash screen ---------- */
.splash { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; cursor: pointer; overflow: hidden;
  background: radial-gradient(circle at 50% 38%, #0a1f17 0%, #020403 62%);
  /* No-JS fallback: dismiss itself even if the script never runs */
  animation: splash-nojs .5s ease 7s forwards; }
.no-splash .splash, .splash-done .splash { display: none; }
.splash-glow { position: absolute; width: 90vmin; height: 90vmin; left: 50%; top: 38%; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 210, 106, .28), rgba(18, 35, 77, .25) 45%, transparent 70%); filter: blur(12px);
  animation: glow 4s ease-in-out infinite alternate; }
.splash-inner { position: relative; display: grid; justify-items: center; text-align: center; max-width: 30rem; }
.splash-logo { width: clamp(104px, 30vw, 148px); height: auto; border-radius: 28%; box-shadow: 0 0 0 1px rgba(180, 255, 209, .2), 0 20px 60px rgba(0, 210, 106, .25);
  animation: logo-in .9s cubic-bezier(.2, .9, .3, 1.2) both; }
.splash-logo .b { transform-box: fill-box; transform-origin: 50% 100%; animation: eq 1.1s ease-in-out infinite alternate both; }
.splash-logo .b1 { animation-delay: .1s; } .splash-logo .b2 { animation-delay: .35s; } .splash-logo .b3 { animation-delay: .2s; } .splash-logo .b4 { animation-delay: .5s; }
.splash-def { margin-top: 28px; }
.splash-def p { margin: 0; }
.sd-head { font-size: clamp(1.9rem, 8vw, 2.6rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; animation: rise .7s .5s ease both; }
.sd-word { color: var(--text); } .sd-word::first-letter { color: var(--accent); }
.sd-pos { font-size: .45em; font-weight: 500; font-style: italic; color: var(--muted); letter-spacing: 0; margin-left: .3em; }
.sd-phon { margin-top: 6px !important; color: var(--accent); font-weight: 600; letter-spacing: .04em; animation: rise .7s .8s ease both; }
.sd-text { margin-top: 16px !important; color: var(--soft); font-size: clamp(1rem, 4.2vw, 1.15rem); line-height: 1.55; animation: rise .8s 1.2s ease both; }
.splash-skip { margin-top: 32px; background: none; border: 0; color: var(--muted); font: inherit; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; animation: fade 1s 2s ease both; }

.splash.leaving { pointer-events: none; animation: splash-out .9s cubic-bezier(.7, 0, .3, 1) forwards; }
.splash.leaving .splash-inner { animation: inner-out .6s ease forwards; }
.revealing .site-header { animation: rise .8s .35s cubic-bezier(.2, .8, .2, 1) both; }
.revealing main { animation: rise .9s .5s cubic-bezier(.2, .8, .2, 1) both; }
.revealing .site-footer { animation: fade 1s .8s ease both; }

@keyframes logo-in { from { opacity: 0; transform: scale(.4) rotate(-12deg); } to { opacity: 1; transform: none; } }
@keyframes eq { from { transform: scaleY(.45); } to { transform: scaleY(1.15); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes glow { from { opacity: .6; scale: .9; } to { opacity: 1; scale: 1.1; } }
@keyframes inner-out { to { opacity: 0; transform: translateY(-24px) scale(.94); } }
/* Circular wipe closing in on the logo position reveals the page underneath */
@keyframes splash-out { from { clip-path: circle(150% at 50% 38%); } to { clip-path: circle(0% at 50% 38%); visibility: hidden; } }
@keyframes splash-nojs { to { opacity: 0; visibility: hidden; pointer-events: none; } }

@media (prefers-reduced-motion: reduce) {
  .splash-glow, .splash-logo .b { animation: none; }
  .splash-logo, .sd-head, .sd-phon, .sd-text, .splash-skip { animation-duration: .01s; animation-delay: 0s; }
  .splash.leaving { animation: splash-fade .4s ease forwards; }
  .revealing .site-header, .revealing main, .revealing .site-footer { animation: none; }
}
@keyframes splash-fade { to { opacity: 0; visibility: hidden; } }
