/* Rally Bop Hub — public page. Palette matches the Rally Bop artist page. */
:root {
  --bg: #06102e;
  --bg-2: #0b1d52;
  --panel: #0f2463;
  --panel-2: #142d7a;
  --line: rgba(255, 255, 255, 0.1);
  --text: #eef2fb;
  --muted: #b8c3e0;
  --gold: #f5c842;
  --green: #1fa34a;
  --red: #d62828;
  --radius: 16px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(1200px 600px at 50% -10%, #17348f 0%, transparent 60%), linear-gradient(180deg, var(--bg-2), var(--bg) 40%);
  color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--gold); }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

.stripe { height: 5px; background: linear-gradient(90deg, var(--gold) 0 33.3%, var(--green) 33.3% 66.6%, var(--red) 66.6% 100%); }

.hero { padding: 56px 16px 24px; }
.hero-inner { max-width: 1100px; margin: 0 auto; display: flex; gap: 32px; align-items: center; }
.hero-photo { width: 180px; height: 180px; border-radius: 50%; object-fit: cover; border: 4px solid var(--gold); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45); flex: 0 0 auto; }
.hero-name { margin: 0; font-size: clamp(40px, 6vw, 76px); line-height: 1; font-weight: 900; letter-spacing: -0.01em; text-shadow: 0 4px 22px rgba(0, 0, 0, 0.5); }
.hero-tagline { margin: 12px 0 0; font-size: clamp(17px, 1.6vw, 22px); color: #e3e9f8; }
.hero-location { margin: 6px 0 0; font-size: 14px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.hero-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { display: inline-block; padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(245, 200, 66, 0.6); color: var(--gold); text-decoration: none; font-weight: 700; font-size: 14px; }
.chip:hover, .chip:focus-visible { background: var(--gold); color: var(--bg); }

.wrap { max-width: 1400px; margin: 0 auto; padding: 8px 16px 64px; }
.block { margin: 28px 0; }
.kicker { margin: 0 0 14px; font-size: 13px; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }

.feature { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35); }
.feature-img { width: 100%; height: 100%; object-fit: cover; min-height: 260px; }
.feature-body { padding: 28px; display: flex; flex-direction: column; justify-content: center; gap: 10px; align-items: flex-start; }
.feature-title { margin: 0; font-size: clamp(26px, 3vw, 40px); line-height: 1.1; }
.feature-text { margin: 0; color: var(--muted); }

.bio { background: rgba(15, 36, 99, 0.6); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.bio p { margin: 0 0 12px; }
.bio p:last-child { margin: 0; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 22px; }
.card { display: flex; flex-direction: column; text-align: left; font: inherit; color: inherit; text-decoration: none; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: pointer; padding: 0; transition: transform 0.15s ease, border-color 0.15s ease;  height: 100%;  min-width: 0; }
.card:hover, .card:focus-visible { transform: translateY(-3px); border-color: rgba(245, 200, 66, 0.6); }
.card-img {
  display: block;
  width: 100%;
  aspect-ratio: 941 / 1672;
  height: auto;
  object-fit: contain;
  object-position: center;
  background: rgba(0,0,0,.25);
}
.card-body { padding: 20px 22px 24px; min-width: 0; overflow-wrap: anywhere;  flex: 1;  display: flex;  flex-direction: column; }
.card-type { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.card-title { margin: 8px 0 0; font-size: 21px; line-height: 1.3; overflow-wrap: anywhere;  display: -webkit-box;  -webkit-box-orient: vertical;  -webkit-line-clamp: 2;  overflow: hidden; }
.card-text { margin: 10px 0 0; color: var(--muted); font-size: 15px; line-height: 1.5; overflow-wrap: anywhere;  display: -webkit-box;  -webkit-box-orient: vertical;  -webkit-line-clamp: 4;  overflow: hidden; }

.player { display: flex; gap: 18px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; }
.player-art { width: 120px; height: 120px; border-radius: 12px; object-fit: cover; flex: 0 0 auto; }
.player-body { flex: 1; min-width: 0; }
.player-now { margin: 0 0 10px; font-weight: 800; font-size: 18px; }
.player audio { width: 100%; }
.player video { width: 100%; max-height: 70vh; border-radius: 12px; background: #000; }

.tracks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.track-btn { width: 100%; display: flex; align-items: center; gap: 14px; padding: 10px 14px; background: rgba(15, 36, 99, 0.7); border: 1px solid var(--line); border-radius: 12px; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.track-btn:hover, .track-btn:focus-visible, .track.active .track-btn { border-color: var(--gold); background: var(--panel-2); }
.track-num { width: 26px; color: var(--muted); font-weight: 700; font-size: 13px; }
.track-art { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; flex: 0 0 auto; }
.track-art.empty { background: var(--panel-2); }
.track-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.track-title { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track-artist { color: var(--muted); font-size: 13px; }
.track-type { font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }

.subscribe { background: linear-gradient(135deg, var(--panel), #0a1a4a); border: 1px solid rgba(245, 200, 66, 0.35); border-radius: var(--radius); padding: 26px 24px; }
.sub-copy { margin: 0 0 16px; color: var(--muted); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.field input { font: inherit; font-size: 16px; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.2); background: #fff; color: #0b1433; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0; font-size: 14px; color: var(--muted); }
.check input { margin-top: 3px; width: 18px; height: 18px; flex: 0 0 auto; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn { display: inline-block; font: inherit; font-weight: 800; font-size: 15px; padding: 11px 22px; border-radius: 999px; border: 1px solid var(--gold); cursor: pointer; text-decoration: none; }
.btn.gold { background: var(--gold); color: var(--bg); }
.btn.gold:hover, .btn.gold:focus-visible { filter: brightness(1.08); }
.btn:disabled { opacity: 0.6; cursor: default; }
.form-msg { min-height: 1.4em; margin: 10px 0 0; font-weight: 700; }
.form-msg.ok { color: #7ee2a0; }
.form-msg.err { color: #ff9a9a; }

.back { margin-top: 40px; text-align: center; }
.load-error { position: fixed; left: 16px; right: 16px; bottom: 16px; margin: 0; padding: 12px 16px; background: #5a1010; border-radius: 12px; text-align: center; }

@media (max-width: 760px) {
  .hero { padding-top: 36px; }
  .hero-inner { flex-direction: column; text-align: center; gap: 18px; }
  .hero-photo { width: 140px; height: 140px; }
  .hero-links { justify-content: center; }
  .feature { grid-template-columns: 1fr; }
  .feature-img { min-height: 200px; }
  .row { grid-template-columns: 1fr; }
  .player { flex-direction: column; align-items: stretch; }
  .player-art { width: 100%; height: auto; aspect-ratio: 1; }
}


/* RALLY_BOP_PUBLIC_HUB_POLISH_V1 — fixed background */
html {
  background: #071321 !important;
}

body {
  background: transparent !important;
  position: relative;
  isolation: isolate;
}

body::before {
  content: none;
}

.rally-hub-story-banner {
  display: block;
  width: 100%;
  margin: 16px auto 28px;
  overflow: hidden;
  border-radius: 16px;
}
.rally-hub-story-banner img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.rally-hub-story-banner:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}
.rally-hub-admin-nav {
  display: flex;
  justify-content: flex-end;
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 16px;
}
.rally-hub-admin-nav a {
  display: inline-block;
  padding: 7px 18px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold);
  text-decoration: none;
  font-weight: 700;
}
.rally-hub-admin-nav a:hover,
.rally-hub-admin-nav a:focus-visible {
  background: var(--gold);
  color: #071321;
}
#tracks {
  display: none !important;
}
@media (max-width: 700px) {
  html, body {
    background-attachment: scroll !important;
  }
  .rally-hub-story-banner {
    border-radius: 12px;
  }
}


/* RALLY_BOP_ABOUT_BRANDING_V1 */
#bio-block .rally-about-branding {
  width: 100%;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
  align-items: center;
  gap: 20px;
  padding: 14px 24px;
  text-align: center;
  background: rgba(15,36,99,.72);
}

#bio-block .rally-brand-top,
#bio-block .rally-brand-bottom {
  color: #e5c67b;
  font-size: clamp(12px,1.35vw,18px);
  font-weight: 700;
  letter-spacing: .07em;
  line-height: 1.35;
  text-transform: uppercase;
}

#bio-block .rally-brand-top {
  text-align: left;
}

#bio-block .rally-brand-bottom {
  text-align: right;
}

#bio-block .rally-brand-main {
  color: #fff;
  font-size: clamp(27px,3.5vw,52px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: .04em;
  white-space: nowrap;
  margin: 0;
  text-shadow: 0 3px 14px rgba(0,0,0,.45);
}

@media (max-width:600px) {
  #bio-block .rally-about-branding {
    gap: 8px;
    padding: 12px 10px;
  }
  #bio-block .rally-brand-top,
  #bio-block .rally-brand-bottom {
    font-size: 10px;
    letter-spacing: 0;
    overflow-wrap: anywhere;
  }
  #bio-block .rally-brand-main {
    font-size: clamp(20px,5vw,30px);
  }
}
/* RALLY_BOP_ABOUT_BRANDING_V1_END */

/* RALLY_HUB_FOOTER_V1 */
#rb-footer {
  margin-top: 34px;
  background: rgba(8,19,47,.96);
  color: #f5f1e8;
  border-top: 1px solid rgba(229,198,123,.35);
}
#rb-footer .rb-footer-stripe {
  height: 5px;
  background: linear-gradient(90deg,#236a40,#d4b451,#912e32);
}
#rb-footer .rb-footer-inner {
  max-width: 1400px;
  margin: auto;
  padding: 34px 24px;
  display: grid;
  grid-template-columns: minmax(0,1.5fr) minmax(150px,1fr) minmax(170px,1fr) auto;
  gap: 32px;
  align-items: start;
}
#rb-footer .rb-footer-kicker,
#rb-footer .rb-footer-head {
  margin: 0 0 10px;
  color: #e5c67b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
#rb-footer .rb-footer-name {
  margin: 0 0 10px;
  font-size: clamp(30px,4vw,54px);
  line-height: 1.1;
  color: white;
}
#rb-footer .rb-footer-tag {
  max-width: 440px;
  margin: 0;
  line-height: 1.6;
  color: #d5d9e2;
}
#rb-footer .rb-footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
#rb-footer .rb-footer-links a {
  color: #f5f1e8;
  text-decoration: none;
}
#rb-footer .rb-footer-links a:hover {
  color: #e5c67b;
}
#rb-footer .rb-footer-share {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
#rb-footer .rb-footer-qr {
  display: block;
  width: 116px;
  height: 116px;
  padding: 7px;
  background: white;
  border-radius: 9px;
  box-sizing: content-box;
}
#rb-footer .rb-footer-share p {
  margin: 0;
  font-size: 13px;
}
#rb-footer .rb-footer-copy {
  border: 1px solid #e5c67b;
  background: transparent;
  color: #e5c67b;
  border-radius: 8px;
  padding: 9px 17px;
  font: inherit;
  cursor: pointer;
}
#rb-footer .rb-footer-copy:hover {
  background: #e5c67b;
  color: #102044;
}
#rb-footer .rb-footer-base {
  max-width: 1400px;
  margin: auto;
  padding: 17px 24px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid rgba(255,255,255,.14);
  color: #bfc5d1;
  font-size: 12px;
}
@media(max-width:700px) {
  #rb-footer .rb-footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px 20px;
  }
  #rb-footer .rb-footer-share {
    align-items: flex-start;
    text-align: left;
  }
  #rb-footer .rb-footer-base {
    flex-direction: column;
    padding: 16px 20px;
  }
}

