/* AfroMax public pages: one shared stylesheet for watch, profile and series pages (served from /videos/_a/, content-hashed).
   Source of the design: build/review/public-pages-test (founder-reviewed test build, 2026-11-30). */
/* ---- tokens (style.css:26-80) ---- */
:root {
  --color-text-muted: #cccccc;
  --color-primary: #ffd700;
  --color-secondary: #e20e0f;
  --color-accent: darkred;
  --color-background: #000000;
  --color-card: #161616;
  --color-text: #f1f1f1;
  --color-text-dark: #000000;
  --faq-red: #e80027;            /* style.css:2405 FAQ icon + bar, :1189 heading underline */
  --error: #e63946;              /* CLAUDE.md error colour */
  --font-heading: 'Concert One', Arial, sans-serif;
  --font-body: 'Open Sans', Tahoma, Arial, sans-serif;
  --font-size-sm: 0.9rem;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --radius: 5px;                 /* BorderRadius.circular(5.0) */
  --radius-md: 8px;
  --container: 1120px;
  --gutter: 16px;
  color-scheme: dark;
}

/* ---- base (style.css:98-110) ---- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.5;
}
img { max-width: 100%; height: auto; border-radius: var(--radius); }
a { color: var(--color-primary); }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 400; line-height: 1.2; margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--color-secondary); outline-offset: 2px; } /* style.css:540 */

.pp-container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

/* ---- buttons (style.css:511-565, pulse 2241/2280) ---- */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: var(--spacing-xs) var(--spacing-sm);
  font-family: var(--font-body); font-weight: 700; font-size: var(--font-size-sm); text-transform: uppercase;
  color: var(--color-text-dark); background: var(--color-primary);
  border: 0; border-radius: var(--radius); text-decoration: none; cursor: pointer;
}
.button:hover { background: var(--color-accent); color: var(--color-text); box-shadow: 0 10px 18px rgba(0,0,0,.3); }
.pulse-btn { animation: pp-pulse-button 2s infinite; }
@keyframes pp-pulse-button {
  0% { box-shadow: 0 0 0 0 rgba(232,0,39,.7); }
  70% { box-shadow: 0 0 0 10px rgba(232,0,39,0); }
  100% { box-shadow: 0 0 0 0 rgba(232,0,39,0); }
}

/* ---- header: tablet + desktop only (style.css:380-467). Phones: no header, a thin gold line instead. ---- */
.header {
  position: sticky; top: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--spacing-sm) var(--spacing-xs);
  background: var(--color-card);
}
.header-left-group { display: flex; align-items: center; }
.header .logo { display: flex; align-items: center; margin-right: var(--spacing-md); padding: 0; }
.header .logo img { height: 3rem; width: auto; border-radius: 0; }
.header nav { display: flex; align-items: center; }
.header nav a {
  display: inline-block; margin-right: var(--spacing-xs); padding: var(--spacing-xs) var(--spacing-sm);
  color: var(--color-primary); text-decoration: none; font-family: var(--font-heading);
  border-radius: var(--radius);
}
.header nav a:hover { background: var(--color-accent); color: var(--color-text); }
.header-right { margin-left: auto; padding-right: var(--spacing-xs); }
.pp-mobilebar { display: none; }
/* phones: a full-width Join button at the top, like the website's phone layout (founder choice) */
.pp-mobilebar { padding: 12px 8px 4px; } /* 8 px sides = the video's own side inset on phones */
/* the app's AfroMaxButton ghost variant (lib/core/widgets/afromax_button.dart): transparent, gold Concert One 15/700,
   letter-spacing .3, hand-drawn gold border 1.5, padding 14 x 24, icon 8 px before the label; as wide as the video */
