.pods-latest-list {
  list-style: none;
  margin: .65rem 0 0;
  padding: 0;
  display: grid;
  gap: .45rem;
}

.pods-latest-item,
.pods-track {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  border: 2px solid rgba(255,255,255,.08);
  border-radius: .3rem;
  padding: .55rem;
  background: rgba(255,255,255,.02);
}

.pods-thumb,
.pods-track-thumb {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: .2rem;
  object-fit: cover;
  background: rgba(255,255,255,.08);
}

.pods-track-info,
.pods-latest-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.pods-latest-title,
.pods-track .track-title {
  font-weight: 700;
  text-decoration: none;
}

.pods-latest-title {
  color: inherit;
  display: inline-block;
  margin-bottom: .12rem;
}

.pods-latest-meta,
.pods-track .track-meta {
  display: block;
  color: var(--muted, #aab2bf);
  font-size: .86rem;
  line-height: 1.3;
}

.pods-track-actions,
.pods-latest-actions {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  align-items: flex-end;
  flex: 0 0 auto;
}

.pods-track-actions .btn,
.pods-latest-actions .btn {
  white-space: nowrap;
}

.pods-feed-grid {
  display: grid;
  gap: .8rem;
}

.pods-feed-grid .card {
  margin: 0;
}

.pods-hero-copy {
  max-width: 60ch;
}

.pods-stat-row,
.pods-top-grid {
  display: grid;
  gap: .55rem;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  margin-top: .85rem;
}

.pods-stat-chip,
.pods-top-card {
  border: 2px solid rgba(255,255,255,.08);
  border-radius: .3rem;
  background: rgba(255,255,255,.03);
  padding: .7rem .8rem;
}

.pods-stat-label {
  display: block;
  color: var(--muted, #aab2bf);
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.pods-stat-value {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  margin-top: .18rem;
}

.pods-updated {
  margin-top: .8rem;
}

.pods-feed-note {
  margin: .2rem 0 .55rem;
}

.pods-top-card-title {
  font-weight: 700;
  color: inherit;
  text-decoration: none;
}

.pods-top-card-meta {
  display: block;
  color: var(--muted, #aab2bf);
  font-size: .86rem;
  line-height: 1.35;
  margin-top: .18rem;
}

/* Recommendation cards */
.pods-rec-card {
  padding: .8rem;
}

.pods-rec-header {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  margin-bottom: .55rem;
}

.pods-rec-img {
  width: 72px;
  height: 72px;
  min-width: 72px;
  border-radius: .3rem;
  object-fit: cover;
  background: rgba(255,255,255,.08);
}

.pods-rec-info {
  min-width: 0;
  flex: 1 1 auto;
}

.pods-rec-blurb {
  font-size: .92rem;
  line-height: 1.45;
  color: var(--muted, #aab2bf);
  margin: .4rem 0 .55rem;
  font-style: italic;
}

.pods-rec-start-here {
  margin-top: .55rem;
  padding-top: .45rem;
  border-top: 2px solid rgba(255,255,255,.06);
}

.pods-rec-start-ep {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .25rem 0;
}

.pods-rec-start-title {
  font-weight: 600;
  font-size: .88rem;
}

.pods-rec-start-meta {
  color: var(--muted, #aab2bf);
  font-size: .82rem;
}

/* Rec card as details/summary expandable */
details.pods-rec-card {
  cursor: default;
}

.pods-rec-summary {
  list-style: none;
  cursor: pointer;
}

.pods-rec-summary::-webkit-details-marker {
  display: none;
}

.pods-rec-summary .pods-rec-header {
  cursor: pointer;
}

.pods-rec-ep-hint {
  color: var(--accent, #c7d2fe);
  font-size: .82rem;
}

details.pods-rec-card[open] .pods-rec-ep-hint {
  display: none;
}

.pods-rec-episodes {
  margin-top: .55rem;
  padding-top: .45rem;
  border-top: 2px solid rgba(255,255,255,.06);
  display: grid;
  gap: .3rem;
}

.pods-rec-episode {
  display: flex;
  align-items: flex-start;
  gap: .45rem;
  padding: .35rem 0;
  border-bottom: 2px solid rgba(255,255,255,.04);
}

.pods-rec-episode:last-child {
  border-bottom: none;
}

.pods-rec-ep-info {
  flex: 1 1 auto;
  min-width: 0;
}

.pods-rec-ep-info .track-title {
  font-weight: 600;
  font-size: .88rem;
  display: block;
  text-align: left;
}

.pods-rec-ep-meta {
  display: block;
  color: var(--muted, #aab2bf);
  font-size: .82rem;
  line-height: 1.3;
}

.pods-rec-ep-actions {
  display: flex;
  gap: .25rem;
  flex: 0 0 auto;
  align-items: center;
}

/* Save / bookmark button */
.pods-save-btn {
  min-width: 28px;
  width: 28px;
  height: 28px;
  padding: 0 !important;
  font-size: 1.1rem;
  line-height: 1;
  text-align: center;
  border-radius: .35rem;
  opacity: .6;
  transition: opacity .15s;
}

.pods-save-btn:hover,
.pods-save-btn.is-saved {
  opacity: 1;
}

.pods-save-btn.is-saved {
  color: #f5a623;
}

/* Playlist add button */
.pods-playlist-add-btn {
  min-width: 28px;
  height: 28px;
  padding: 0 .3rem !important;
  font-size: .75rem;
  line-height: 1;
  border-radius: .35rem;
  opacity: .6;
  transition: opacity .15s;
}

.pods-playlist-add-btn:hover {
  opacity: 1;
}

/* Playlist section */
.pods-playlist-section {
  display: grid;
  gap: .6rem;
}

.pods-playlist-group {
  border: 2px solid rgba(255,255,255,.08);
  border-radius: .3rem;
  background: rgba(255,255,255,.02);
}

.pods-playlist-header {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem .7rem;
  cursor: pointer;
  list-style: none;
}

.pods-playlist-header::-webkit-details-marker {
  display: none;
}

.pods-playlist-name {
  font-weight: 700;
  flex: 1 1 auto;
}

.pods-playlist-count {
  color: var(--muted, #aab2bf);
  font-size: .82rem;
}

.pods-playlist-play-all {
  font-size: .78rem !important;
  padding: .2rem .45rem !important;
}

.pods-playlist-delete {
  font-size: .9rem !important;
  padding: .15rem .35rem !important;
  opacity: .5;
}

.pods-playlist-delete:hover {
  opacity: 1;
}

.pods-playlist-items {
  padding: 0 .7rem .6rem;
  display: grid;
  gap: .35rem;
}

.pods-playlist-item {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .3rem 0;
  border-top: 2px solid rgba(255,255,255,.04);
}

.pods-playlist-item .track-title {
  flex: 1 1 auto;
  font-size: .88rem;
}

.pods-playlist-item .track-meta {
  font-size: .8rem;
}

.pods-playlist-item-actions {
  display: flex;
  gap: .25rem;
  flex: 0 0 auto;
}

/* Playlist dropdown */
.pods-playlist-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 100;
  background: var(--bg, #1a1b1e);
  border: 2px solid rgba(255,255,255,.15);
  border-radius: .3rem;
  padding: .3rem;
  min-width: 160px;
  box-shadow: 0 4px 12px rgba(0,0,0,.4);
}

.pods-pl-dd-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: .4rem .55rem;
  font-size: .85rem;
  border-radius: .3rem;
}

.pods-pl-dd-item:hover {
  background: rgba(255,255,255,.08);
}

/* Auth area */
.pods-auth-user {
  color: var(--muted, #aab2bf);
  font-size: .85rem;
  margin-right: .4rem;
}

/* Player save button active state */
#saveQueueBtn.is-saved {
  color: #f5a623;
}

@media (max-width: 760px) {
  .pods-latest-item,
  .pods-track {
    gap: .5rem;
  }

  .pods-thumb,
  .pods-track-thumb {
    width: 50px;
    height: 50px;
    min-width: 50px;
  }

  .pods-track-actions,
  .pods-latest-actions {
    gap: .28rem;
  }

  .pods-rec-img {
    width: 56px;
    height: 56px;
    min-width: 56px;
  }

  .pods-rec-header {
    gap: .55rem;
  }

  .pods-playlist-dropdown {
    min-width: 140px;
  }
}

/* Keep header/econav above page content and dropdowns */
.site-header {
  position: relative;
  z-index: 20050;
}

.topbar {
  z-index: 20060 !important;
}

.fcc-econav-hamburger nav.ecosystem-nav[data-fcc-econav],
.fcc-econav-more,
.fcc-econav-more-menu {
  z-index: 20070 !important;
}

main.wrap.container {
  position: relative;
  z-index: 1;
  margin-top: 0.35rem;
}

/* Pods: prevent /more dropdown clipping behind page content */
.site-header,
.topbar,
.topbar-content,
.fcc-econav-plane,
.fcc-econav-hamburger,
nav.ecosystem-nav[data-fcc-econav],
nav.ecosystem-nav[data-fcc-econav] .fcc-econav-more {
  overflow: visible !important;
}

.topbar,
.topbar-content,
.fcc-econav-plane,
.fcc-econav-hamburger,
nav.ecosystem-nav[data-fcc-econav],
nav.ecosystem-nav[data-fcc-econav] .fcc-econav-more,
nav.ecosystem-nav[data-fcc-econav] .fcc-econav-more-menu {
  position: relative;
  isolation: isolate;
}

nav.ecosystem-nav[data-fcc-econav] .fcc-econav-more-menu {
  z-index: 2147483600 !important;
}

/* Pods: force topbar/econav above all overlays */
.site-header,
.topbar,
.topbar-content,
.fcc-econav-plane,
.fcc-econav-hamburger,
nav.ecosystem-nav[data-fcc-econav],
nav.ecosystem-nav[data-fcc-econav] .fcc-econav-more,
nav.ecosystem-nav[data-fcc-econav] .fcc-econav-more-menu {
  position: relative !important;
  z-index: 2147483640 !important;
}

nav.ecosystem-nav[data-fcc-econav] .fcc-econav-more-menu {
  z-index: 2147483647 !important;
}

/* Pods alignment/perf cleanup: match fcc.cc header rhythm */
#floatingSearchDock {
  display: none !important;
}

.site-header {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.65rem !important;
  padding-top: 3.2rem !important;
}

.topbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
}

.topbar-content {
  max-width: 1100px !important;
  margin: 0 auto !important;
  padding: 0.65rem 1.5rem !important;
}

main#app.wrap.container {
  max-width: 1100px !important;
  margin: 14px auto 0 !important;
  padding: 0 1.5rem !important;
  gap: 12px !important;
}

@media (max-width: 900px) {
  .site-header { padding-top: 3.05rem !important; }
  .topbar-content { padding: 0.5rem 0.95rem !important; }
  main#app.wrap.container { margin-top: 14px !important; padding: 0 0.95rem !important; }
}


/* Pods player cleanup: compact controls for tighter layout */
#player .player-controls {
  gap: 0.36rem !important;
  flex-wrap: wrap;
}

#player .player-controls .btn {
  padding: 0.26rem 0.52rem !important;
  min-height: 30px !important;
  font-size: 0.82rem !important;
  line-height: 1.1;
}

#player .player-controls .btn-icon-only {
  min-width: 30px !important;
  width: 30px !important;
  height: 30px !important;
  padding: 0 !important;
}

#player .player-controls #playBtn {
  min-width: 34px !important;
  width: 34px !important;
  height: 34px !important;
}

/* ── Search & Subscribe ── */
.pods-search-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pods-search-row,
.pods-subscribe-row {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.pods-search-input {
  flex: 1;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--border, #333);
  border-radius: 4px;
  background: var(--bg-card, #181a1f);
  color: var(--fg, #ccc);
  font-size: 0.88rem;
  font-family: inherit;
}

.pods-search-input:disabled {
  opacity: 0.4;
}

.pods-auth-hint {
  font-size: 0.82rem;
  opacity: 0.6;
}

/* ── Search results ── */
.pods-search-result {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border, #222);
}

.pods-search-result:last-child {
  border-bottom: none;
}

.pods-search-result-img {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

.pods-search-result-info {
  flex: 1;
  min-width: 0;
}

.pods-search-result-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.pods-subscribe-btn {
  white-space: nowrap;
}

/* ── Unsubscribe ── */
.pods-unsub-btn {
  background: none;
  border: none;
  color: var(--muted, #aab2bf);
  cursor: pointer;
  font-size: 0.8rem;
  padding: 0;
  text-decoration: underline;
}

.pods-unsub-btn:hover {
  color: var(--fg, #ccc);
}

/* ── OPML buttons ── */
.pods-opml-row {
  display: flex;
  gap: 0.4rem;
  margin-left: auto;
}

.pods-opml-import-label {
  cursor: pointer;
}

@media (max-width: 760px) {
  .pods-search-result-img {
    width: 40px;
    height: 40px;
  }
}

/* ── Load more episodes ── */
.pods-load-more-btn {
  display: block;
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.5rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--accent, #c7d2fe);
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  cursor: pointer;
}
.pods-load-more-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
}
.pods-load-more-btn:disabled {
  cursor: default;
  opacity: 0.6;
}

/* ── Queue panel ── */
.queue-panel {
  max-height: 350px;
  overflow-y: auto;
  border-top: 2px solid rgba(255, 255, 255, 0.08);
  padding: 0 0.5rem 0.5rem;
  background: var(--bg, #0c0d0f);
}
.queue-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.2rem 0.3rem;
  position: sticky;
  top: 0;
  background: var(--bg, #0c0d0f);
  z-index: 1;
}
.queue-title {
  font-weight: 700;
  font-size: 0.9rem;
}
.queue-clear-btn {
  font-size: 0.78rem;
  padding: 0.12rem 0.5rem;
  opacity: 0.6;
}
.queue-clear-btn:hover {
  opacity: 1;
}
.queue-list {
  display: flex;
  flex-direction: column;
}
.queue-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 4px;
}
.queue-item:hover {
  background: rgba(255, 255, 255, 0.03);
}
.queue-item.is-playing {
  background: rgba(255, 255, 255, 0.06);
  border-left: 3px solid var(--accent, #c7d2fe);
  padding-left: calc(0.2rem - 3px);
}
.queue-play-btn {
  min-width: 28px;
  flex-shrink: 0;
}
.queue-item-info {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}
.queue-item-title {
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.queue-item-meta {
  font-size: 0.76rem;
  color: var(--text-dim, #9aa3b2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.queue-item-actions {
  display: flex;
  gap: 0.15rem;
  flex-shrink: 0;
}
.queue-move-btn,
.queue-remove-btn {
  min-width: 24px;
  padding: 0.1rem 0.25rem;
  font-size: 0.72rem;
  line-height: 1;
  opacity: 0.5;
  cursor: pointer;
}
.queue-move-btn:hover,
.queue-remove-btn:hover {
  opacity: 1;
}
.queue-move-btn:disabled {
  opacity: 0.15;
  cursor: default;
}
.queue-empty {
  text-align: center;
  padding: 1rem;
  color: var(--text-dim, #9aa3b2);
  font-size: 0.88rem;
}
.pods-play-next-btn {
  font-size: 0.72rem;
  padding: 0.12rem 0.35rem;
}

/* ── Episode detail view ── */
.pods-ep-detail {
  margin: 0;
}
.pods-ep-summary {
  cursor: pointer;
  list-style: none;
}
.pods-ep-summary::-webkit-details-marker {
  display: none;
}
.pods-ep-summary::after {
  content: " \25B8";
  font-size: 0.75rem;
  opacity: 0.5;
}
details[open].pods-ep-detail > .pods-ep-summary::after {
  content: " \25BE";
}
.pods-ep-detail-body {
  margin-top: 0.4rem;
  padding: 0.5rem 0.6rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.pods-ep-full-desc {
  line-height: 1.55;
  font-size: 0.88rem;
  color: var(--text-dim, #9aa3b2);
  white-space: pre-wrap;
  word-break: break-word;
  margin-bottom: 0.5rem;
}
.pods-ep-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1rem;
  font-size: 0.82rem;
  color: var(--text-dim, #9aa3b2);
  margin-bottom: 0.4rem;
}
.pods-ep-detail-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.pods-ep-detail-links a {
  font-size: 0.82rem;
}
.pods-share-btn {
  font-size: 0.78rem;
  padding: 0.15rem 0.5rem;
  cursor: pointer;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-dim, #9aa3b2);
}
.pods-share-btn:hover {
  border-color: rgba(255, 255, 255, 0.25);
}

/* ── Mark as played ── */
.pods-played {
  opacity: 0.5;
  transition: opacity 0.15s;
}
.pods-played:hover {
  opacity: 0.8;
}
.pods-mark-played-btn {
  min-width: 28px;
  padding: 0.15rem 0.3rem;
  font-size: 0.85rem;
  cursor: pointer;
  border-radius: 4px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-dim, #9aa3b2);
}
.pods-mark-played-btn.is-played {
  color: #6ee7b7;
  border-color: rgba(110, 231, 183, 0.3);
}
.pods-mark-played-btn:hover {
  border-color: rgba(255, 255, 255, 0.25);
}

/* ── Keyboard shortcuts overlay ── */
.pods-shortcuts-overlay {
  position: fixed;
  inset: 0;
  z-index: 20070;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pods-shortcuts-dialog {
  background: var(--panel, #111214);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
  max-width: 380px;
  width: 90vw;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}
.pods-shortcuts-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}
.pods-shortcuts-title {
  font-weight: 700;
  font-size: 1.05rem;
}
.pods-shortcuts-close {
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}
.pods-shortcuts-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 0.8rem;
  align-items: center;
}
.pods-shortcuts-grid kbd {
  display: inline-block;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  padding: 0.15rem 0.45rem;
  font-family: inherit;
  font-size: 0.82rem;
  min-width: 2ch;
  text-align: center;
}
.pods-shortcuts-grid span {
  color: var(--text-dim, #9aa3b2);
  font-size: 0.88rem;
}
