/* WeAfrica Music portal (/music). Builds on style.css (Poppins/Inter).
   Approved palette (16 Nov 2026): black #1C1C1E, white #FFFFFF, muted green #39735A.
   No bright lime or gold. Layout: black "stage" bands for hero, Top 10 and Song of the
   Week; white and soft-grey bands for everything else. Mobile-first. */
:root {
  --mp-black: #1C1C1E;
  --mp-black-2: #26262A;      /* raised surface on black */
  --mp-line-dark: #3A3A3F;
  --mp-white: #FFFFFF;
  --mp-soft: #F5F5F4;
  --mp-line: #E4E4E2;
  --mp-text: #1C1C1E;
  --mp-muted: #5F6264;
  --mp-muted-dark: #A7A9AC;
  --mp-green: #39735A;        /* buttons, highlights, accents */
  --mp-green-dark: #2E5E49;   /* hover */
  --mp-green-tint: #9CC2AE;   /* the same green, lightened, for small text on black */
  --mp-down: #C98B82;
  --mp-header-h: 72px;
}

.music-portal main { background: var(--mp-white); }

/* ---------- Music navigation ---------- */
.mp-subnav { position: sticky; top: var(--mp-header-h); z-index: 90; background: var(--mp-black); color: var(--mp-white); border-bottom: 1px solid var(--mp-line-dark); }
.mp-subnav-inner { display: flex; align-items: center; gap: 20px; padding-top: 10px; padding-bottom: 10px; }
.mp-subnav-brand { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: 15px; white-space: nowrap; flex: none; }
.mp-subnav-brand img { width: 28px; height: 28px; border-radius: 7px; }
.mp-subnav-links { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.mp-subnav-links::-webkit-scrollbar { display: none; }
.mp-subnav-links a { padding: 7px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--mp-muted-dark); white-space: nowrap; transition: color .15s, background .15s; }
.mp-subnav-links a:hover, .mp-subnav-links a.is-current { color: var(--mp-white); background: rgba(255,255,255,.08); }
.mp-subnav-links a[hidden] { display: none; }
@media (max-width: 700px) { .mp-subnav-brand span { display: none; } .mp-subnav-inner { gap: 8px; } }

.mp-demo-banner { background: #EDE7DA; color: var(--mp-black); font-size: 14px; padding: 10px 0; border-bottom: 1px solid #D8CFBC; }
.mp-demo-banner code { background: rgba(0,0,0,.06); padding: 1px 5px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.mp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 999px; font-weight: 600; font-size: 15px; border: 1.5px solid transparent; transition: background .15s, border-color .15s, color .15s; white-space: nowrap; }
.mp-btn:focus-visible, .mp-subnav a:focus-visible, .mp-card a:focus-visible, .mp-play:focus-visible { outline: 3px solid var(--mp-green-tint); outline-offset: 2px; }
.mp-btn-primary { background: var(--mp-green); color: var(--mp-white); }
.mp-btn-primary:hover { background: var(--mp-green-dark); }
.mp-btn-ghost { border-color: currentColor; color: var(--mp-text); }
.mp-btn-ghost:hover { background: rgba(0,0,0,.04); }
.mp-hero .mp-btn-ghost, .mp-dark .mp-btn-ghost { color: var(--mp-white); }
.mp-hero .mp-btn-ghost:hover, .mp-dark .mp-btn-ghost:hover { background: rgba(255,255,255,.08); }
.mp-btn-sm { padding: 8px 14px; font-size: 13px; }
.mp-listen::before { content: ""; border-left: 8px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }

/* ---------- Hero ---------- */
.mp-hero { background: var(--mp-black); color: var(--mp-white); padding: 80px 0 72px; }
.mp-hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.mp-hero-inner.no-slides { grid-template-columns: 1fr; max-width: 860px; }
.mp-kicker { display: inline-block; font: 600 12px/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--mp-green); margin-bottom: 14px; }
.mp-hero .mp-kicker, .mp-dark .mp-kicker, .mp-join-band .mp-kicker { color: var(--mp-green-tint); }
.mp-hero h1 { font-size: clamp(40px, 6.4vw, 72px); line-height: 1.02; color: var(--mp-white); letter-spacing: -.03em; margin-bottom: 20px; text-wrap: balance; }
.mp-hero h1 span { color: var(--mp-green-tint); }
.mp-hero-inner:not(.no-slides) h1 { font-size: clamp(36px, 4.4vw, 56px); }   /* keeps "Where African Talent" on one line beside the slides */
.mp-hero-lead { font-size: 18px; color: var(--mp-muted-dark); max-width: 56ch; margin-bottom: 30px; }
.mp-hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.mp-hero-slides { position: relative; }
.mp-slide { display: none; }
.mp-slide.is-active { display: grid; animation: mp-fade .8s ease; }
@keyframes mp-fade { from { opacity: .2; } to { opacity: 1; } }
.mp-slide-art { aspect-ratio: 1; width: min(100%, 380px); justify-self: end; border-radius: 6px; overflow: hidden; }
.mp-slide-art img, .mp-slide-art .mp-art { width: 100%; height: 100%; object-fit: cover; }
.mp-slide-meta { justify-self: end; width: min(100%, 380px); padding-top: 16px; display: grid; gap: 4px; }
.mp-slide-meta strong { font: 700 22px/1.2 var(--font-display); color: var(--mp-white); }
.mp-slide-meta span { color: var(--mp-muted-dark); font-size: 15px; }
.mp-slide-meta .mp-hero-ctas { margin-top: 12px; }
.mp-hero-dots { display: flex; gap: 8px; justify-content: flex-end; padding-top: 18px; }
.mp-hero-dots button { width: 28px; height: 3px; border: 0; background: var(--mp-line-dark); padding: 0; }
.mp-hero-dots button[aria-current="true"] { background: var(--mp-white); }
@media (max-width: 900px) {
  .mp-hero { padding: 52px 0 44px; }
  .mp-hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .mp-slide-art, .mp-slide-meta { justify-self: start; }
  .mp-hero-dots { justify-content: flex-start; }
}