.pp-ghost {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 8px;
  width: min(100%, calc(var(--phone-player-h) * 9 / 16)); margin-inline: auto; min-height: 48px; padding: 14px 24px;
  border-radius: var(--radius); background: transparent; color: var(--color-primary); text-decoration: none;
  font: 700 15px/1 var(--font-heading); letter-spacing: .3px;
}
.pp-ghost .pp-frame path { stroke: var(--color-primary); stroke-width: 1.5; }
.pp-ghost:active { transform: scale(.97); }
/* phones: TikTok-style ending ("Enjoy more content in the app" + one big button), replacing the long website footer */
.pp-appfoot { max-width: 420px; margin-inline: auto; } /* the same ending at every size (founder) */
.pp-appfoot-line { margin: 0 0 12px; text-align: center; font-weight: 600; font-size: 1.05rem; }
.pp-appfoot-btn { width: 100%; min-height: 48px; font-size: 1rem; } /* solid website button, no letter mark (founder) — same as the invite card's */
.pp-appfoot-legal { display: flex; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.pp-appfoot-legal a { padding: 4px 10px; color: var(--color-text-muted); font-size: .8rem; text-decoration: none; border-right: 1px solid rgba(255,255,255,.15); }
.pp-appfoot-legal a:last-child { border-right: 0; }
.pp-appfoot-meta { margin: 6px 0 0; text-align: center; color: var(--color-text-muted); font-size: .75rem; opacity: .7; }
.pp-join-mark { height: 28px; width: auto; border-radius: 0; }

/* ---- section headings: website red underline (style.css:1183-1196) ---- */
.pp-heading { font-size: 1.5rem; margin-bottom: var(--spacing-sm); position: relative; padding-bottom: 14px; }
.pp-heading::after { content: ''; position: absolute; left: 0; bottom: 0; width: 60px; height: 4px; background: var(--faq-red); border-radius: 2px; }

/* ---- app hand-drawn frame (same path as the live watch page's cards); gold at 38% = the app's primaryGold38, toned down after founder review ---- */
.pp-framed { position: relative; }
.pp-frame { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 2; }
.pp-frame path { fill: none; stroke: rgba(255,215,0,.38); stroke-width: 1.25; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.pp-card { background: var(--color-card); border-radius: var(--radius); padding: var(--spacing-sm) 1.25rem; }

/* ---- watch page layout ---- */
.pp-main { padding-block: var(--spacing-md) var(--spacing-lg); }
.pp-watch {
  display: grid; gap: var(--spacing-sm) var(--spacing-md);
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "player" "info" "more" "invite" "text";
}
.pp-player-col { grid-area: player; min-width: 0; }
.pp-info { grid-area: info; min-width: 0; }
.pp-invite { grid-area: invite; }
.pp-more { grid-area: more; min-width: 0; margin-top: var(--spacing-sm); }
.pp-text { grid-area: text; min-width: 0; margin-top: var(--spacing-md); }

/* the 9:16 frame: never taller than the screen (minus the header on tablet/desktop) */
.pp-player {
  --player-h: calc(100svh - 24px);
  width: min(100%, calc(var(--player-h) * 9 / 16));
  margin-inline: auto;
}
#pv {
  position: relative; width: 100%; aspect-ratio: 9 / 16;
  overflow: hidden; border-radius: var(--radius); background: var(--color-card);
  container-type: size; --ld: 44px; --gold: var(--color-primary);
}
/* Bug fix 1 (size jump on play, iPhone Safari): the video is pinned to its frame, never sized by its content. */
#pv-video {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
  object-fit: cover; border-radius: inherit; background: #000;
}
/* Bug fix 2 (black after the end, grey box while loading on iPhone): our own cover layer, shown whenever there is
   no live frame — before play, while the first start loads, and after the end. Paused mid-video keeps the frame. */
.pp-cover {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit;
  z-index: 1; transition: opacity .25s ease; pointer-events: none;
}
.pp-cover-shade { /* the website's .image-overlay on the cover too (founder); goes with the cover */
  position: absolute; inset: 0; z-index: 1; border-radius: inherit; pointer-events: none; transition: opacity .25s ease;
  background: linear-gradient(to right, rgba(0,0,0,.7) 0%, rgba(0,0,0,0) 100%);
}
#pv[data-started]:is([data-state=playing],[data-state=paused],[data-state=loading]) :is(.pp-cover, .pp-cover-shade) { opacity: 0; }
.pp-overlay { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.pp-overlay::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35), transparent 18%, transparent 70%, rgba(0,0,0,.55)); }
.pp-overlay-logo { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); height: 44px; width: auto; border-radius: 0; }
.pp-duration {
  position: absolute; z-index: 4; left: 10px; bottom: 12px; padding: 2px 7px; border-radius: var(--radius);
  background: rgba(0,0,0,.6); font-size: .8rem; font-weight: 600; font-variant-numeric: tabular-nums;
}
#pv[data-started] .pp-duration { display: none; }
.pp-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255,255,255,.25); z-index: 4; }
#pv-bar { display: block; height: 100%; background: var(--color-primary); transform-origin: left; transform: scaleX(0); }

