/* Before→After audio player + transcript boxes.
   Shared by the LP's #before-after section (index.html) and /before-after
   (before-after.html). Behaviour lives in ba-player.js; the transcripts in
   amirat-transcripts.js. Change them here once and both pages follow. */
.ba-player {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 14px;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s;
}
.ba-player:hover { background: rgba(255,255,255,0.04); }
.ba-player--before { border: 1px solid rgba(248,113,113,0.2); background: rgba(239,68,68,0.04); }
.ba-player--after  { border: 1px solid rgba(52,211,153,0.25); background: rgba(16,185,129,0.04); }
.ba-play-btn {
    width: 52px; height: 52px; border-radius: 50%; border: none;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.2s; flex-shrink: 0;
}
.ba-player--before .ba-play-btn { background: rgba(239,68,68,0.12); color: #f87171; }
.ba-player--before .ba-play-btn:hover { background: rgba(239,68,68,0.2); color: #fca5a5; }
.ba-player--after .ba-play-btn { background: rgba(16,185,129,0.12); color: #34d399; }
.ba-player--after .ba-play-btn:hover { background: rgba(16,185,129,0.2); color: #6ee7b7; }
.ba-progress-wrap {
    flex: 1; display: flex; flex-direction: column; gap: 0.35rem; min-width: 0;
}
.ba-progress-track {
    width: 100%; height: 5px; border-radius: 3px; position: relative; overflow: hidden;
}
.ba-player--before .ba-progress-track { background: rgba(239,68,68,0.1); }
.ba-player--after  .ba-progress-track { background: rgba(16,185,129,0.1); }
.ba-progress-fill {
    position: absolute; top: 0; left: 0; height: 100%; border-radius: 2px;
    width: 0%; transition: width 0.1s linear;
}
.ba-player--before .ba-progress-fill { background: #f87171; }
.ba-player--after  .ba-progress-fill { background: #34d399; }
.ba-time {
    font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
}
.ba-player--before .ba-time { color: rgba(248,113,113,0.6); }
.ba-player--after  .ba-time { color: rgba(52,211,153,0.6); }

/* transcript under each player — each box hugs its own text, so the short
   Day 1 side stays short instead of stretching to match Day 90 */
.ba-transcript {
    margin-top: 0.7rem;
    padding: 0.8rem 0.95rem;
    border-radius: 12px;
    border: 1px solid transparent;
}
.ba-transcript--before { background: rgba(239,68,68,0.05);  border-color: rgba(248,113,113,0.14); }
.ba-transcript--after  { background: rgba(16,185,129,0.05); border-color: rgba(52,211,153,0.16); }
.ba-ja {
    font-size: 0.9rem; line-height: 1.75; color: #e2e8f0; font-weight: 500;
    overflow-wrap: anywhere;
}
.ba-en {
    margin-top: 0.45rem; font-size: 0.8rem; line-height: 1.6;
    color: #94a3b8; font-style: italic;
}

@media (max-width: 767px) {
    .ba-player { padding: 0.85rem 1rem; gap: 0.85rem; }
    .ba-play-btn { width: 46px; height: 46px; }
    .ba-ja { font-size: 0.875rem; }
    .ba-en { font-size: 0.78rem; }
}
