/* The podcasts page (Figma 14526-2): the show, "להתחיל מכאן", and every episode with its details. The
   page's header is the catalogue's (catalogue-pages/assets/page.css); the player, the menus and the
   transcript are the site player's (site-player/assets/), which also holds what the page shares with it --
   the tokens (--pod-*), the button's base, the course box and the motions -- and loads first. Logical
   properties and the brand's tokens. */

.cil-pod *, .cil-pod *::before, .cil-pod *::after { box-sizing: border-box; }
.cil-pod__body { display: flex; flex-direction: column; gap: 72px; padding-block: 24px 96px; }
.cil-pod__section { display: flex; flex-direction: column; gap: 24px; }
.cil-pod .cil-pod__title { gap: 12px; font-size: 32px; }
.cil-pod .cil-pod__title::before { height: 30px; }
.cil-pod p, .cil-pod h2, .cil-pod h3 { margin: 0; }
/* A filter that holds nothing: the words and the way back to every episode (podcasts.js). */
.cil-pod__none { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 40px; border: 1px solid var(--cil-black-light-3); border-radius: 20px; background: var(--cil-white); color: var(--cil-black-regular-7); font-size: 16px; text-align: center; }
.cil-pod__none[hidden] { display: none; }
/* None listed yet (templates/empty.php): the failed state's shape, calm -- the page's light teal behind the mark. */
.cil-pod-state--empty .cil-pod-state__icon { background: var(--cil-blue-light-1); }

/* ---- The episodes could not be read (Figma "Episodes failed"): the error and a way to try again ---- */
.cil-pod-state { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 56px 40px; border: 1px solid var(--cil-black-light-3); border-radius: 20px; background: var(--cil-white); text-align: center; }
.cil-pod-state__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 32px; background: var(--cil-red-light-1); }
.cil-pod-state__icon img { display: block; width: 30px; height: 30px; }
.cil-pod .cil-pod-state__title { color: var(--cil-black); font-size: 24px; font-weight: 700; line-height: 1.2; }
.cil-pod-state__text { max-width: 520px; color: var(--cil-black-regular-7); font-size: 16px; line-height: 1.2; }

/* ---- Buttons and chips the page shares ---- */
/* The button's base, its ring and its sizes are the site player's (player.css): its buttons wear them too. */
.cil-pod .cil-pod-btn--primary { border-color: var(--cil-blue-dark-1); background: var(--cil-blue); }
.cil-pod .cil-pod-btn--primary:is(:hover, :focus-visible) { background: var(--cil-blue); }

.cil-pod-tag { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; padding: 3px 8px; border-radius: 6px; font-size: 14px; font-weight: 600; line-height: 1.2; }
.cil-pod-tag--show { background: var(--cil-white); color: var(--cil-blue-dark-1); }
.cil-pod-tag--blue { background: var(--cil-blue-light-1); color: var(--cil-blue-dark-1); }
/* A tag that is its series' name: the series' colour (--pod-series, set on it by templates/starters.php). */
.cil-pod-tag--series { background: var(--pod-series); color: var(--cil-black); }

.cil-pod-platforms { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cil-pod-platforms__label { color: var(--cil-black-regular-7); font-size: 14px; }
/* Every mark at 21px, Spotify's smallest allowed size, so all the brands' icons (and the microphone beside
   them) match (Oren, 2026-10-13); the chip's padding gives back the room, keeping it 31px tall. */
.cil-pod .cil-pod-chip {
    display: inline-flex; align-items: center; gap: 6px; padding-block: 4px; padding-inline: 8px 14px; border: 1px solid var(--cil-black-light-3); border-radius: 20px;
    background: var(--cil-white); color: var(--cil-black); font-size: 14px; font-weight: 600; line-height: 1.2; text-decoration: none;
    transition: border-color .2s ease, transform .2s var(--pod-ease);
}
.cil-pod .cil-pod-chip:is(:hover, :focus-visible) { border-color: var(--cil-blue-dark-1); color: var(--cil-black); transform: translateY(-2px); outline: none; }
.cil-pod .cil-pod-chip img { flex: none; width: 21px; height: 21px; }

/* ---- The show ---- */
.cil-pod-hero { display: flex; overflow: hidden; border-radius: 24px; background: var(--cil-blue-light-1); }
.cil-pod-hero__content { flex: 1; display: flex; flex-direction: column; gap: 18px; min-width: 0; padding: 48px; }
.cil-pod-hero__art { flex: none; width: 400px; aspect-ratio: 1; }
.cil-pod-hero__art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cil-pod-hero__heading { display: flex; flex-direction: column; gap: 18px; }
.cil-pod-hero__name { color: var(--cil-black); font-size: 40px; font-weight: 700; line-height: 1.2; }
.cil-pod-hero__about { max-width: 860px; color: var(--cil-black-regular-7); font-size: 18px; line-height: 1.2; }
.cil-pod-hero__facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0; padding: 0; list-style: none; }
.cil-pod-hero__facts li { display: inline-flex; align-items: center; gap: 6px; color: var(--cil-black); font-size: 14px; font-weight: 600; }
/* A series' house mark (series-look.php) in the teal the design's own marks are drawn in. */
.cil-pod-hero__facts svg { flex: none; color: var(--cil-blue-dark-1); }
.cil-pod-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }

/* ---- "להתחיל מכאן" ---- */
.cil-pod-starters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.cil-pod-starter {
    display: flex; flex-direction: column; gap: 14px; padding: 24px; border: 1px solid var(--cil-black-light-3); border-radius: 20px; background: var(--cil-white);
    box-shadow: 0 8px 12px color-mix(in srgb, var(--cil-black) 14%, transparent), 0 1px 1.5px color-mix(in srgb, var(--cil-black) 8%, transparent);
    transition: transform .3s var(--pod-ease), box-shadow .3s var(--pod-ease);
}
/* The card no longer lifts: its play mark stays perfectly still while pointed at (Oren, 2026-10-10). */
.cil-pod-starter:hover { box-shadow: 0 14px 22px color-mix(in srgb, var(--cil-black) 16%, transparent), 0 1px 1.5px color-mix(in srgb, var(--cil-black) 8%, transparent); }
.cil-pod-starter__top { display: flex; align-items: center; gap: 14px; }
.cil-pod-starter__cover { flex: none; width: 88px; height: 88px; border-radius: 12px; object-fit: cover; }
.cil-pod-starter__titles { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cil-pod-starter__title { display: -webkit-box; overflow: hidden; color: var(--cil-black); font-size: 18px; font-weight: 700; line-height: 1.2; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cil-pod-starter__about { flex: 1; color: var(--cil-black-regular-7); font-size: 14px; line-height: 1.2; }
.cil-pod-starter__listen { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cil-pod .cil-pod-starter__play { display: inline-flex; align-items: center; gap: 10px; padding: 0; border: 0; background: none; color: var(--cil-black); font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; }
/* Its hover (sound rippling out) is hovers.css. */
.cil-pod-starter__disc { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--cil-blue-dark-1); }
.cil-pod-starter__minutes { color: var(--cil-black-regular-6); font-size: 14px; }

/* ---- Filters and order ---- */
.cil-pod-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.cil-pod-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.cil-pod .cil-pod-filter {
    display: inline-flex; align-items: center; gap: 6px; padding: 8px 18px; border: 1px solid var(--cil-black-light-3); border-radius: 20px;
    background: var(--cil-white); color: var(--cil-black); font: inherit; font-size: 14px; line-height: 1.2; cursor: pointer;
    transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}
.cil-pod-filter__name { font-weight: 600; }
.cil-pod-filter__count { color: var(--cil-black-regular-6); transition: color .25s ease; }
.cil-pod .cil-pod-filter:is(:hover, :focus-visible) { border-color: var(--cil-blue-dark-1); color: var(--cil-black); outline: none; }
.cil-pod .cil-pod-filter.is-on { border-color: var(--cil-blue-dark-1); background: var(--cil-blue-dark-1); color: var(--cil-white); }
.cil-pod .cil-pod-filter.is-on .cil-pod-filter__name { font-weight: 700; }
.cil-pod .cil-pod-filter.is-on .cil-pod-filter__count { color: var(--cil-white); }
/* The chosen chip settles in place with a small press, rather than a pill travelling between them. */
.cil-pod .cil-pod-filter.is-on { animation: cil-pod-chip-in .3s var(--pod-ease); }
@keyframes cil-pod-chip-in { 40% { transform: scale(.94); } }

.cil-pod-sort { position: relative; }
.cil-pod .cil-pod-sort__button {
    display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; width: 240px; height: 48px; padding-inline: 16px;
    border: 1px solid var(--cil-black-light-4); border-radius: 10px; background: var(--cil-white); color: var(--cil-black); font: inherit; font-size: 16px; cursor: pointer;
}
.cil-pod .cil-pod-sort__button:is(:hover, :focus-visible) { border-color: var(--cil-blue-dark-1); color: var(--cil-black); outline: none; }
.cil-pod .cil-pod-sort__button img { transition: transform .25s var(--pod-ease); }
.cil-pod .cil-pod-sort__button[aria-expanded="true"] { border-color: var(--cil-blue-dark-1); }
.cil-pod .cil-pod-sort__button[aria-expanded="true"] img { transform: rotate(180deg); }
.cil-pod-sort__menu { position: absolute; z-index: 30; inset-inline-end: 0; top: calc(100% + 6px); width: 240px; }
.cil-pod-sort__options { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; }
.cil-pod-sort__options:focus { outline: none; }
/* The phone's sheet parts (episodes.css, the end); a menu has none of them. */
.cil-pod-sort__grab, .cil-pod-sort__head, .cil-pod-sort__backdrop { display: none; }

/* ---- A series' line, over its episodes, on the series' colour (--pod-series, set on it by templates/page.php) ---- */
.cil-pod-intro { display: flex; align-items: center; gap: 16px; padding: 20px 24px; border-radius: 16px; background: var(--pod-series); }
.cil-pod-intro[hidden] { display: none; }
.cil-pod-intro:not([hidden]) { animation: cil-pod-rise .35s var(--pod-ease); }
.cil-pod-intro__icon { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--cil-white); color: var(--cil-black); }
.cil-pod-intro__words { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cil-pod-intro__title { color: var(--cil-black); font-size: 18px; font-weight: 700; }
.cil-pod-intro__text { color: var(--cil-black-regular-7); font-size: 14px; }
/* A series' own apps under its words, as the opening box shows the featured one's (item 72). */
.cil-pod-intro .cil-pod-platforms { margin-top: 8px; }

/* ---- The more button ---- */
/* How many show and the button, on one row centred under the list (Oren, 2026-10-10, over the design's
   stacked "List status"); a narrow screen wraps them, still centred: the site's "show more", its row layout
   (design-system/load-more.css). */

@media (prefers-reduced-motion: reduce) {
    .cil-pod .cil-pod-chip, .cil-pod-starter, .cil-pod-starter__disc, .cil-pod .cil-pod-filter, .cil-pod .cil-pod-sort__button img { transition: none; }
    .cil-pod .cil-pod-filter.is-on, .cil-pod-intro:not([hidden]) { animation: none; }
    .cil-pod-starter:hover { transform: none; }
}