/* play button: website red pulse (style.css:658-698, 2246-2278); a full-frame hit area */
.play-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 5;
  width: 80px; height: 80px; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 50%;
  background: rgba(232,0,39,.8); color: inherit; cursor: pointer;
  box-shadow: 0 0 0 0 rgba(232,0,39,.7); animation: pp-pulse-play 2s infinite; transition: opacity .2s;
}
.play-btn:hover { background: rgba(232,0,39,.9); box-shadow: none; }
.play-btn::before { content: ''; position: absolute; left: calc((80px - 100cqw) / 2); top: calc((80px - 100cqh) / 2); width: 100cqw; height: 100cqh; }
.play-btn img { width: 30px; height: 30px; margin-left: 3px; filter: brightness(0) invert(1); border-radius: 0; }
.play-btn span { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
@keyframes pp-pulse-play {
  0% { box-shadow: 0 0 0 0 rgba(232,0,39,.7); }
  70% { box-shadow: 0 0 0 15px rgba(232,0,39,0); }
  100% { box-shadow: 0 0 0 0 rgba(232,0,39,0); }
}
#pv:is([data-state=playing],[data-state=loading]) .play-btn { opacity: 0; animation: none; }
#pv[data-state=paused] .play-btn { animation: none; opacity: .85; }
#pv .watch-loader { z-index: 6; }
#pv:not([data-state=loading]) .watch-loader * { animation-play-state: paused; }

/* action rail (from the live watch page) */
.pp-rail { position: absolute; z-index: 7; right: 10px; bottom: 24px; display: flex; flex-direction: column; align-items: center; gap: 16px; } /* 48 px targets 16 px apart (Material: 48 dp targets; Apple: 44 pt minimum) — fat-finger fix after founder review */
.pp-rail button {
  display: grid; place-items: center; width: 48px; height: 48px; min-height: 0; margin: 0; padding: 0;
  border: 1px solid rgba(255,215,0,.3); border-radius: 50%; background: rgba(0,0,0,.45); color: #fff; cursor: pointer;
}
.pp-rail button:hover { background: rgba(0,0,0,.65); box-shadow: none; }
.pp-rail button[aria-pressed=true] { color: var(--color-primary); }
.pp-rail button svg { width: 52%; height: 52%; fill: currentColor; }
.pp-av { position: relative; display: block; width: 48px; height: 48px; color: var(--color-primary); margin-bottom: 2px; }
.pp-av img { position: absolute; inset: 5.2%; width: 89.6%; height: 89.6%; object-fit: cover; border-radius: 50%; background: var(--color-card); }
.pp-av img[hidden] { display: none; }
.pp-av svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: currentColor; }
#pv-toast { display: none; }
#pv-toast.on {
  display: block; position: absolute; z-index: 9; top: 64px; left: 12px; right: 12px; margin: 0;
  padding: .5rem .75rem; border-radius: var(--radius); background: var(--color-card); text-align: center; overflow-wrap: anywhere;
}

