/* ============================================================
   Podcast Studio deck — bespoke styles, all scoped to #view-podcast.
   Mint accent from the design system; matches .panel/.card patterns.
   ============================================================ */

/* ── The Recorder ─────────────────────────────────────────── */
#view-podcast .pod-rec {
  display: grid; grid-template-columns: 200px 1fr; gap: 22px; align-items: center;
}
#view-podcast .pod-rec-left {
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
}

#view-podcast .pod-rec-btn {
  position: relative; width: 96px; height: 96px; border-radius: 50%;
  border: 1px solid var(--teal-dim); background: radial-gradient(circle at 50% 35%, #163a2d, #0c1b16);
  cursor: pointer; display: grid; place-items: center;
  box-shadow: 0 0 0 1px rgba(95,176,137,0.1), 0 0 34px -10px rgba(95,176,137,0.5);
  transition: transform .15s, box-shadow .2s, border-color .2s;
}
#view-podcast .pod-rec-btn:hover { transform: translateY(-2px); border-color: var(--mint); }
#view-podcast .pod-rec-btn.disabled { cursor: not-allowed; opacity: .5; box-shadow: none; }
#view-podcast .pod-rec-ring {
  position: absolute; inset: 10px; border-radius: 50%;
  border: 2px solid rgba(95,176,137,0.35);
}
#view-podcast .pod-rec-core {
  width: 34px; height: 34px; border-radius: 50%; background: var(--mint);
  box-shadow: 0 0 18px -2px rgba(95,176,137,0.8); transition: all .22s var(--ease);
}
/* armed = recording: pulse the ring, turn the core into a red square */
#view-podcast .pod-rec-btn.armed .pod-rec-core {
  width: 28px; height: 28px; border-radius: 6px; background: var(--red);
  box-shadow: 0 0 20px -2px rgba(255,75,75,0.85);
}
#view-podcast .pod-rec-btn.armed .pod-rec-ring {
  border-color: rgba(255,75,75,0.55); animation: podRecPulse 1.4s infinite;
}
@keyframes podRecPulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.12); opacity: .4; }
}
#view-podcast .pod-rec-status {
  font-family: var(--font-display); font-weight: 600; font-size: .9rem; color: var(--text);
}
#view-podcast .pod-rec-time {
  font-size: 1.35rem; color: var(--mint); letter-spacing: .04em;
}

#view-podcast .pod-rec-meter {
  background: #0d1219; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 10px 12px; height: 116px; display: flex; flex-direction: column; gap: 6px;
}
#view-podcast .pod-canvas { width: 100%; flex: 1; display: block; min-height: 0; }
#view-podcast .pod-rec-hint {
  font-size: 11px; color: var(--text-faint); text-align: center; letter-spacing: .02em;
}

/* ── Captured take ────────────────────────────────────────── */
#view-podcast .pod-take {
  margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border);
}
#view-podcast .pod-take-head { margin-bottom: 12px; }
#view-podcast .pod-take-dur { font-size: 12px; }
#view-podcast .pod-audio { width: 100%; height: 40px; margin-top: 4px; }

/* ── Edit by transcript ───────────────────────────────────── */
#view-podcast .pod-tx {
  font-size: 15px; line-height: 2.1; color: var(--text-muted);
  max-height: 260px; overflow-y: auto;
}
#view-podcast .pod-word {
  cursor: pointer; padding: 1px 3px; border-radius: 4px; transition: background .12s, color .12s;
  display: inline-block; margin-right: 2px;
}
#view-podcast .pod-word:hover { background: var(--teal-glow); color: var(--text); }
#view-podcast .pod-word.cut {
  text-decoration: line-through; text-decoration-color: var(--red);
  color: var(--text-faint); background: var(--red-dim); opacity: .75;
}
#view-podcast .pod-tx-count { font-size: 11.5px; }

