/* =========================================================
   RALLY BOP HOMEPAGE V2 — single consolidated layout sheet
   Scope: body.rb-v1 (Rally Bop homepage only)
   Replaces the stacked player/playlist/row override layers.
   Music engine, data, artwork, slider scripts untouched.
   ========================================================= */

body.rb-v1 {
  --rb-navy-0: #030d1d;
  --rb-navy-1: #061b38;
  --rb-navy-2: #0b2f5e;
  --rb-blue:   #1556a3;
  --rb-white:  #ffffff;
  --rb-soft:   #d8e2f0;
  --rb-muted:  #9fb2cc;
  --rb-gold:   #e3b04b;
  --rb-gold-2: #f4cf7a;
  --rb-green:  #1e9e5a;
  --rb-red:    #c9343c;
  --rb-line:   rgba(255, 255, 255, .14);
  --rb-radius: 22px;
  --rb-width:  min(1100px, calc(100% - 32px));
}

/* ---------- 1. No giant workstation box ---------- */
body.rb-v1 > main.shell {
  width: var(--rb-width);
  max-width: none;
  margin: 0 auto;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

/* ---------- 2. Music row: a plain vertical stack ---------- */
body.rb-v1 #rally-bop-music-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(48px, 7vw, 80px);
  width: var(--rb-width);
  max-width: none;
  margin: clamp(40px, 6vw, 72px) auto;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
}

body.rb-v1 #rally-bop-independent-music,
body.rb-v1 #rally-bop-independent-playlist {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
}

body.rb-v1 #rally-bop-independent-music .rally-music-content {
  display: block;
  background: none;
  border: 0;
  box-shadow: none;
}

/* Section headings (player + playlist share one look) */
body.rb-v1 .rally-music-heading,
body.rb-v1 .rally-playlist-heading {
  min-height: 0;
  margin: 0 0 22px;
}

body.rb-v1 .rally-music-eyebrow,
body.rb-v1 .rally-playlist-eyebrow {
  display: block;
  margin-bottom: 10px;
  color: var(--rb-gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

body.rb-v1 #rally-bop-independent-music h2,
body.rb-v1 #rally-bop-independent-playlist h2 {
  margin: 0 0 10px;
  color: var(--rb-white);
  font-size: clamp(30px, 4.4vw, 50px);
  line-height: 1.08;
  text-shadow: 0 3px 16px rgba(0, 0, 0, .6);
}

body.rb-v1 .rally-music-heading p,
body.rb-v1 .rally-playlist-heading p {
  margin: 0;
  color: var(--rb-soft);
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.6;
}

/* Gold / green / red accent rule under each section heading */
body.rb-v1 .rally-music-heading::after,
body.rb-v1 .rally-playlist-heading::after {
  content: "";
  display: block;
  width: 96px;
  height: 4px;
  margin-top: 18px;
  border-radius: 4px;
  background: linear-gradient(90deg,
    var(--rb-gold) 0 33.3%,
    var(--rb-green) 33.3% 66.6%,
    var(--rb-red) 66.6% 100%);
}

/* ---------- 3. Player card ---------- */
body.rb-v1 #feetrous-clean-player {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(18px, 3vw, 32px);
  color: var(--rb-white);
  background:
    radial-gradient(circle at 12% 0%, rgba(21, 86, 163, .45), transparent 45%),
    linear-gradient(160deg, var(--rb-navy-2), var(--rb-navy-1) 60%, var(--rb-navy-0));
  border: 1px solid var(--rb-line);
  border-top: 3px solid var(--rb-gold);
  border-radius: var(--rb-radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}

body.rb-v1 #feetrous-clean-player .feetrous-player-shell {
  padding: 0;
  margin: 0;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

body.rb-v1 #feetrous-clean-player .feetrous-player-kicker {
  margin-bottom: 6px;
  color: var(--rb-gold);
  font-size: 12px;
  letter-spacing: .2em;
}

body.rb-v1 #feetrous-clean-player .feetrous-player-heading {
  margin: 0 0 16px;
  color: var(--rb-white);
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.15;
}

body.rb-v1 #feetrous-clean-player .feetrous-player-track {
  display: grid;
  gap: 18px;
}

body.rb-v1 #feetrous-clean-player .feetrous-player-status {
  margin-bottom: 4px;
  color: var(--rb-gold-2);
  font-size: 12px;
  letter-spacing: .12em;
}

