/* Blue Pill Mafia website: black with the ice blue of the team logo. */
:root {
  --bg: #0a0a0b;
  --surface: #15171b;
  --surface-2: #1c1f24;
  --text: #eef2f8;
  --muted: #9aa6b8;
  --border: #272b33;
  /* Ice blue from the logo (links, lines, highlights) and a stronger blue for buttons. */
  --accent: #7cc0ff;
  --accent-strong: #3d8bff;
  --black: #000;
  --row-bg: #0f1a2b;
  --badge-bg: #2a3039;
  --badge-ink: #dfe7f2;
  --radius: 16px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  /* Footer at the bottom of the window on short pages. */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* The full-width banner is as wide as the window; don't let it add sideways scrolling. */
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.5;
}
a {
  color: var(--accent);
}
img {
  max-width: 100%;
  display: block;
}
h1,
h2,
h3,
.brand,
.nav a,
.btn,
.badge {
  font-family: 'Barlow Condensed', 'Barlow', system-ui, sans-serif;
}

/* ---------- header & nav ---------- */

.site-header {
  /* Black, so the Blue Pill Mafia wordmark (drawn on black) blends in. */
  background: #000;
  color: #fff;
  border-bottom: 4px solid var(--accent-strong);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  margin-right: auto;
}
.brand img {
  height: 92px;
  width: auto;
}
.nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.nav a {
  color: #dbe5f5;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 6px 10px;
  border-radius: 8px;
}
.nav a:hover,
.nav a[aria-current='page'] {
  color: var(--black);
  background: var(--accent);
}
/* Phones: logo centered on top, the menu in one row under it. */
@media (max-width: 640px) {
  .site-header {
    position: static;
  }
  .site-header .inner {
    justify-content: center;
  }
  .brand {
    margin: 0 auto;
  }
  .brand img {
    height: 80px;
  }
  .nav {
    width: 100%;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 2px;
  }
  .nav a {
    font-size: 0.95rem;
    padding: 6px 8px;
    letter-spacing: 0.02em;
  }
}

/* ---------- layout ---------- */

main {
  flex: 1;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px 48px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin: 16px 0;
}
h1 {
  font-size: 2.3rem;
  line-height: 1.05;
  margin: 24px 0 8px;
}
h2 {
  font-size: 1.6rem;
  margin: 32px 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-left: 6px solid var(--accent);
  padding-left: 10px;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.9rem;
}
.btn {
  display: inline-block;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 12px;
  border: 2px solid var(--accent-strong);
  color: var(--accent);
  background: transparent;
  cursor: pointer;
}
.btn.primary {
  background: var(--accent-strong);
  color: #fff;
}
.btn.live::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e5484d;
  margin-right: 8px;
  vertical-align: 1px;
}
.buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0 0;
}

/* ---------- home hero ---------- */

.hero {
  position: relative;
  /* Full width of the window, whatever the page width. */
  margin: 0 calc(50% - 50vw);
  min-height: clamp(340px, 42vw, 520px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: var(--black) center 35% / cover no-repeat;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.85));
}
.hero .text {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 16px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 7vw, 3.6rem);
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}
/* Phones: a wide strip (like on computers), so the photo can be moved up or down
   with Top / Middle / Bottom in the app, and more of the schedule shows. */
@media (max-width: 640px) {
  .hero {
    min-height: 58vw;
  }
  .hero .text {
    padding: 16px;
  }
  .hero h1 {
    font-size: 1.9rem;
  }
  .hero p {
    font-size: 0.95rem;
  }
}
.hero p {
  margin: 4px 0 0;
  font-size: 1.1rem;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}
.play-hard {
  width: 220px;
  margin: 18px auto 0;
  /* The script is dark gray on a clear background: light it up for the black page. */
  filter: invert(1) brightness(1.4);
}

/* ---------- schedule ---------- */

.season h3 {
  font-size: 1.4rem;
  margin: 22px 0 8px;
}
.tlist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.trow {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 4px 14px;
  align-items: center;
  background: var(--row-bg);
  border-left: 6px solid var(--accent-strong);
  border-radius: 12px;
  padding: 10px 14px;
}
.trow.past {
  opacity: 0.62;
}
.trow.next {
  outline: 3px solid var(--accent);
  outline-offset: 0;
  opacity: 1;
}
.tdate {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
}
.tname {
  font-weight: 700;
}
.tname a {
  color: inherit;
}
.tplace {
  color: var(--muted);
  font-size: 0.92rem;
}
.tside {
  text-align: right;
  white-space: nowrap;
}
.badge {
  display: inline-block;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--badge-bg);
  color: var(--badge-ink);
  margin-right: 6px;
  vertical-align: 2px;
}
.badge.next {
  background: var(--accent);
  color: var(--black);
}
.record {
  font-weight: 800;
}
@media (max-width: 560px) {
  .trow {
    grid-template-columns: 1fr auto;
  }
  .tdate {
    grid-column: 1 / -1;
  }
}

/* ---------- info ---------- */

.doc-links {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.doc-links a {
  font-weight: 700;
}

/* ---------- gallery ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}
.grid figure {
  margin: 0;
  background: var(--surface);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: zoom-in;
}
.grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--surface-2);
}
/* A photo still loading: an empty dark tile, not a broken-image icon and "Team photo". */
.grid img:not([src]) {
  visibility: hidden;
}
.grid figcaption {
  font-size: 0.85rem;
  padding: 6px 8px;
  color: var(--muted);
  min-height: 1.6em;
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(5, 10, 20, 0.94);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px 16px 16px;
  color: #fff;
  user-select: none;
}
.lightbox img {
  max-height: 78vh;
  max-width: 100%;
  object-fit: contain;
  border-radius: 8px;
  min-width: 120px;
  min-height: 120px;
}
.lb-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  max-width: 100%;
}
.lightbox img:not(.ready) {
  visibility: hidden;
}
.lb-loading {
  position: absolute;
  color: var(--muted);
}
.lb-foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  text-align: center;
}
.lb-foot p {
  margin: 0;
}
.lb-count {
  color: var(--muted);
  font-size: 0.9rem;
}
.lightbox button {
  position: absolute;
  /* Above the photo, which can be as wide as the screen. */
  z-index: 2;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox button:hover {
  background: rgba(124, 192, 255, 0.35);
}
.lb-close {
  top: 12px;
  right: 12px;
  width: 48px;
  height: 48px;
  font-size: 1.5rem;
}
.lb-prev,
.lb-next {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  font-size: 2.4rem;
  line-height: 1;
  padding-bottom: 4px;
}
.lb-prev {
  left: 12px;
}
.lb-next {
  right: 12px;
}
.lightbox.single .lb-prev,
.lightbox.single .lb-next,
.lightbox.single .lb-count {
  display: none;
}
/* Phones: the arrows sit over the photo's edges, a little smaller. */
@media (max-width: 640px) {
  .lb-prev,
  .lb-next {
    width: 44px;
    height: 44px;
    font-size: 2rem;
    background: rgba(0, 0, 0, 0.45);
  }
  .lb-prev {
    left: 6px;
  }
  .lb-next {
    right: 6px;
  }
}

/* ---------- contact ---------- */

form label {
  display: block;
  font-weight: 700;
  margin: 12px 0 4px;
}
form input,
form textarea {
  width: 100%;
  font: inherit;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
}
form button {
  margin-top: 14px;
}
.policy h3 {
  margin: 18px 0 4px;
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--black);
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 4px solid var(--accent-strong);
}
.site-footer .inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px 16px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.site-footer a {
  color: #fff;
}
