/* Bands4Bands – one stylesheet for the whole site */
@font-face { font-family: 'Anton'; src: url('../fonts/anton.woff') format('woff'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Archivo'; src: url('../fonts/archivo.woff') format('woff'); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }

:root {
  --ink: #17130F;
  --ink-2: #2A231D;
  --cream: #EFE7D6;
  --paper: #F7F1E4;
  --white: #FFFFFF;
  --field: #FBF8F1;
  --line: #CFC5B4;
  --line-soft: #E6DDCC;
  --muted: #4F473E;
  --muted-on-dark: #D8CDBB;
  --red: #C42B2B;
  --red-dark: #8E1C1C;
  --red-on-dark: #E04A3F;
  --ok: #2F6B45;
  --radius: 14px;
  --display: 'Anton', Impact, 'Arial Narrow', sans-serif;
  --body: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.5; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--red); }
a:hover { color: var(--red-dark); }
h1, h2, h3 { line-height: 1.15; margin: 0; }
.display { font-family: var(--display); font-weight: 400; letter-spacing: 0.3px; text-transform: uppercase; }
h1.display { font-size: clamp(36px, 6vw, 56px); }
h2.display { font-size: clamp(28px, 4.5vw, 44px); }
p { margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }
.narrow { max-width: 820px; }
.page { padding-top: 32px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 24px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-s { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.row-between { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.grow { flex: 1 1 auto; min-width: 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 13px; }
.center { text-align: center; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kicker { font-weight: 800; font-size: 13px; letter-spacing: 3px; text-transform: uppercase; color: var(--red); }
.on-dark .kicker, .kicker.on-dark { color: var(--red-on-dark); }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---------- header / footer ---------- */
.site-header { background: var(--ink); color: var(--cream); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--cream); }
.brand img { width: 40px; height: 40px; }
.brand span { font-family: var(--display); font-size: 24px; letter-spacing: 1px; }
.brand b { color: var(--red-on-dark); font-weight: 400; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-left: auto; font-weight: 700; font-size: 15px; }
.nav a { color: var(--cream); text-decoration: none; padding: 6px 0; border-bottom: 3px solid transparent; }
.nav a:hover { color: #fff; }
.nav a.active { color: #fff; border-bottom-color: var(--red-on-dark); }
.nav .badge-count { background: var(--red); color: #fff; border-radius: 999px; padding: 1px 8px; font-size: 12px; margin-left: 4px; }
.lang { display: flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 800; letter-spacing: 1px; }
.lang button { background: none; border: 0; color: #A79C8E; cursor: pointer; padding: 8px 6px; font: inherit; }
.lang button[aria-pressed="true"] { color: #fff; }
.nav .btn { padding: 10px 16px; min-height: 0; }
@media (max-width: 720px) { .nav { width: 100%; margin-left: 0; gap: 4px 16px; } }

.site-footer { background: var(--ink); color: var(--muted-on-dark); margin-top: auto; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; padding-top: 28px; padding-bottom: 28px; font-size: 15px; }
.site-footer a { color: var(--muted-on-dark); }
.site-footer .coffee { color: var(--ink); background: var(--cream); padding: 10px 16px; border-radius: 999px; font-weight: 800; text-decoration: none; }

.banner { padding: 14px 18px; border-radius: 12px; background: var(--ink); color: var(--cream); }
.banner.warn { background: #F3D9A4; color: var(--ink); }
.banner.red { background: var(--red); color: #fff; }
.banner a { color: inherit; font-weight: 800; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 20px; border-radius: 10px; border: 2px solid transparent; font: inherit; font-weight: 800; font-size: 16px; cursor: pointer; text-decoration: none; text-align: center; line-height: 1.2; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-red { background: var(--red); color: #fff; border-color: var(--red); }
.btn-red:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn-ink { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn-ink:hover { background: #000; color: #fff; }
.btn-line { background: var(--white); color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--paper); color: var(--ink); }
.btn-soft { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn-soft:hover { border-color: var(--ink); color: var(--ink); }
.btn-ghost-light { background: transparent; color: var(--cream); border-color: var(--cream); }
.btn-ghost-light:hover { background: var(--cream); color: var(--ink); }
.btn-small { min-height: 40px; padding: 8px 14px; font-size: 14px; }
.btn-big { min-height: 56px; padding: 16px 28px; font-size: 17px; }
.btn-block { width: 100%; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--red); font-weight: 800; cursor: pointer; text-decoration: underline; }

/* ---------- cards ---------- */
.card { background: var(--white); border-radius: var(--radius); padding: 22px; }
.card-ink { background: var(--ink); color: var(--cream); border-radius: var(--radius); padding: 22px; }
.card-paper { background: var(--paper); border-radius: 12px; padding: 16px; }
.card h2 { font-size: 20px; font-weight: 900; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.cols { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.col-main { flex: 999 1 540px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.col-side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }

/* ---------- forms ---------- */
label.field, .field { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 15px; }
.field .hint, .hint { font-weight: 500; font-size: 13px; color: var(--muted); }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=date], input[type=search], select, textarea {
  font: inherit; font-weight: 500; font-size: 16px; padding: 12px 14px; border: 2px solid var(--line); border-radius: 8px; background: var(--field); color: var(--ink); width: 100%; min-height: 48px;
}
textarea { resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(196, 43, 43, 0.25); border-color: var(--ink); }
.fields { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.45; font-weight: 500; }
.check input { width: 22px; height: 22px; margin-top: 1px; flex: 0 0 22px; accent-color: var(--red); }
.form-error { color: var(--red-dark); font-weight: 700; }
.required::after { content: ' *'; color: var(--red); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 9px 14px; border-radius: 999px; border: 2px solid var(--line); background: var(--field); color: var(--ink); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--cream); border-color: var(--ink); font-weight: 800; }

.switch { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border-radius: 12px; border: 2px solid var(--line); background: var(--field); cursor: pointer; font: inherit; color: var(--ink); text-align: left; min-height: 64px; }
.switch[aria-checked="true"] { border-color: var(--ink); background: var(--white); }
.switch .txt { flex: 1; }
.switch .txt strong { display: block; font-size: 16px; }
.switch .txt span { font-size: 13px; color: var(--muted); }
.switch .track { flex: 0 0 52px; height: 30px; border-radius: 999px; position: relative; background: var(--line); transition: background .15s; }
.switch .track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 999px; background: #fff; transition: left .15s; }
.switch[aria-checked="true"] .track { background: var(--red); }
.switch[aria-checked="true"] .track::after { left: 25px; }

.upload { border: 2px dashed #A79C8E; border-radius: 12px; background: var(--field); display: flex; align-items: center; justify-content: center; text-align: center; cursor: pointer; overflow: hidden; position: relative; color: var(--muted); font-weight: 800; font-size: 14px; }
.upload img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.upload.logo { width: 132px; height: 132px; border-radius: 999px; flex: 0 0 132px; }
.upload.photo { flex: 1 1 200px; height: 150px; }
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload .rm { position: absolute; top: 6px; right: 6px; z-index: 2; }

/* ---------- pills, badges ---------- */
.pill { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 5px 11px; font-size: 13px; font-weight: 800; line-height: 1.2; }
.pill-red { background: var(--red); color: #fff; }
.pill-ink { background: var(--ink); color: var(--cream); }
.pill-line { border: 2px solid var(--ink); padding: 3px 9px; }
.pill-grey { background: var(--line-soft); color: var(--muted); }
.pill-gold { background: #F3D9A4; color: var(--ink); }

/* ---------- band cards ---------- */
.band-card { display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: 0 1px 0 #D9CFBE; transition: transform .12s; }
.band-card:hover { color: var(--ink); transform: translateY(-2px); }
.band-card.off { opacity: 0.62; }
.band-card .photo { position: relative; height: 150px; background: var(--ink-2); }
.band-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.band-card .body { padding: 34px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.band-card .name { font-family: var(--display); font-size: 26px; line-height: 1.1; text-transform: uppercase; }
.band-card .record { border-top: 1px solid var(--line-soft); margin-top: auto; padding-top: 10px; font-size: 13px; font-weight: 700; }
.avatar { width: 56px; height: 56px; border-radius: 999px; background: var(--ink); border: 3px solid var(--white); color: var(--cream); font-family: var(--display); font-size: 24px; display: flex; align-items: center; justify-content: center; overflow: hidden; flex: 0 0 auto; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.band-card .avatar { position: absolute; left: 16px; bottom: -26px; }
.avatar-s { width: 44px; height: 44px; font-size: 18px; border-width: 0; }
.avatar-l { width: 120px; height: 120px; font-size: 44px; border: 5px solid var(--cream); }

/* ---------- hero / home ---------- */
.hero { background: var(--ink); color: var(--cream); }
.hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; padding-top: 56px; padding-bottom: 72px; }
.hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(40px, 7vw, 76px); line-height: 1.02; text-transform: uppercase; }
.hero .lead { font-size: 19px; color: var(--muted-on-dark); max-width: 620px; }
.hero-text { flex: 999 1 480px; display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.hero-logo { flex: 1 1 280px; display: flex; justify-content: center; }
.hero-logo img { width: min(380px, 80vw); height: auto; }
.section { padding: 72px 0; }
.section.paper { background: var(--paper); }
.section.red { background: var(--red); color: #fff; padding: 48px 0; }
.steps { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.step .num { font-family: var(--display); font-size: 44px; color: var(--red); line-height: 1; }
.step h3 { font-size: 20px; font-weight: 800; }
.photo-ph { min-height: 280px; background: var(--ink-2); border-radius: var(--radius); overflow: hidden; }
.photo-ph img { width: 100%; height: 100%; object-fit: cover; }
.big-num { font-family: var(--display); font-size: 58px; line-height: 1; }
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; }
.tag { background: var(--white); border: 2px solid var(--ink); border-radius: 999px; padding: 8px 14px; font-weight: 800; font-size: 15px; }

/* ---------- profile ---------- */
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.gallery .ph { height: 300px; border-radius: var(--radius); overflow: hidden; background: var(--ink-2); }
.gallery .ph img { width: 100%; height: 100%; object-fit: cover; }
.profile-head { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.profile-head .avatar-l { margin-top: -70px; margin-left: 16px; }
.stat-big { font-family: var(--display); font-size: 42px; line-height: 1; }
.rating-row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.stars { color: var(--red); font-weight: 800; letter-spacing: 1px; white-space: nowrap; }
.player { background: var(--ink); color: var(--cream); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.player iframe { width: 100%; border: 0; border-radius: 10px; }
.timeline-item { font-size: 14px; line-height: 1.5; display: flex; gap: 8px; }
.review { border-bottom: 1px solid var(--line-soft); padding-bottom: 14px; display: flex; flex-direction: column; gap: 6px; }
.review:last-child { border-bottom: 0; padding-bottom: 0; }
.links { display: flex; flex-wrap: wrap; gap: 8px; }
.links a { border: 2px solid var(--line); border-radius: 999px; padding: 7px 13px; font-weight: 800; font-size: 14px; color: var(--ink); text-decoration: none; }
.links a:hover { border-color: var(--ink); }

/* ---------- messages ---------- */
.inbox { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.inbox-list { flex: 1 1 300px; background: var(--white); border-radius: var(--radius); overflow: hidden; }
.inbox-item { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-top: 1px solid var(--line-soft); text-decoration: none; color: var(--ink); min-height: 72px; }
.inbox-item:first-child { border-top: 0; }
.inbox-item:hover { background: var(--paper); color: var(--ink); }
.inbox-item.active { background: var(--paper); box-shadow: inset 4px 0 0 var(--red); }
.inbox-item .meta { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.inbox-item .meta span { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.convo { flex: 999 1 540px; min-width: 0; background: var(--white); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 18px; }
.steps-bar { overflow-x: auto; }
.steps-bar ol { display: flex; gap: 6px; min-width: 620px; list-style: none; margin: 0; padding: 0; }
.steps-bar li { flex: 1; text-align: center; padding: 9px 4px; font-size: 12px; font-weight: 800; border-radius: 8px; background: var(--cream); color: #6B6257; }
.steps-bar li.done { background: var(--ink); color: var(--cream); }
.steps-bar li.now { background: var(--red); color: #fff; }
.bubbles { display: flex; flex-direction: column; gap: 10px; max-height: 520px; overflow-y: auto; padding-right: 4px; }
.bubble { max-width: 80%; border-radius: 14px; padding: 10px 14px; font-size: 15px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble .who { display: block; font-size: 12px; font-weight: 800; margin-bottom: 2px; opacity: 0.75; }
.bubble.theirs { align-self: flex-start; background: var(--paper); border-bottom-left-radius: 4px; }
.bubble.mine { align-self: flex-end; background: var(--ink); color: var(--cream); border-bottom-right-radius: 4px; }
.bubble.system { align-self: center; background: transparent; border: 2px dashed var(--line); font-size: 13px; font-weight: 700; color: var(--muted); max-width: 95%; text-align: center; }
.composer { display: flex; gap: 10px; align-items: flex-end; border-top: 1px solid var(--line-soft); padding-top: 14px; }
.composer textarea { min-height: 52px; max-height: 200px; }

/* ---------- slots ---------- */
.slot { background: var(--white); border-radius: var(--radius); padding: 18px; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.slot.off { opacity: 0.6; }
.slot .date { flex: 0 0 92px; background: var(--ink); color: var(--cream); border-radius: 12px; padding: 12px 8px; display: flex; flex-direction: column; align-items: center; }
.slot .date b { font-family: var(--display); font-weight: 400; font-size: 38px; line-height: 1; }
.slot .date span { font-weight: 800; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; }
.slot .info { flex: 999 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.slot .act { flex: 1 1 200px; display: flex; flex-direction: column; gap: 8px; }

/* ---------- swaps ---------- */
.swap { background: var(--white); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.bar { height: 8px; background: var(--cream); border-radius: 999px; overflow: hidden; }
.bar i { display: block; height: 8px; background: var(--red); border-radius: 999px; }

/* ---------- rating ---------- */
.rate-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.rate-row:last-child { border-bottom: 0; }
.star-btns { display: flex; gap: 2px; }
.star-btns button { width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 4px; }
.star-btns svg { width: 34px; height: 34px; }
.star-btns polygon { fill: #fff; stroke: var(--red); stroke-width: 1.5; stroke-linejoin: round; }
.star-btns button[aria-pressed="true"] polygon { fill: var(--red); }

/* ---------- modal, toast, loader ---------- */
.modal-back { position: fixed; inset: 0; background: rgba(23, 19, 15, 0.6); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 50; }
.modal { background: var(--white); border-radius: 16px; width: 100%; max-width: 620px; max-height: 92vh; overflow-y: auto; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.modal-close { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 999px; border: 2px solid var(--line); background: #fff; cursor: pointer; font-size: 22px; font-weight: 800; line-height: 1; }
.toast-zone { position: fixed; bottom: 16px; left: 16px; right: 16px; display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 60; pointer-events: none; }
.toast { background: var(--ink); color: var(--cream); padding: 12px 18px; border-radius: 10px; font-weight: 700; max-width: 560px; box-shadow: 0 8px 24px rgba(0,0,0,.25); pointer-events: auto; }
.toast.err { background: var(--red-dark); color: #fff; }
.loader { padding: 48px 0; text-align: center; color: var(--muted); font-weight: 700; }
.empty { background: var(--white); border-radius: var(--radius); padding: 32px 22px; text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.legal h2 { font-size: 22px; margin-top: 12px; }
.legal p, .legal li { line-height: 1.65; }
table.admin { width: 100%; border-collapse: collapse; font-size: 14px; }
table.admin th, table.admin td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.scroll-x { overflow-x: auto; }

.show-mobile { display: none; }
@media (max-width: 720px) {
  .show-mobile { display: inline-flex; align-self: flex-start; }
  #filters:not(.open) { display: none !important; }
}

/* ---------- urgent slots ---------- */
.slot.urgent { border: 3px solid var(--red); padding-top: 0; overflow: hidden; }
.urgent-bar { margin: 0 -18px; padding: 8px 18px; background: var(--red); color: #fff; font-weight: 800; font-size: 14px; letter-spacing: 0.5px; }
.slot.focus { box-shadow: 0 0 0 4px rgba(196, 43, 43, 0.25); }
.nav .dot { display: inline-block; width: 9px; height: 9px; border-radius: 999px; background: var(--red-on-dark); margin-left: 5px; vertical-align: 2px; }
.urgent-check { border: 2px dashed var(--red); border-radius: 10px; padding: 12px 14px; }

/* password show/hide */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { width: 100%; padding-right: 48px; }
.pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center; background: none; border: 0; color: var(--muted); cursor: pointer; border-radius: 8px; }
.pw-eye:hover, .pw-eye[aria-pressed="true"] { color: var(--ink); }
.pw-eye:focus-visible { outline: 2px solid var(--ink); }