/* Title is shown in the artwork caption; keep this one for the player JS only */
body.rb-v1 #feetrous-clean-player #now-playing-title {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

body.rb-v1 #feetrous-clean-player .feetrous-player-message {
  min-height: 0;
  margin-top: 4px;
  color: var(--rb-muted);
  font-size: 14px;
}

/* Now-playing artwork + caption */
body.rb-v1 #feetrous-clean-player #feetrous-player-preview-one {
  display: block;
  width: 100%;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: var(--rb-navy-0);
  border: 1px solid var(--rb-line);
  border-radius: 18px;
  box-shadow: none;
}

body.rb-v1 #feetrous-clean-player #feetrous-player-preview-one-content {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  text-align: left;
  font-weight: 400;
}

body.rb-v1 #feetrous-clean-player .lbf-preview-art {
  display: block;
  flex: none;
  width: 100%;
  height: auto;
  max-height: 540px;
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
  background: #000;
}

body.rb-v1 #feetrous-clean-player .lbf-preview-info {
  width: 100%;
  min-width: 0;
  padding: 14px 18px 16px;
  background: linear-gradient(180deg, rgba(6, 27, 56, .96), rgba(3, 13, 29, .98));
  border-top: 1px solid var(--rb-line);
}

body.rb-v1 #feetrous-clean-player .lbf-preview-label {
  color: var(--rb-gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

body.rb-v1 #feetrous-clean-player .lbf-preview-title {
  margin: 4px 0 2px;
  color: var(--rb-white);
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

body.rb-v1 #feetrous-clean-player .lbf-preview-artist {
  color: var(--rb-soft);
  font-size: 15px;
  line-height: 1.4;
}

/* Timeline + volume */
body.rb-v1 #feetrous-clean-player input[type="range"] {
  accent-color: var(--rb-gold);
}

body.rb-v1 #feetrous-clean-player .feetrous-player-time,
body.rb-v1 #feetrous-clean-player .feetrous-player-volume-value {
  color: var(--rb-soft);
}

body.rb-v1 #feetrous-clean-player .feetrous-player-volume {
  width: min(100%, 420px);
  margin: 0 auto;
}

body.rb-v1 #feetrous-clean-player .feetrous-player-mute {
  color: var(--rb-white);
  background: rgba(201, 52, 60, .18);
  border: 1px solid rgba(201, 52, 60, .7);
  border-radius: 12px;
}

/* Shared button base */
body.rb-v1 #feetrous-clean-player button {
  appearance: none;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  line-height: 1.15;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}

body.rb-v1 #feetrous-clean-player button:hover { transform: translateY(-1px); }

body.rb-v1 #feetrous-clean-player button:focus-visible,
body.rb-v1 #lbf-album-playlist button:focus-visible,
body.rb-v1 #lbf-album-playlist input:focus-visible {
  outline: 3px solid var(--rb-gold-2);
  outline-offset: 3px;
}

/* Transport: ↶10  ‹  PLAY  ›  10↷  /  Play All | Add to Playlist */
body.rb-v1 #feetrous-clean-player #feetrous-player-unified-controls {
  display: grid;
  grid-template-columns: 1fr 1fr 1.6fr 1fr 1fr;
  gap: 10px;
  margin: 0;
}

body.rb-v1 #feetrous-clean-player #feetrous-player-unified-controls > button {
  order: 0;
  width: 100%;
  min-width: 0;
  max-width: none;
  min-height: 52px;
  margin: 0;
  padding: 10px 6px;
  color: var(--rb-white);
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 14px;
  font-size: 15px;
  box-shadow: none;
}

body.rb-v1 #feetrous-clean-player #feetrous-rewind-10   { grid-area: 1 / 1; }
body.rb-v1 #feetrous-clean-player #previous-track       { grid-area: 1 / 2; }
body.rb-v1 #feetrous-clean-player #play-pause           { grid-area: 1 / 3; }
body.rb-v1 #feetrous-clean-player #next-track           { grid-area: 1 / 4; }

body.rb-v1 #feetrous-clean-player #feetrous-player-unified-controls > #previous-track,
body.rb-v1 #feetrous-clean-player #feetrous-player-unified-controls > #next-track {
  font-size: 28px;
  line-height: 1;
}
body.rb-v1 #feetrous-clean-player #feetrous-forward-10  { grid-area: 1 / 5; }
body.rb-v1 #feetrous-clean-player #feetrous-play-all    { grid-area: 2 / 1 / auto / span 3; }
body.rb-v1 #feetrous-clean-player #feetrous-add-playlist{ grid-area: 2 / 4 / auto / span 2; }

