/* File d'attente du direct : reprend la charte de clubafricain.com
   (fond blanc, Inter, rouge #F42137 / #E30613, cartes sombres #0F0709, blocs #F4F4F5). */
:root {
  --ca-red: #f42137;
  --ca-red-deep: #e30613;
  --ca-ink: #1c1214;
  --ca-ink-soft: #5b5155;
  --ca-bg: #ffffff;
  --ca-muted: #f4f4f5;
  --ca-dark: #0f0709;
  --ca-radius: 16px;
  --ca-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ca-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--ca-bg); color: var(--ca-ink); font-family: var(--ca-font); -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; display: flex; flex-direction: column; }
.ca-wrap { width: 100%; max-width: 560px; margin: 0 auto; padding: 0 16px; }

/* Barre du haut, comme le site */
.ca-top { border-bottom: 1px solid #ececee; background: #fff; }
.ca-top .ca-wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.ca-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ca-ink); }
.ca-brand img { height: 36px; width: auto; }
.ca-brand span { font-weight: 800; font-size: 15px; letter-spacing: .02em; text-transform: uppercase; }
.ca-pill { display: inline-flex; align-items: center; gap: 6px; background: var(--ca-red); color: #fff; font-weight: 700; font-size: 13px; padding: 8px 14px; border-radius: 11px; }
.ca-pill .ca-live-dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: ca-pulse 1.4s ease-in-out infinite; }

main { flex: 1; padding: 20px 0 32px; }
.ca-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ca-red); margin: 0 0 6px; }

/* Carte sombre, comme la carte du match sur l'accueil */
.ca-hero { position: relative; overflow: hidden; border-radius: var(--ca-radius); background: radial-gradient(120% 90% at 85% 0%, rgba(244,33,55,.45) 0%, rgba(244,33,55,0) 55%), linear-gradient(160deg, #1a0d10 0%, var(--ca-dark) 60%); color: #fff; padding: 22px 20px 20px; }
.ca-hero .ca-eyebrow { color: rgba(255,255,255,.72); font-family: var(--ca-mono); font-weight: 600; letter-spacing: .1em; }
.ca-hero h1 { margin: 6px 0 8px; font-size: 26px; line-height: 1.15; font-weight: 800; letter-spacing: -.01em; text-wrap: balance; }
.ca-hero p { margin: 0; color: rgba(255,255,255,.78); font-size: 14.5px; line-height: 1.5; }
.ca-match { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0 16px; padding: 14px; border-radius: 12px; background: rgba(255,255,255,.06); }
.ca-match .ca-team { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; flex: 1; text-align: center; font-weight: 700; font-size: 13px; }
.ca-match .ca-team img { width: 44px; height: 44px; object-fit: contain; }
.ca-match .ca-vs { font-weight: 800; font-size: 20px; letter-spacing: .08em; color: rgba(255,255,255,.9); }
.ca-crest-blank { width: 44px; height: 44px; border-radius: 50%; border: 2px dashed rgba(255,255,255,.35); }

.ca-wait { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; background: #fff; color: var(--ca-ink); }
.ca-wait strong { display: block; font-size: 15px; }
.ca-wait small { color: var(--ca-ink-soft); font-size: 13px; }
.ca-spinner { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 3px solid #f6d3d7; border-top-color: var(--ca-red); animation: ca-spin .9s linear infinite; }

/* Bouton son (la musique démarre coupée, le supporter active le son) */
.ca-sound { position: absolute; top: 14px; right: 14px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.10); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .2s; }
.ca-sound:hover { background: rgba(255,255,255,.2); }
.ca-sound[aria-pressed="true"] { background: var(--ca-red); border-color: var(--ca-red); }
.ca-sound:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.ca-sound svg { width: 20px; height: 20px; fill: currentColor; }
.ca-hero .ca-eyebrow, .ca-hero h1 { padding-right: 52px; }

.ca-wait { align-items: flex-start; }
.ca-wait-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ca-wait-text span { font-size: 14px; color: var(--ca-ink); }
.ca-progress { height: 6px; margin: 4px 0 2px; border-radius: 3px; background: #f6d3d7; overflow: hidden; }
.ca-progress i { display: block; height: 100%; width: 4%; border-radius: 3px; background: var(--ca-red); transition: width 1s linear; }
.ca-progress.is-unknown i { width: 30%; animation: ca-slide 1.6s ease-in-out infinite; }
.ca-sound-hint { position: absolute; top: 62px; right: 14px; font-size: 12px; font-weight: 600; color: #fff; background: rgba(255,255,255,.14); padding: 5px 9px; border-radius: 8px; }
@keyframes ca-slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(340%); } }

/* Lecteur de musique */
.ca-music { margin-top: 16px; background: var(--ca-muted); border-radius: var(--ca-radius); padding: 16px; display: flex; align-items: center; gap: 14px; }
.ca-play { flex: none; width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--ca-red); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 16px rgba(244,33,55,.35); }
.ca-play:hover { background: var(--ca-red-deep); }
.ca-play:focus-visible { outline: 3px solid #1c1214; outline-offset: 3px; }
.ca-play svg { width: 22px; height: 22px; fill: currentColor; }
.ca-track { min-width: 0; flex: 1; }
.ca-track b { display: block; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ca-track span { font-size: 12.5px; color: var(--ca-ink-soft); }
.ca-bars { display: flex; align-items: flex-end; gap: 3px; height: 22px; }
.ca-bars i { width: 4px; height: 6px; background: var(--ca-red); border-radius: 2px; }
.ca-music.is-playing .ca-bars i { animation: ca-bar 1s ease-in-out infinite; }
.ca-music.is-playing .ca-bars i:nth-child(2) { animation-delay: -.3s; }
.ca-music.is-playing .ca-bars i:nth-child(3) { animation-delay: -.6s; }
.ca-music.is-playing .ca-bars i:nth-child(4) { animation-delay: -.15s; }
.ca-volume { width: 84px; accent-color: var(--ca-red); }

.ca-note { margin: 16px 2px 0; font-size: 13.5px; line-height: 1.55; color: var(--ca-ink-soft); }
.ca-note b { color: var(--ca-ink); }
footer { padding: 18px 0 26px; border-top: 1px solid #ececee; font-size: 12px; color: var(--ca-ink-soft); }
footer .ca-wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ca-hidden-frame { position: absolute; width: 1px; height: 1px; border: 0; opacity: 0; pointer-events: none; left: -9999px; }

@keyframes ca-spin { to { transform: rotate(360deg); } }
@keyframes ca-pulse { 50% { opacity: .35; } }
@keyframes ca-bar { 0%, 100% { height: 6px; } 50% { height: 22px; } }
@media (prefers-reduced-motion: reduce) { .ca-progress.is-unknown i,  .ca-spinner, .ca-pill .ca-live-dot, .ca-music.is-playing .ca-bars i { animation: none; } }
@media (max-width: 420px) { .ca-hero h1 { font-size: 22px; } .ca-volume { display: none; } }