/* text beside / under the video */
.pp-eyebrow { color: var(--color-primary); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: .25rem; }
.pp-eyebrow a { color: inherit; text-decoration: none; }
.pp-eyebrow a:hover { text-decoration: underline; }
.pp-title { font-size: clamp(1.4rem, 5vw, 2rem); margin-bottom: .75rem; }
.pp-byline { display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; text-decoration: none; color: inherit; width: fit-content; }
.pp-byline .pp-av { width: 44px; height: 44px; margin: 0; flex: none; }
.pp-byline strong { display: block; color: var(--color-text); }
.pp-byline:hover strong { text-decoration: underline; }
.pp-role { display: block; color: var(--color-primary); font-size: .85rem; }
.pp-lede { margin: 0; color: var(--color-text-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pp-invite { padding: 1.25rem; }
.pp-invite h2 { font-size: 1.35rem; margin-bottom: .4rem; }
.pp-invite p { margin: 0 0 1rem; color: var(--color-text-muted); }

/* ---- grid of more videos ---- */
.pp-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr));
}
.pp-tile a { display: block; color: inherit; text-decoration: none; }
.pp-thumb { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: var(--radius); overflow: hidden; background: var(--color-card); }
.pp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.pp-thumb::after, .pp-series-thumb::after { /* the website's .image-overlay (style.css:1021) */
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(to right, rgba(0,0,0,.7) 0%, rgba(0,0,0,0) 100%);
}
.pp-thumb .pp-badge { z-index: 1; }
.pp-series-thumb { position: relative; flex: none; display: block; border-radius: var(--radius); overflow: hidden; }
.pp-tile a:hover .pp-thumb img { transform: scale(1.03); }
.pp-thumb .pp-badge { position: absolute; left: 6px; top: 6px; padding: 1px 7px; border-radius: var(--radius); background: rgba(0,0,0,.7); color: var(--color-primary); font-size: .72rem; font-weight: 700; }
.pp-tile-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: .4rem; font-weight: 600; font-size: .92rem; line-height: 1.3; }
.pp-tile-by { display: block; color: var(--color-text-muted); font-size: .8rem; margin-top: .15rem; }
.pp-tile a:hover .pp-tile-title { color: var(--color-primary); }
.pp-tile a:focus-visible { outline-offset: 4px; border-radius: var(--radius); }

/* ---- tap-to-open sections: the website's FAQ (style.css:2374-2430, global.js:694-722), as real buttons ---- */
.accordion-enhanced { display: grid; gap: .5rem; }
.pp-acc { border-radius: var(--radius-md); }
.pp-acc-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%;
  min-height: 44px; margin: 0; padding: 1.2rem 1.5rem; border: 0; border-radius: var(--radius-md);
  background: rgba(30,30,30,.6); color: #fff; text-align: left; text-transform: none;
  font: 500 1.1rem/1.3 var(--font-body); cursor: pointer; transition: background-color .3s ease;
}
.pp-acc-btn:hover { background: rgba(40,40,40,.8); color: #fff; box-shadow: none; }
.pp-acc-icon { flex: none; width: 1.5rem; text-align: center; font-size: 1.5rem; line-height: 1; color: var(--faq-red); }
.pp-acc-panel {
  border-left: 3px solid var(--faq-red); border-radius: 0 0 var(--radius-md) var(--radius-md);
  background: rgba(35,35,35,.4); overflow: hidden;
}
.pp-acc-body { padding: 1.25rem 1.5rem; }
.pp-acc-body > :first-child { margin-top: 0; }
.pp-acc-body > :last-child { margin-bottom: 0; }
.pp-acc-body p { color: var(--color-text-muted); white-space: pre-line; }
/* closed state only once the script has marked the panel closable, so without it every section stays readable */
.pp-acc-panel.pp-closable { max-height: 0; visibility: hidden; transition: max-height .2s ease-out, visibility 0s linear .2s; }
.pp-acc.is-open .pp-acc-panel.pp-closable { visibility: visible; transition: max-height .2s ease-out, visibility 0s; }
@media (prefers-reduced-motion: reduce) {
  .pp-acc-panel.pp-closable, .pp-acc.is-open .pp-acc-panel.pp-closable { transition: none; }
  .pulse-btn, .play-btn { animation: none; }
  .pp-tile a:hover .pp-thumb img { transform: none; }
  .watch-loader .cb, .watch-loader .r, .watch-loader .s { animation: none; }
}
.pp-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 1rem; margin: 0; }
.pp-facts dt { font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--color-primary); }
.pp-facts dd { margin: .15rem 0 0; color: var(--color-text-muted); overflow-wrap: anywhere; }
.pp-facts .wide { grid-column: 1 / -1; }

