/* Long Pause Media listener tools · queue, actions, speed, sleep, playlists */
.listener-tools-dialog {
  width: min(560px, calc(100vw - 28px));
  max-height: min(82vh, 760px);
  padding: 0;
  border: 1px solid rgba(155, 205, 245, .18);
  border-radius: 22px;
  color: #f6fbff;
  background: #07111f;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .55);
  overflow: hidden;
}
.listener-tools-dialog::backdrop { background: rgba(0, 0, 0, .72); backdrop-filter: blur(7px); }
.listener-tools-sheet { display: grid; min-height: 0; }
.listener-tools-sheet > header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; border-bottom: 1px solid rgba(162, 205, 239, .12);
}
.listener-tools-sheet > header > div { display: grid; gap: 3px; }
.listener-tools-sheet > header span { color: rgba(211, 231, 248, .55); font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.listener-tools-sheet > header strong { font-size: 18px; }
.listener-tools-sheet > header button {
  width: 38px; height: 38px; display: grid; place-items: center; padding: 0;
  border: 1px solid rgba(154, 206, 244, .15); border-radius: 12px; color: #fff; background: rgba(255,255,255,.04);
}
.listener-tools-sheet > header button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.listener-action-list, .listener-playlist-picker { display: grid; padding: 8px; overflow: auto; }
.listener-action-list > button, .listener-playlist-picker > button {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%;
  padding: 14px 13px; border: 0; border-radius: 13px; color: #eef8ff; background: transparent; text-align: left;
}
.listener-action-list > button:hover, .listener-playlist-picker > button:hover { background: rgba(71, 176, 229, .10); }
.listener-action-list > button:disabled { opacity: .38; }
.listener-action-list > button > span, .listener-playlist-picker > button > span { display: grid; gap: 3px; min-width: 0; }
.listener-action-list strong, .listener-playlist-picker strong { font-size: 14px; }
.listener-action-list small, .listener-playlist-picker small { color: rgba(213, 231, 246, .55); font-size: 11px; line-height: 1.35; }
.listener-action-list svg, .listener-playlist-picker svg { width: 18px; height: 18px; flex: 0 0 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.listener-queue-sheet { max-height: min(82vh, 780px); grid-template-rows: auto auto minmax(0, 1fr) auto; }
.listener-queue-copy { padding: 12px 20px; color: rgba(214, 232, 247, .6); font-size: 12px; line-height: 1.45; border-bottom: 1px solid rgba(162,205,239,.09); }
.listener-queue-list { display: grid; align-content: start; gap: 5px; padding: 8px; overflow: auto; }
.listener-queue-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; border-radius: 14px; }
.listener-queue-row.is-current { background: rgba(54, 185, 231, .10); }
.listener-queue-row.is-unavailable { opacity: .46; }
.listener-queue-play { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 11px; align-items: center; min-width: 0; padding: 8px; border: 0; border-radius: 12px; color: #fff; background: transparent; text-align: left; }
.listener-queue-play:not(:disabled):hover { background: rgba(255,255,255,.04); }
.listener-queue-art { width: 48px; height: 48px; display: grid; place-items: center; overflow: hidden; border-radius: 10px; background: #0d1d2d; }
.listener-queue-art img { width: 100%; height: 100%; object-fit: cover; }
.listener-queue-row-copy { display: grid; min-width: 0; gap: 3px; }
.listener-queue-row-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.listener-queue-row-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: rgba(215,232,246,.55); font-size: 10px; }
.listener-queue-row-copy em { min-height: 14px; color: #6ddcff; font-size: 10px; font-style: normal; font-weight: 800; }
.listener-queue-row-actions { display: flex; gap: 3px; padding-right: 5px; }
.listener-queue-row-actions button { width: 31px; height: 31px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 9px; color: rgba(236,247,255,.8); background: rgba(255,255,255,.045); font-weight: 900; }
.listener-queue-row-actions button:disabled { opacity: .25; }
.listener-tools-sheet > footer { display: flex; justify-content: flex-end; padding: 12px 16px; border-top: 1px solid rgba(162,205,239,.1); }
.listener-choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 16px; }
.listener-choice-grid > button { min-height: 48px; border: 1px solid rgba(151,203,242,.14); border-radius: 12px; color: #effaff; background: rgba(255,255,255,.035); font-weight: 850; }
.listener-choice-grid > button.active { color: #03111b; border-color: #76dcff; background: #76dcff; }
.listener-choice-grid > button:disabled { opacity: .35; }
.listener-choice-note { grid-column: 1 / -1; margin: 3px 0 0; color: rgba(214,232,247,.58); font-size: 12px; text-align: center; }
.listener-playlist-create { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 14px 16px; border-bottom: 1px solid rgba(162,205,239,.1); }
.listener-playlist-create input { min-width: 0; width: 100%; }
.listener-tools-empty { padding: 24px 16px; color: rgba(214,232,247,.58); text-align: center; }
.listener-tools-toast { position: fixed; z-index: 250; left: 50%; bottom: calc(88px + env(safe-area-inset-bottom)); transform: translateX(-50%); max-width: calc(100vw - 32px); padding: 11px 15px; border: 1px solid rgba(117,218,255,.25); border-radius: 999px; color: #eefcff; background: rgba(5,15,26,.94); box-shadow: 0 14px 40px rgba(0,0,0,.38); font-size: 12px; font-weight: 800; text-align: center; }
.listener-tools-toast[hidden] { display: none; }
body.listener-tools-open { overflow: hidden; }

.mobile-episode-more { align-self: center; width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; color: rgba(231,244,255,.75); background: transparent; font-weight: 900; letter-spacing: .08em; }
.mobile-episode-more:hover { background: rgba(255,255,255,.06); }
.mobile-episode-card.is-unavailable { opacity: .65; }
.mobile-episode-unavailable-icon { position: absolute; inset: auto 7px 7px auto; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: rgba(60,68,80,.88); font-weight: 900; }
.mobile-listening-chip.is-unavailable { color: #ffb5bf; background: rgba(149,48,65,.16); }

.mobile-personal-playlist-list { display: grid; gap: 8px; }
.mobile-personal-playlist-card { display: grid; grid-template-columns: 64px minmax(0, 1fr) 20px; gap: 13px; align-items: center; padding: 10px; border: 1px solid rgba(153,205,242,.1); border-radius: 15px; color: #fff; background: rgba(255,255,255,.025); }
.mobile-personal-playlist-art { width: 64px; height: 64px; overflow: hidden; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(145deg,#102e43,#11172b); }
.mobile-personal-playlist-art img { width: 100%; height: 100%; object-fit: cover; }
.mobile-personal-playlist-mark { font-size: 30px; font-weight: 900; }
.mobile-personal-playlist-copy { display: grid; min-width: 0; gap: 4px; }
.mobile-personal-playlist-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mobile-personal-playlist-copy span { color: rgba(214,232,247,.55); font-size: 11px; }
.mobile-personal-playlist-card > svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.mobile-playlist-create { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; margin-bottom: 12px; }
.mobile-playlist-create input { min-width: 0; }
.mobile-playlist-empty { display: grid; gap: 4px; padding: 16px; border: 1px dashed rgba(153,205,242,.12); border-radius: 14px; color: rgba(214,232,247,.58); }
.mobile-playlist-empty strong { color: #fff; }

.mobile-personal-playlist-hero { display: grid; grid-template-columns: 116px minmax(0,1fr); gap: 18px; align-items: end; margin: 16px 0 18px; }
.mobile-personal-playlist-hero-art { width: 116px; height: 116px; overflow: hidden; display: grid; place-items: center; border-radius: 20px; background: linear-gradient(145deg,#123148,#17182e); box-shadow: 0 18px 40px rgba(0,0,0,.28); }
.mobile-personal-playlist-hero-art img { width:100%;height:100%;object-fit:cover; }
.mobile-personal-playlist-hero-art span { font-size: 48px; font-weight: 900; }
.mobile-personal-playlist-hero > div:last-child { display:grid;gap:5px; }
.mobile-personal-playlist-hero h1 { margin:0; font-size:30px; line-height:1.02; letter-spacing:-.04em; }
.mobile-personal-playlist-hero span, .mobile-personal-playlist-hero p { color:rgba(214,232,247,.58); font-size:11px; }
.mobile-personal-playlist-actions { display:flex; align-items:center; gap:10px; margin-bottom:24px; }
.mobile-personal-playlist-play { display:inline-flex; align-items:center; gap:9px; }
.mobile-personal-playlist-play svg { width:20px; }
.mobile-personal-playlist-manage { position:relative; }
.mobile-personal-playlist-manage summary { cursor:pointer; color:#ddecf7; font-weight:800; }
.mobile-personal-playlist-manage-panel { position:absolute; z-index:15; right:0; top:calc(100% + 8px); width:min(300px,calc(100vw - 32px)); display:grid; gap:12px; padding:14px; border:1px solid rgba(153,205,242,.15); border-radius:15px; background:#081422; box-shadow:0 20px 55px rgba(0,0,0,.45); }
.mobile-personal-playlist-manage-panel form { display:grid;gap:8px; }
.personal-playlist-item { position:relative; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:4px; align-items:center; }
.personal-playlist-item .mobile-episode-card { min-width:0; }
.personal-playlist-item-controls { display:grid; gap:3px; }
.personal-playlist-item-controls form { margin:0; }
.personal-playlist-item-controls button { min-width:38px; height:31px; padding:0 7px; border:0; border-radius:9px; color:#ddecf7; background:rgba(255,255,255,.045); font-size:11px; }
.personal-playlist-item-controls button:disabled { opacity:.25; }
.personal-playlist-desktop .personal-playlist-page-header { align-items:flex-end; }
.personal-playlist-rename { display:flex;gap:8px; }
.personal-playlist-rename input { min-width:220px; }

@media (max-width: 760px) {
  .listener-tools-dialog { width: 100%; max-width: none; max-height: 88dvh; margin: auto 0 0; border-width: 1px 0 0; border-radius: 24px 24px 0 0; }
  .listener-tools-dialog::backdrop { background: rgba(0,0,0,.65); }
  .listener-tools-sheet > header { padding: 17px 18px; }
  .listener-choice-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .listener-tools-toast { bottom: calc(94px + env(safe-area-inset-bottom)); }
  .mobile-episode-card { grid-template-columns: auto minmax(0,1fr) 38px; }
  .mobile-playlist-create { grid-template-columns: 1fr; }
  .mobile-playlist-create .btn { width:100%; }
}

/* Persistent personal-playlist order management · 0.14.0 */
.personal-playlist-order-surface { margin-top: 24px; }
.personal-playlist-order-list { display: grid; padding-top: 8px; padding-bottom: 8px; }
.personal-playlist-order-row {
  display: grid;
  grid-template-columns: 32px 58px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.personal-playlist-order-row:last-child { border-bottom: 0; }
.personal-playlist-order-row.is-unavailable { opacity: .68; }
.personal-playlist-order-index { color: var(--ink-muted); font-size: 12px; font-weight: 850; text-align: center; }
.personal-playlist-order-art {
  width: 58px;
  height: 58px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--surface-soft);
}
.personal-playlist-order-art img { width: 100%; height: 100%; object-fit: cover; }
.personal-playlist-order-copy { min-width: 0; display: grid; gap: 4px; }
.personal-playlist-order-copy > strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.personal-playlist-order-copy > span { color: var(--ink-muted); font-size: 12px; }
.personal-playlist-order-states { display: flex; flex-wrap: wrap; gap: 6px 10px; color: var(--ink-soft); font-size: 11px; font-weight: 750; }
.personal-playlist-order-states .is-unavailable { color: var(--danger); }
.personal-playlist-order-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.personal-playlist-order-actions form { margin: 0; }

@media (max-width: 840px) {
  .personal-playlist-order-row { grid-template-columns: 26px 52px minmax(0, 1fr); }
  .personal-playlist-order-art { width: 52px; height: 52px; }
  .personal-playlist-order-actions { grid-column: 2 / -1; justify-content: flex-start; flex-wrap: wrap; }
}


/* Episode action-menu affordances · 0.14.1 */
.listener-action-list > button:not(:has(svg)) {
  justify-content: flex-start;
}
.listener-action-list > button:not(:has(svg)) > span {
  width: 100%;
}
