/* The Podcast index (one page for all 367 Talk Chineasy lessons). Every rule starts with .pc, so nothing here touches another page. */
.pc { --pc-w: 1240px; }
.pc p { max-width: none; }
.pc-in { box-sizing: border-box; max-width: var(--pc-w); margin: 0 auto; padding: 0 40px; }
.pc-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pc h2 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); font-weight: 700; -webkit-text-stroke: 0; letter-spacing: -0.01em; line-height: 1.12; }
.pc-head { margin-bottom: clamp(22px, 2.8vw, 36px); text-align: center; }

/* --- search first --- */
.pc-top { background: linear-gradient(180deg, var(--mist) 0%, #F3FAFF 100%); padding: clamp(26px, 3vw, 40px) 0 clamp(40px, 4.6vw, 64px); }
.pc-top .pc-in { display: flex; flex-direction: column; align-items: center; text-align: center; }
.pc-crumbs { align-self: flex-start; display: flex; gap: 10px; margin: 0 0 clamp(18px, 2.4vw, 32px); font-size: 0.95rem; }
.pc-crumbs a { font-weight: 700; color: var(--blue); text-decoration: none; }
.pc-crumbs span { color: var(--soft); }
.pc-eye { margin: 0 0 12px; font-size: 0.9rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); }
.pc h1 { font-size: clamp(2.3rem, 4.6vw, 4rem); font-weight: 700; line-height: 1.06; letter-spacing: -0.015em; -webkit-text-stroke: 0; }
.pc-lead { margin: 18px 0 0; font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--ink); }
.pc-search { position: relative; width: min(100%, 760px); margin: clamp(24px, 3vw, 36px) 0 0; }
.pc-search::before { content: ""; position: absolute; left: 26px; top: 50%; width: 18px; height: 18px; margin-top: -12px; border: 3px solid var(--blue); border-radius: 50%; box-sizing: border-box; pointer-events: none; }
.pc-search::after { content: ""; position: absolute; left: 41px; top: 50%; width: 9px; height: 3px; margin-top: 5px; border-radius: 2px; background: var(--blue); transform: rotate(45deg); pointer-events: none; }
.pc-search input { box-sizing: border-box; width: 100%; height: 70px; padding: 0 60px 0 64px; border: 0; border-radius: 999px; background: #fff; font: inherit; font-size: 1.25rem; color: var(--ink); box-shadow: 0 14px 40px rgba(20, 70, 110, 0.14), inset 0 0 0 2px transparent; outline: none; transition: box-shadow 0.2s; -webkit-appearance: none; appearance: none; }
.pc-search input::-webkit-search-cancel-button { display: none; }
.pc-search input:focus { box-shadow: 0 14px 40px rgba(20, 70, 110, 0.14), inset 0 0 0 3px var(--blue); }
.pc-search input::placeholder { color: #9AA3A8; }
.pc-clear { position: absolute; right: 16px; top: 50%; width: 38px; height: 38px; margin-top: -19px; padding: 0; border: 0; border-radius: 50%; background: var(--rice); font: inherit; font-size: 1.5rem; line-height: 1; color: var(--soft); cursor: pointer; }
.pc-try { margin: 16px 0 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; font-size: 0.98rem; color: var(--soft); }
.pc-try button { font: inherit; font-weight: 700; padding: 7px 15px; border: 0; border-radius: 999px; background: #fff; color: var(--blue); cursor: pointer; box-shadow: inset 0 0 0 1.5px var(--line); transition: transform 0.2s var(--land); }
.pc-try button:hover { transform: translateY(-2px); }

/* a round button that speaks */
.pc-say { position: relative; flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--blue); cursor: pointer; transition: transform 0.2s var(--land), background 0.2s; }
.pc-say:hover { transform: scale(1.08); }
.pc-say i { position: absolute; left: 54%; top: 50%; width: 0; height: 0; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent #fff; transform: translate(-50%, -50%); }
.pc-say.is-wait { animation: pc-wait 0.7s ease-in-out infinite alternate; }
@keyframes pc-wait { to { opacity: 0.45; } }
.pc-say.is-on { background: var(--sun); }
.pc-say.is-on i { left: 50%; width: 14px; height: 14px; border: 0; border-radius: 3px; background: #fff; }

/* what the search found */
.pc-found { width: min(100%, 980px); margin-top: 26px; text-align: left; }
.pc-found h3 { margin: 22px 6px 12px; font-size: 0.9rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--soft); -webkit-text-stroke: 0; }
.pc-found h3:first-child { margin-top: 0; }
.pc-hits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
.pc-hits li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 16px; padding: 14px 18px 14px 14px; border-radius: 22px; background: #fff; box-shadow: 0 4px 16px rgba(20, 70, 110, 0.07); }
.pc-hits .w { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; min-width: 0; }
.pc-hits .zh { font-size: 1.7rem; font-weight: 700; line-height: 1.2; }
.pc-hits .py { font-family: "Nunito", var(--font); font-weight: 800; color: var(--blue); }
.pc-hits .en { flex-basis: 100%; color: var(--ink); }
.pc-hits .en mark { background: #FFF1CC; color: inherit; border-radius: 4px; padding: 0 2px; }
.pc-hits .in { flex-basis: 100%; font-size: 0.88rem; color: var(--soft); }
.pc-hits .in a { font-weight: 700; color: var(--blue); text-decoration: none; }
.pc-hits .in a:hover { text-decoration: underline; }
.pc-found .pc-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pc-none { margin: 0; padding: 22px 26px; border-radius: 22px; background: #fff; font-size: 1.05rem; }
.pc-morehits { display: block; margin: 16px auto 0; font: inherit; font-weight: 700; padding: 10px 22px; border: 0; border-radius: 999px; background: #fff; color: var(--blue); cursor: pointer; box-shadow: inset 0 0 0 1.5px var(--line); }

/* --- lesson cards --- */
.pc-start { padding: clamp(48px, 5.6vw, 84px) 0 clamp(20px, 2.4vw, 32px); }
.pc-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.pc-cards.five { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.pc-card { position: relative; }
.pc-card a { display: flex; flex-direction: column; gap: 3px; height: 100%; box-sizing: border-box; padding: 10px 10px 16px; border-radius: 24px; background: #fff; color: var(--ink); text-decoration: none; box-shadow: 0 6px 22px rgba(20, 70, 110, 0.09); transition: transform 0.25s var(--land), box-shadow 0.25s; }
.pc-card a:hover { transform: translateY(-5px); box-shadow: 0 14px 34px rgba(20, 70, 110, 0.14); }
.pc-th { display: block; width: 100%; aspect-ratio: 3 / 2; background-color: var(--rice); background-size: 800% 600%; background-repeat: no-repeat; }
.pc-card .pc-th { border-radius: 16px; margin-bottom: 8px; }
.pc-card .n { padding: 0 8px; font-size: 0.82rem; font-weight: 700; color: var(--blue); }
.pc-card b { padding: 0 8px; font-size: 1.12rem; line-height: 1.25; }
.pc-card .p { padding: 0 8px; font-size: 0.95rem; color: var(--soft); }
.pc-card .p .zh { font-weight: 700; color: var(--ink); margin-right: 4px; }
.pc-card .g { padding: 0 8px; font-size: 0.85rem; color: var(--soft); }
.pc-card .pc-say { position: absolute; right: 16px; bottom: 16px; width: 40px; height: 40px; }
.pc-card .p, .pc-card .g { padding-right: 52px; }

/* --- situations --- */
.pc-topics { padding: clamp(36px, 4.4vw, 64px) 0; }
.pc-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.pc-tiles button { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; height: 148px; padding: 18px 18px 0; border: 0; border-radius: 24px; background: var(--tint); font: inherit; color: var(--ink); text-align: left; cursor: pointer; transition: transform 0.25s var(--land), box-shadow 0.25s; }
.pc-tiles button:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(20, 70, 110, 0.12); }
.pc-tiles b { font-size: 1.15rem; line-height: 1.2; }
.pc-tiles span { font-size: 0.88rem; color: #5A5350; }
.pc-tiles .pc-th { position: absolute; right: -14px; bottom: -22px; width: 58%; border-radius: 12px; transform: rotate(-7deg); box-shadow: 0 8px 20px rgba(40, 30, 20, 0.16); transition: transform 0.3s var(--land); }
.pc-tiles button:hover .pc-th { transform: rotate(-3deg) translateY(-6px); }
.pc-tiles button[aria-pressed="true"] { box-shadow: inset 0 0 0 3px var(--blue); }
.pc-tiles button.is-all { --tint: var(--mist); }
.pc-guests { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 6px; }
.pc-guests button { font: inherit; font-weight: 700; padding: 11px 18px; border: 0; border-radius: 999px; background: #fff; color: var(--blue); cursor: pointer; box-shadow: 0 4px 16px rgba(20, 70, 110, 0.07); }
.pc-guests button span { font-weight: 400; color: var(--soft); margin-left: 6px; }

/* --- every lesson --- */
.pc-all { padding: clamp(36px, 4.4vw, 64px) 0 clamp(56px, 6.4vw, 96px); scroll-margin-top: 90px; }
.pc-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-bottom: 26px; }
.pc-reset { font: inherit; font-size: 0.95rem; font-weight: 700; padding: 8px 16px; border: 0; border-radius: 999px; background: var(--mist); color: var(--blue); cursor: pointer; }
.pc-tools { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pc-tools select { font: inherit; font-size: 0.95rem; font-weight: 700; height: 44px; padding: 0 38px 0 18px; border: 0; border-radius: 999px; background: var(--rice) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23231916' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center; color: var(--ink); cursor: pointer; -webkit-appearance: none; appearance: none; max-width: 260px; }
.pc-seg { display: flex; padding: 3px; border-radius: 999px; background: var(--rice); }
.pc-seg button { font: inherit; font-size: 0.88rem; font-weight: 700; padding: 8px 14px; border: 0; border-radius: 999px; background: none; color: var(--soft); cursor: pointer; }
.pc-seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(20, 50, 80, 0.16); }
#pc-more { height: 1px; }

/* --- the one action, and the rest --- */
.pc-read { background: var(--cream); padding: clamp(48px, 5.6vw, 84px) 0; }
.pc-read-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(28px, 4vw, 64px); align-items: center; }
.pc-read-in p { margin: 14px 0 0; max-width: 32em; font-size: 1.12rem; line-height: 1.5; }
.pc-listen { padding: clamp(44px, 5vw, 72px) 0; }
.pc-listen-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.pc-links { margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pc-links a { padding: 10px 18px; border-radius: 999px; background: var(--rice); font-weight: 700; color: var(--ink); text-decoration: none; }
.pc-links a:hover { background: var(--mist); }

@media (max-width: 1100px) {
  .pc-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pc-cards, .pc-found .pc-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pc-cards.five { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .pc-in { padding: 0 18px; }
  .pc-search input { height: 60px; font-size: 1.05rem; padding-left: 56px; }
  .pc-search::before { left: 22px; } .pc-search::after { left: 37px; }
  .pc-hits { grid-template-columns: minmax(0, 1fr); }
  .pc-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .pc-tiles button { height: 128px; }
  .pc-cards, .pc-cards.five, .pc-found .pc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .pc-card b { font-size: 1rem; }
  .pc-tools { margin-left: 0; width: 100%; }
  .pc-tools select { flex: 1 1 100%; max-width: none; }
  .pc-read-in, .pc-listen-in { grid-template-columns: minmax(0, 1fr); }
}

/* --- 24 November 2026: the guests' photographs --- */
/* One round photograph per guest. In this review build they sit on one sheet, nine across and nine down (img/guests/all.webp); --x and --y say which one. */
.pc-face { --s: 28px; display: inline-block; flex: none; width: var(--s); height: var(--s); border-radius: 50%; background: var(--rice) url(../img/guests/all.webp) calc(var(--x, 0) * 12.5%) calc(var(--y, 0) * 12.5%) / 900% 900% no-repeat; font-style: normal; }
.pc-face.no-pic { display: inline-grid; place-items: center; background: var(--mist); font-size: calc(var(--s) * 0.38); line-height: 1; font-weight: 800; letter-spacing: 0.02em; color: var(--blue); }
.pc-card .g { display: flex; align-items: center; gap: 8px; margin-top: 5px; line-height: 1.25; }
.pc-card .g .pc-face { box-shadow: 0 0 0 2px #fff, 0 1px 5px rgba(20, 50, 80, 0.22); }
.pc-guests button { display: inline-flex; align-items: center; gap: 10px; padding: 7px 18px 7px 7px; }
.pc-guests button .pc-face { --s: 40px; }
.pc-guests button span { margin-left: 0; }
/* the row of faces */
.pc-who { padding: clamp(28px, 3.4vw, 48px) 0 clamp(36px, 4.4vw, 64px); }
.pc-faces { list-style: none; margin: 0; padding: 6px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 20px 12px; }
.pc-faces.is-short { max-height: 362px; overflow: hidden; }            /* two rows: 2 x 168 + 20 + 6 */
.pc-faces button { display: flex; flex-direction: column; align-items: center; width: 100%; height: 168px; padding: 6px 0 0; border: 0; background: none; font: inherit; color: var(--ink); text-align: center; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pc-faces .pc-face { --s: 92px; margin-bottom: 10px; box-shadow: 0 0 0 4px #fff, 0 8px 20px rgba(20, 70, 110, 0.16); transition: transform 0.25s var(--land), box-shadow 0.2s; }
.pc-faces button:hover .pc-face { transform: translateY(-4px) scale(1.06); }
.pc-faces button[aria-pressed="true"] .pc-face { box-shadow: 0 0 0 4px var(--blue), 0 8px 20px rgba(20, 70, 110, 0.16); }
.pc-faces b { font-size: 0.92rem; line-height: 1.2; }
.pc-faces span { font-size: 0.8rem; color: var(--soft); }
.pc-who-more { margin: 22px 0 0; text-align: center; }
.pc-who-more button { font: inherit; font-weight: 700; padding: 11px 24px; border: 0; border-radius: 999px; background: #fff; color: var(--blue); cursor: pointer; box-shadow: inset 0 0 0 1.5px var(--line); transition: transform 0.2s var(--land); }
.pc-who-more button:hover { transform: translateY(-2px); }
@media (max-width: 760px) {
  /* on a phone the faces are one row to swipe along */
  .pc-faces, .pc-faces.is-short { display: flex; gap: 4px; max-height: none; margin: 0 -18px; padding: 6px 14px 10px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .pc-faces::-webkit-scrollbar { display: none; }
  .pc-faces li { flex: 0 0 96px; scroll-snap-align: start; }
  .pc-faces button { height: 150px; }
  .pc-faces .pc-face { --s: 76px; }
  .pc-who-more { display: none; }
}
.pc-card .g .w { font-style: normal; }
@media (max-width: 760px) {
  /* on a phone a lesson is a row: its picture on the left, its words beside it, the speaking button at the right. Two narrow cards side by side left no room for the guest. */
  .pc-cards, .pc-cards.five, .pc-found .pc-cards { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .pc-card a { display: grid; grid-template-columns: 124px minmax(0, 1fr); column-gap: 12px; row-gap: 2px; align-content: center; min-height: 103px; padding: 10px 60px 10px 10px; border-radius: 20px; }
  .pc-card .pc-th { grid-column: 1; grid-row: 1 / span 4; align-self: center; margin: 0; border-radius: 12px; }
  .pc-card .n, .pc-card b, .pc-card .p, .pc-card .g { grid-column: 2; padding: 0; }
  .pc-card .g { margin-top: 3px; }
  .pc-card .g .pc-face { --s: 24px; }
  .pc-card .g .w { display: none; }
  .pc-card .pc-say { right: 12px; top: 50%; bottom: auto; margin-top: -20px; }
}
@media (max-width: 370px) { .pc-card a { grid-template-columns: 92px minmax(0, 1fr); padding-right: 56px; } }
