﻿body.ic-podcast {
  background: #fff;
  padding-bottom: 0;
}

.ic-pod {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  direction: rtl;
  background: #fff;
}

.ic-pod-head {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: #fff;
}

.ic-pod-info,
.ic-pod-diamond,
.ic-pod-close {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.ic-pod-info { left: 16px; }

.ic-pod-diamond {
  left: 55px;
  width: 40px;
  height: 40px;
}

.ic-pod-close {
  right: 10px;
  color: #4e91e6;
}

.ic-pod-diamond-icon { color: #4e91e6; }

.ic-pod-title {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  color: #2d3a4a;
  text-align: center;
}

.ic-pod-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0;
}

.ic-pod-desc {
  margin: 0 40px 15px;
  font-size: 11.5px;
  font-weight: 400;
  color: #8090a8;
  text-align: center;
  line-height: 24px;
}

.ic-pod-search-wrap {
  position: relative;
  width: 100%;
  padding: 20px 20px 10px;
}

.ic-pod-search {
  position: relative;
}

.ic-pod-search-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #919aaf;
}

.ic-pod-search-input {
  width: 100%;
  border: 0;
  border-radius: 16px;
  background: #f8f9fb;
  padding: 20px 48px 20px 50px;
  font-size: 11.5px;
  color: #2d3a4a;
  text-align: right;
  direction: rtl;
  outline: none;
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
}

.ic-pod-search-input::-webkit-search-cancel-button,
.ic-pod-search-input::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}

.ic-pod-search-input::placeholder {
  color: #919aaf;
}

.ic-pod-search-input:focus {
  background: #f8f9fb;
}

.ic-pod-search-clear {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  color: #919aaf;
  padding: 8px;
  line-height: 1;
}

.ic-pod-tabs {
  display: flex;
  justify-content: space-around;
  width: 100%;
  margin-bottom: 30px;
  padding: 0;
  background: transparent;
}

.ic-pod-tab {
  width: 150px;
  padding: 15px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #7a7a7a;
  font-size: 12px;
  font-weight: 400;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
}

.ic-pod-tab--active {
  background: transparent;
  border-bottom-color: #4e91e6;
  color: #4e91e6;
  font-weight: 700;
}

.ic-pod-panel {
  width: 100%;
  padding: 0;
}

.ic-pod-cats {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  width: 100%;
  margin-bottom: 20px;
  padding: 0 20px;
  scrollbar-width: none;
}

.ic-pod-cats::-webkit-scrollbar { display: none; }

.ic-pod-cat {
  flex-shrink: 0;
  padding: 9px 20px;
  border: 0;
  border-radius: 18px;
  background: #f6f6f6;
  color: #7a7a7a;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
}

.ic-pod-cat--active {
  background: #4e91e6;
  color: #fff;
  font-weight: 700;
}

.ic-pod-circles,
.ic-pod-radio-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  width: 100%;
  padding: 20px 20px 0;
}

.ic-pod-sentinel {
  flex: 0 0 100%;
  width: 100%;
  height: 1px;
}

.ic-pod-circle-item,
.ic-pod-radio-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 30%;
  margin: 0 1.6% 20px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
}

.ic-pod-circle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 85px;
  height: 85px;
  margin-bottom: 8px;
  border-radius: 100px;
  background: #f6f6f6;
  overflow: visible;
}

.ic-pod-circle img {
  width: 70%;
  height: 70%;
  object-fit: cover;
  border-radius: 100px;
}

.ic-pod-circle-name,
.ic-pod-radio-name {
  width: 100%;
  margin: 0;
  font-size: 9.5px;
  font-weight: 400;
  line-height: 17px;
  color: #2d3a4a;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ic-pod-radio-name {
  margin-top: 4px;
}

.ic-pod-radio-thumb {
  position: relative;
  width: 102px;
  height: 102px;
  margin-bottom: 8px;
  overflow: visible;
}

