/* The episodes' list (Figma 14526-2, "Episode list" and "Episode row"): a row each -- play, number,
   picture, title and source, day, length, "פרטים" -- opening in place to its details. A row that plays
   is tinted and shows its progress (podcasts.js, from the site player). On a phone the row stacks its words beside the picture
   and the play button, and the page's sections stack (the end of this file). */

.cil-pod-list { overflow: hidden; margin: 0; padding: 0; border: 1px solid var(--cil-black-light-3); border-radius: 20px; background: var(--cil-white); list-style: none; }
/* No padding of its own (the theme gives every `ol > li` 12px below; Figma's row is 108px). */
.cil-pod .cil-pod-row { padding: 0; transition: background-color .3s ease; scroll-margin-top: 100px; }
.cil-pod-row[hidden] { display: none; }
.cil-pod-row.is-entering { animation: cil-pod-rise .35s var(--pod-ease) backwards; }
.cil-pod-row + .cil-pod-row { border-top: 1px solid var(--cil-black-light-3); }
.cil-pod-row.is-playing, .cil-pod-row.is-loading { background: var(--cil-blue-light-1); }
.cil-pod-row:target, .cil-pod-row.is-flash { animation: cil-pod-flash 1.6s ease; }
@keyframes cil-pod-flash { 0%, 30% { background: var(--cil-blue-light-2); } }

.cil-pod-row__main { display: flex; align-items: center; gap: 20px; padding: 18px 28px; }
.cil-pod .cil-pod-play {
    position: relative; flex: none; display: grid; place-items: center; width: 48px; height: 48px; padding: 0;
    border: 1px solid var(--cil-blue-dark-1); border-radius: 50%; background: var(--cil-white); cursor: pointer;
    transition: background-color .2s ease, box-shadow .2s ease, transform .2s var(--pod-ease);
}
/* Its hover (sound rippling out) is hovers.css; the colours stay pinned against the theme's green. */
.cil-pod .cil-pod-play:is(:hover, :focus-visible) { background: var(--cil-white); }
.cil-pod .cil-pod-play:active { transform: scale(.94); }
.cil-pod-play__icon { grid-area: 1 / 1; }
.cil-pod-play__icon--pause, .cil-pod-play__icon--loading { display: none; }
.cil-pod .cil-pod-row.is-playing .cil-pod-play { background: var(--cil-blue-dark-1); }
.cil-pod-row.is-playing .cil-pod-play__icon--play { display: none; }
.cil-pod-row.is-playing .cil-pod-play__icon--pause { display: block; }
.cil-pod .cil-pod-row.is-loading .cil-pod-play { border-color: transparent; background: none; }
.cil-pod-row.is-loading .cil-pod-play__icon--play { display: none; }
.cil-pod-row.is-loading .cil-pod-play__icon--loading { display: block; animation: cil-pod-spin 1s linear infinite; }
.cil-pod-play__icon--loading { width: 48px; height: 48px; }
.cil-pod-play__icon--loading img { display: block; width: 100%; height: 100%; }

