/* ============ بلوک‌های محتوا (نسخه جدید) ============ */
.audio-block, .content-block {
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.audio-title, .content-title {
  font-weight: bold;
  font-size: 15px;
  margin-bottom: 12px;
  color: var(--text);
}

.content-url {
  font-size: 12px;
  color: var(--text-light);
  padding: 6px 10px;
  background: #f8fafc;
  border-radius: 8px;
  margin-bottom: 10px;
  word-break: break-all;
}

.content-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-action {
  display: inline-block;
  flex: 1;
  min-width: 100px;
  padding: 11px 14px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  border: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
}

.btn-action:hover { background: var(--primary-dark); }
.btn-action.btn-secondary { background: #64748b; }
.btn-action.btn-secondary:hover { background: #475569; }

/* ============ پلیر صوتی (بازطراحی) ============ */
.audio-player {
  background: #f8fafc;
  border-radius: 12px;
  padding: 16px 14px;
  border: 1px solid var(--border);
}

.player-progress { margin-bottom: 16px; }

.progress-bar {
  position: relative;
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  cursor: pointer;
  user-select: none;
  margin-top: 8px;
}

.progress-filled {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 0%;
  background: var(--primary);
  border-radius: 3px;
}

.progress-thumb {
  position: absolute;
  top: 50%;
  right: 0%;
  width: 16px;
  height: 16px;
  background: var(--primary);
  border: 3px solid #fff;
  border-radius: 50%;
  transform: translate(50%, -50%);
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
  pointer-events: none;
  transition: right .1s linear;
}

.player-times {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-light);
  margin-top: 8px;
  direction: ltr;
  font-family: monospace;
}

.player-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 14px;
}

.pbtn {
  width: auto;
  margin: 0;
  padding: 8px 12px;
  background: transparent;
  color: var(--primary);
  border-radius: 10px;
  font-weight: bold;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: none;
  cursor: pointer;
}

.pbtn:hover { background: #dbeafe; }

.btn-play {
  width: 60px;
  height: 60px;
  padding: 0;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
  flex-shrink: 0;
}

.btn-play:hover { background: var(--primary-dark); }

.player-extras {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
  flex-wrap: wrap;
}

.extra-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-light);
}

.extra-label { font-size: 12px; }

.vol-range {
  width: 90px;
  accent-color: var(--primary);
}

.speed-select {
  width: auto;
  padding: 5px 8px;
  font-size: 13px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  font-family: inherit;
}

/* ============ مودال تمام‌صفحه ============ */
.fullscreen-modal {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 9999;
  display: flex;
  flex-direction: column;
}

.fs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--primary);
  color: #fff;
  gap: 10px;
  flex-shrink: 0;
}

.fs-title {
  font-size: 14px;
  font-weight: bold;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fs-actions { display: flex; gap: 6px; }

.fs-btn {
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,0.2);
  color: #fff;
  border: none;
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  text-decoration: none;
  font-weight: bold;
}

.fs-btn:hover { background: rgba(255,255,255,0.3); }
.fs-close { background: rgba(255,255,255,0.25); }

.fs-body {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.fs-frame {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  background: #f8fafc;
}