/* ---------- search ---------- */
.search {
  display: flex;
  gap: 8px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 6px;
  box-shadow: var(--shadow-sm);
}
.search:focus-within { border-color: var(--saffron); }
.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 16px; /* 16px 以上 iOS 才不會自動放大 */
  color: var(--ink);
  padding: 0 12px;
}
.search input::placeholder { color: var(--ink-4); }

.notice {
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--saffron-tint);
  color: var(--ink);
  font-size: 15px;
}
.notice.warn { background: #FBE6DC; }
.notice b { display: block; margin-bottom: 2px; }
.notice .btn { margin-top: 8px; }

/* ---------- podcast card ---------- */
.list { display: grid; gap: 12px; margin-top: 12px; }

.pod {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 12px;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 4px 12px;
}
.pod-art {
  width: 72px; height: 72px;
  border-radius: 14px;
  background: var(--oat);
  object-fit: cover;
  grid-row: span 2;
}
.pod-art-empty {
  display: grid;
  place-items: center;
  font-size: 28px;
}
.pod-body { min-width: 0; }
.pod-name {
  font-weight: 700;
  font-size: 16px;
  line-height: 1.35;
  margin: 0;
  overflow-wrap: anywhere;
}
.pod-meta {
  font-size: 13px;
  color: var(--ink-3);
  margin: 2px 0 0;
}
.pod-meta .num { font-family: var(--font-num); }
.pod-feed {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 12px;
  color: var(--ink-3);
  margin: 4px 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  user-select: all;
  -webkit-user-select: all;
}
.pod-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.pod-actions .btn { flex: 1; }
.pod-actions .btn-ghost { flex: 0 0 auto; }

.pod.missing .pod-feed { color: var(--terracotta-deep); font-family: var(--font-body); }

/* 載入中骨架 */
.pod.loading .pod-art,
.pod.loading .sk {
  background: linear-gradient(90deg, var(--oat) 0%, var(--border-soft) 50%, var(--oat) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
}
.pod.loading .sk { height: 14px; border-radius: 6px; margin: 6px 0; }
.pod.loading .sk.short { width: 50%; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* 大V出品置頂 */
.pod.featured {
  background: var(--saffron-tint);
  border: 2px solid var(--saffron);
  box-shadow: var(--shadow-md);
  position: relative;
  padding-top: 20px;
}
.pod.featured .ribbon {
  position: absolute;
  top: -11px;
  left: 16px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
}
.pod.featured .pod-note {
  grid-column: 1 / -1;
  font-size: 14px;
  color: var(--ink-2);
  margin: 4px 0 0;
}

/* ---------- how / tips ---------- */
.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 12px 0 16px;
  display: grid;
  gap: 8px;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 12px 16px 12px 52px;
  background: var(--oat);
  border-radius: 14px;
  font-size: 15px;
  color: var(--ink-2);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 14px; top: 12px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--saffron);
  color: var(--ink);
  font-family: var(--font-num);
  font-weight: 800;
  display: grid; place-items: center;
  font-size: 14px;
}
.steps b { display: block; color: var(--ink); }
.kbd {
  font-family: var(--font-num);
  font-weight: 800;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0 6px;
  font-size: 13px;
  white-space: nowrap;
}

.tips { background: var(--oat); border-color: var(--sand); box-shadow: none; }
.tips ul { margin: 8px 0 0; padding-left: 20px; }
.tips li { margin: 6px 0; color: var(--ink-2); }
.tips li b { color: var(--ink); }