.cil-pod-row__number { flex: none; width: 32px; color: var(--cil-black-regular-6); font-size: 18px; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.cil-pod-row__cover { flex: none; width: 72px; height: 72px; border-radius: 10px; object-fit: cover; }
.cil-pod-row__text { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cil-pod-row__eyebrow { display: none; color: var(--cil-black-regular-6); font-size: 14px; }
.cil-pod-row__title { color: var(--cil-black); font-size: 18px; font-weight: 700; line-height: 1.2; transition: color .25s ease; }
.cil-pod-row.is-playing .cil-pod-row__title { color: var(--cil-blue-dark-1); }
.cil-pod-row__source { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--cil-black-regular-7); font-size: 14px; }
.cil-pod-row__source :is(img, svg) { flex: none; }
/* A series' house mark (series-look.php) in the teal the design's own marks are drawn in. */
.cil-pod-row__source svg { color: var(--cil-blue-dark-1); }
.cil-pod-row__source span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cil-pod-row__error { display: flex; align-items: center; gap: 6px; color: var(--cil-red-regular-5); font-size: 14px; font-weight: 600; }
.cil-pod-row__error[hidden] { display: none; }
.cil-pod-row__date { flex: none; color: var(--cil-black-regular-6); font-size: 14px; font-variant-numeric: tabular-nums; }
.cil-pod-row__minutes { flex: none; width: 60px; color: var(--cil-black-regular-7); font-size: 14px; font-weight: 600; }
.cil-pod .cil-pod-row__toggle {
    flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 6px 2px; border: 0; background: none;
    color: var(--cil-blue-dark-1); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.cil-pod .cil-pod-row__toggle:is(:hover, :focus-visible) { color: var(--cil-blue-dark-1); text-decoration: underline; text-underline-offset: 3px; outline: none; }
.cil-pod .cil-pod-row__toggle:focus-visible { outline: 2px solid var(--cil-blue-dark-1); outline-offset: 2px; border-radius: 4px; }
.cil-pod-row__toggle img { transition: transform .3s var(--pod-ease); }
.cil-pod-row__toggle[aria-expanded="true"] img { transform: rotate(180deg); }

/* The row's own progress, while it plays (Figma "Progress row · LTR"), filling from the reading start --
   the right in Hebrew and Arabic, as the docked player's does (Oren, 2026-10-10). */
/* The progress row's base is the site player's (player.css), which draws the same row. */
.cil-pod-row__progress { align-self: flex-start; }
.cil-pod-progress__track { position: relative; overflow: hidden; width: 360px; max-width: 100%; height: 4px; border-radius: 2px; background: var(--cil-black-light-3); }
.cil-pod-progress__fill { position: absolute; inset-block: 0; inset-inline-start: 0; width: var(--p, 0%); border-radius: 2px; background: var(--cil-blue-dark-1); }

/* ---- An episode's details ---- */
.cil-pod-details { overflow: hidden; }
.cil-pod-details[hidden] { display: none; }
/* Two sides (Oren, 2026-10-10): the line about it, the course and the apps from the reading start; the
   transcript and sharing on one row at the far edge, right under "סגירה" and level with it. Those two
   come first in the markup -- next after "סגירה" for the keyboard -- and are drawn at the end (order). */
.cil-pod-details__inner { display: flex; align-items: flex-start; gap: 24px; padding-block: 0 22px; padding-inline: 240px 28px; }
.cil-pod-details__actions { flex: none; order: 2; display: flex; align-items: center; gap: 12px; margin-inline-start: auto; }
/* As wide as its widest part: the line about the episode (kept to a readable 760px) or the course box, whose
   name stays on one line while the row has room for it and wraps only when it has not (Oren 2026-10-15: a long
   course name broke twice beside empty space). The course box stretches to that width. */
.cil-pod-details__main { flex: 0 1 auto; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.cil-pod-details__about { max-width: 760px; color: var(--cil-black-regular-7); font-size: 16px; line-height: 1.3; }
.cil-pod-btn__short { display: none; }

/* The course box itself is the site player's (player.css): the phone's full player draws it too. */
.cil-pod-details__main .cil-pod-course { align-self: stretch; }

/* ---- Narrower screens ---- */
@media (max-width: 1079px) {
    .cil-pod-hero__art { width: 300px; }
    .cil-pod-hero__content { padding: 32px; }
    .cil-pod-starters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cil-pod-row__date { display: none; }
    /* No room for both sides (en at 768 squeezed the course box to 275px): the two buttons take their own
       row first, still at the far edge under "סגירה", and the line, the course and the apps go under them. */
    .cil-pod-details__inner { flex-direction: column; gap: 16px; padding-inline: 28px; }
    .cil-pod-details__actions { order: 0; align-self: flex-end; margin-inline-start: 0; }
    .cil-pod-details__main { align-self: flex-start; max-width: 100%; }
}
@media (max-width: 640px) {
    /* The phone's sizes, spacing and type (Figma 14548:1112, "b · Mobile · default"). */
    .cil-pod__body { gap: 40px; padding-block: 8px 48px; }
    .cil-pod__section { gap: 16px; }
    .cil-pod .cil-pod__title { gap: 8px; font-size: 20px; }
    .cil-pod .cil-pod__title::before { height: 22px; }
    /* The show: its picture small beside its tag and name, the rest under them. */
    .cil-pod-hero { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 14px; padding: 20px; border-radius: 20px; }
    .cil-pod-hero__art { grid-row: 1; grid-column: 1; width: 88px; overflow: hidden; border-radius: 12px; }
    .cil-pod-hero__content { display: contents; }
    .cil-pod-hero__heading { grid-row: 1; grid-column: 2; align-self: center; gap: 6px; }
    .cil-pod-tag--show { font-size: 12px; }
    .cil-pod-hero__name { font-size: 24px; }
    .cil-pod-hero__about, .cil-pod-hero__facts, .cil-pod-hero__actions { grid-column: 1 / -1; }
    .cil-pod-hero__about { font-size: 14px; }
    .cil-pod-hero__facts { flex-direction: column; gap: 6px; }
    .cil-pod-hero__facts li { font-size: 12px; }
    .cil-pod-hero__facts li :is(img, svg) { width: 16px; height: 16px; }
    .cil-pod-hero__actions { flex-direction: column; align-items: stretch; gap: 14px; }
    .cil-pod .cil-pod-btn--primary { width: 100%; height: 44px; padding-inline: 20px; font-size: 14px; }
    .cil-pod .cil-pod-btn--primary .cil-pod-btn__mark, .cil-pod .cil-pod-btn--primary .cil-pod-btn__mark img { width: 16px; height: 16px; }
    .cil-pod-platforms__label { font-size: 12px; }
    .cil-pod-platforms .cil-pod-chip { width: 40px; height: 40px; padding: 0; justify-content: center; border-radius: 50%; font-size: 0; }
    .cil-pod-platforms .cil-pod-chip img { width: 21px; height: 21px; }   /* Spotify's smallest, as on a wide screen */
    /* A platform shown by the neutral microphone keeps its name: a pill as tall as the round chips. */
    .cil-pod-platforms .cil-pod-chip--named { width: auto; padding-inline: 12px 14px; border-radius: 20px; font-size: 12px; }
    /* "להתחיל מכאן" and the filters scroll sideways. */
    .cil-pod-starters { display: flex; overflow-x: auto; gap: 12px; margin-inline: -16px; padding: 0 16px; scroll-padding-inline: 16px; scroll-snap-type: x mandatory; scrollbar-width: none; }
    .cil-pod-starters::-webkit-scrollbar { display: none; }
    .cil-pod-starter, .cil-pod-starter:hover { flex: none; width: 280px; padding: 16px; box-shadow: none; transform: none; scroll-snap-align: start; }
    .cil-pod-starter__cover { width: 72px; height: 72px; }
    .cil-pod-starter__titles .cil-pod-tag { font-size: 12px; }
    .cil-pod-starter__title { font-size: 16px; }
    .cil-pod-starter__about { flex: none; display: -webkit-box; overflow: hidden; font-size: 12px; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
    .cil-pod .cil-pod-starter__play { font-size: 14px; }
    .cil-pod-starter__disc { width: 40px; height: 40px; }
    .cil-pod-starter__disc img { width: 16px; height: 16px; }
    .cil-pod-starter__minutes { font-size: 12px; }
    .cil-pod-toolbar { flex-direction: column; align-items: stretch; gap: 16px; }
    .cil-pod-filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 0 16px; scrollbar-width: none; }
    .cil-pod-filters::-webkit-scrollbar { display: none; }
    .cil-pod .cil-pod-filter { flex: none; padding: 7px 14px; font-size: 12px; }
    .cil-pod-filter__name { font-weight: 400; }
    .cil-pod .cil-pod-filter.is-on .cil-pod-filter__name { font-weight: 600; }
    .cil-pod .cil-pod-sort__button { width: 100%; height: 44px; font-size: 14px; }
    /* The order as a sheet from the bottom over a shade (Figma 14548:17102); a tap applies and closes it. */
    /* Over the site's header and its back-to-top button (z-index 9000), as the design's shade covers all. */
    .cil-pod-sort__backdrop:not([hidden]) { display: block; position: fixed; z-index: 9100; inset: 0; background: color-mix(in srgb, var(--cil-black) 60%, transparent); }
    .cil-pod .cil-pod-sort__menu { position: fixed; z-index: 9101; inset: auto 0 0; width: 100%; gap: 8px; padding: 12px 16px 28px; border: 0; border-radius: 24px 24px 0 0; box-shadow: none; animation: cil-pod-sheet .35s var(--pod-ease); }
    .cil-pod-sort__grab { display: block; align-self: center; width: 40px; height: 4px; border-radius: 2px; background: var(--cil-black-light-4); }
    .cil-pod-sort__head { display: flex; align-items: center; justify-content: space-between; padding-block: 4px 8px; }
    .cil-pod-sort__title { color: var(--cil-black); font-size: 16px; font-weight: 700; }
    .cil-pod .cil-pod-sort__close { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--cil-black-light-3); border-radius: 50%; background: var(--cil-white); cursor: pointer; }
    .cil-pod-sort__options { gap: 8px; }
    .cil-pod .cil-pod-sort__menu .cil-pod-menu__item { padding: 14px 16px; font-size: 14px; }
    /* A series' line: its words only, its apps under them as the opening box's (Figma 14548:15702). */
    .cil-pod-intro { flex-direction: column; align-items: stretch; gap: 4px; padding: 16px; }
    .cil-pod-intro__icon { display: none; }
    .cil-pod-intro__title { font-size: 16px; }
    .cil-pod-intro__text { font-size: 12px; }
    /* A row, between lines across the column: the picture, its words, and play at the far side. */
    .cil-pod-list { overflow: visible; border: 0; border-radius: 0; background: none; }
    .cil-pod-row__main { display: grid; grid-template-columns: 64px minmax(0, 1fr) 40px; grid-template-areas: "cover text play" "cover toggle play"; gap: 4px 12px; padding: 14px 0; align-items: center; }
    .cil-pod-row__cover { grid-area: cover; width: 64px; height: 64px; }
    .cil-pod-row__text { grid-area: text; }
    .cil-pod .cil-pod-play { grid-area: play; width: 40px; height: 40px; }
    .cil-pod-play__icon--play, .cil-pod-play__icon--pause { width: 16px; height: 16px; }
    .cil-pod-play__icon--loading { width: 40px; height: 40px; }
    .cil-pod .cil-pod-row__toggle { position: relative; grid-area: toggle; justify-self: start; padding: 0; font-size: 12px; }
    .cil-pod .cil-pod-row__toggle::after { content: ""; position: absolute; inset: -8px -6px; }
    .cil-pod-row__toggle img { width: 14px; height: 14px; }
    .cil-pod-row__number, .cil-pod-row__date, .cil-pod-row__minutes { display: none; }
    .cil-pod-row__eyebrow { display: block; font-size: 12px; }
    .cil-pod-row__title { font-size: 16px; }
    .cil-pod-row__source { font-size: 12px; }
    .cil-pod-row__source :is(img, svg) { width: 14px; height: 14px; }
    /* Playing or loading, the row is a tinted card with its progress where "פרטים" was (Figma "Playing"). */
    .cil-pod-row:is(.is-playing, .is-loading) { border-radius: 12px; }
    .cil-pod-row:is(.is-playing, .is-loading) .cil-pod-row__main { padding-inline: 12px; }
    .cil-pod .cil-pod-row:is(.is-playing, .is-loading) .cil-pod-row__toggle[aria-expanded="false"] { display: none; }
    .cil-pod-row__progress { font-size: 12px; }
    .cil-pod-progress__track { width: 120px; }
    .cil-pod-row__error { font-size: 12px; }
    .cil-pod-row__error img { width: 14px; height: 14px; }
    /* An episode's details (Figma 14548:12363): the column's full width. The buttons side by side first,
       straight under "סגירת הפרטים" -- from its edge, past the 64px picture and the 12px gap. */
    .cil-pod-details__inner { padding: 6px 0 18px; }
    .cil-pod-details__actions { align-self: flex-start; flex-wrap: wrap; margin-inline-start: 76px; }
    .cil-pod-details__actions .cil-pod-btn__long { display: none; }
    .cil-pod-details__actions .cil-pod-btn__short { display: inline; }
    .cil-pod-details__main { align-self: stretch; max-width: none; }
    .cil-pod-details__about { font-size: 14px; }
    .cil-pod .cil-pod-details__actions .cil-pod-btn { height: 40px; padding-inline: 16px; font-size: 14px; }
    .cil-pod-details__actions .cil-pod-btn .cil-pod-glyph { width: 16px; height: 16px; }
    .cil-pod .cil-pod-course { align-self: stretch; gap: 12px; min-width: 0; padding: 12px; }
    .cil-pod-course__tile { width: 36px; height: 36px; }
    .cil-pod-course__tile img { width: 18px; height: 18px; }
    .cil-pod-course__eyebrow, .cil-pod-course__institution, .cil-pod-course__go { font-size: 12px; }
    .cil-pod-course__name { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
    .cil-pod-course__go img { width: 14px; height: 14px; }
    /* The episodes could not be read (Figma 14548:18951). */
    .cil-pod-state { gap: 12px; padding: 32px 20px; }
    .cil-pod-state__icon { width: 56px; height: 56px; }
    .cil-pod-state__icon img { width: 26px; height: 26px; }
    .cil-pod .cil-pod-state__title { font-size: 16px; }
    .cil-pod-state__text { max-width: 300px; font-size: 14px; }
    .cil-pod-state .cil-pod-btn--retry { height: 44px; padding-inline: 20px; font-size: 14px; }
    .cil-pod-state .cil-pod-btn--retry img { width: 16px; height: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .cil-pod .cil-pod-row, .cil-pod .cil-pod-play, .cil-pod-row__title, .cil-pod-row__toggle img, .cil-pod .cil-pod-course, .cil-pod-course__go img { transition: none; }
    .cil-pod-row.is-entering, .cil-pod-row:target, .cil-pod-row.is-flash { animation: none; }
    .cil-pod-row.is-loading .cil-pod-play__icon--loading { animation-duration: 3s; }
}
