/* Triple C public site: shared design system for the marketing pages
   (home, submit, gigs, venues, artists, licence). The studio uses app.css. */

:root {
  /* spacing scale: use these, not one-off values */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --bg: #0a0a0d;
  --bg-2: #111116;
  --card: #15151b;
  --card-2: #1c1c24;
  --line: #2a2a34;
  --line-2: #383845;
  --text: #f4f2ee;
  --muted: #a8a6b3;
  --faint: #6e6c7a;
  --red: #ff4d3d;
  --red-2: #ff7a5c;
  --gold: #ffc94a;
  --teal: #3ee6c1;
  --ok: #4ade80;
  --radius: 18px;
  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* ---------- layout */
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
/* Every section uses the same vertical rhythm. .band gives a section the alternate background. */
section.block { padding: var(--s9) 0; position: relative; }
section.block.band { background: var(--bg-2); border-block: 1px solid var(--line); }
@media (max-width: 720px) { section.block { padding: var(--s8) 0; } .container { padding: 0 16px; } }

/* ---------- type */
h1, h2, h3, .display { font-family: var(--display); letter-spacing: -0.03em; line-height: 1.04; margin: 0; font-weight: 800; text-wrap: balance; }
h1 { font-size: clamp(44px, 8vw, 104px); }
h2 { font-size: clamp(34px, 5.2vw, 64px); }
h3 { font-size: clamp(20px, 2.2vw, 26px); letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0 0 1em; text-wrap: pretty; }
li { text-wrap: pretty; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); line-height: 1.5; max-width: 640px; margin: 0; text-wrap: balance; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 12px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.eyebrow .live { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(255,77,61,.7); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,77,61,.6); } 70% { box-shadow: 0 0 0 10px rgba(255,77,61,0); } 100% { box-shadow: 0 0 0 0 rgba(255,77,61,0); } }
.grad { background: linear-gradient(100deg, var(--red) 10%, var(--red-2) 45%, var(--gold) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 14px; }
.tiny { font-size: 12px; }
.center { text-align: center; }
/* The one section header: eyebrow, h2, optional lead, optional action on the right. */
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--s5); align-items: end; margin-bottom: var(--s7); }
.section-head > .text { display: grid; gap: var(--s4); }
.section-head > .action { padding-bottom: 4px; }
@media (max-width: 720px) { .section-head { grid-template-columns: minmax(0, 1fr); row-gap: var(--s5); } .section-head > .action { padding: 0; } }
.page-head { padding: var(--s8) 0 var(--s7); background: radial-gradient(700px 340px at 10% 0%, rgba(255,77,61,.16), transparent 70%), radial-gradient(600px 320px at 90% 0%, rgba(255,201,74,.08), transparent 70%); }
@media (max-width: 720px) { .page-head { padding: var(--s7) 0 var(--s6); } }
.page-head .section-head { margin-bottom: 0; }
.page-head h1 { font-size: clamp(42px, 6vw, 76px); }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 22px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--text); font: 600 15px/1 var(--body); text-decoration: none; cursor: pointer; transition: transform .12s, background .15s, border-color .15s, box-shadow .15s; white-space: nowrap; }
.btn:hover { border-color: var(--text); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 10px 30px -10px rgba(255,77,61,.7); }
.btn.primary:hover { background: #ff5f50; }
.btn.light { background: var(--text); color: #111; border-color: var(--text); }
.btn.sm { padding: 9px 14px; font-size: 14px; }
.btn:disabled { opacity: .5; cursor: default; }
.btn svg { width: 18px; height: 18px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- nav */
/* site.js fills the header after the page loads; reserve its space so nothing below it jumps. */
#site-nav { display: block; position: sticky; top: 0; z-index: 50; min-height: 68px; background: rgba(10,10,13,.72); }
.nav { position: sticky; top: 0; z-index: 50; background: rgba(10,10,13,.72); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav .container { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 20px/1 var(--display); letter-spacing: -0.02em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav-links a { text-decoration: none; color: var(--muted); padding: 8px 12px; border-radius: 999px; font-weight: 500; font-size: 15px; }
.nav-links a:hover, .nav-links a[aria-current=page] { color: var(--text); background: var(--card); }
.nav .btn { margin-left: 8px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line-2); color: var(--text); border-radius: 999px; padding: 8px 14px; font: 600 14px/1 var(--body); }
@media (max-width: 1100px) {
  .menu-btn { display: inline-flex; }
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 12px 16px 20px; background: rgba(10,10,13,.97); border-bottom: 1px solid var(--line); gap: 2px; }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding: 14px 12px; font-size: 18px; }
  .nav .btn { margin: 8px 0 0; }
}

/* ---------- cards & surfaces */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card.pad-lg { padding: 40px; }
@media (max-width: 720px) { .card { padding: 22px; } .card.pad-lg { padding: 26px; } }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; color: var(--muted); background: var(--bg-2); white-space: nowrap; }
.pill.red { color: #fff; background: var(--red); border-color: var(--red); }
.pill.gold { color: #1a1400; background: var(--gold); border-color: var(--gold); }
.icon-tile { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--card-2); border: 1px solid var(--line-2); font-size: 22px; margin-bottom: 18px; }
.num { font: 800 15px/1 var(--display); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; margin-bottom: 18px; }

/* ---------- marquee */
.marquee { border-block: 1px solid var(--line); overflow: hidden; background: var(--bg-2); }
.marquee .track { display: flex; gap: 48px; padding: 18px 0; width: max-content; animation: scroll 40s linear infinite; font: 700 clamp(18px, 2.4vw, 28px)/1 var(--display); letter-spacing: -0.02em; color: var(--muted); }
.marquee .track span::after { content: "\2733"; margin-left: 48px; color: var(--red); }
@keyframes scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee .track, .eyebrow .live { animation: none; } html { scroll-behavior: auto; } }

/* ---------- forms */
.form { display: grid; gap: 18px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .row2 { grid-template-columns: 1fr; } }
.field { display: grid; gap: 7px; align-content: start; }
.field > label, .label { font-weight: 600; font-size: 14px; }
.field .hint { font-size: 13px; color: var(--faint); }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=search], input[type=date], input[type=time], input[type=tel], select, textarea {
  width: 100%; font: 16px/1.4 var(--body); color: var(--text); background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 13px 14px; transition: border-color .15s, box-shadow .15s; appearance: none; -webkit-appearance: none;
}
select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
input[type=date], input[type=time] { color-scheme: dark; min-height: 50px; }
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(255,77,61,.18); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; cursor: pointer; }
.check input { width: 22px; height: 22px; flex: none; margin: 1px 0 0; accent-color: var(--red); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-2); cursor: pointer; font-size: 14px; }
.chips input { accent-color: var(--red); }
.chips label:has(input:checked) { border-color: var(--red); background: rgba(255,77,61,.1); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: #ff8a7d; font-weight: 500; }
.success { border: 1px solid rgba(74,222,128,.4); background: rgba(74,222,128,.07); border-radius: var(--radius); padding: 28px; }
.drop { border: 2px dashed var(--line-2); border-radius: var(--radius); padding: 34px 20px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--red); background: rgba(255,77,61,.05); }
.drop.has { border-style: solid; border-color: var(--ok); }
.progress { height: 6px; border-radius: 3px; background: var(--card-2); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--red); transition: width .2s; }