body.rb-v1 #feetrous-clean-player #feetrous-player-unified-controls > #play-pause {
  min-height: 60px;
  color: var(--rb-navy-1);
  background: linear-gradient(135deg, var(--rb-gold-2), var(--rb-gold));
  border-color: var(--rb-gold-2);
  font-size: 18px;
  box-shadow: 0 10px 26px rgba(227, 176, 75, .28);
}

body.rb-v1 #feetrous-clean-player #feetrous-player-unified-controls > #feetrous-play-all {
  background: var(--rb-green);
  border-color: #3cc47c;
}

body.rb-v1 #feetrous-clean-player #feetrous-player-unified-controls > #feetrous-add-playlist {
  background: transparent;
  border-color: var(--rb-gold);
  color: var(--rb-gold-2);
}

body.rb-v1 #feetrous-clean-player #feetrous-add-playlist[aria-disabled="true"] {
  opacity: .6;
}

/* Share row: four equal buttons */
body.rb-v1 #feetrous-clean-player #feetrous-player-share-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--rb-line);
}

body.rb-v1 #feetrous-clean-player #feetrous-player-share-row > * {
  width: 100%;
  min-width: 0;
  max-width: none;
  min-height: 42px;
  margin: 0;
  padding: 8px 4px;
  color: var(--rb-soft);
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--rb-line);
  border-radius: 10px;
  font-size: 13px;
  text-align: center;
  overflow-wrap: anywhere;
}

body.rb-v1 #feetrous-clean-player #feetrous-player-share-row > *:hover {
  color: var(--rb-white);
  border-color: var(--rb-gold);
}

/* Empty legacy action holders take no space */
body.rb-v1 #feetrous-clean-player .feetrous-player-controls:empty,
body.rb-v1 #feetrous-clean-player .feetrous-player-actions:empty {
  display: none;
}

/* ---------- 4. Playlist card (its own panel) ---------- */
body.rb-v1 #lbf-album-playlist {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(16px, 3vw, 28px);
  color: var(--rb-white);
  background: linear-gradient(170deg, rgba(11, 47, 94, .92), rgba(3, 13, 29, .96));
  border: 1px solid var(--rb-line);
  border-top: 3px solid var(--rb-green);
  border-radius: var(--rb-radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .4);
  backdrop-filter: none;
}

body.rb-v1 #lbf-album-playlist > h3 { display: none; }

body.rb-v1 #lbf-album-search {
  display: block;
  width: 100%;
  max-width: none;
  min-height: 50px;
  margin: 0 0 18px;
  padding: 12px 16px;
  color: var(--rb-navy-1);
  background: var(--rb-white);
  border: 2px solid transparent;
  border-radius: 12px;
  font-size: 16px;
}

body.rb-v1 #lbf-album-search:focus { border-color: var(--rb-gold); }
body.rb-v1 #lbf-album-search::placeholder { color: #5a6b84; }

/* Filters rendered by the player (All / Audio / Video) */
body.rb-v1 #lbf-album-playlist .feetrous-catalog-filter {
  color: var(--rb-white);
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--rb-line);
  border-radius: 10px;
}

body.rb-v1 #lbf-album-playlist .feetrous-catalog-filter[aria-pressed="true"],
body.rb-v1 #lbf-album-playlist .feetrous-catalog-filter.active {
  color: var(--rb-navy-1);
  background: var(--rb-gold);
  border-color: var(--rb-gold);
}

body.rb-v1 #lbf-track-list {
  display: grid;
  grid-auto-rows: max-content;
  align-content: start;
  gap: 10px;
  width: 100%;
  max-width: none;
  max-height: 620px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--rb-gold) transparent;
  padding-right: 4px;
}

body.rb-v1 #lbf-track-list .feetrous-media-card,
body.rb-v1 #lbf-track-list > button {
  color: var(--rb-white);
  background: rgba(3, 13, 29, .7);
  border: 1px solid var(--rb-line);
  border-radius: 14px;
  transition: border-color .15s ease, background-color .15s ease;
}

body.rb-v1 #lbf-track-list .feetrous-media-card:hover,
body.rb-v1 #lbf-track-list > button:hover {
  border-color: var(--rb-gold);
}

