/* team-redline.com — mobile first */
:root {
  --bg: #0a0a0b;
  --bg2: #141416;
  --bg3: #1c1c1f;
  --line: #2a2a2f;
  --fg: #ededee;
  --mut: #9b9ba3;
  --red: #d6262b;
  --red2: #b51f24;
  --r: 12px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.55 "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(84px + var(--safe-b));
}
body.lock { overflow: hidden; }
a { color: inherit; }
img { max-width: 100%; }
.muted { color: var(--mut); }
.small { font-size: 14px; }
.center { text-align: center; }
.pad { padding: 0 16px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* hero */
.hero {
  text-align: center;
  padding: calc(48px + env(safe-area-inset-top, 0px)) 20px 30px;
  background: radial-gradient(120% 80% at 50% 0%, #21090a 0%, var(--bg) 62%);
}
.logo { width: min(86vw, 540px); height: auto; filter: drop-shadow(0 0 22px rgba(255, 255, 255, .10)); }
.tag {
  font-family: "Barlow Condensed", "Barlow", sans-serif;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-size: 13px;
  color: #d2d2d7;
  margin: 18px auto 0;
  max-width: 30em;
  text-wrap: balance;
}
@media (max-width: 420px) { .tag { letter-spacing: .17em; font-size: 12.5px; } }
main { max-width: 1000px; margin: 0 auto; }

/* about */
.about { padding: 6px 20px 26px; }
.about p { margin: 0 auto 14px; max-width: 640px; font-size: 17px; color: #d9d9de; }

/* film */
.video { aspect-ratio: 2.33 / 1; background: #000; }
.video iframe { width: 100%; height: 100%; border: 0; display: block; }

/* section heads */
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 30px 16px 12px; }
h2 {
  margin: 0;
  font: 600 15px/1.2 "Barlow Condensed", "Barlow", sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
}
h2::before { content: ""; display: inline-block; width: 18px; height: 3px; background: var(--red); vertical-align: middle; margin: -2px 10px 0 0; }
.count { color: var(--mut); font-weight: 500; letter-spacing: .08em; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--red); color: #fff; border: 0; border-radius: var(--r);
  font: 600 16px/1 "Barlow", sans-serif; padding: 14px 20px; text-decoration: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { background: var(--red2); }
.btn:disabled { opacity: .45; cursor: default; }
.btn.wide, .ghost.wide { display: flex; width: 100%; }
.ghost {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); color: var(--fg); background: transparent; border-radius: 999px;
  padding: 9px 14px; font: 600 14px/1 "Barlow", sans-serif; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.ghost.wide { border-radius: var(--r); padding: 14px 20px; font-size: 16px; margin-top: 10px; }
.icon { background: none; border: 0; color: #fff; font-size: 22px; width: 44px; height: 44px; cursor: pointer; }
.icon-spacer { width: 44px; }

/* photo grid (club archive; the Instagram feed replaces it once connected) */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.tile { position: relative; aspect-ratio: 1; padding: 0; border: 0; background: var(--bg3); overflow: hidden; cursor: pointer; display: block; }
.tile-badge { position: absolute; top: 6px; right: 7px; color: #fff; font-size: 15px; line-height: 1; text-shadow: 0 1px 4px rgba(0, 0, 0, .8); }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
#igFeed { padding: 0 2px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap; padding: 16px 10px 0; }
.pager button { min-width: 40px; height: 40px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: transparent;
  color: var(--fg); font: 600 15px/1 "Barlow", sans-serif; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pager button.on { background: var(--red); border-color: var(--red); color: #fff; }
.pager button:disabled { opacity: .3; cursor: default; }
.pager .nav-b { font-size: 20px; }
.pager .gap { color: var(--mut); padding: 0 2px; }

/* reach out (links down to Memories) */
.reach { text-align: center; padding: 28px 20px 0; }
.reach-q { margin: 0; font: 600 22px/1.2 "Barlow Condensed", sans-serif; letter-spacing: .04em; text-transform: uppercase; }
.reach .muted { margin: 4px 0 14px; }
#memories { scroll-margin-top: 10px; }

/* call to action */
.cta {
  margin: 34px 16px 0; padding: 22px 18px; border: 1px solid var(--line); border-radius: 16px;
  background: linear-gradient(180deg, #17090a, var(--bg2)); text-align: center;
}
.cta-title { margin: 0; font: 600 24px/1.2 "Barlow Condensed", sans-serif; letter-spacing: .04em; text-transform: uppercase; }
.cta .muted { margin: 6px 0 16px; }

/* forms */
input, textarea {
  width: 100%; background: #0e0e10; border: 1px solid var(--line); border-radius: 10px; color: var(--fg);
  font: 16px/1.4 "Barlow", sans-serif; padding: 13px 14px; margin: 0 0 10px; -webkit-appearance: none;
}
textarea { resize: vertical; min-height: 84px; }
input:focus, textarea:focus { outline: none; border-color: #55555e; }
.cform { padding: 0 16px; }
.cform .row { display: flex; gap: 10px; }
.cform .row input { flex: 1; margin: 0; }

/* comments */
.clist { list-style: none; margin: 18px 0 0; padding: 0 16px; }
.clist li { padding: 14px 0; border-top: 1px solid var(--line); }
.clist p { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.c-head { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.c-head span { color: var(--mut); }

footer { text-align: center; color: var(--mut); font-size: 13px; letter-spacing: .08em; padding: 40px 16px 20px; }

/* floating submit button */
.fab {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(16px + var(--safe-b)); z-index: 20;
  background: var(--red); color: #fff; text-decoration: none; border-radius: 999px; padding: 15px 24px;
  font: 600 16px/1 "Barlow", sans-serif; box-shadow: 0 10px 28px rgba(0, 0, 0, .55); white-space: nowrap;
}

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 50; background: #000; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; }
.lb-top {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between;
  padding: calc(6px + env(safe-area-inset-top, 0px)) 6px 6px; background: linear-gradient(#000, rgba(0, 0, 0, 0));
}
.lb-stage { position: relative; height: 70vh; display: flex; align-items: center; justify-content: center; touch-action: pan-y; }
.lb-stage img, .lb-stage video { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.nav { display: none; position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0, 0, 0, .45); color: #fff; border: 0; width: 46px; height: 64px; font-size: 34px; cursor: pointer; border-radius: 8px; }
.nav.prev { left: 10px; } .nav.next { right: 10px; }
.lb-info { padding: 14px 18px calc(24px + var(--safe-b)); max-width: 680px; width: 100%; margin: 0 auto; }
.cap { margin: 0; font-weight: 600; font-size: 17px; }
.lb-info .muted { margin: 4px 0 0; }
.lb-link { margin-top: 14px; }

/* submit page */
.page-submit { padding-bottom: 30px; background: radial-gradient(120% 60% at 50% 0%, #21090a 0%, var(--bg) 55%); }
.mini { text-align: center; padding: calc(26px + env(safe-area-inset-top, 0px)) 16px 8px; }
.logo-sm { width: min(56vw, 260px); height: auto; }
.submit-wrap { max-width: 520px; padding: 8px 14px; }
.card { background: var(--bg2); border: 1px solid var(--line); border-radius: 18px; padding: 22px 18px; }
.card h1 { margin: 0 0 6px; font: 600 28px/1.15 "Barlow Condensed", sans-serif; letter-spacing: .03em; text-transform: uppercase; }
.card > div > .muted:first-of-type { margin: 0 0 18px; }
.pick {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  border: 2px dashed #3b3b42; border-radius: 16px; padding: 26px 14px; margin: 0 0 14px; cursor: pointer;
  font-weight: 600; font-size: 17px; text-align: center; -webkit-tap-highlight-color: transparent;
}
.pick:active { background: #18181b; }
.pick-icon { width: 46px; height: 46px; border-radius: 50%; background: var(--red); color: #fff; font-size: 30px; line-height: 44px; }
.picked { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0 0 14px; }
.picked:empty { display: none; }
.pk { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--bg3); }
.pk img, .pk video { width: 100%; height: 100%; object-fit: cover; display: block; }
.pk .badge { position: absolute; left: 4px; bottom: 4px; background: rgba(0, 0, 0, .65); color: #fff; font-size: 11px; font-weight: 600; padding: 2px 6px; border-radius: 5px; }
.pk-x { position: absolute; top: 3px; right: 3px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .7); color: #fff; font-size: 15px; line-height: 26px; padding: 0; cursor: pointer; }
.note { background: #2a1416; border: 1px solid #4a2023; color: #f0c9cb; border-radius: 10px; padding: 10px 12px; font-size: 14px; margin: 0 0 12px; }
.status { font-weight: 600; margin: 8px 0 12px; }
.bar { height: 8px; background: var(--bg3); border-radius: 99px; overflow: hidden; margin-bottom: 12px; }
.bar span { display: block; height: 100%; width: 0; background: var(--red); transition: width .25s; }
.done { text-align: center; }

/* moderation pages */
.mod { max-width: 760px; margin: 0 auto; padding: calc(20px + env(safe-area-inset-top, 0px)) 14px 40px; }
.mod h1 { font: 600 24px/1.2 "Barlow Condensed", sans-serif; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 6px; }
.mod h2 { margin: 26px 0 12px; }
.mod .bar-actions { display: flex; gap: 10px; margin: 14px 0 6px; }
.mod .bar-actions .btn, .mod .bar-actions .ghost { flex: 1; }
.mod-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 14px; }
.item { background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.item img, .item video { width: 100%; display: block; max-height: 70vh; object-fit: contain; background: #000; }
.item .acts { display: flex; gap: 8px; padding: 10px; flex-wrap: wrap; align-items: center; }
.item .acts .btn, .item .acts .ghost { padding: 11px 14px; font-size: 15px; }
.chip { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; background: var(--bg3); color: var(--mut); }
.chip.posted { background: #12301c; color: #8fe0a8; text-decoration: none; }
.chip.err-chip { background: #3a1517; color: #f0a2a5; }
.pad-s { padding: 8px 12px 0; margin: 0; }
.post-box { background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin: 14px 0 4px; }
.post-box label { display: block; margin-bottom: 6px; }
.cap-edit { min-height: 110px; margin-bottom: 4px; }
.err { color: #f0a2a5; }
.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mini-grid .item .acts { padding: 6px; }

@media (min-width: 720px) {
  body { padding-bottom: 40px; }
  .hero { padding-top: 70px; }
  .about p { font-size: 18px; }
  .film { padding: 0 16px; }
  .video { border-radius: 12px; overflow: hidden; }
  .grid { grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 0 16px; }
  .tile { border-radius: 6px; }
  .cta { max-width: 560px; margin: 40px auto 0; }
  .cform, .clist { max-width: 680px; margin-left: auto; margin-right: auto; }
  .nav { display: block; }
  .fab { left: auto; right: 24px; transform: none; bottom: 24px; }
  .submit-wrap { margin: 0 auto; }
  .mod-grid { grid-template-columns: 1fr 1fr; }
  .mini-grid { grid-template-columns: repeat(5, 1fr); }
}