#rb-footer .rb-footer-legal {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
#rb-footer .rb-footer-legal a {
  color: #f5f1e8;
  text-decoration: none;
}
#rb-footer .rb-footer-legal a:hover {
  color: #e5c67b;
}
@media (max-width: 1050px) and (min-width: 701px) {
  #rb-footer .rb-footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* RALLY_HUB_FOOTER_V1_END */

/* RALLY_BOP_LANDSCAPE_FAVORITES_V3 */
#favorites {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 20px;
  align-items: stretch;
}

#favorites .fav-card {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
  text-align: left;
}

#favorites .fav-card .card-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  background: rgba(0,0,0,.25);
  flex: 0 0 auto;
}

#favorites .fav-card .card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 15px 18px 18px;
}

#favorites .fav-card .card-title {
  font-size: 18px;
  line-height: 1.3;
}

#favorites .fav-card .card-text {
  font-size: 14px;
}

@media (max-width: 640px) {
  #favorites {
    grid-template-columns: 1fr;
  }
}

/* RALLY_BOP_FEATURED_STYLE_FAVORITES_V1 */
#favorites {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

#favorites .favorite-feature {
  display: grid;
  grid-template-columns: minmax(0, 45%) minmax(0, 55%);
  width: 100%;
  min-height: 220px;
  overflow: hidden;
}

#favorites .favorite-feature .feature-img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  max-height: 300px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}

#favorites .favorite-feature .feature-body {
  padding: 22px 26px;
  min-width: 0;
  justify-content: center;
}

#favorites .favorite-feature .feature-title {
  font-size: clamp(21px, 2.5vw, 30px);
}

@media (max-width: 640px) {
  #favorites .favorite-feature {
    grid-template-columns: 1fr;
  }

  #favorites .favorite-feature .feature-img {
    height: auto;
    min-height: 0;
    max-height: none;
  }

  #favorites .favorite-feature .feature-body {
    padding: 20px;
  }
}


/* RALLY_BOP_HUB_APPROVED_BACKGROUND_V1 */
html body {
  background-color: #102218;
  background-image:
    linear-gradient(
      rgba(8,20,15,.80),
      rgba(8,20,15,.88)
    ),
    url("/matrixaligner/artists/rally-bop/images/rally-bop-approved-background-20261017.png");
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* RALLY_BOP_HUB_REMOVE_PAGE_BACKGROUND_V1 */
html,
body {
  background-image: none !important;
  background-color: #071321 !important;
  background-attachment: scroll !important;
}
/* RALLY_BOP_HUB_REMOVE_PAGE_BACKGROUND_V1_END */