/* ---- profile ---- */
.pp-profile { display: grid; justify-items: center; text-align: center; gap: .35rem; padding: 1.75rem 1.25rem; }
.pp-profile .pp-av { width: 120px; height: 120px; margin-bottom: .5rem; }
.pp-profile h1 { font-size: clamp(1.8rem, 7vw, 2.4rem); }
.pp-pill { display: inline-block; padding: 3px 12px; border: 1px solid rgba(255,215,0,.45); border-radius: 999px; color: var(--color-primary); font-size: .85rem; font-weight: 600; }
.pp-loc { margin: 0; color: var(--color-text-muted); font-size: .9rem; text-transform: capitalize; }
.pp-bio { margin: .25rem 0 0; max-width: 60ch; color: var(--color-text-muted); }
.pp-profile .button { margin-top: .75rem; }
.pp-section { margin-top: var(--spacing-md); }
.pp-series-row { list-style: none; margin: 0; padding: 0 0 6px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 80%); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; }
.pp-series-row > li { scroll-snap-align: start; }
.pp-series-card { display: flex; gap: 12px; align-items: center; height: 100%; padding: 10px; color: inherit; text-decoration: none; }
.pp-series-card img { width: 64px; height: 114px; object-fit: cover; flex: none; }
.pp-series-card small { display: block; color: var(--color-primary); font-weight: 700; text-transform: uppercase; font-size: .72rem; letter-spacing: .04em; }
.pp-series-card strong { display: block; font-family: var(--font-heading); font-weight: 400; font-size: 1.15rem; }
.pp-series-card span span { display: block; color: var(--color-text-muted); font-size: .85rem; margin-top: .2rem; }
.pp-series-card:hover strong { color: var(--color-primary); }
.pp-videos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.pp-videos .pp-tile-title { font-size: .8rem; font-weight: 500; }
.pp-follow { min-width: 160px; }
.pp-toast { display: none; margin: .5rem 0 0; color: var(--color-primary); font-weight: 600; }
.pp-toast.on { display: block; }
.pp-av .ph { position: absolute; inset: 5.2%; display: grid; place-items: center; border-radius: 50%; background: #1d1d1d; color: #8e8e8e; } /* the app's default avatar */
.pp-av .ph svg { position: static; width: auto; height: 56%; fill: currentColor; } /* half the circle, like the app (size * 0.5) */
.pp-loc { display: flex; align-items: center; justify-content: center; gap: 4px; }
.pp-series-intro { padding: 1.5rem 1.25rem; }
.pp-series-intro h1 { font-size: clamp(1.6rem, 6vw, 2.2rem); margin-bottom: .5rem; }
.pp-series-intro .by { margin: 0 0 .5rem; color: var(--color-text-muted); }
.pp-series-intro .ds { margin: 0; color: var(--color-text-muted); overflow-wrap: anywhere; }
.pp-series-card small { margin-bottom: .2rem; }
/* ---- Watch / Cultural Ambassadors / Events list pages ---- */
.pp-list-intro { margin-bottom: var(--spacing-sm); }
.pp-lede-full { margin: 0; color: var(--color-text-muted); max-width: 60ch; }
.pp-event-list, .pp-amb-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.pp-event-card { display: flex; gap: 12px; align-items: center; padding: 10px; color: inherit; text-decoration: none; }
.pp-event-card .pp-series-thumb img, .pp-series-card .pp-series-thumb img { width: 64px; height: 114px; object-fit: cover; display: block; }
.pp-event-card small { display: block; color: var(--color-primary); font-weight: 700; text-transform: uppercase; font-size: .72rem; letter-spacing: .04em; }
.pp-event-card strong { display: block; font-family: var(--font-heading); font-weight: 400; font-size: 1.15rem; }
.pp-event-card span span { display: block; color: var(--color-text-muted); font-size: .85rem; margin-top: .2rem; }
.pp-event-card .pp-event-note { color: var(--color-primary); }
.pp-event-card:hover strong { color: var(--color-primary); }
.pp-amb-card { display: flex; align-items: center; gap: 14px; padding: 12px 14px; color: inherit; text-decoration: none; }
.pp-amb-card .pp-av { width: 64px; height: 64px; flex: none; margin: 0; }
.pp-amb-text strong { display: block; font-size: 1.05rem; }
.pp-amb-loc { display: block; color: var(--color-text-muted); font-size: .85rem; text-transform: capitalize; }
.pp-amb-card:hover strong { color: var(--color-primary); }
.pp-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: var(--spacing-md); }
.pp-pager-pos { color: var(--color-text-muted); font-size: .9rem; }
.button.black-button { color: var(--color-text); background: var(--color-card); border: 1px solid var(--color-text-muted); }
.pp-event-line { margin: -.25rem 0 .75rem; color: var(--color-primary); font-weight: 600; }
.pp-empty { color: var(--color-text-muted); }

