/* ============================================================
   MAX OVERDRIVE 1986 — music-specific components
   Built on top of the Boldz theme. COLORS ARE NOT ALTERED:
   this file only uses the theme's existing tokens
   (--primary #B8FF34, --dark, --whiteColor) plus neutral
   grays consistent with the black theme. Swap the palette
   later from the theme's :root, not here.
   ============================================================ */

:root {
  /* ACCENT — dark orange sampled from maxoverdrive1986_hero.jpeg.
     Overrides the theme's neon-green --primary everywhere it is used. */
  --primary: #c44938;
  --mo-accent: #c44938;
  --mo-accent-hi: #d65a44;

  --mo-panel: #101014;
  --mo-panel-hi: #17171c;
  --mo-hairline: rgba(255, 255, 255, 0.14);
  --mo-steel: rgba(255, 255, 255, 0.6);
}

/* "1986" year accent in the wordmarks */
.mo-year {
  color: var(--mo-accent);
}
/* .logo is inline-flex, which collapses the whitespace before the year span */
.logo .mo-year {
  margin-left: 0.3em;
}

/* Preloader bar used a hardcoded lime gradient — retint to the accent */
.preloader-bar {
  background: linear-gradient(89.99deg, rgba(196, 73, 56, 0), var(--mo-accent)) !important;
}

/* ---------- Telemetry stat strip ---------- */
.mo-telemetry {
  display: flex;
  flex-wrap: wrap;
  margin-top: 60px;
  border-top: 1px solid var(--mo-hairline);
  border-bottom: 1px solid var(--mo-hairline);
}
.mo-tele-cell {
  flex: 1 1 auto;
  min-width: max-content;
  padding: 22px 28px;
  border-right: 1px solid var(--mo-hairline);
}
.mo-tele-cell:last-child {
  border-right: 0;
}
.mo-tele-label {
  display: block;
  font-family: var(--font_inter);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mo-steel);
}
.mo-tele-cell b {
  display: block;
  margin-top: 8px;
  font-family: var(--font_inter_tight);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  color: var(--primary);
}

/* ---------- Bandcamp player head unit ---------- */
.mo-headunit {
  background: var(--mo-panel);
  border: 1px solid var(--mo-hairline);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 24px;
}
.mo-headunit-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--mo-hairline);
  font-family: var(--font_inter);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mo-steel);
}
.mo-headunit-bar .live {
  color: var(--primary);
  font-weight: 600;
}
.mo-headunit iframe {
  width: 100%;
  border: 0;
  display: block;
}

/* ---------- Listen actions ---------- */
.mo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 90px;
}
.mo-actions .theme-btn {
  padding: 12px 22px;
  border-radius: 4px;
}
.theme-btn.mo-btn-ghost {
  background: transparent;
  color: var(--whiteColor);
  border: 1px solid var(--mo-hairline);
}
a.theme-btn.mo-btn-ghost:hover {
  background: var(--mo-panel-hi);
  color: var(--whiteColor);
  border-color: var(--mo-steel);
}

/* ---------- Three picks ---------- */
.mo-picks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.mo-pick {
  gap: 24px;
}
.mo-pick-art {
  aspect-ratio: 1 / 1;
  height: auto !important;
}
.mo-pick-body {
  display: flex;
  flex-direction: column;
  position: relative;
}
.mo-pick-meta {
  font-family: var(--font_inter);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}
.mo-pick-title {
  font-family: var(--font_inter_tight);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 14px;
  text-transform: uppercase;
}
.mo-pick-why {
  font-size: 16px;
  line-height: 1.55;
  color: var(--mo-steel);
  margin: 0;
  max-width: 42ch;
}
.mo-pick-num {
  margin-top: 18px;
  font-family: var(--font_inter);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--mo-steel);
}

/* ---------- Bio: creed + record table ---------- */
.mo-creed {
  font-family: var(--font_inter_tight);
  font-size: 22px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--primary);
  border-left: 2px solid var(--primary);
  padding-left: 22px;
  margin: 36px 0 0;
  max-width: 30ch;
}
.mo-record {
  width: 100%;
  border-collapse: collapse;
  margin-top: 36px;
  font-size: 15px;
}
.mo-record caption {
  text-align: left;
  font-family: var(--font_inter);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  padding-bottom: 14px;
}
.mo-record th,
.mo-record td {
  text-align: left;
  padding: 14px 0;
  border-bottom: 1px solid var(--mo-hairline);
  vertical-align: top;
}
.mo-record th {
  font-family: var(--font_inter);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mo-steel);
  width: 38%;
  padding-right: 20px;
}