/* ---------- Sections ---------- */
.mp-section { padding: 76px 0; scroll-margin-top: calc(var(--mp-header-h) + 56px); }
.mp-soft { background: var(--mp-soft); }
.mp-dark { background: var(--mp-black); color: var(--mp-white); }
.mp-dark h2 { color: var(--mp-white); }
.mp-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.mp-head h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 0; letter-spacing: -.02em; text-wrap: balance; }
.mp-sub { margin: 8px 0 0; font-size: 15px; color: var(--mp-muted); }
.mp-dark .mp-sub { color: var(--mp-muted-dark); }
@media (max-width: 700px) { .mp-section { padding: 52px 0; } }

/* Artwork when a song or artist has no picture: neutral, never decorative colour. */
.mp-art { display: grid; place-items: center; width: 100%; height: 100%; font: 700 clamp(18px, 3.6vw, 30px)/1 var(--font-display); color: rgba(255,255,255,.75); letter-spacing: -.02em; }

/* ---------- Top 10 Malawi (approved design) ---------- */
.mp-t10 { display: grid; gap: 24px; }
.mp-t10-head h2 { font-size: clamp(30px, 4.2vw, 44px); font-weight: 800; }
.mp-t10-meta { margin: 10px 0 0; font-size: 14px; color: var(--mp-muted-dark); display: flex; flex-wrap: wrap; gap: 4px 16px; }
.mp-t10-meta b { color: var(--mp-white); font-weight: 600; }

.mp-t10-lead { display: grid; grid-template-columns: 240px minmax(0,1fr); gap: 28px; align-items: center; padding: 20px; border: 1px solid var(--mp-line-dark); border-radius: 8px; background: var(--mp-black-2); }
.mp-t10-lead .mp-t10-art { aspect-ratio: 1; border-radius: 6px; overflow: hidden; }
.mp-t10-lead .mp-t10-art img { width: 100%; height: 100%; object-fit: cover; }
.mp-t10-no { display: flex; align-items: baseline; gap: 12px; }
.mp-t10-no b { font: 800 72px/.9 var(--font-display); color: var(--mp-white); letter-spacing: -.04em; }
.mp-t10-lead h3 { font: 700 26px/1.2 var(--font-display); color: var(--mp-white); margin: 10px 0 4px; overflow-wrap: anywhere; }
.mp-t10-who { color: var(--mp-muted-dark); font-size: 15px; margin: 0; }
.mp-t10-stats { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 14px 0 18px; font-size: 13px; color: var(--mp-muted-dark); }
.mp-t10-stats b { display: block; color: var(--mp-white); font: 700 17px/1.2 var(--font-display); font-variant-numeric: tabular-nums; }

