/* "סיפורים בווידאו" (Figma 14573-10, "Reels"): the card in the middle large, the ones beside it smaller
   and dimmed, the arrows at the sides; a card that plays shows its video, its progress along the top,
   pause and its time where the platform's player tells them; one that fails says so with a way to try again. On a phone the
   others sit under it as small cards. reels.js. */

.cil-st-reels { position: relative; display: flex; align-items: center; justify-content: center; gap: 32px; }
.cil-st-reels__list { display: flex; align-items: center; justify-content: center; gap: 32px; margin: 0; padding: 0; list-style: none; }
.cil-st .cil-st-reels__nav {
    position: relative; z-index: 3; flex: none; display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%;
    background: var(--cil-white); cursor: pointer; transition: transform .2s var(--st-ease), box-shadow .2s ease;
}
.cil-st .cil-st-reels__nav--prev img { transform: scaleX(-1); }
.lang-to-css-ltr .cil-st .cil-st-reels__nav--prev img { transform: none; }
.lang-to-css-ltr .cil-st .cil-st-reels__nav--next img { transform: scaleX(-1); }
.cil-st .cil-st-reels__nav:is(:hover, :focus-visible) { background: var(--cil-white); box-shadow: 0 0 0 4px var(--cil-blue-light-5); transform: scale(1.06); outline: none; }

.cil-st-reel {
    /* While the strip turns (reels.js): the card coming to the middle on top (2), the one leaving the middle
       under it (1), and the card coming in and the copy of the one going out under both (0) -- either way. */
    position: relative; z-index: 1; flex: none; display: none; width: 270px; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 24px; background: var(--cil-black-dark-2);
    transition: opacity .45s var(--st-ease);
}
/* The strip keeps the middle card's height while it turns (reels.js glides the cards with transforms), so
   nothing under it moves. */
.cil-st-reels__list { height: 640px; }
.cil-st-reel.is-prev, .cil-st-reel.is-active, .cil-st-reel.is-next { display: block; }
.cil-st-reel.is-prev { order: 1; } .cil-st-reel.is-active { order: 2; z-index: 2; width: 360px; } .cil-st-reel.is-next { order: 3; }
.cil-st-reel:not(.is-active) { cursor: pointer; }
/* The cards beside it at 45% over the stage (Figma 14603:1017): the stage's black laid over them at 55%. */
.cil-st-reel:not(.is-active)::after { content: ""; position: absolute; z-index: 4; inset: 0; background: color-mix(in srgb, var(--cil-black) 55%, transparent); transition: opacity .3s ease; }
.cil-st-reel:not(.is-active):hover::after { opacity: .6; }
.cil-st-reel__poster, .cil-st-reel__media, .cil-st-reel__media > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.cil-st-reel__media:empty { display: none; }
.cil-st-reel__media { background: var(--cil-black-dark-2); }
/* The marks over a playing video let presses through to the platform's player under them. */
.cil-st-reel__progress, .cil-st-reel__meta { pointer-events: none; }
.cil-st-reel__meta [hidden] { display: none; }
.cil-st-reel__shade { position: absolute; inset-inline: 0; bottom: 0; height: 50%; background: color-mix(in srgb, var(--cil-black) 60%, transparent); pointer-events: none; transition: opacity .3s ease; }
/* One line for the one video, filled from the left as it plays (Oren, 2026-10-09: the design's three
   story segments read as three videos). */
.cil-st-reel__progress { position: absolute; top: 14px; inset-inline: 16px; display: flex; gap: 4px; height: 3px; direction: ltr; }
.cil-st-reel__progress i { position: relative; flex: 1; overflow: hidden; border-radius: 1.5px; background: var(--cil-black-light-4); }
.cil-st-reel__progress i::after { content: ""; position: absolute; inset-block: 0; left: 0; width: var(--p, 0%); border-radius: 1.5px; background: var(--cil-white); }
.cil-st-reel__meta { position: absolute; top: 30px; inset-inline-start: 16px; display: flex; gap: 6px; }
.cil-st .cil-st-reel__play {
    position: absolute; top: 42%; left: 50%; display: grid; place-items: center; width: 76px; height: 76px; padding: 0; border: 0; border-radius: 50%;
    background: var(--cil-white); cursor: pointer; transform: translate(-50%, -50%); transition: transform .25s var(--st-ease), box-shadow .25s ease;
}
.cil-st-reel:not(.is-active) .cil-st-reel__play { top: 44%; pointer-events: none; }
.cil-st .cil-st-reel__play:is(:hover, :focus-visible) { background: var(--cil-white); box-shadow: 0 0 0 6px color-mix(in srgb, var(--cil-white) 35%, transparent); transform: translate(-50%, -50%) scale(1.06); outline: none; }
.cil-st-reel__play img { grid-area: 1 / 1; }
.cil-st-reel__icon--pause, .cil-st-reel__icon--loading { display: none; }
/* Pressed: the button moves to the far corner -- a spinner while it loads (Figma row "Reel loading"), then
   pause; the words at the foot stay (Figma row "Reel playing"). */
.cil-st-reel.is-playing .cil-st-reel__play { top: 30px; left: auto; inset-inline-end: 16px; width: 40px; height: 40px; transform: none; }
.cil-st .cil-st-reel.is-playing .cil-st-reel__play:is(:hover, :focus-visible) { transform: scale(1.06); }
.cil-st-reel.is-playing .cil-st-reel__icon--play { display: none; }
.cil-st-reel.is-playing:not(.is-loading) .cil-st-reel__icon--pause { display: block; }
.cil-st-reel.is-loading .cil-st-reel__icon--loading { display: block; animation: cil-st-spin .8s linear infinite; }
@keyframes cil-st-spin { to { transform: rotate(360deg); } }
.cil-st-reel.is-failed .cil-st-reel__play { display: none; }
/* Another platform's player (not YouTube or Vimeo): it tells the page nothing, so it plays with its own
   controls alone -- no progress, time, pause or words over it (reels.js, is-frame). */