body.rb-v1 #lbf-track-list .feetrous-media-card.is-active,
body.rb-v1 #lbf-track-list .feetrous-media-card[aria-current="true"],
body.rb-v1 #lbf-track-list > button[aria-current="true"] {
  background: rgba(21, 86, 163, .55);
  border-color: var(--rb-gold);
  box-shadow: inset 4px 0 0 var(--rb-gold);
}

body.rb-v1 #lbf-album-list-status {
  margin: 12px 0 0;
  color: var(--rb-muted);
  font-size: 14px;
}

/* ---------- 5. Mobile ---------- */
@media (max-width: 700px) {
  body.rb-v1 { --rb-radius: 18px; --rb-width: calc(100% - 24px); }

  body.rb-v1 #rally-bop-music-row { gap: 44px; margin: 36px auto; }

  body.rb-v1 #feetrous-clean-player,
  body.rb-v1 #lbf-album-playlist { padding: 14px; }

  body.rb-v1 #feetrous-clean-player .lbf-preview-art { max-height: none; }

  body.rb-v1 #feetrous-clean-player #feetrous-player-unified-controls {
    grid-template-columns: 1fr 1fr 1.4fr 1fr 1fr;
    gap: 6px;
  }

  body.rb-v1 #feetrous-clean-player #feetrous-player-unified-controls > button {
    min-height: 46px;
    padding: 8px 2px;
    font-size: 12px;
  }

  body.rb-v1 #feetrous-clean-player #feetrous-player-unified-controls > #play-pause {
    min-height: 52px;
    font-size: 15px;
  }

  body.rb-v1 #feetrous-clean-player #feetrous-player-unified-controls > #previous-track,
  body.rb-v1 #feetrous-clean-player #feetrous-player-unified-controls > #next-track { font-size: 24px; }

  body.rb-v1 #feetrous-clean-player #feetrous-player-share-row { gap: 5px; }

  body.rb-v1 #feetrous-clean-player #feetrous-player-share-row > * {
    min-height: 38px;
    font-size: 11px;
  }

  body.rb-v1 #lbf-track-list { max-height: 520px; }
}

@media (prefers-reduced-motion: reduce) {
  body.rb-v1 #feetrous-clean-player button,
  body.rb-v1 #lbf-track-list .feetrous-media-card { transition: none; }
}

/* =========================================================
   V2 ADDITIONS
   ========================================================= */

/* ---------- 6. Track cards: room for the + / ✓ toggle ---------- */
body.rb-v1 #lbf-track-list .feetrous-media-card { position: relative; }
body.rb-v1 #lbf-track-list .feetrous-media-card[hidden],
body.rb-v1 #lbf-track-list .feetrous-media-card.rb-out { display: none !important; }
body.rb-v1 #lbf-track-list .feetrous-media-select {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 10px 60px 10px 10px;
  color: var(--rb-white);
  background: transparent;
  border: 0;
  border-radius: 14px;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

body.rb-v1 #lbf-track-list .feetrous-media-artwork-wrap {
  position: relative;
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  overflow: hidden;
  background: var(--rb-navy-2);
  border-radius: 10px;
}

body.rb-v1 #lbf-track-list .feetrous-media-artwork {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: auto;
  border-radius: 0;
}

body.rb-v1 #lbf-track-list .feetrous-media-type {
  position: absolute;
  left: 4px;
  bottom: 4px;
  padding: 2px 6px;
  color: var(--rb-white);
  background: rgba(3, 13, 29, .82);
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1.3;
}
body.rb-v1 #lbf-track-list .feetrous-media-type.is-video { color: var(--rb-gold-2); }

body.rb-v1 #lbf-track-list .feetrous-media-play-mark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--rb-white);
  background: rgba(3, 13, 29, .45);
  font-size: 22px;
  opacity: 0;
  transition: opacity .15s ease;
}
body.rb-v1 #lbf-track-list .feetrous-media-select:hover .feetrous-media-play-mark,
body.rb-v1 #lbf-track-list .feetrous-media-card.is-active .feetrous-media-play-mark { opacity: 1; }

body.rb-v1 #lbf-track-list .feetrous-media-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 0;
}

body.rb-v1 #lbf-track-list .feetrous-media-title {
  color: var(--rb-white);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

body.rb-v1 #lbf-track-list .feetrous-media-artist {
  color: var(--rb-muted);
  font-size: 14px;
}