.ic-pod-radio-thumb img {
  display: block;
  width: 102px;
  height: 102px;
  object-fit: cover;
  border-radius: 10px;
  background: #e0e0e0;
}

.ic-pod-badges {
  position: absolute;
  z-index: 4;
  display: flex;
  flex-direction: row;
  direction: ltr;
  gap: 3px;
  pointer-events: none;
}

.ic-pod-badges--onemin {
  top: -5px;
  right: 7px;
}

.ic-pod-badges--radio {
  top: 8px;
  right: 7px;
}

.ic-pod-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 18px;
  padding: 2px 5px;
  border-radius: 6px;
  font-size: 8px;
  font-weight: 700;
  line-height: 10px;
  color: #fff;
  white-space: nowrap;
}

.ic-pod-badge--free {
  background: #4caf50;
}

.ic-pod-badge--new {
  background: #2196f3;
}

.ic-pod-empty {
  flex: 1 1 100%;
  width: 100%;
  margin: 0;
  padding: 20px 16px;
  color: #919aaf;
  font-size: 12px;
  font-weight: 400;
  text-align: center;
}

.ic-pod-panel[hidden],
.ic-pod-diamond[hidden],
.ic-pod-badge--free[hidden],
.ic-pod-cats[hidden],
.ic-pod-empty[hidden],
.ic-pod-circle-item[hidden],
.ic-pod-radio-item[hidden] {
  display: none !important;
}

@media (max-width: 800px), (min-width: 801px) {
  body.ic-podcast .ic-header,
  body.ic-podcast .ic-footer,
  body.ic-podcast .ic-tabbar,
  body.ic-podcast-player .ic-header,
  body.ic-podcast-player .ic-footer,
  body.ic-podcast-player .ic-tabbar {
    display: none;
  }
}

.ic-pod-restrict[hidden] {
  display: none !important;
}

.ic-pod-restrict {
  position: fixed;
  inset: 0;
  z-index: 180;
}

.ic-pod-restrict-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.ic-pod-restrict-card {
  position: absolute;
  right: 24px;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  padding: 30px 22px 20px;
  border-radius: 24px;
  background: #fff;
  text-align: center;
}

.ic-pod-restrict-card h2 {
  margin: 0 0 15px;
  font-size: 14px;
  font-weight: 700;
  color: #2d3a4a;
}

.ic-pod-restrict-card p {
  margin: 0 0 22px;
  font-size: 13px;
  line-height: 24px;
  color: #6a81a9;
}

.ic-pod-restrict-go {
  display: block;
  margin-bottom: 10px;
  padding: 14px;
  border-radius: 14px;
  background: #4e91e6;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.ic-pod-restrict-close {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  color: #919aaf;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
}

body.ic-podcast-player {
  background: #fff;
  padding-bottom: 0;
}

.ic-ply {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  height: 100dvh;
  max-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  padding-bottom: calc(196px + env(safe-area-inset-bottom, 0px));
  background: #fff;
  direction: rtl;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.ic-ply audio {
  display: none;
}

.ic-ply-head {
  position: relative;
  display: flex;
  flex-direction: row;
  direction: ltr;
  align-items: center;
  justify-content: center;
  padding: 16px;
  flex-shrink: 0;
}

.ic-ply-share,
.ic-ply-back {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: 0;
  background: transparent;
  color: #2d3a4a;
  cursor: pointer;
  text-decoration: none;
}

.ic-ply-share { left: 18px; }
.ic-ply-back { right: 12px; }

.ic-ply-head-title {
  margin: 0;
  max-width: 62%;
  font-size: 14px;
  font-weight: 400;
  color: #2d3a4a;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ic-ply-art-wrap {
  display: flex;
  justify-content: center;
  margin-top: 35px;
  flex-shrink: 0;
}

.ic-ply-art {
  width: 330px;
  height: 320px;
  max-width: calc(100vw - 40px);
  border-radius: 24px;
  background: #f6f6f6;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ic-ply-art img {
  border-radius: 24px;
}

.ic-ply-art.is-onemin img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

.ic-ply-art.is-radio img {
  width: 110%;
  height: 110%;
  object-fit: cover;
}

.ic-ply-meta {
  height: 108px;
  padding: 0 12px;
  text-align: center;
  flex-shrink: 0;
}

.ic-ply-name {
  margin: 20px auto 0;
  max-width: 82%;
  font-size: 14px;
  font-weight: 700;
  line-height: 28px;
  color: #2d3a4a;
}

.ic-ply-sub {
  margin: 10px auto 0;
  max-width: 82%;
  font-size: 13px;
  line-height: 20px;
  color: #919aaf;
}

.ic-ply-controls {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  width: 100%;
  margin-top: 0;
  padding: 24px 20px calc(16px + env(safe-area-inset-bottom, 0px));
  direction: ltr;
  flex-shrink: 0;
  box-sizing: border-box;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 28%);
}

