/* ============================================================
   PODCAST — podcasts/index.html (list) and the episode page.
   Markup: js/podcast-render.js · behaviour: js/podcast-player.js.
   Palette follows the course pages (warm paper, one steady blue).
   ============================================================ */
.page-podcast,
.spw {
    --pc-surface: #FFFFFF;
    --pc-soft: #FBF9F4;
    --pc-border: #E5DFCD;
    --pc-border-strong: #D7CFB6;
    --pc-text: #24211C;
    --pc-text-2: #6B6357;
    --pc-muted: #746E5F;
    --pc-accent: #2B5C82;
    --pc-accent-soft: rgba(43, 92, 130, 0.1);
    --pc-hl: #FFF1C9;
    --pc-hl-border: #E3B23C;
    --pc-now: #B5400F;
    --pc-success: #1F7A4C;
    --pc-shadow: 0 6px 20px rgba(36, 33, 28, 0.08);
}
[data-theme="dark"] .page-podcast,
[data-theme="dark"] .spw {
    --pc-surface: #1B1F26;
    --pc-soft: #20242C;
    --pc-border: rgba(226, 220, 199, 0.12);
    --pc-border-strong: rgba(226, 220, 199, 0.22);
    --pc-text: #EDEAE1;
    --pc-text-2: rgba(237, 234, 225, 0.72);
    --pc-muted: rgba(237, 234, 225, 0.5);
    --pc-accent: #6FA3D8;
    --pc-accent-soft: rgba(111, 163, 216, 0.16);
    --pc-hl: rgba(224, 182, 94, 0.16);
    --pc-hl-border: #C9A04A;
    --pc-now: #F2B36B;
    --pc-success: #4CBE85;
    --pc-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}
.pc-page, .pc-page *, .pc-player *, .pc-tip * { font-family: 'Kalameh', sans-serif; }
.pc-page { max-width: 1140px; color: var(--pc-text); }
.pc-episode { max-width: 860px; }
.pc-page [lang="de"], .pc-tip [lang="de"] { unicode-bidi: isolate; }

.pc-badge {
    display: inline-flex; align-self: flex-start; padding: 6px 14px; border-radius: 99px; font-size: 13px; font-weight: 700;
    background: var(--pc-surface); color: var(--pc-accent); border: 1px solid var(--pc-border);
}