/* ---------- Catalog list ---------- */
.mo-catalog {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--mo-hairline);
}
.mo-catalog li {
  border-bottom: 1px solid var(--mo-hairline);
}
.mo-catalog a {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 22px;
  padding: 22px 8px;
  color: var(--whiteColor);
  transition: background 0.16s ease, padding-left 0.16s ease;
}
.mo-catalog a:hover {
  background: var(--mo-panel);
  padding-left: 22px;
}
.mo-cat-num {
  font-family: var(--font_inter);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--mo-steel);
}
.mo-cat-name {
  font-family: var(--font_inter_tight);
  font-weight: 600;
  font-size: 20px;
  text-transform: uppercase;
  flex: 1 1 auto;
}
.mo-cat-feat {
  font-family: var(--font_inter);
  font-size: 13px;
  color: var(--mo-steel);
}
.mo-cat-go {
  font-family: var(--font_inter);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
}

/* ---------- Label grid + link list ---------- */
.mo-label-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: start;
}
.mo-label-copy p {
  color: var(--mo-steel);
  font-size: 17px;
  line-height: 1.6;
  max-width: 52ch;
  margin: 0 0 18px;
}
.mo-linklist {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--mo-hairline);
}
.mo-linklist li {
  border-bottom: 1px solid var(--mo-hairline);
}
.mo-linklist a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 6px;
  color: var(--whiteColor);
  transition: background 0.16s ease, padding-left 0.16s ease;
}
.mo-linklist a:hover {
  background: var(--mo-panel);
  padding-left: 18px;
}
.mo-ll-name {
  font-family: var(--font_inter_tight);
  font-weight: 600;
  font-size: 18px;
}
.mo-ll-kind {
  font-family: var(--font_inter);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  white-space: nowrap;
}

/* ---------- Video / media ---------- */
.mo-media-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.mo-media-img {
  position: relative;
  margin: 0;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.mo-media-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mo-media-img figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 12px 18px;
  font-family: var(--font_inter);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mo-steel);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  width: 100%;
}
.mo-media-img figcaption b {
  color: var(--primary);
  font-weight: 600;
}
.mo-videocard {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  background: var(--mo-panel);
  border: 1px solid var(--mo-hairline);
  border-radius: 6px;
  padding: 32px;
}
.mo-videocard h3 {
  font-family: var(--font_inter_tight);
  font-weight: 700;
  font-size: 28px;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.mo-videocard p {
  color: var(--mo-steel);
  font-size: 16px;
  line-height: 1.55;
  margin: 0;
  max-width: 44ch;
}
.mo-videocard .theme-btn {
  align-self: flex-start;
  padding: 12px 22px;
  border-radius: 4px;
}

/* ---------- Back to top button ---------- */
.mo-to-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 9999;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--mo-accent);
  border-radius: 50%;
  background: var(--mo-accent);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.9);
  transition: opacity 0.28s ease, transform 0.28s ease, background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.mo-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.mo-to-top:hover {
  background: var(--mo-accent-hi);
  border-color: var(--mo-accent-hi);
}
.mo-to-top svg {
  display: block;
}
@media (max-width: 767px) {
  .mo-to-top {
    right: 18px;
    bottom: 18px;
    width: 46px;
    height: 46px;
  }
}

/* ---------- Footer wordmark: fit full width, never clip ---------- */
.footer-sec .big-text.mo-big-text {
  padding-bottom: 40px;
}
.footer-sec .big-text .section-title2.mo-fit {
  /* fluid fallback before the fit script runs; JS sets the exact size inline */
  font-size: clamp(40px, 12vw, 260px);
  line-height: 0.82;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.footer-sec .big-text .section-title2.mo-fit .overflow-hidden {
  display: block;
}
.footer-sec .big-text .section-title2.mo-fit .mo-fit-text {
  white-space: nowrap;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .mo-picks {
    grid-template-columns: 1fr 1fr;
  }
  .mo-label-grid,
  .mo-media-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}
@media (max-width: 767px) {
  .mo-picks {
    grid-template-columns: 1fr;
  }
  .mo-tele-cell {
    flex: 1 1 50%;
    border-bottom: 1px solid var(--mo-hairline);
  }
}