body.rb-v1 #lbf-track-list .rb-pl-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  transform: translateY(-50%);
  color: var(--rb-gold-2);
  background: rgba(3, 13, 29, .85);
  border: 1px solid var(--rb-gold);
  border-radius: 50%;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  user-select: none;
}
body.rb-v1 #lbf-track-list .rb-pl-toggle:hover { background: rgba(227, 176, 75, .18); }
body.rb-v1 #lbf-track-list .rb-pl-toggle.is-in {
  color: var(--rb-white);
  background: var(--rb-green);
  border-color: #3cc47c;
  font-size: 17px;
}
body.rb-v1 #lbf-track-list .rb-pl-toggle:focus-visible {
  outline: 3px solid var(--rb-gold-2);
  outline-offset: 2px;
}

/* ---------- 7. Playlist tools (six controls) ---------- */
body.rb-v1 #rb-pl-tools { display: grid; gap: 12px; margin: 0 0 16px; }

body.rb-v1 #rb-pl-tools .rb-pl-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  background: rgba(3, 13, 29, .75);
  border: 1px solid var(--rb-line);
  border-radius: 14px;
}

body.rb-v1 #rb-pl-tools .rb-pl-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

body.rb-v1 #rb-pl-tools button,
body.rb-v1 #rb-pl-tools select,
body.rb-v1 #rb-pl-tools input {
  font: inherit;
  min-width: 0;
}

body.rb-v1 #rb-pl-tools button {
  appearance: none;
  min-height: 44px;
  padding: 8px 6px;
  color: var(--rb-soft);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.15;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

body.rb-v1 #rb-pl-tools .rb-pl-tabs button:hover { color: var(--rb-white); background: rgba(255, 255, 255, .06); }

body.rb-v1 #rb-pl-tools .rb-pl-tabs button[aria-pressed="true"] {
  color: var(--rb-navy-1);
  background: var(--rb-gold);
}

body.rb-v1 #rb-pl-tools #rb-pl-create {
  color: var(--rb-gold-2);
  border-color: var(--rb-gold);
}
body.rb-v1 #rb-pl-tools #rb-pl-create:hover { background: rgba(227, 176, 75, .14); }

body.rb-v1 #rb-pl-tools #rb-pl-playall {
  color: var(--rb-white);
  background: var(--rb-green);
  border-color: #3cc47c;
}
body.rb-v1 #rb-pl-tools #rb-pl-playall:hover { background: #22b066; }

body.rb-v1 #rb-pl-tools button:focus-visible,
body.rb-v1 #rb-pl-tools select:focus-visible,
body.rb-v1 #rb-pl-tools input:focus-visible {
  outline: 3px solid var(--rb-gold-2);
  outline-offset: 2px;
}

/* Create form + my-playlist bar */
body.rb-v1 #rb-pl-form,
body.rb-v1 #rb-pl-mybar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px;
  background: rgba(3, 13, 29, .6);
  border: 1px solid var(--rb-line);
  border-radius: 12px;
}
body.rb-v1 #rb-pl-form[hidden],
body.rb-v1 #rb-pl-mybar[hidden],
body.rb-v1 #rb-pl-note[hidden] { display: none; }

body.rb-v1 #rb-pl-form input,
body.rb-v1 #rb-pl-mybar select {
  flex: 1 1 160px;
  min-height: 42px;
  padding: 8px 12px;
  color: var(--rb-navy-1);
  background: var(--rb-white);
  border: 2px solid transparent;
  border-radius: 10px;
  font-size: 15px;
}
body.rb-v1 #rb-pl-form input:focus { border-color: var(--rb-gold); outline: none; }

body.rb-v1 #rb-pl-mybar label {
  display: flex;
  flex: 1 1 220px;
  align-items: center;
  gap: 8px;
  color: var(--rb-soft);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body.rb-v1 #rb-pl-form button,
body.rb-v1 #rb-pl-mybar button {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 8px 14px;
  border-color: var(--rb-line);
}
body.rb-v1 #rb-pl-form button[type="submit"] {
  color: var(--rb-navy-1);
  background: var(--rb-gold);
  border-color: var(--rb-gold);
}
body.rb-v1 #rb-pl-mybar #rb-pl-delete { color: #ffb3b8; border-color: rgba(201, 52, 60, .7); }
body.rb-v1 #rb-pl-mybar #rb-pl-delete:hover { background: rgba(201, 52, 60, .2); }

body.rb-v1 #rb-pl-note {
  margin: 0;
  padding: 12px 14px;
  color: var(--rb-soft);
  background: rgba(21, 86, 163, .22);
  border-left: 3px solid var(--rb-gold);
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.5;
}