/* ── AI cover art ─────────────────────────────────────────── */
#view-podcast .pod-cover-art {
  position: relative; aspect-ratio: 1 / 1; width: 100%; border-radius: var(--radius);
  border: 1px solid var(--border); overflow: hidden;
  background: linear-gradient(135deg, #14241c, #0c1b16);
  display: grid; place-items: center;
}
#view-podcast .pod-cover-art.generating::after {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, rgba(95,176,137,0.06) 0 12px, transparent 12px 24px);
  animation: podCoverScan 1s linear infinite;
}
@keyframes podCoverScan { from { background-position: 0 0; } to { background-position: 48px 0; } }
#view-podcast .pod-cover-art.done {
  border-color: rgba(95,176,137,0.45);
  box-shadow: inset 0 0 60px -20px rgba(0,0,0,0.7);
}
#view-podcast .pod-cover-label {
  position: relative; z-index: 2; font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-faint); background: rgba(13,18,25,0.66); padding: 4px 10px;
  border-radius: 999px; border: 1px solid var(--border);
}
#view-podcast .pod-cover-art.done .pod-cover-label { color: var(--mint); border-color: rgba(95,176,137,0.4); }
#view-podcast .pod-cover-progress {
  position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(0,0,0,0.3); z-index: 3;
}
#view-podcast .pod-cover-progress > span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--mint-deep), var(--mint)); transition: width .18s linear;
}

/* ── Episodes feed ────────────────────────────────────────── */
#view-podcast .pod-ep-list { display: flex; flex-direction: column; }
#view-podcast .pod-ep {
  display: flex; align-items: center; gap: 14px; padding: 13px 8px;
  border-bottom: 1px solid var(--border); transition: background .12s;
}
#view-podcast .pod-ep:last-child { border-bottom: none; }
#view-podcast .pod-ep:hover { background: var(--card-hover); }
#view-podcast .pod-ep-art {
  width: 44px; height: 44px; border-radius: 8px; flex-shrink: 0; display: grid; place-items: center;
  background: linear-gradient(145deg, #123e33, #0c1b16); border: 1px solid rgba(95,176,137,0.3);
}
#view-podcast .pod-ep-glyph { color: var(--mint); font-size: 18px; }
#view-podcast .pod-ep-main { flex: 1; min-width: 0; }
#view-podcast .pod-ep-title { font-size: 14px; font-weight: 600; color: var(--text); }
#view-podcast .pod-ep-meta { font-size: 11.5px; color: var(--text-faint); margin-top: 3px; }

/* ── Toasts ───────────────────────────────────────────────── */
#view-podcast .pod-toast-wrap {
  position: fixed; right: 20px; bottom: 20px; z-index: 1400;
  display: flex; flex-direction: column; gap: 10px; pointer-events: none;
}
#view-podcast .pod-toast {
  display: flex; align-items: center; gap: 9px;
  background: #0f141b; border: 1px solid rgba(95,176,137,0.4); border-radius: 10px;
  padding: 11px 15px; font-size: 13px; color: var(--text); max-width: 320px;
  box-shadow: 0 14px 40px -14px rgba(0,0,0,0.85), 0 0 50px -22px rgba(95,176,137,0.5);
  opacity: 0; transform: translateY(10px); transition: opacity .3s, transform .3s;
}
#view-podcast .pod-toast.in { opacity: 1; transform: translateY(0); }
#view-podcast .pod-toast-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--mint); flex-shrink: 0;
  box-shadow: 0 0 0 3px var(--teal-glow);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 820px) {
  /* the two inline two-up grids (transcript|cover, etc.) stack on narrow screens */
  #view-podcast .page > .grid[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
}
@media (max-width: 760px) {
  #view-podcast .pod-rec { grid-template-columns: 1fr; }
  #view-podcast .pod-toast-wrap { right: 12px; left: 12px; bottom: 12px; }
  #view-podcast .pod-toast { max-width: none; }
}