/* ---- list ---- */
.pc-hero {
    position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 40px 24px 30px;
    border-radius: 28px; border: 1px solid var(--pc-border); box-shadow: var(--pc-shadow);
    background: radial-gradient(circle at 12% 0%, var(--pc-accent-soft) 0 28%, transparent 29%), radial-gradient(circle at 92% 100%, rgba(227, 178, 60, 0.16) 0 24%, transparent 25%), var(--pc-surface);
}
.pc-hero .pc-badge { align-self: center; gap: 8px; align-items: center; }
.pc-badge svg { width: 16px; height: 16px; }
.pc-title { margin: 0; font-size: clamp(28px, 4.2vw, 44px); font-weight: 900; line-height: 1.4; }
.pc-lead { margin: 0; max-width: 720px; font-size: 15.5px; line-height: 2; color: var(--pc-text-2); }
.pc-lead b { color: var(--pc-text); }
.pc-stats { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.pc-stats li { min-width: 120px; padding: 10px 18px; border-radius: 18px; background: var(--pc-soft); border: 1px solid var(--pc-border); display: flex; flex-direction: column; align-items: center; gap: 2px; }
.pc-stats li[hidden] { display: none; }
.pc-stats b { font-size: 26px; font-weight: 900; line-height: 1.2; color: var(--pc-accent); }
.pc-stats span { font-size: 12.5px; font-weight: 700; color: var(--pc-text-2); }

.pc-resume {
    display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 14px; padding: 14px 18px; border-radius: 20px; text-decoration: none; color: var(--pc-text);
    background: linear-gradient(135deg, var(--pc-accent-soft), transparent 70%), var(--pc-surface); border: 1px solid var(--pc-accent); box-shadow: var(--pc-shadow);
    transition: transform .2s ease;
}
.pc-resume[hidden] { display: none; }
.pc-resume:hover { transform: translateY(-2px); }
.pc-resume-icon { grid-row: span 2; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--pc-accent); }
[data-theme="dark"] .pc-resume-icon { color: #14171C; }
.pc-resume-icon svg { width: 22px; height: 22px; }
.pc-resume-text { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; min-width: 0; }
.pc-resume-text small { flex-basis: 100%; font-size: 12px; font-weight: 700; color: var(--pc-muted); }
.pc-resume-text strong { font-size: 16.5px; font-weight: 900; text-align: left; overflow-wrap: anywhere; }
.pc-resume-text em { font-style: normal; font-size: 13px; color: var(--pc-text-2); }
.pc-resume-bar { grid-column: 2; }

.pc-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pc-input, .pc-select {
    height: 44px; padding: 0 14px; border-radius: 14px; font-size: 14.5px; color: var(--pc-text);
    background: var(--pc-surface); border: 1px solid var(--pc-border-strong); outline: none;
}
.pc-input { flex: 1 1 260px; min-width: 0; }
.pc-input:focus, .pc-select:focus-visible { border-color: var(--pc-accent); box-shadow: 0 0 0 3px var(--pc-accent-soft); }
.pc-marks { display: flex; flex-wrap: wrap; gap: 6px; }
.pc-marks[hidden] { display: none; }
.pc-pill {
    display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: 99px; font-size: 13px; font-weight: 800; cursor: pointer;
    color: var(--pc-text-2); background: var(--pc-surface); border: 1px solid var(--pc-border);
}
.pc-pill:hover { border-color: var(--pc-accent); color: var(--pc-text); }
.pc-pill.is-active, .pc-pill[aria-expanded="true"] { color: #fff; background: var(--pc-accent); border-color: var(--pc-accent); }
[data-theme="dark"] .pc-pill.is-active, [data-theme="dark"] .pc-pill[aria-expanded="true"] { color: #14171C; }
.pc-pill svg { width: 16px; height: 16px; }
.pc-pill b { min-width: 20px; padding: 0 6px; border-radius: 99px; font-size: 12px; line-height: 20px; color: var(--pc-accent); background: var(--pc-surface); }
.pc-pill b[hidden] { display: none; }
.pc-count { margin: 0; font-size: 13px; color: var(--pc-muted); }

/* the numbered episode cards */
.pc-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pc-card {
    position: relative; overflow: hidden; display: flex; align-items: stretch; gap: 0; height: 100%; text-decoration: none; color: inherit;
    border-radius: 22px; background: var(--pc-surface); border: 1px solid var(--pc-border); box-shadow: var(--pc-shadow);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.pc-card:hover { transform: translateY(-4px); border-color: var(--pc-accent); box-shadow: 0 16px 34px rgba(36, 33, 28, 0.14); }
.pc-card.is-done { background: linear-gradient(0deg, rgba(31, 122, 76, 0.06), rgba(31, 122, 76, 0.06)), var(--pc-surface); }
.pc-card-no {
    flex: 0 0 74px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; padding: 10px 4px; text-align: center;
    color: #fff; background: linear-gradient(160deg, var(--pc-accent), color-mix(in srgb, var(--pc-accent) 62%, #000));
}
[data-theme="dark"] .pc-card-no { color: #14171C; background: linear-gradient(160deg, var(--pc-accent), color-mix(in srgb, var(--pc-accent) 60%, #fff)); }
.pc-card-no small { font-size: 10.5px; font-weight: 700; opacity: .85; }
.pc-card-no b { font-size: 26px; font-weight: 900; line-height: 1.15; letter-spacing: -.5px; }
.pc-card:hover .pc-card-no b { transform: scale(1.08); }
.pc-card-no b { transition: transform .2s ease; }
.pc-card-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 1; padding: 14px 16px 14px; }
.pc-card-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pc-card-title { font-size: 15.5px; font-weight: 900; line-height: 1.55; text-align: left; overflow-wrap: anywhere; }
.pc-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 12px; color: var(--pc-muted); }
.pc-card-meta svg { width: 13px; height: 13px; margin-inline-end: 4px; vertical-align: -2px; }
.pc-card-foot { margin-top: auto; display: flex; flex-direction: column; gap: 6px; }
.pc-chip { padding: 2px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 800; color: var(--pc-accent); background: var(--pc-accent-soft); }
.pc-chip.is-level { color: var(--pc-now); background: rgba(227, 178, 60, 0.2); }
.pc-chip.is-fa { color: var(--pc-success); background: rgba(31, 122, 76, 0.12); }
.pc-card-flags { margin-inline-start: auto; display: flex; gap: 6px; }
.pc-flag { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; }
.pc-flag svg { width: 14px; height: 14px; }
.pc-flag.is-saved { color: var(--pc-accent); background: var(--pc-accent-soft); }
.pc-prog { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 800; color: var(--pc-accent); }
.pc-prog svg { width: 14px; height: 14px; }
.pc-prog.is-new { color: var(--pc-muted); }
.pc-prog.is-done { color: var(--pc-success); }
.pc-bar { display: block; height: 5px; border-radius: 99px; overflow: hidden; background: var(--pc-border); }
.pc-bar i { display: block; height: 100%; border-radius: 99px; background: var(--pc-accent); transition: width .4s ease; }
.pc-card.is-done .pc-bar i { background: var(--pc-success); }
.pc-more { align-self: center; }

/* «کلمه‌های من» */
.pc-words { padding: 22px; border-radius: 24px; background: var(--pc-surface); border: 1px solid var(--pc-border); box-shadow: var(--pc-shadow); }
.pc-words[hidden] { display: none; }
.pc-words-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.pc-words-head h2 { margin: 0; font-size: 19px; font-weight: 900; }
.pc-words-head .pc-input { flex: 0 1 280px; height: 40px; }
.pc-words-empty { margin: 0; padding: 14px; border-radius: 14px; font-size: 14px; line-height: 2; color: var(--pc-text-2); background: var(--pc-soft); }
.pc-word-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pc-word { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 16px; background: var(--pc-soft); border: 1px solid var(--pc-border); border-inline-start: 4px solid var(--pc-accent); }
.pc-word-main { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pc-word-main strong { font-size: 18px; font-weight: 900; text-align: left; }
.pc-word-del { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; cursor: pointer; color: var(--pc-muted); background: transparent; border: 0; }
.pc-word-del:hover { color: #B23A2E; background: rgba(178, 58, 46, 0.1); }
.pc-word-del svg { width: 16px; height: 16px; }
.pc-word-ctx { margin: 0; font-size: 13.5px; line-height: 1.8; color: var(--pc-text-2); text-align: left; }
.pc-word-src { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; max-width: 100%; font-size: 12.5px; font-weight: 800; text-decoration: none; color: var(--pc-accent); }
.pc-word-src svg { width: 13px; height: 13px; flex-shrink: 0; }
.pc-word-src span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* «برای … باید وارد حساب شوی» */
.pc-login-box { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: 16px; background: var(--pc-soft); border: 1px solid var(--pc-border); }
.pc-login-box p { margin: 0; font-size: 14px; font-weight: 800; line-height: 1.9; color: var(--pc-text); }
.pc-login-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pc-login-actions .btn-cta { padding: 9px 18px; font-size: 13px; text-decoration: none; }

/* ---- episode ---- */
.pc-head {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 24px 26px;
    border-radius: 24px; background: var(--pc-surface); border: 1px solid var(--pc-border); box-shadow: var(--pc-shadow);
}
.pc-head-text { display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 1 1 380px; }
.pc-ep-title { margin: 0; font-size: clamp(22px, 3.2vw, 30px); font-weight: 900; line-height: 1.4; text-align: left; overflow-wrap: anywhere; }
.pc-ep-meta { margin: 0; font-size: 13.5px; color: var(--pc-muted); }
.pc-head-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pc-act {
    display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: 99px; font-size: 13.5px; font-weight: 800;
    cursor: pointer; color: var(--pc-text-2); background: var(--pc-soft); border: 1px solid var(--pc-border-strong);
}
.pc-act svg { width: 16px; height: 16px; }
.pc-act[aria-pressed="true"] { color: #fff; background: var(--pc-accent); border-color: var(--pc-accent); }
[data-theme="dark"] .pc-act[aria-pressed="true"] { color: #14171C; }
.pc-act[aria-pressed="true"][data-kind="done"] { background: var(--pc-success); border-color: var(--pc-success); }
.pc-act:disabled { opacity: .6; cursor: progress; }
.pc-head-marks { display: contents; }
.pc-act-report { color: var(--pc-text-2); }
.pc-act-report:hover { color: var(--pc-accent); border-color: var(--pc-accent); }
.pc-login-hint { font-size: 13px; font-weight: 700; color: var(--pc-accent); }

.pc-transcript {
    display: flex; flex-direction: column; gap: 4px; padding: 22px 18px; border-radius: 24px;
    background: var(--pc-surface); border: 1px solid var(--pc-border); box-shadow: var(--pc-shadow);
}
.pc-seg {
    margin: 0; padding: 10px 16px; border-radius: 14px; border: 2px solid transparent; cursor: pointer;
    font-size: 19px; line-height: 2; color: var(--pc-text-2);
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.pc-seg:hover { background: var(--pc-soft); }
.pc-de { display: block; text-align: left; }
.pc-w { border-radius: 6px; padding: 0 1px; transition: color .15s ease, background-color .15s ease; }
.pc-w:hover { background: var(--pc-accent-soft); color: var(--pc-text); }
.pc-seg.is-active { color: var(--pc-text); background: var(--pc-hl); border-color: var(--pc-hl-border); font-weight: 700; }
.pc-seg.is-active .pc-w.is-now { color: var(--pc-now); background: rgba(227, 178, 60, 0.28); }
.pc-fa { display: none; margin-top: 2px; font-size: 15px; line-height: 1.95; font-weight: 500; color: var(--pc-text-2); text-align: right; }
.pc-transcript.show-fa .pc-fa { display: block; }
.pc-seg.is-active .pc-fa { color: var(--pc-text); }

.pc-next { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: stretch; margin-bottom: 12px; }
.pc-next-link { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-radius: 16px; text-decoration: none; color: var(--pc-text); background: var(--pc-surface); border: 1px solid var(--pc-border); font-weight: 800; font-size: 14px; }
.pc-next-link:hover { border-color: var(--pc-accent); }
.pc-next-link small { font-size: 12px; font-weight: 500; color: var(--pc-muted); }
.pc-next-link:last-child { text-align: left; }
.pc-next-all { align-self: center; padding: 10px 16px; border-radius: 99px; font-size: 13px; font-weight: 800; text-decoration: none; color: var(--pc-accent); border: 1px solid var(--pc-border); background: var(--pc-surface); white-space: nowrap; }

/* ---- «گزارش مشکل» dialog ---- */
.pc-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; background: rgba(20, 18, 14, 0.55); }
.pc-modal[hidden] { display: none; }
body.pc-modal-open { overflow: hidden; }
.pc-modal-card {
    width: min(520px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 24px; border-radius: 24px;
    background: var(--pc-surface); color: var(--pc-text); border: 1px solid var(--pc-border); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.pc-modal-card, .pc-modal-card * { font-family: 'Kalameh', sans-serif; }
.pc-modal-title { margin: 0 0 14px; font-size: 20px; font-weight: 900; }
.pc-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; font-size: 13.5px; font-weight: 800; color: var(--pc-text-2); }
.pc-field .pc-select { width: 100%; }
.pc-textarea {
    width: 100%; padding: 12px 14px; border-radius: 14px; font-size: 14.5px; line-height: 1.9; resize: vertical; color: var(--pc-text);
    background: var(--pc-surface); border: 1px solid var(--pc-border-strong); outline: none;
}
.pc-textarea:focus { border-color: var(--pc-accent); box-shadow: 0 0 0 3px var(--pc-accent-soft); }
.pc-check { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 12px; padding: 10px 12px; border-radius: 14px; font-size: 13px; line-height: 1.8; color: var(--pc-text-2); background: var(--pc-soft); border: 1px solid var(--pc-border); }
.pc-check[hidden] { display: none; }
.pc-check input { margin-top: 6px; accent-color: var(--pc-accent); }
.pc-check q { display: block; margin-top: 2px; font-weight: 700; color: var(--pc-text); text-align: left; quotes: '«' '»'; }
.pc-modal-msg { margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; font-size: 13.5px; font-weight: 700; color: #B23A2E; background: rgba(178, 58, 46, 0.1); }
.pc-modal-msg.is-ok { color: var(--pc-success); background: rgba(31, 122, 76, 0.12); }
.pc-modal-msg[hidden] { display: none; }
.pc-modal-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.pc-modal-actions .btn-cta { padding: 11px 22px; font-size: 14px; }

/* the hint, saved words and the word menu */
.pc-hint { margin: 0; display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 16px; font-size: 13px; line-height: 1.9; color: var(--pc-text-2); background: var(--pc-soft); border: 1px dashed var(--pc-border-strong); }
.pc-hint svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--pc-accent); }
.pc-hint a { color: var(--pc-accent); font-weight: 800; }
.pc-w.is-saved { text-decoration: underline dotted var(--pc-accent) 2px; text-underline-offset: 6px; }
.pc-w { -webkit-touch-callout: none; }
body.pc-menu-open .pc-tip { display: none !important; }
.pc-wmenu {
    position: fixed; z-index: 120; width: min(300px, calc(100vw - 16px)); display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 18px;
    background: var(--pc-surface, #fff); color: var(--pc-text, #24211C); border: 1px solid var(--pc-border-strong, #D7CFB6); box-shadow: 0 16px 44px rgba(36, 33, 28, 0.28);
}
.pc-wmenu[hidden] { display: none; }
.pc-wmenu, .pc-wmenu * { font-family: 'Kalameh', sans-serif; }
.pc-wm-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pc-wm-head strong { font-size: 20px; font-weight: 900; color: var(--pc-accent); text-align: left; overflow-wrap: anywhere; }
.pc-wm-x { width: 28px; height: 28px; border-radius: 50%; font-size: 20px; line-height: 1; cursor: pointer; color: var(--pc-muted); background: transparent; border: 0; }
.pc-wm-x:hover { background: var(--pc-accent-soft); color: var(--pc-accent); }
.pc-wm-fa { margin: 0; font-size: 13px; color: var(--pc-text-2); }
.pc-wm-ctx { margin: 0; padding: 8px 10px; border-radius: 12px; font-size: 13px; line-height: 1.8; color: var(--pc-text-2); background: var(--pc-soft); text-align: left; }
.pc-wm-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.pc-wm-btn {
    display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 99px; font-size: 13px; font-weight: 800; cursor: pointer;
    color: var(--pc-text-2); background: var(--pc-soft); border: 1px solid var(--pc-border-strong);
}
.pc-wm-btn svg { width: 15px; height: 15px; }
.pc-wm-btn:hover:not(:disabled) { border-color: var(--pc-accent); color: var(--pc-accent); }
.pc-wm-btn.is-main { color: #fff; background: var(--pc-accent); border-color: var(--pc-accent); }
[data-theme="dark"] .pc-wm-btn.is-main { color: #14171C; }
.pc-wm-btn.is-main:hover:not(:disabled) { color: #fff; filter: brightness(1.1); }
[data-theme="dark"] .pc-wm-btn.is-main:hover:not(:disabled) { color: #14171C; }
.pc-wm-btn.is-main.is-on { color: var(--pc-accent); background: var(--pc-accent-soft); }
.pc-wm-btn:disabled { opacity: .6; cursor: progress; }
.pc-wm-status { margin: 0; font-size: 12.5px; font-weight: 800; color: var(--pc-success); }
.pc-wmenu .pc-login-box { padding: 10px 12px; }
.pc-wmenu .pc-login-box p { font-size: 13px; }

/* ---- hover box ---- */
.pc-tip {
    position: fixed; z-index: 120; min-width: 150px; max-width: 280px; padding: 10px 14px; border-radius: 14px; pointer-events: none;
    display: flex; flex-direction: column; gap: 4px; background: var(--pc-surface, #fff); color: var(--pc-text, #24211C);
    border: 1px solid var(--pc-border-strong, #D7CFB6); box-shadow: 0 12px 30px rgba(36, 33, 28, 0.2); text-align: right;
}
.pc-tip[hidden] { display: none; }
.pc-tip-word { font-size: 17px; font-weight: 900; color: var(--pc-accent, #2B5C82); text-align: left; }
.pc-tip-body { font-size: 13px; color: var(--pc-text-2, #6B6357); }
.pc-tip small { font-size: 12px; color: var(--pc-muted, #746E5F); }

/* ---- player bar ---- */
.pc-player {
    position: fixed; z-index: 90; left: 50%; bottom: 14px; transform: translateX(-50%); width: min(780px, calc(100% - 20px));
    display: flex; flex-direction: column; gap: 6px; padding: 10px 16px 12px; border-radius: 22px;
    background: var(--pc-surface, #fff); border: 1px solid var(--pc-border-strong, #D7CFB6); box-shadow: 0 14px 40px rgba(36, 33, 28, 0.22);
}
.pc-seekrow { display: flex; align-items: center; gap: 10px; }
.pc-time { min-width: 42px; font-size: 12.5px; font-weight: 700; color: var(--pc-muted); text-align: center; direction: ltr; }
.pc-seek { flex: 1; min-width: 0; height: 22px; accent-color: var(--pc-accent); cursor: pointer; }
.pc-btnrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pc-btngroup { display: flex; align-items: center; gap: 4px; flex: 1; }
.pc-btngroup:last-child { justify-content: flex-end; }
.pc-btngroup.is-main { flex: 0 0 auto; gap: 8px; }
.pc-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; min-width: 40px; padding: 0 10px; border-radius: 50%;
    cursor: pointer; color: var(--pc-text-2); background: transparent; border: 1px solid transparent; font-size: 13px; font-weight: 800;
}
.pc-btn svg { width: 22px; height: 22px; }
.pc-btn:hover:not(:disabled) { background: var(--pc-accent-soft); color: var(--pc-accent); }
.pc-btn[aria-pressed="true"] { color: var(--pc-accent); background: var(--pc-accent-soft); }
.pc-btn:disabled { opacity: .4; cursor: not-allowed; }
.pc-btn-text { border-radius: 99px; min-width: 52px; border-color: var(--pc-border); direction: ltr; }
/* speed: a slider axis (0.5× … 2×) next to a label that resets to 1× */
.pc-speed { display: flex; align-items: center; gap: 6px; min-width: 0; }
.pc-speed-range { width: 130px; min-width: 60px; height: 22px; accent-color: var(--pc-accent); cursor: pointer; direction: ltr; }
#pcSpeedLabel { min-width: 58px; padding: 0 8px; font-variant-numeric: tabular-nums; }
.pc-btn-label { border-radius: 99px; }
.pc-btn-label svg { width: 18px; height: 18px; }
.pc-play { width: 52px; height: 52px; border-radius: 50%; color: #fff; background: var(--pc-accent); }
[data-theme="dark"] .pc-play { color: #14171C; }
.pc-play svg { width: 24px; height: 24px; }
.pc-play:hover:not(:disabled) { color: #fff; background: var(--pc-accent); filter: brightness(1.1); }
[data-theme="dark"] .pc-play:hover:not(:disabled) { color: #14171C; }

body.has-player .pc-page { padding-bottom: 190px; }
body.has-player .back-to-top-btn { bottom: 150px; }

/* ---- responsive ---- */
@media (max-width: 960px) {
    .pc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pc-word-list { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
    .pc-grid { grid-template-columns: 1fr; }
    .pc-hero { padding: 26px 16px 20px; }
    .pc-stats li { min-width: 0; flex: 1 1 40%; padding: 8px 10px; }
    .pc-resume { grid-template-columns: auto 1fr; padding: 12px; }
    .pc-card-no { flex-basis: 64px; }
    .pc-head { padding: 18px; }
    .pc-seg { font-size: 17px; padding: 8px 12px; }
    .pc-transcript { padding: 14px 8px; }
    .pc-btn-label span { display: none; }
    /* on a phone the speed axis gets a row of its own, so the slider stays easy to grab */
    .pc-btnrow { flex-wrap: wrap; gap: 4px 6px; }
    .pc-btngroup:first-child { order: -1; flex: 1 0 100%; gap: 8px; }
    .pc-speed { flex: 1 1 0; min-width: 0; }
    .pc-speed-range { flex: 1 1 0; width: auto; max-width: none; }
    #pcSpeedLabel { min-width: 52px; font-size: 12.5px; }
    .pc-btngroup.is-main { flex: 1 1 auto; justify-content: center; }
    .pc-btngroup:last-child { flex: 0 0 auto; }
    body.has-player .pc-page { padding-bottom: 240px; }
    .pc-btn-label { padding: 0; width: 40px; border-radius: 50%; }
    .pc-player { bottom: 8px; padding: 8px 12px 10px; }
    .pc-next { grid-template-columns: 1fr 1fr; }
    .pc-next-all { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
}
@media (prefers-reduced-motion: reduce) {
    .pc-seg, .pc-w, .pc-card { transition: none; }
}

/* Saved words grouped by episode (podcast page + student panel) */
.pc-word-group { margin-top: 18px; }
.pc-word-group:first-child { margin-top: 0; }
.pc-word-group-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 10px; font-size: 14.5px; font-weight: 900; }
.pc-word-group-title span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.pc-word-group-title em { flex-shrink: 0; font-style: normal; font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; color: var(--pc-accent); background: var(--pc-soft); }
.pc-word-go { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 800; text-decoration: none; color: #fff; background: var(--pc-accent); }
.pc-word-go svg { width: 13px; height: 13px; flex-shrink: 0; }
.pc-word-go:hover { filter: brightness(1.08); }

.pc-wm-lemma { color: var(--pc-muted); font-size: 12px; }
.pc-wm-note { margin: 0; font-size: 12px; color: var(--pc-muted); }
.pc-act-fa[aria-pressed="true"] { color: #fff; background: var(--pc-accent); border-color: var(--pc-accent); }