/* ---------- dialog */
dialog { background: var(--card); color: var(--text); border: 1px solid var(--line-2); border-radius: 22px; padding: 0; width: min(640px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); }
dialog::backdrop { background: rgba(0,0,0,.6); backdrop-filter: blur(4px); }
dialog .dlg-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--card); z-index: 1; }
dialog .dlg-head h3 { font-size: 22px; }
dialog .dlg-body { padding: 24px; }
.x { background: none; border: 1px solid var(--line-2); color: var(--text); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 18px; line-height: 1; }

/* ---------- footer */
.footer { border-top: 1px solid var(--line); padding: 56px 0 40px; color: var(--muted); }
.footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer h4 { color: var(--text); font: 700 14px/1 var(--body); margin: 0 0 14px; letter-spacing: .02em; }
.footer a { display: block; text-decoration: none; padding: 4px 0; }
.footer a.brand { display: flex; color: var(--text); margin-bottom: 14px; }
.footer a:hover { color: var(--text); }
.footer .legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--faint); display: flex; flex-wrap: wrap; gap: 8px 24px; }
@media (max-width: 720px) { .footer .cols { grid-template-columns: 1fr 1fr; } .footer .cols > :first-child { grid-column: 1 / -1; } }

/* ---------- player card (home hero and listen page share listener.js) */
.player-card { background: linear-gradient(160deg, #1d1d25, #131318); border: 1px solid var(--line-2); border-radius: 26px; padding: 26px; box-shadow: 0 30px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.02) inset; position: relative; overflow: hidden; }
.player-card::before { content: ""; position: absolute; inset: -40% -20% auto auto; width: 320px; height: 320px; background: radial-gradient(circle, rgba(255,77,61,.35), transparent 65%); pointer-events: none; }
.pc-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; position: relative; }
.pc-main { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; position: relative; }
.play { width: 84px; height: 84px; border-radius: 50%; border: none; background: var(--red); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 12px 34px -8px rgba(255,77,61,.8); transition: transform .12s, filter .15s; flex: none; }
.play:hover { filter: brightness(1.08); }
.play:active { transform: scale(.97); }
.play svg { width: 36px; height: 36px; }
.np-label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.np-title { font: 800 clamp(22px, 2.6vw, 28px)/1.12 var(--display); letter-spacing: -0.02em; margin: 4px 0 2px; overflow-wrap: anywhere; }
.np-artist { font-size: 17px; color: var(--muted); }
.np-artist a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.np-artist a:hover { border-color: var(--red); }
.pos { margin-top: 18px; }
.pos .bar { height: 5px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; margin-bottom: 6px; }
.pos .bar i { display: block; height: 100%; width: 0; background: var(--red); }
.pos .times { display: flex; justify-content: space-between; font: 12px/1 ui-monospace, Menlo, monospace; color: var(--faint); }
.pc-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 18px; min-height: 40px; }
.reacts { display: contents; }
.reacts.off .react { visibility: hidden; }
/* One status pill (state + connection) that never wraps, so the card doesn't jump when playback starts. */
.pc-top { flex-wrap: nowrap; }
.pc-top .eyebrow { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.state-pill { flex: none; white-space: nowrap; }
.state-pill .health { display: inline-flex; align-items: center; gap: 6px; }
.state-pill .sep { width: 1px; height: 12px; background: var(--line-2); margin: 0 2px; }
.np-title, .np-artist { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.react { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); cursor: pointer; font: 600 14px/1 var(--body); transition: all .15s; }
.react:hover { color: var(--text); border-color: var(--text); }
.react svg { width: 17px; height: 17px; }
.react[aria-pressed=true].up { color: #fff; background: var(--red); border-color: var(--red); }
.react[aria-pressed=true].down { color: var(--text); background: var(--card-2); border-color: var(--text); }
.status-line { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); display: inline-block; }
.dot.ok { background: var(--ok); } .dot.warn { background: var(--gold); } .dot.bad { background: var(--red); }
.health .bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.health .bars i { width: 3px; border-radius: 1px; background: var(--line-2); }
.health .bars i:nth-child(1) { height: 4px; } .health .bars i:nth-child(2) { height: 7px; } .health .bars i:nth-child(3) { height: 10px; } .health .bars i:nth-child(4) { height: 12px; }
.health[data-l="4"] .bars i, .health[data-l="3"] .bars i:nth-child(-n+3) { background: var(--ok); }
.health[data-l="2"] .bars i:nth-child(-n+2) { background: var(--gold); }
.health[data-l="1"] .bars i:nth-child(1) { background: var(--red); }
.note { margin-top: 14px; padding: 10px 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.maint { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: #3a2a0c; color: #ffe1a6; border: 1px solid #6b4c12; font-size: 14px; }
@media (max-width: 560px) {
  .player-card { padding: 22px 18px; border-radius: 22px; }
  .pc-top .eyebrow { display: none; }
  .pc-main { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .pc-actions, .status-line { justify-content: center; }
  .pc-top { justify-content: center; }
}

/* video embeds (click to load: nothing from YouTube loads until you ask) */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000 center / cover no-repeat; border: 1px solid var(--line); cursor: pointer; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video .playv { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(transparent, rgba(0,0,0,.45)); }
.video .playv span { width: 64px; height: 64px; border-radius: 50%; background: var(--red); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.video .playv svg { width: 26px; height: 26px; color: #fff; margin-left: 3px; }
.video .vt { position: absolute; left: 14px; bottom: 12px; right: 14px; font-weight: 600; text-shadow: 0 1px 6px rgba(0,0,0,.8); }

/* gig rows (home teaser, gig guide, artist page) */
.gig { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); text-decoration: none; transition: border-color .15s, transform .15s; }
.gig:hover { border-color: var(--line-2); }
.gig.active { border-color: var(--red); }
.gig .when { text-align: center; border-radius: 12px; background: var(--card-2); padding: 8px 0; }
.gig .when b { display: block; font: 800 24px/1 var(--display); }
.gig .when span { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.gig .who { font: 700 18px/1.2 var(--display); letter-spacing: -0.01em; }
.gig .where { color: var(--muted); font-size: 14px; margin-top: 3px; }
.gig .where a { color: inherit; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.gig .where a:hover { color: var(--text); }
.gig .meta .notes { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex-basis: 100%; }
.gig .meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.gig .go { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 640px) { .gig { grid-template-columns: 56px 1fr; } .gig .go { grid-column: 1 / -1; justify-content: flex-start; } }
.empty { padding: 40px 24px; text-align: center; border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--muted); display: grid; place-content: center; gap: var(--s2); }
.empty b { color: var(--text); font-size: 17px; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--text); color: #111; padding: 12px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; opacity: 0; transition: all .25s; z-index: 100; pointer-events: none; max-width: calc(100vw - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* language switch, and no flash of English while French loads */
.lang-btn { background: none; border: 1px solid var(--line-2); color: var(--muted); border-radius: 999px; padding: 7px 12px; font: 700 13px/1 var(--body); letter-spacing: .06em; cursor: pointer; margin-left: 4px; }
.lang-btn:hover { color: var(--text); border-color: var(--text); }
@media (max-width: 1100px) { .lang-btn { align-self: flex-start; margin: 8px 0 0 12px; padding: 10px 16px; } }
html.i18n-pending body { visibility: hidden; }

/* presenter shortcut bar (only for signed-in presenters) */
.admin-bar { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: 4px; padding: 6px; border-radius: 999px; background: rgba(21,21,27,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line-2); box-shadow: 0 10px 30px rgba(0,0,0,.5); font-size: 14px; white-space: nowrap; max-width: calc(100vw - 24px); overflow-x: auto; }
.admin-bar .who { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; color: var(--muted); }
.admin-bar a { color: var(--text); text-decoration: none; padding: 6px 12px; border-radius: 999px; }
.admin-bar a:hover { background: var(--card-2); }
.admin-bar a b { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: var(--red); color: #fff; font-size: 12px; }
.admin-bar a.hl { background: var(--text); color: #111; font-weight: 600; }

/* Show alerts */
.follow-btn { display: inline-flex; align-items: center; gap: 6px; }
.follow-btn[aria-pressed=true] { border-color: var(--teal); color: var(--teal); }