/* ---- footer (style.css:163-176, 833-975) ---- */
.pp-footer { margin-top: var(--spacing-lg); padding: 3rem 0 var(--spacing-lg); border-top: 1px solid rgba(255,255,255,.08); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; max-width: 900px; margin: 0 auto; padding: 0 1rem; }
.footer-brand { display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.footer-logo img { height: 52px; width: auto; border-radius: 0; }
.footer-tagline { margin: 0; color: var(--color-text-muted); font-size: var(--font-size-sm); opacity: .8; text-align: center; }
.footer-download { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.footer-store-btn { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1.25rem; border-radius: 50px; font-size: .9rem; font-weight: 600; text-decoration: none; color: #fff; transition: transform .2s, box-shadow .2s; }
.footer-store-btn:hover { transform: translateY(-2px); }
.footer-store-ios { background: linear-gradient(45deg, #007aff, #5ac8fa); }
.footer-store-android { background: linear-gradient(45deg, #34a853, #4285f4); }
.footer-explore, .footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 0; }
.footer-explore a, .footer-links a { padding: .25rem .75rem; font-size: var(--font-size-sm); border-right: 1px solid rgba(255,255,255,.15); text-decoration: none; transition: color .2s; }
.footer-explore a { color: var(--color-text); font-weight: 600; }
.footer-links a { color: var(--color-text-muted); }
.footer-explore a:last-child, .footer-links a:last-child { border-right: 0; }
.footer-explore a:hover, .footer-links a:hover { color: var(--color-primary); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; }
.footer-socials { display: flex; gap: .75rem; }
.footer-socials img { display: block; width: 44px; height: 44px; border: 1px solid var(--color-primary); background: var(--color-primary); border-radius: 50%; }
.footer-meta { display: flex; align-items: center; gap: 1rem; color: var(--color-text-muted); font-size: var(--font-size-sm); opacity: .7; }
.footer-meta img { height: 14px; width: auto; vertical-align: -2px; border-radius: 0; }

/* ---- phone (< 768): no header, thin gold line, video first ---- */
@media (max-width: 767.98px) {
  .header { display: none; }
  .pp-mobilebar { display: block; }
  .pp-footer { margin-top: var(--spacing-md); padding: 1.5rem var(--gutter) 2rem; }
  .pp-overlay-logo { display: none; } /* the logo lives in the bar on phones, off the video */
  :root { --phone-player-h: calc(100svh - 64px - 24px); }
  .pp-player { --player-h: var(--phone-player-h); }
  .pp-main { padding-top: 8px; }
  .pp-watch .pp-player-col { margin-inline: calc(var(--gutter) * -1 + 8px); }
  .pp-title { margin-top: .25rem; }
  .footer-bottom { justify-content: center; }
}

/* ---- tablet (768–1023) ---- */
@media (min-width: 768px) {
  .pp-player { --player-h: calc(100svh - 80px - 48px); }
  .pp-watch {
    grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
    grid-template-areas: "player info" "player invite" "player ." "more more" "text text";
    grid-template-rows: auto auto 1fr;
    align-items: start;
  }
  .pp-player { margin-inline: 0; }
  .pp-more { margin-top: var(--spacing-md); }
  .pp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .pp-videos { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  .pp-index-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pp-event-list, .pp-amb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pp-series-row { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
  .pp-profile { grid-template-columns: auto 1fr; justify-items: start; text-align: left; column-gap: 2rem; padding: 2rem; }
  .pp-profile .pp-av { grid-row: 1 / span 6; align-self: center; margin: 0; }
}

/* ---- desktop (>= 1024) ---- */
@media (min-width: 1024px) {
  /* desktop: the grid fills the column beside the video (it is "right under the video" in reading order); the
     video stays in view while the column scrolls; the tap-to-open text runs full width below */
  .pp-watch {
    grid-template-columns: minmax(0, 400px) minmax(0, 1fr); column-gap: 3rem;
    grid-template-areas: "player info" "player more" "player invite" "player text";
    grid-template-rows: auto auto auto 1fr; /* everything beside the video, so nothing slides under it */
  }
  .pp-player-col { position: sticky; top: 112px; }
  .pp-more { margin-top: var(--spacing-sm); }
  .pp-more .pp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pp-invite { align-self: start; margin-top: var(--spacing-sm); }
  .pp-text { margin-top: var(--spacing-sm); align-self: start; }
  .pp-videos { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .pp-index-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .pp-event-list, .pp-amb-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pp-series-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pp-profile .pp-av { width: 150px; height: 150px; }
}
.pp-series-row:has(> li:only-child) { grid-auto-columns: 100%; }

/* AfroMax loading indicator (moved here from the watch page's inline styles) */
.watch-loader{visibility:hidden;position:absolute;z-index:2;left:50%;top:50%;width:var(--ld);height:var(--ld);margin:calc(var(--ld)/-2) 0 0 calc(var(--ld)/-2);opacity:0;pointer-events:none;transition:opacity .12s}
#pv[data-state=loading] .watch-loader{visibility:visible;opacity:1}
.lyr{position:absolute;inset:0}
.lyr.red{transform:translate(calc(var(--ld)*-.1),calc(var(--ld)*.1))}
.lyr.grn{transform:translate(calc(var(--ld)*-.05),calc(var(--ld)*.05))}
.cb{position:absolute;top:0;width:25%;height:25%;animation:wc-b 1.8s infinite}
.cb.a{left:75%;animation-name:wc-a}
.cb.b{left:0}
.cb .r{display:block;width:100%;height:100%;animation:wc-r 1.8s linear infinite}
.cb .s{display:block;width:100%;height:100%;transform-origin:0 0;animation:wc-s 1.8s infinite}
.red .s{background:#ce1126}.grn .s{background:#060}.gld .s{background:var(--gold)}
@keyframes wc-a{0%{translate:0 0;animation-timing-function:cubic-bezier(.42,0,.58,1)}25%{translate:0 calc(var(--ld)*.75);animation-timing-function:cubic-bezier(.42,0,.58,1)}50%{translate:calc(var(--ld)*-.75) calc(var(--ld)*.75);animation-timing-function:cubic-bezier(.42,0,.58,1)}75%{translate:calc(var(--ld)*-.75) 0;animation-timing-function:cubic-bezier(.42,0,.58,1)}100%{translate:0 0}}
@keyframes wc-b{0%{translate:0 0;animation-timing-function:cubic-bezier(.42,0,.58,1)}25%{translate:calc(var(--ld)*.75) 0;animation-timing-function:cubic-bezier(.42,0,.58,1)}50%{translate:calc(var(--ld)*.75) calc(var(--ld)*.75);animation-timing-function:cubic-bezier(.42,0,.58,1)}75%{translate:0 calc(var(--ld)*.75);animation-timing-function:cubic-bezier(.42,0,.58,1)}100%{translate:0 0}}
@keyframes wc-r{to{rotate:360deg}}
@keyframes wc-s{0%{scale:1;animation-timing-function:cubic-bezier(.42,0,.58,1)}25%{scale:.5;animation-timing-function:cubic-bezier(.42,0,.58,1)}50%{scale:1;animation-timing-function:cubic-bezier(.42,0,.58,1)}75%{scale:.5;animation-timing-function:cubic-bezier(.42,0,.58,1)}100%{scale:1}}
@media (prefers-reduced-motion:reduce){.watch-loader .cb,.watch-loader .r,.watch-loader .s{animation:none}}
