/* The podcasts page's hovers (Oren, 2026-10-10: new ones for "להאזנה לפרק האחרון", every episode's play
   and "הצגת פרקים נוספים"; the shared light-blue ring is not the house hover). Each moves the way its job
   reads -- sound for the ways to listen, more arriving below for the more button, loading afresh for
   "ניסיון נוסף" -- and keeps its colours against the theme's green button:hover (pinned in podcasts.css
   and episodes.css). Transitions, or a gentle loop only while pointed at, so letting go turns back from
   where it is; :focus-visible shows the same with a focus ring; a row that plays or loads keeps still;
   with reduced motion the end state shows without the travel. The player's own buttons (its ×, lowering
   the full player, "ניסיון נוסף", a transcript's sentences) and the tokens (--pod-out, --pod-fwd,
   --pod-start) moved with it to the site player (site-player/assets/overlays.css, player.css), which loads
   first; the page's × on its order sheet wears the same red there. */

/* No ring on these: their own motion says it, and the keyboard gets a focus ring. */
.cil-pod .cil-pod-btn:is(.cil-pod-btn--latest, .cil-pod-btn--retry):is(:hover, :focus-visible) { box-shadow: none; }
.cil-pod .cil-pod-btn:is(.cil-pod-btn--latest, .cil-pod-btn--retry):focus-visible,
.cil-pod .cil-pod-play:focus-visible,
.cil-pod .cil-pod-starter__play:focus-visible { outline: 2px solid var(--cil-blue-dark-1); outline-offset: 3px; }

/* ---- "להאזנה לפרק האחרון": the play mark gives way to three sound bars that rise and fall ---- */
.cil-pod-btn__mark { display: grid; place-items: center; width: 18px; height: 18px; }
.cil-pod-btn__mark > * { grid-area: 1 / 1; }
.cil-pod-btn__mark img { display: block; transition: opacity .2s var(--pod-out), transform .3s var(--pod-out); }
.cil-pod-btn__bars { display: flex; align-items: center; gap: 2px; height: 14px; opacity: 0; transform: scale(.6); transition: opacity .2s var(--pod-out), transform .3s var(--pod-out); }
.cil-pod-btn__bars i { display: block; width: 3px; height: 100%; border-radius: 2px; background: var(--cil-black); transform: scaleY(.4); }
.cil-pod .cil-pod-btn--latest:is(:hover, :focus-visible) .cil-pod-btn__mark img { opacity: 0; transform: scale(.5); }
.cil-pod .cil-pod-btn--latest:is(:hover, :focus-visible) .cil-pod-btn__bars { opacity: 1; transform: none; }
.cil-pod .cil-pod-btn--latest:is(:hover, :focus-visible) .cil-pod-btn__bars i { animation: cil-pod-bars .45s ease-in-out infinite alternate; }
.cil-pod .cil-pod-btn--latest:is(:hover, :focus-visible) .cil-pod-btn__bars i:nth-child(2) { animation-delay: -.3s; }
.cil-pod .cil-pod-btn--latest:is(:hover, :focus-visible) .cil-pod-btn__bars i:nth-child(3) { animation-delay: -.15s; }
@keyframes cil-pod-bars { from { transform: scaleY(.35); } to { transform: scaleY(1); } }

/* ---- An episode's play (a row's and a "להתחיל מכאן" card's): sound ripples out of the circle -- two
   strong teal rings, the first with a pale teal halo, travelling well past it -- while the play mark stays
   perfectly still (Oren, 2026-10-10). Not while that row plays or loads. Pressed, the inner ring
   tightens instead of the button shrinking, so the mark never moves. ---- */
.cil-pod :is(.cil-pod-play, .cil-pod-starter__disc)::before,
.cil-pod :is(.cil-pod-play, .cil-pod-starter__disc)::after {
    content: ""; position: absolute; inset: -1px; border: 2px solid var(--cil-blue-dark-1); border-radius: 50%; opacity: 0; pointer-events: none;
}
.cil-pod :is(.cil-pod-play, .cil-pod-starter__disc)::before { box-shadow: 0 0 0 5px color-mix(in srgb, var(--cil-blue-light-3) 85%, transparent); }
.cil-pod .cil-pod-play, .cil-pod .cil-pod-play:active { transform: none; }
.cil-pod .cil-pod-row:not(.is-playing, .is-loading) .cil-pod-play:is(:hover, :focus-visible)::before,
.cil-pod .cil-pod-starter__play:is(:hover, :focus-visible) .cil-pod-starter__disc::before { animation: cil-pod-ripple 1.8s var(--pod-out) infinite; }
.cil-pod .cil-pod-row:not(.is-playing, .is-loading) .cil-pod-play:is(:hover, :focus-visible)::after,
.cil-pod .cil-pod-starter__play:is(:hover, :focus-visible) .cil-pod-starter__disc::after { animation: cil-pod-ripple 1.8s var(--pod-out) .6s infinite; }
@keyframes cil-pod-ripple { 0% { opacity: .95; transform: scale(1); } 70% { opacity: .35; } 100% { opacity: 0; transform: scale(1.75); } }
.cil-pod .cil-pod-row:not(.is-playing, .is-loading) .cil-pod-play:active::before,
.cil-pod .cil-pod-starter__play:active .cil-pod-starter__disc::before { animation: none; opacity: 1; transform: scale(1.12); }

/* "הצגת פרקים נוספים" -- more is coming below: the site's "show more" (design-system/load-more.css). */

/* ---- An episode's "תמליל הפרק" and "שיתוף" (Oren, 2026-10-10: the stories-style tip and underline and the
   light-blue ring retired here). Their marks are drawn in parts (row.php). No ring; the keyboard gets a
   focus ring. Open, "שיתוף" keeps the design's 2px teal outline (Figma 14548:12926), drawn inside. ---- */