.cil-st-reel.is-frame :is(.cil-st-reel__play, .cil-st-reel__shade, .cil-st-reel__caption, .cil-st-reel__meta, .cil-st-reel__progress) { display: none; }
.cil-st-reel__caption { position: absolute; inset-inline: 16px; bottom: 18px; display: flex; flex-direction: column; gap: 8px; transition: opacity .3s ease, transform .3s var(--st-ease); }
/* Playing: the dark half at the foot goes, and the words on it with it, so the whole video shows (Oren,
   2026-10-09, over the design's shade kept while playing); they come back on pause and at the end. */
.cil-st-reel.is-playing:not(.is-loading) .cil-st-reel__shade { opacity: 0; }
.cil-st-reel.is-playing:not(.is-loading) .cil-st-reel__caption { opacity: 0; transform: translateY(12px); pointer-events: none; }
.cil-st-reel__line { display: -webkit-box; overflow: hidden; margin: 0; color: var(--cil-white); font-size: 24px; font-weight: 700; line-height: 1.2; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
/* The rest of the story's words under its title (Oren, 2026-10-09), two lines at most; the quieter cards
   beside the middle one keep only the title. */
.cil-st-reel__rest { display: -webkit-box; overflow: hidden; margin: 0; color: var(--cil-black-light-4); font-size: 16px; line-height: 1.4; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cil-st-reel:not(.is-active) .cil-st-reel__rest { display: none; }
.cil-st-reel .cil-st-person__name { color: var(--cil-white); }
.cil-st-reel .cil-st-person__role { color: var(--cil-black-light-4); }
/* Did not load (Figma 14615:4870): a white card over the video with "ניסיון נוסף"; the strip goes on. */
.cil-st-reel__failed { position: absolute; z-index: 3; top: 50%; left: 50%; display: flex; flex-direction: column; align-items: center; gap: 10px; width: max-content; max-width: calc(100% - 32px); padding: 20px; border-radius: 16px; background: var(--cil-white); text-align: center; transform: translate(-50%, calc(-50% - 40px)); }
.cil-st-reel__failed[hidden] { display: none; }
.cil-st-reel__failed > img { display: block; }
.cil-st-reel__failed-title { color: var(--cil-black); font-size: 18px; font-weight: 700; line-height: 1.2; }
.cil-st .cil-st-btn--compact { height: 44px; padding-inline: 20px; font-size: 14px; }
.cil-st .cil-st-btn--compact img { width: 16px; height: 16px; }

@media (max-width: 1079px) {
    .cil-st-reel { width: 220px; } .cil-st-reel.is-active { width: 300px; }
    .cil-st-reels__list { height: calc(300px * 16 / 9); }
}
/* A phone (Figma 14603:1516): the video in the middle on its own row, the ones beside it under it as
   small cards with play and the name; pressing one brings it up (reels.js). */
@media (max-width: 640px) {
    .cil-st .cil-st-reels__nav { display: none; }
    .cil-st-reels { display: block; }
    .cil-st-reels__list { height: auto; flex-wrap: wrap; gap: 20px 10px; }
    .cil-st-reel.is-active { order: 0; width: 300px; max-width: 100%; margin-inline: calc((100% - 300px) / 2); border-radius: 20px; }
    .cil-st-reel.is-prev, .cil-st-reel.is-next { width: 96px; border-radius: 20px; }
    .cil-st-reel:not(.is-active)::after { display: none; }
    .cil-st .cil-st-reel.is-active:not(.is-playing) .cil-st-reel__play { width: 64px; height: 64px; }
    .cil-st-reel.is-active .cil-st-reel__icon--play { width: 26px; height: 26px; }
    .cil-st-reel .cil-st-tag { font-size: 12px; }
    .cil-st-reel__line { font-size: 16px; }
    .cil-st-reel__rest { font-size: 13px; }
    .cil-st-reel .cil-st-person__name { font-size: 16px; }
    .cil-st-reel .cil-st-person__role { font-size: 12px; }
    .cil-st-reel__failed-title { font-size: 16px; }
    .cil-st-reel:not(.is-active) :is(.cil-st-reel__progress, .cil-st-reel__meta, .cil-st-reel__line, .cil-st-person__avatar, .cil-st-person__role, .cil-st-tag--course) { display: none; }
    .cil-st .cil-st-reel:not(.is-active) .cil-st-reel__play { top: 50%; width: 40px; height: 40px; pointer-events: auto; }
    .cil-st-reel:not(.is-active) .cil-st-reel__icon--play { width: 16px; height: 16px; }
    .cil-st-reel:not(.is-active) .cil-st-reel__caption { inset-inline: 12px; bottom: 14px; }
    .cil-st-reel:not(.is-active) .cil-st-person__name { font-size: 12px; font-weight: 600; }
}
@media (prefers-reduced-motion: reduce) {
    .cil-st-reel, .cil-st-reel__caption, .cil-st-reel__shade, .cil-st .cil-st-reel__play, .cil-st .cil-st-reels__nav { transition: none; }
    .cil-st-reel.is-playing:not(.is-loading) .cil-st-reel__caption { transform: none; }
    .cil-st-reel.is-loading .cil-st-reel__icon--loading { animation-duration: 2.4s; }
}
