/* ============================================================================
   epcard.css — SINGLE SOURCE OF TRUTH for the episode card look.
   Loaded on the home app (index.html) AND the static /ep, /pod, /tag pages so
   every episode card looks identical everywhere. Edit the card look HERE only.
   ============================================================================ */
.ep-feed-inner { display: flex; flex-direction: column; gap: 16px; }
.ep-feed-inner > * { min-width: 0; }
.ep-feed-card {
  display: flex; gap: 12px; padding: 12px; background: var(--bg2);
  border: 1px solid var(--border); cursor: pointer; border-radius: 14px;
  box-shadow: var(--shadow); transition: transform 0.12s, box-shadow 0.12s;
  position: relative; text-decoration: none; color: inherit;
}
.ep-feed-card:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(30,42,56,0.10); }
.ep-feed-toprow { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ep-feed-toprow .ep-feed-show { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ep-card-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.ep-info-btn, .ep-queue-btn {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; height: 22px; padding: 0 9px;
  font-size: 0.63rem; font-weight: 600; line-height: 1; border-radius: 999px;
  border: 1px solid var(--border); background: var(--bg3); color: var(--secondary);
  cursor: pointer; white-space: nowrap; text-decoration: none; transition: all 0.15s;
}
.ep-show-link { color: inherit; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ep-show-link:hover { text-decoration: underline; }
.ep-info-btn:hover { color: #fff; background: var(--primary); border-color: var(--primary); }
.ep-queue-btn:hover { color: var(--text); border-color: var(--secondary); }
.ep-queue-btn.in-queue { color: var(--accent); border-color: var(--accent); }
.ep-fav-star {
  background: none; border: none; cursor: pointer; padding: 0 2px;
  font-size: 0.85em; line-height: 1; color: #ccc; flex-shrink: 0;
  transition: color 0.15s;
}
.ep-fav-star.starred, .ep-fav-star:hover { color: #f5c518; }
.ep-feed-thumb-wrap { position: relative; flex-shrink: 0; }
.ep-feed-thumb { width: 100px; height: 100px; border-radius: 10px; object-fit: cover; flex-shrink: 0; background: var(--bg3); }
.ep-feed-thumb-fb { width: 100px; height: 100px; border-radius: 8px; background: var(--bg3); display: flex; align-items: center; justify-content: center; font-size: 2rem; flex-shrink: 0; }
.ep-feed-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; justify-content: center; }
.ep-feed-show { font-size: 0.72rem; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-feed-title { font-size: 0.9rem; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ep-feed-meta { font-size: 0.73rem; color: var(--text2); }
.ep-feed-desc { font-size: 0.73rem; color: var(--text2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* live badge + queue chrome (used in the app; harmless elsewhere) */
.ep-feed-live-tag { position: absolute; bottom: 5px; left: 5px; background: rgba(0,0,0,0.72); color: #fff; border-radius: 4px; font-size: 0.6rem; font-weight: 700; padding: 2px 5px; display: flex; align-items: center; gap: 3px; letter-spacing: 0.02em; pointer-events: none; }
.ep-feed-live-tag .live-dot { width: 5px; height: 5px; margin: 0; }
.queue-remove-btn { background: none; border: none; cursor: pointer; color: var(--text2); font-size: 1rem; padding: 4px 8px; line-height: 1; flex-shrink: 0; opacity: 0.5; transition: opacity 0.15s, color 0.15s; }
.queue-remove-btn:hover { opacity: 1; color: var(--accent); }
.queue-num { min-width: 22px; text-align: center; font-size: 0.75rem; font-weight: 600; color: var(--text2); flex-shrink: 0; user-select: none; align-self: center; }
.queue-card { cursor: grab; transition: opacity 0.15s; }
.queue-card.dragging { opacity: 0.35; cursor: grabbing; }
.queue-card.drag-over { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 8px; }

/* Mobile: keep the +Seinna / Meira um þátt pills pinned in the top-right
   corner, and move the podcast NAME down to its own full-width line below the
   pills so it is never crushed or hidden by them. */
@media (max-width: 1024px) {
  /* Keep the name on the same row as the pills (top-right). The pills collapse
     to icon-only so they stay small and never crush the podcast name. */
  .ep-queue-btn, .ep-info-btn {
    font-size: 0; padding: 0; width: 28px; height: 22px; justify-content: center;
  }
  .ep-queue-btn::before { content: "\23F1"; font-size: 0.8rem; line-height: 1; }      /* ⏱ */
  .ep-queue-btn.in-queue::before { content: "\2713"; }                                 /* ✓ */
  .ep-info-btn::before { content: "\2192"; font-size: 0.9rem; line-height: 1; }        /* → */
}