.cil-pod :is(.cil-pod-btn--transcript, .cil-pod-btn--share):is(:hover, :focus-visible) { box-shadow: none; }
.cil-pod :is(.cil-pod-btn--transcript, .cil-pod-btn--share):focus-visible { outline: 2px solid var(--cil-blue-dark-1); outline-offset: 3px; }
.cil-pod .cil-pod-btn.cil-pod-btn--share[aria-expanded="true"] { border-color: var(--cil-blue-dark-1); box-shadow: inset 0 0 0 1px var(--cil-blue-dark-1); }
.cil-pod-glyph { flex: none; display: block; overflow: visible; }
.cil-pod-glyph :is(.cil-pod-glyph__line, .cil-pod-glyph__node) { transform-box: fill-box; }
/* The transcript: its three lines are written in afresh, one after the other, from where reading starts. */
.cil-pod-glyph__line { transform-origin: var(--pod-start) center; }
.cil-pod .cil-pod-btn--transcript:is(:hover, :focus-visible) .cil-pod-glyph__line { animation: cil-pod-write .26s var(--pod-out) backwards; }
.cil-pod .cil-pod-btn--transcript:is(:hover, :focus-visible) .cil-pod-glyph__line:nth-child(2) { animation-delay: .11s; }
.cil-pod .cil-pod-btn--transcript:is(:hover, :focus-visible) .cil-pod-glyph__line:nth-child(3) { animation-delay: .22s; }
@keyframes cil-pod-write { from { transform: scaleX(0); } }
/* Sharing: the network connects -- the hub gives a beat, the links run out from it, and each node it
   reaches lands with a small spring. */
.cil-pod-glyph__node { transform-origin: center; }
.cil-pod .cil-pod-btn--share:is(:hover, :focus-visible) .cil-pod-glyph__node--hub { animation: cil-pod-beat .3s var(--pod-out); }
.cil-pod .cil-pod-btn--share:is(:hover, :focus-visible) .cil-pod-glyph__link { stroke-dasharray: 1; animation: cil-pod-link .26s var(--pod-out) .08s backwards; }
.cil-pod .cil-pod-btn--share:is(:hover, :focus-visible) .cil-pod-glyph__node:not(.cil-pod-glyph__node--hub) { animation: cil-pod-land .34s cubic-bezier(.34, 1.56, .64, 1) .26s backwards; }
@keyframes cil-pod-beat { 40% { transform: scale(.7); } }
@keyframes cil-pod-link { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes cil-pod-land { from { transform: scale(0); } }
/* The empty states' ways on, "לקטלוג הקורסים" and "הצגת כל הפרקים": an underline written from where
   reading starts. */
.cil-pod :is(.cil-pod-btn--all, .cil-pod-btn--catalogue) .cil-pod-btn__label { position: relative; }
.cil-pod :is(.cil-pod-btn--all, .cil-pod-btn--catalogue) .cil-pod-btn__label::after {
    content: ""; position: absolute; inset-inline: 0; bottom: -3px; height: 2px; border-radius: 1px; background: currentColor;
    transform: scaleX(0); transform-origin: var(--pod-start) center; transition: transform .35s var(--pod-out);
}
.cil-pod :is(.cil-pod-btn--all, .cil-pod-btn--catalogue):is(:hover, :focus-visible) { box-shadow: none; }
.cil-pod :is(.cil-pod-btn--all, .cil-pod-btn--catalogue):is(:hover, :focus-visible) .cil-pod-btn__label::after { transform: scaleX(1); }
.cil-pod :is(.cil-pod-btn--all, .cil-pod-btn--catalogue):focus-visible { outline: 2px solid var(--cil-blue-dark-1); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
    /* The transcript and sharing keep still; pointed at, their words are underlined instead. */
    .cil-pod :is(.cil-pod-btn--transcript, .cil-pod-btn--share) :is(.cil-pod-glyph__line, .cil-pod-glyph__node, .cil-pod-glyph__link) { animation: none !important; }
    .cil-pod :is(.cil-pod-btn--transcript, .cil-pod-btn--share):is(:hover, :focus-visible) .cil-pod-btn__label { text-decoration: underline 2px; text-underline-offset: 4px; }
    .cil-pod .cil-pod-btn--latest:is(:hover, :focus-visible) .cil-pod-btn__bars i { animation: none; }
    .cil-pod .cil-pod-btn--latest:is(:hover, :focus-visible) .cil-pod-btn__bars i:nth-child(2) { transform: scaleY(1); }
    .cil-pod .cil-pod-btn--latest:is(:hover, :focus-visible) .cil-pod-btn__bars i:nth-child(3) { transform: scaleY(.65); }
    .cil-pod :is(.cil-pod-play, .cil-pod-starter__disc)::before, .cil-pod :is(.cil-pod-play, .cil-pod-starter__disc)::after { animation: none !important; }
    .cil-pod .cil-pod-row:not(.is-playing, .is-loading) .cil-pod-play:is(:hover, :focus-visible)::before,
    .cil-pod .cil-pod-starter__play:is(:hover, :focus-visible) .cil-pod-starter__disc::before { opacity: .9; transform: scale(1.25); }
    .cil-pod .cil-pod-btn__mark img, .cil-pod .cil-pod-btn__bars, .cil-pod :is(.cil-pod-play, .cil-pod-starter__disc) img,
    .cil-pod .cil-pod-btn--retry img { transition: opacity .2s ease; }
    .cil-pod .cil-pod-btn--retry:is(:hover, :focus-visible) img { transform: none; }
}