.ic-ply-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

.ic-ply-time {
  width: 30px;
  font-size: 12px;
  color: #7a7a7a;
  text-align: center;
}

.ic-ply-bar {
  position: relative;
  flex: 1;
  height: 8px;
  margin: 0 10px;
  border: 0;
  border-radius: 4px;
  background: #f1f3f5;
  cursor: pointer;
  padding: 0;
}

.ic-ply-bar-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 4px;
  background: #4e91e6;
}

.ic-ply-bar-thumb {
  position: absolute;
  top: 50%;
  left: 0;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  margin-left: -7px;
  border-radius: 50%;
  background: #4e91e6;
}

.ic-ply-btns {
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.ic-ply-btn {
  padding: 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #2d3a4a;
  cursor: pointer;
}

.ic-ply-btn.is-on {
  background: rgba(78, 145, 230, 0.1);
  color: #4e91e6;
}

.ic-ply-btn:disabled {
  color: #c7c7c7;
  cursor: default;
}

.ic-ply-next .ic-icon {
  transform: scaleX(-1);
}

.ic-ply-play {
  width: 60px;
  height: 60px;
  border: 0;
  border-radius: 50%;
  background: #4e91e6;
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.ic-ply-pause-icon,
.ic-ply-play.is-on .ic-ply-play-icon,
.ic-ply-play.is-load .ic-ply-play-icon,
.ic-ply-play.is-load .ic-ply-pause-icon {
  display: none;
}

.ic-ply-play.is-on .ic-ply-pause-icon {
  display: inline-block;
}

.ic-ply-spin {
  display: none;
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: ic-ply-spin 0.8s linear infinite;
}

.ic-ply-play.is-load .ic-ply-spin {
  display: block;
}

@keyframes ic-ply-spin {
  to { transform: rotate(360deg); }
}

/* صفحه پلیر — فشرده‌تر روی گوشی */
@media (max-width: 800px) {
  .ic-ply {
    height: 100dvh;
    min-height: 0;
    max-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .ic-ply-head {
    padding: 4px 16px 2px;
    min-height: 44px;
  }

  .ic-ply-art-wrap {
    margin-top: 100px;
  }

  .ic-ply-art {
    width: min(280px, calc(100vw - 40px));
    height: min(240px, calc(100vw - 52px));
  }

  .ic-ply-meta {
    height: auto;
    min-height: 0;
    flex-shrink: 1;
    padding: 0 12px 4px;
  }

  .ic-ply-name {
    margin-top: 20sx;
    font-size: 13px;
    line-height: 22px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  .ic-ply-sub {
    margin-top: 10px;
    font-size: 12px;
    line-height: 18px;
  }

  .ic-ply-controls {
    padding: 12px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  }

  .ic-ply-progress {
    margin-bottom: 20px;
  }

  .ic-ply-btn {
    padding: 8px;
  }

  .ic-ply-play {
    width: 56px;
    height: 56px;
  }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   ØµÙØ­Ù‡ Ø¬Ø§ÛŒÚ¯Ø²ÛŒÙ†â€ŒÛŒØ§Ø¨  (ic-rpl)
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