/* ---------- 8. Desktop: player left, playlist right ---------- */
@media (min-width: 1000px) {
  body.rb-v1 #rally-bop-music-row {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(380px, 1fr);
    grid-template-rows: auto auto;
    column-gap: 28px;
    row-gap: 0;
    align-items: start;
    width: min(1340px, calc(100% - 48px));
  }

  @supports (grid-template-rows: subgrid) {
    body.rb-v1 #rally-bop-independent-music,
    body.rb-v1 #rally-bop-independent-playlist {
      display: grid;
      grid-row: span 2;
      grid-template-rows: subgrid;
    }
    body.rb-v1 .rally-music-heading,
    body.rb-v1 .rally-playlist-heading { align-self: end; }
  }

  /* Playlist panel height is matched to the player panel by the controller;
     the track list scrolls inside it. */
  body.rb-v1 #lbf-album-playlist.rb-synced {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
  }
  body.rb-v1 #lbf-album-playlist.rb-synced #lbf-track-list {
    flex: 1 1 auto;
    min-height: 200px;
    max-height: none;
  }
  body.rb-v1 #lbf-album-playlist.rb-synced #lbf-album-list-status { flex: 0 0 auto; }
}

/* ---------- 9. Sub-banner above the story slider ---------- */
body.rb-v1 > .rally-home-feature-card.rb-moved {
  width: var(--rb-width) !important;
  max-width: 1100px !important;
  margin: 0 auto clamp(32px, 5vw, 56px) !important;
}

@media (max-width: 700px) {
  body.rb-v1 #rb-pl-tools button { font-size: 12.5px; min-height: 42px; padding: 6px 3px; }
  body.rb-v1 #lbf-track-list .rb-pl-toggle { width: 34px; height: 34px; right: 8px; }
  body.rb-v1 #lbf-track-list .feetrous-media-select { gap: 10px; padding: 8px 50px 8px 8px; }
  body.rb-v1 #lbf-track-list .feetrous-media-artwork-wrap { flex-basis: 60px; width: 60px; height: 60px; }
  body.rb-v1 #lbf-track-list .feetrous-media-title { font-size: 15px; }
}

/* Actual homepage structure: player and playlist are direct children of the V2 row. */
body.rb-v1 #rally-bop-music-row > #feetrous-clean-player,
body.rb-v1 #rally-bop-music-row > #lbf-album-playlist { min-width:0; width:100%; max-width:none; }
body.rb-v1 .rally-home-feature-card.rb-moved { width:var(--rb-width); max-width:1100px; margin:0 auto 40px; }


/* RALLY_BOP_COMPACT_MUSIC_V1_START */

/* Compact, centered music area */
body.rb-v1 #rally-bop-music-row {
  width: min(100% - 32px, 860px) !important;
  max-width: 860px !important;
  margin: 24px auto 36px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 12px !important;
  align-items: start !important;
}

/* Player left */
body.rb-v1 #rally-bop-music-row > #feetrous-clean-player {
  grid-column: 1 !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 10px !important;
  box-sizing: border-box !important;
}

/* Playlist right */
body.rb-v1 #rally-bop-music-row > #lbf-album-playlist {
  grid-column: 2 !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 10px !important;
  box-sizing: border-box !important;
}

/* Keep player artwork under control */
body.rb-v1 #feetrous-clean-player img {
  max-width: 100% !important;
  max-height: 180px !important;
  object-fit: contain;
}

/* Scroll tracks inside playlist instead of extending the page */
body.rb-v1 #lbf-track-list {
  max-height: 280px !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
}

/* Compact track rows */
body.rb-v1 #lbf-track-list .feetrous-media-card {
  min-height: 0 !important;
  margin-bottom: 6px !important;
}

/* Mobile: one column */
@media (max-width: 999px) {
  body.rb-v1 #rally-bop-music-row {
    grid-template-columns: minmax(0, 1fr) !important;
    max-width: 640px !important;
    gap: 16px !important;
  }

  body.rb-v1 #rally-bop-music-row > #feetrous-clean-player,
  body.rb-v1 #rally-bop-music-row > #lbf-album-playlist {
    grid-column: 1 !important;
  }

  body.rb-v1 #lbf-track-list {
    max-height: 350px !important;
  }
}

/* RALLY_BOP_COMPACT_MUSIC_V1_END */