/* Two columns read downwards (2–6 left, 7–10 right); --rows is set by the script. */
.mp-t10-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(var(--rows, 5), auto); grid-auto-flow: column; gap: 0 32px; }
.mp-t10-list[hidden] { display: none; }
.mp-t10-row { display: grid; grid-template-columns: 30px 38px 52px minmax(0,1fr) 40px; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid var(--mp-line-dark); }
.mp-t10-rank { font: 700 19px/1 var(--font-display); color: var(--mp-white); text-align: right; font-variant-numeric: tabular-nums; }
.mp-t10-row .mp-t10-art { width: 52px; height: 52px; border-radius: 4px; overflow: hidden; }
.mp-t10-row .mp-t10-art img { width: 100%; height: 100%; object-fit: cover; }
.mp-t10-txt { min-width: 0; display: grid; gap: 2px; }
.mp-t10-txt a { color: var(--mp-white); font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-t10-txt span { color: var(--mp-muted-dark); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.mp-move { font: 700 11px/1 var(--font-body); text-align: center; white-space: nowrap; }
.mp-move.up { color: var(--mp-green-tint); }
.mp-move.down { color: var(--mp-down); }
.mp-move.same { color: var(--mp-muted-dark); }
.mp-move.new { color: var(--mp-black); background: var(--mp-white); border-radius: 3px; padding: 4px 0; font-size: 10px; letter-spacing: .04em; }
.mp-t10-lead .mp-move { font-size: 13px; padding: 5px 8px; }

.mp-play { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--mp-green); transition: background .15s; }
.mp-play:hover { background: var(--mp-green-dark); }
.mp-play::before { content: ""; border-left: 11px solid var(--mp-white); border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }

.mp-t10-foot { margin: 0; font-size: 13px; color: var(--mp-muted-dark); border-top: 1px solid var(--mp-line-dark); padding-top: 16px; max-width: none; }

@media (max-width: 960px) { .mp-t10-list { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; } }
@media (max-width: 640px) {
  .mp-t10-lead { grid-template-columns: 112px minmax(0,1fr); gap: 16px; padding: 14px; }
  .mp-t10-no b { font-size: 44px; }
  .mp-t10-lead h3 { font-size: 19px; margin-top: 6px; }
  .mp-t10-stats { display: none; }
  .mp-t10-row { grid-template-columns: 24px 34px 48px minmax(0,1fr) 40px; gap: 9px; }
  .mp-t10-row .mp-t10-art { width: 48px; height: 48px; }
}

/* ---------- Cards and rails ---------- */
.mp-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 200px); gap: 20px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.mp-rail > * { scroll-snap-align: start; }
.mp-card { display: grid; gap: 10px; align-content: start; min-width: 0; }
.mp-card-art { aspect-ratio: 1; border-radius: 6px; overflow: hidden; background: #E8E8E6; position: relative; display: block; }
.mp-card-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.mp-card:hover .mp-card-art img { transform: scale(1.03); }
.mp-card-body { display: grid; gap: 3px; min-width: 0; }
.mp-card-body strong { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-card-body span { font-size: 13px; color: var(--mp-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-card .mp-btn { justify-self: start; }
.mp-tag { position: absolute; left: 8px; top: 8px; background: rgba(28,28,30,.82); color: var(--mp-white); font-size: 11px; font-weight: 700; padding: 4px 7px; border-radius: 3px; letter-spacing: .04em; }

.mp-grid { display: grid; gap: 24px; }
.mp-grid-artists { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
@media (max-width: 560px) {
  .mp-grid-artists { grid-template-columns: 1fr 1fr; gap: 16px; }
  .mp-artist p { display: none; }
  .mp-artist-ctas .mp-btn-ghost { display: none; }   /* the photo already opens the profile */
}
.mp-artist .mp-card-art { aspect-ratio: 4 / 5; }
.mp-artist p { font-size: 14px; margin: 0; color: var(--mp-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mp-artist-ctas { display: flex; flex-wrap: wrap; gap: 8px; }
.mp-grid-news { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.mp-news-card p { font-size: 14px; color: var(--mp-muted); margin: 0; }

/* ---------- Song of the week / Artist of the week ---------- */
.mp-feature { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: center; }
.mp-feature-art { aspect-ratio: 1; border-radius: 6px; overflow: hidden; max-width: 420px; }
.mp-feature-art.portrait { aspect-ratio: 4 / 5; }
.mp-feature-art img { width: 100%; height: 100%; object-fit: cover; }
.mp-feature h2 { font-size: clamp(30px, 4.4vw, 48px); letter-spacing: -.02em; margin: 0 0 8px; }
.mp-feature p { max-width: 56ch; color: var(--mp-muted); }
.mp-dark .mp-feature p { color: var(--mp-muted-dark); }
.mp-feature .mp-hero-ctas { margin-top: 20px; }
.mp-past { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; color: var(--mp-muted-dark); }
.mp-past b { color: var(--mp-white); font-weight: 600; }
@media (max-width: 820px) { .mp-feature { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Join band ---------- */
.mp-join-band { background: var(--mp-green); color: var(--mp-white); padding: 60px 0; }
.mp-join-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.mp-join-band h2 { color: var(--mp-white); font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -.02em; }
.mp-join-band p { color: rgba(255,255,255,.86); max-width: 58ch; margin: 0; }
.mp-join-band .mp-kicker { color: rgba(255,255,255,.75); }
.mp-join-ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.mp-join-band .mp-btn-primary { background: var(--mp-white); color: var(--mp-green); }
.mp-join-band .mp-btn-primary:hover { background: #EEF3F0; }
.mp-join-band .mp-btn-ghost { color: var(--mp-white); }
@media (max-width: 820px) { .mp-join-inner { grid-template-columns: 1fr; } .mp-join-ctas { justify-content: flex-start; } }

@media (prefers-reduced-motion: reduce) {
  .mp-slide.is-active { animation: none; }
  .mp-card-art img, .mp-btn, .mp-play { transition: none; }
}

/* ---------- Show Talent (competitions and published results only) ---------- */
.mp-talent-generic { display: grid; gap: 20px; max-width: 68ch; }
.mp-talent-generic p { margin: 0; font-size: 17px; color: var(--mp-muted); }
.mp-talent-list { display: grid; gap: 24px; }
.mp-talent-card { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); border: 1px solid var(--mp-line); border-radius: 8px; overflow: hidden; background: var(--mp-white); }
.mp-talent-card:not(.is-featured) { grid-template-columns: 280px minmax(0, 1fr); }
.mp-talent-art { position: relative; background: var(--mp-black); min-height: 220px; }
.mp-talent-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mp-talent-art-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--mp-green-tint); font: 800 28px/1 var(--font-display); }
.mp-talent-badge { position: absolute; left: 14px; top: 14px; font: 700 12px/1 var(--font-body); letter-spacing: .04em; padding: 7px 10px; border-radius: 3px; background: var(--mp-white); color: var(--mp-black); }
.mp-talent-badge.is-open { background: var(--mp-green); color: var(--mp-white); }
.mp-talent-badge.is-voting { background: var(--mp-black); color: var(--mp-white); }
.mp-talent-body { padding: 28px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.mp-talent-body h3 { font-size: clamp(22px, 2.6vw, 28px); margin: 0; letter-spacing: -.02em; overflow-wrap: anywhere; }
.mp-talent-where { margin: 0; font-size: 14px; color: var(--mp-muted); }
.mp-talent-desc { margin: 0; color: var(--mp-muted); }
.mp-talent-facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 4px 0 8px; font-size: 14px; }
.mp-talent-facts dt { color: var(--mp-muted); }
.mp-talent-facts dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.mp-talent-results { border-top: 1px solid var(--mp-line); padding-top: 20px; display: grid; gap: 14px; }
.mp-talent-results h3 { margin: 0; font-size: 20px; }
.mp-talent-result p { margin: 0 0 8px; }
.mp-talent-result ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mp-talent-result li { display: flex; gap: 12px; align-items: baseline; }
.mp-talent-result li b { width: 24px; font: 700 18px/1 var(--font-display); color: var(--mp-green); }
.mp-talent-result li small { color: var(--mp-muted); }
.mp-talent-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.mp-talent-steps li { display: grid; gap: 12px; align-content: start; }
.mp-talent-steps b { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--mp-green); color: var(--mp-white); font: 700 16px/1 var(--font-display); }
.mp-talent-steps h3 { font-size: 18px; margin: 0 0 6px; }
.mp-talent-steps p { margin: 0; font-size: 14px; color: var(--mp-muted); }
.mp-talent-note { margin: 28px 0 0; font-size: 14px; color: var(--mp-muted); }
@media (max-width: 900px) {
  .mp-talent-card, .mp-talent-card:not(.is-featured) { grid-template-columns: 1fr; }
  .mp-talent-art { aspect-ratio: 16 / 9; min-height: 0; }
  .mp-talent-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) { .mp-talent-steps { grid-template-columns: 1fr; } .mp-talent-body { padding: 20px; } }
.mp-talent-generic[hidden], .mp-talent-list[hidden] { display: none; }
