/* PersianPod: پیشنهاد خودکار جست‌وجو و برداشت از عبارت (چیدمان فرم فیلترها داخل _includes/pp-filters.html است) */

/* ---------- پیشنهاد خودکار جست‌وجو (مثل یوتیوب) + برداشت از عبارت ---------- */
.pp-sug {
  position: fixed; z-index: 1200; overflow: auto; overscroll-behavior: contain;
  padding: 6px; border: 1px solid var(--glass-line, var(--line)); border-radius: 20px;
  background: var(--card); box-shadow: 0 18px 46px -12px rgba(0, 0, 0, .45);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.pp-sug[hidden] { display: none; }
.pp-sug ul { list-style: none; margin: 0; padding: 0; }
.pp-sug li { position: relative; display: flex; align-items: center; border-radius: 14px; }
.pp-sug li.on, .pp-sug li:hover { background: var(--bg); }
.pp-sug li + li.s-search { margin-top: 4px; border-top: 1px dashed var(--line); border-radius: 0 0 14px 14px; }
.pp-sug .s-a {
  display: flex; flex: 1; align-items: center; gap: 10px; min-width: 0; min-height: 48px; padding: 6px 10px;
  color: var(--ink); text-decoration: none; font-size: .95rem; line-height: 1.6;
}
.pp-sug .s-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-sug .s-h { flex: none; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--mut); font-size: .76rem; }
.pp-sug .s-ic { flex: none; display: grid; place-items: center; width: 36px; height: 36px; color: var(--mut); }
.pp-sug .s-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.pp-sug .s-logo { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; overflow: hidden; background: var(--line); }
.pp-sug .s-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp-sug .s-logo i { font-style: normal; font-weight: 800; color: var(--acc); }
.pp-sug .s-x {
  flex: none; width: 40px; height: 40px; margin-inline-end: 4px; border: 0; border-radius: 50%; background: none;
  color: var(--mut); font: inherit; font-size: 1.3rem; line-height: 1; cursor: pointer;
}
.pp-sug .s-x:hover { background: var(--card); color: #c62828; }
.pp-sug .s-search .s-t { color: var(--acc); font-weight: 700; }
.pp-sug .s-a:focus-visible { outline: 3px solid rgba(8, 203, 0, .45); outline-offset: -2px; }

/* برداشت از عبارت زیر نتیجه‌ها: «اپیزود کوتاه یا بلند» و دکمه‌ی خاموش‌کردن */
.pd-summary .pd-intent, .pd-count .pd-intent { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; color: var(--mut); font-size: .86rem; }
.pd-summary .pd-intent b, .pd-count .pd-intent b { color: var(--ink); font-weight: 700; }
.pd-summary .pd-noint, .pd-summary .pd-useint, .pd-count .pd-noint, .pd-count .pd-useint {
  padding: 0; border: 0; background: none; color: var(--acc); font: inherit; font-size: .84rem; text-decoration: underline; cursor: pointer;
}

/* ---------- یک‌دست‌سازی دکمه‌های سبز: همان ظاهر نرم دکمه‌ی «ثبت پادکست» در منو ----------
   زمینه‌ی سبز بسیار کم‌رنگ + حلقه‌ی باریک سبز + متن هم‌رنگ سایت؛ هاور کمی پررنگ‌تر */
html:not(#pp) .nw .nw-listen,
html:not(#pp) .pl-play {
  background: rgba(8, 203, 0, .10); color: var(--ink); font-weight: 700;
  border: 0; box-shadow: inset 0 0 0 1px rgba(8, 203, 0, .45);
  transition: background .2s ease, box-shadow .2s ease;
}
html:not(#pp) .nw .nw-listen { min-height: 34px; padding: 0 16px; }
html:not(#pp) .nw .nw-listen:hover,
html:not(#pp) .pd-card.pl-card:hover .pl-play,
html:not(#pp) .pd-card.pl-card:focus-visible .pl-play {
  background: rgba(8, 203, 0, .18); box-shadow: inset 0 0 0 1px rgba(8, 203, 0, .6), 0 6px 18px rgba(8, 203, 0, .16);
}
html:not(#pp) .pl-play { min-height: 32px; padding: 0 14px; font-size: .82rem; }
html:not(#pp) .pl-play svg { fill: #08cb00; }
/* کارتِ در حال پخش: کمی پررنگ‌تر از بقیه */
html:not(#pp) .pl-card[aria-current=true] .pl-play { background: rgba(8, 203, 0, .22); color: var(--ink); border: 0; box-shadow: inset 0 0 0 1px rgba(8, 203, 0, .7); }

/* دسته‌بندی‌ها: آیتم انتخاب‌شده به‌جای سبز پررنگ، همین ظاهر نرم */
html:not(#pp) .pp-cats a[aria-current],
html:not(#pp) .pp-cats .pp-subbar-list a[aria-current],
html:not(#pp) .pp-cats .pp-subs a[aria-current] {
  background: rgba(8, 203, 0, .14); color: var(--ink); font-weight: 700; border-color: rgba(8, 203, 0, .5);
}
html:not(#pp) .pp-cats a[aria-current] .n,
html:not(#pp) .pp-cats .pp-subs a[aria-current] .n { background: rgba(8, 203, 0, .24); color: var(--ink); }
