/* Right-side panel — shadcn Sheet (side) + Card patterns. Safe-area aware. */
.playlists-right-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  background: rgb(0 0 0 / 0.8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms cubic-bezier(0.4, 0, 0.2, 1);
}
.dark .playlists-right-drawer-overlay {
  background: rgb(24 24 27 / 0.88);
}
.playlists-right-drawer-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.playlists-right-drawer-panel {
  --prd-radius: var(--radius, 0.5rem);
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(22.5rem, 100vw);
  max-width: 100%;
  background: rgb(var(--card, 255 255 255));
  color: rgb(var(--card-foreground, var(--foreground, 10 10 10)));
  border-left: 1px solid rgb(var(--border, 228 228 231));
  box-shadow:
    -24px 0 48px -12px rgb(0 0 0 / 0.18),
    -8px 0 24px rgb(0 0 0 / 0.08);
  transform: translateX(100%);
  transition: transform 260ms cubic-bezier(0.32, 0.72, 0, 1);
  display: flex;
  flex-direction: column;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: max(env(safe-area-inset-right, 0px), 0px);
}
.dark .playlists-right-drawer-panel {
  background: rgb(var(--card, 24 24 27));
  color: rgb(var(--card-foreground, var(--foreground, 250 250 250)));
  border-left-color: rgb(var(--border, 39 39 42));
  box-shadow:
    -24px 0 56px -12px rgb(0 0 0 / 0.5),
    -8px 0 32px rgb(0 0 0 / 0.35);
}
.playlists-right-drawer-overlay.is-open .playlists-right-drawer-panel {
  transform: translateX(0);
}

.playlists-right-drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 1rem 1rem 0.875rem;
  border-bottom: 1px solid rgb(var(--border, 228 228 231));
  background: rgb(var(--card, 255 255 255));
}
.dark .playlists-right-drawer-header {
  border-bottom-color: rgb(var(--border, 39 39 42));
}

.playlists-right-drawer-header-start {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  flex: 1;
}

.playlists-right-drawer-poster {
  width: 2.5rem;
  height: 3.75rem;
  object-fit: cover;
  border-radius: 0.3rem;
  border: 1px solid #e4e4e7;
  background: #f4f4f5;
  flex-shrink: 0;
  display: block;
}
/* Share / catalog headers: match common media aspect ratios */
.playlists-right-drawer-poster.playlists-right-drawer-poster--square {
  width: 3rem;
  height: 3rem;
}
.playlists-right-drawer-poster.playlists-right-drawer-poster--wide {
  width: 4.25rem;
  height: 2.4rem;
}
.playlists-right-drawer-poster[hidden] {
  display: none !important;
}

.playlists-right-drawer-header-text {
  min-width: 0;
  flex: 1;
}

.playlists-right-drawer-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.25;
  min-width: 0;
  word-wrap: break-word;
}

.playlists-right-drawer-year {
  margin-top: 0.2rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #64748b;
}
.dark .playlists-right-drawer-poster {
  border-color: #3f3f46;
  background: #18181b;
}
.dark .playlists-right-drawer-year {
  color: #a1a1aa;
}

.dark .playlists-right-drawer-panel .playlists-drawer-share-field {
  border-color: #3f3f46;
  background: #18181b;
  color: #fafafa;
}

.playlists-right-drawer-close {
  flex-shrink: 0;
  border-radius: 0.5rem;
  border: 1px solid #e4e4e7;
  background: transparent;
  color: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  cursor: pointer;
}
.playlists-right-drawer-close:hover {
  opacity: 0.85;
}

.dark .playlists-right-drawer-close {
  border-color: #3f3f46;
}

.playlists-right-drawer-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0.75rem 1rem 1rem;
  background: rgb(var(--background, 250 250 250) / 0.45);
}
.dark .playlists-right-drawer-body {
  background: rgb(9 9 11 / 0.35);
}

.playlists-right-drawer-section-title {
  margin: 0.75rem 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}
.dark .playlists-right-drawer-section-title {
  color: #a1a1aa;
}
.playlists-right-drawer-section-title:first-child {
  margin-top: 0;
}

.playlists-right-drawer-book-overview p {
  margin: 0.5rem 0;
}
.playlists-right-drawer-book-overview p:first-child {
  margin-top: 0;
}
.playlists-right-drawer-book-overview p:last-child {
  margin-bottom: 0;
}
.playlists-right-drawer-book-overview ul,
.playlists-right-drawer-book-overview ol {
  margin: 0.5rem 0 0.5rem 1.25rem;
  padding: 0;
}
.playlists-right-drawer-book-overview blockquote {
  margin: 0.5rem 0;
  padding-left: 0.75rem;
  border-left: 2px solid #d4d4d8;
}
.dark .playlists-right-drawer-book-overview blockquote {
  border-left-color: #52525b;
}

.playlists-right-drawer-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0;
  border-bottom: 1px dashed #e4e4e7;
}
a.playlists-right-drawer-row {
  text-decoration: none;
  color: inherit;
  border-radius: 0.4rem;
  margin: 0 -0.25rem;
  padding-left: 0.25rem;
  padding-right: 0.25rem;
  cursor: pointer;
}
a.playlists-right-drawer-row:hover {
  background: rgba(0, 0, 0, 0.05);
}
.dark a.playlists-right-drawer-row:hover {
  background: rgba(255, 255, 255, 0.06);
}
.playlists-right-drawer-row:last-child {
  border-bottom: none;
}
a.playlists-right-drawer-row--podcast {
  min-height: 2.75rem;
  box-sizing: border-box;
  align-items: center;
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
}
.playlists-right-drawer-subtitle {
  margin-top: 0.12rem;
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: normal;
}
.dark .playlists-right-drawer-subtitle {
  color: #a1a1aa;
}
.playlists-right-drawer-logo--svg {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
}
.playlists-right-drawer-logo--svg svg {
  width: 1.2rem;
  height: 1.2rem;
  flex-shrink: 0;
  display: block;
}
.dark .playlists-right-drawer-logo--svg {
  color: #a1a1aa;
}

.playlists-right-drawer-logo {
  width: 2rem;
  height: 2rem;
  border-radius: 0.35rem;
  object-fit: cover;
  background: #f4f4f5;
  flex-shrink: 0;
}

.playlists-right-drawer-meta {
  flex: 1;
  min-width: 0;
}

.playlists-right-drawer-service {
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.playlists-right-drawer-price {
  margin-top: 0.15rem;
  font-size: 0.72rem;
  color: #64748b;
}
.dark .playlists-right-drawer-price {
  color: #a1a1aa;
}

.playlists-right-drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex-shrink: 0;
}

.playlists-right-drawer-linkbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  border: 1px solid #e4e4e7;
  background: #f4f4f5;
  color: inherit;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.25rem 0.45rem;
  cursor: pointer;
  white-space: nowrap;
}
.playlists-right-drawer-linkbtn:hover {
  opacity: 0.9;
}

.dark .playlists-right-drawer-linkbtn {
  border-color: #3f3f46;
  background: #27272a;
}

.playlists-right-drawer-foot {
  padding: 0.65rem 1rem 0.85rem;
  border-top: 1px solid rgb(var(--border, 228 228 231));
  font-size: 0.65rem;
  line-height: 1.35;
  color: rgb(var(--muted-foreground, 100 116 139));
}
.dark .playlists-right-drawer-foot {
  border-top-color: rgb(var(--border, 39 39 42));
  color: rgb(var(--muted-foreground, 161 161 170));
}
.playlists-right-drawer-foot a {
  color: inherit;
  text-decoration: underline;
  font-weight: 700;
}

/* ── Podcast mode additions ─────────────────────────────────────────────── */
.playlists-right-drawer-podcast-versions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.playlists-right-drawer-podcast-version {
  border: 1px solid #e4e4e7;
  border-radius: 0.75rem;
  padding: 0.65rem 0.75rem;
  background: rgba(244, 244, 245, 0.6);
}
.dark .playlists-right-drawer-podcast-version {
  border-color: #3f3f46;
  background: rgba(39, 39, 42, 0.55);
}
.playlists-right-drawer-podcast-version.is-selected {
  border-color: rgba(59, 130, 246, 0.65);
}
.dark .playlists-right-drawer-podcast-version.is-selected {
  border-color: rgba(59, 130, 246, 0.6);
}

.playlists-right-drawer-podcast-version-top {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.playlists-right-drawer-podcast-version-title {
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.15;
}
.playlists-right-drawer-podcast-version-meta {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 700;
}
.dark .playlists-right-drawer-podcast-version-meta {
  color: #a1a1aa;
}
.playlists-right-drawer-podcast-version-desc {
  margin-top: 0.4rem;
  font-size: 0.78rem;
  line-height: 1.35;
  color: #475569;
}
.dark .playlists-right-drawer-podcast-version-desc {
  color: #cbd5e1;
}
.playlists-right-drawer-podcast-version-actions {
  margin-top: 0.55rem;
}
.playlists-right-drawer-podcast-use-btn {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid #e4e4e7;
  background: #0a0a0a;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 0.6rem 0.7rem;
  cursor: pointer;
}
.dark .playlists-right-drawer-podcast-use-btn {
  border-color: #3f3f46;
  background: #fafafa;
  color: #0a0a0a;
}
.playlists-right-drawer-podcast-use-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

/* Podcast rich metadata (media_items.attributes) */
.playlists-right-drawer-podcast-meta-rich {
  margin-bottom: 0.85rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed #e4e4e7;
}
.dark .playlists-right-drawer-podcast-meta-rich {
  border-bottom-color: #3f3f46;
}
.playlists-right-drawer-podcast-host-line {
  font-size: 0.78rem;
  line-height: 1.45;
  color: #475569;
  margin-bottom: 0.5rem;
}
.dark .playlists-right-drawer-podcast-host-line {
  color: #cbd5e1;
}
.playlists-right-drawer-podcast-host-line a {
  color: #2563eb;
  font-weight: 700;
  text-decoration: underline;
}
.dark .playlists-right-drawer-podcast-host-line a {
  color: #93c5fd;
}
.playlists-right-drawer-podcast-host-label {
  font-weight: 800;
  color: #64748b;
}
.dark .playlists-right-drawer-podcast-host-label {
  color: #a1a1aa;
}
.playlists-right-drawer-podcast-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.55rem;
}
.playlists-right-drawer-podcast-pill {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  border: 1px solid #e4e4e7;
  background: rgba(244, 244, 245, 0.9);
  color: #334155;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dark .playlists-right-drawer-podcast-pill {
  border-color: #3f3f46;
  background: rgba(39, 39, 42, 0.85);
  color: #e2e8f0;
}
.playlists-right-drawer-podcast-pill--more {
  opacity: 0.85;
  font-weight: 700;
}
.playlists-right-drawer-podcast-latest {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
  padding: 0.5rem 0.6rem;
  border-radius: 0.65rem;
  border: 1px solid #e4e4e7;
  background: rgba(244, 244, 245, 0.5);
}
.dark .playlists-right-drawer-podcast-latest {
  border-color: #3f3f46;
  background: rgba(24, 24, 27, 0.45);
}
.playlists-right-drawer-podcast-latest-main {
  min-width: 0;
  flex: 1;
}
.playlists-right-drawer-podcast-latest-title {
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.25;
  color: inherit;
}
.playlists-right-drawer-podcast-latest-when {
  margin-top: 0.15rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: #64748b;
}
.dark .playlists-right-drawer-podcast-latest-when {
  color: #a1a1aa;
}
.playlists-right-drawer-podcast-latest-play {
  flex-shrink: 0;
  border-radius: 0.55rem;
  border: 2px solid #0a0a0a;
  background: #0a0a0a;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 900;
  padding: 0.4rem 0.65rem;
  cursor: pointer;
}
.dark .playlists-right-drawer-podcast-latest-play {
  border-color: #fafafa;
  background: #fafafa;
  color: #0a0a0a;
}
.playlists-right-drawer-podcast-meta-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.65rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: #64748b;
}
.dark .playlists-right-drawer-podcast-meta-strip {
  color: #a1a1aa;
}
.playlists-right-drawer-podcast-meta-epcount {
  color: #475569;
}
.dark .playlists-right-drawer-podcast-meta-epcount {
  color: #cbd5e1;
}
.playlists-right-drawer-podcast-badge {
  display: inline-block;
  padding: 0.12rem 0.4rem;
  border-radius: 0.35rem;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.playlists-right-drawer-podcast-badge--explicit {
  border: 1px solid rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}
.dark .playlists-right-drawer-podcast-badge--explicit {
  color: #fca5a5;
  border-color: rgba(248, 113, 113, 0.5);
}
.playlists-right-drawer-podcast-meta-pop {
  font-weight: 800;
}

/* Native <input type="checkbox"> — match shadcn-style + feed toggles: zinc “selected” in light, */
/* indigo brand accent in dark (same family as .app-tab-create / common primary actions). */
input[type="checkbox"].pl-native-checkbox {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  accent-color: #18181b !important; /* zinc-900 — like active .media-view-toggle on light UIs */
}
html.dark input[type="checkbox"].pl-native-checkbox,
.dark input[type="checkbox"].pl-native-checkbox {
  accent-color: #6366f1 !important; /* indigo-500 — readable mark on dark; aligns with app accent */
}

/* Movie “List it” drawer — list picker, new-list form, numbered rows + reorder */
.playlists-drawer-movie-list-shell {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 0;
}
.playlists-drawer-movie-list-status {
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.4;
  margin: 0;
  color: #64748b;
}
.playlists-drawer-movie-list-status.is-success {
  font-weight: 600;
  color: rgb(22 163 74);
}
.dark .playlists-drawer-movie-list-status.is-success {
  color: rgb(74 222 128);
}
.playlists-drawer-movie-list-status.is-error {
  color: #ef4444;
}
.playlists-drawer-movie-list-intro {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #64748b;
}
.dark .playlists-drawer-movie-list-intro {
  color: #a1a1aa;
}
.playlists-drawer-movie-list-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.playlists-drawer-movie-list-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #52525b;
}
.dark .playlists-drawer-movie-list-label {
  color: #d4d4d8;
}
.playlists-drawer-movie-list-select,
.playlists-drawer-movie-list-input,
.playlists-drawer-movie-list-textarea {
  width: 100%;
  box-sizing: border-box;
  border-radius: 0.5rem;
  border: 1px solid #e4e4e7;
  background: #fafafa;
  color: #0a0a0a;
  font-size: 0.85rem;
  padding: 0.45rem 0.55rem;
}
.dark .playlists-drawer-movie-list-select,
.dark .playlists-drawer-movie-list-input,
.dark .playlists-drawer-movie-list-textarea {
  border-color: #3f3f46;
  background: #27272a;
  color: #fafafa;
}
.playlists-drawer-movie-list-input:disabled {
  opacity: 0.85;
  cursor: not-allowed;
}
.playlists-drawer-movie-list-textarea {
  resize: vertical;
  min-height: 4rem;
}
.playlists-drawer-movie-list-genre-other {
  margin-top: 0.35rem;
}
.playlists-drawer-movie-list-btn-primary {
  border: none;
  border-radius: 0.5rem;
  padding: 0.55rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  background: #18181b;
  color: #fafafa;
}
.dark .playlists-drawer-movie-list-btn-primary {
  background: #fafafa;
  color: #18181b;
}
.playlists-drawer-movie-list-btn-secondary {
  border-radius: 0.5rem;
  padding: 0.5rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid #e4e4e7;
  background: transparent;
  color: #334155;
}
.dark .playlists-drawer-movie-list-btn-secondary {
  border-color: #52525b;
  color: #e4e4e4;
}
.playlists-drawer-movie-list-panel-foot {
  margin: 0;
  font-size: 0.72rem;
  color: #64748b;
}
.dark .playlists-drawer-movie-list-panel-foot {
  color: #a1a1aa;
}

.playlists-drawer-movie-list-new {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.65rem 0 0;
  border-top: 1px solid #e4e4e7;
}
.dark .playlists-drawer-movie-list-new {
  border-top-color: #3f3f46;
}
.playlists-drawer-movie-list-details {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.playlists-drawer-movie-list-existing {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 0;
  flex: 1 1 auto;
  padding: 0.65rem 0 0;
  border-top: 1px solid #e4e4e7;
}
.dark .playlists-drawer-movie-list-existing {
  border-top-color: #3f3f46;
}
.playlists-drawer-movie-list-selected-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}
.playlists-drawer-movie-list-selected-title {
  font-weight: 800;
  font-size: 0.95rem;
}
.playlists-drawer-movie-list-selected-count {
  font-size: 0.78rem;
  font-weight: 700;
  color: #71717a;
}
.playlists-drawer-movie-list-already {
  margin: 0;
  padding: 0.45rem 0.55rem;
  border-radius: 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(34, 197, 94, 0.12);
  color: #166534;
  border: 1px solid rgba(34, 197, 94, 0.35);
}
.dark .playlists-drawer-movie-list-already {
  background: rgba(34, 197, 94, 0.14);
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.35);
}

.playlists-drawer-movie-list-scroll {
  flex: 1 1 auto;
  min-height: 6rem;
  max-height: min(52vh, 28rem);
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 0.45rem;
  border: 1px solid #e4e4e7;
  background: rgba(244, 244, 245, 0.35);
}
.dark .playlists-drawer-movie-list-scroll {
  border-color: #3f3f46;
  background: rgba(24, 24, 27, 0.6);
}

.playlists-drawer-movie-list-item-row {
  display: grid;
  grid-template-columns: 2.85rem 2.65rem minmax(0, 1fr) auto;
  gap: 0.45rem 0.55rem;
  align-items: center;
  padding: 0.55rem 0.5rem;
  border-bottom: 1px solid rgba(228, 228, 231, 0.85);
}
.dark .playlists-drawer-movie-list-item-row {
  border-bottom-color: rgba(63, 63, 70, 0.85);
}
.playlists-drawer-movie-list-item-row:last-child {
  border-bottom: none;
}
.playlists-drawer-movie-list-item-row--interactive {
  cursor: pointer;
}
.playlists-drawer-movie-list-item-row--interactive:hover {
  background: rgba(0, 0, 0, 0.035);
}
.dark .playlists-drawer-movie-list-item-row--interactive:hover {
  background: rgba(255, 255, 255, 0.05);
}

.playlists-drawer-movie-list-num {
  font-size: clamp(1.85rem, 6vw, 2.65rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: inherit;
  justify-self: start;
}

.playlists-drawer-movie-list-thumb {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 0.35rem;
  border: 1px solid #e4e4e7;
  background: #e4e4e7;
  display: block;
}
.dark .playlists-drawer-movie-list-thumb {
  border-color: #52525b;
  background: #3f3f46;
}
.playlists-drawer-movie-list-thumb[hidden] {
  display: none !important;
}

.playlists-drawer-movie-list-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.playlists-drawer-movie-list-item-title {
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.playlists-drawer-movie-list-item-year {
  font-size: 0.72rem;
  font-weight: 600;
  color: #71717a;
}

.playlists-drawer-movie-list-ctrls {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-self: center;
}
.playlists-drawer-movie-list-ctrls-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.playlists-drawer-movie-list-existing--compact-controls .playlists-drawer-movie-list-ctrls-row {
  flex-direction: row;
  gap: 0.35rem;
}
.playlists-drawer-movie-list-remove-btn {
  border-radius: 0.35rem;
  border: 1px solid #e4e4e7;
  background: #fff;
  color: #b91c1c;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.35rem 0.45rem;
  cursor: pointer;
  box-sizing: border-box;
}
.dark .playlists-drawer-movie-list-remove-btn {
  border-color: #52525b;
  background: #27272a;
  color: #fca5a5;
}
.playlists-drawer-movie-list-remove-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.playlists-drawer-movie-list-remove-glyph {
  display: none;
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1;
}
.playlists-drawer-movie-list-existing--compact-controls .playlists-drawer-movie-list-remove-label {
  display: none;
}
.playlists-drawer-movie-list-existing--compact-controls .playlists-drawer-movie-list-remove-glyph {
  display: inline;
}
.playlists-drawer-movie-list-existing--compact-controls .playlists-drawer-movie-list-remove-btn {
  width: 100%;
  min-height: 2.25rem;
}
.playlists-drawer-movie-list-icon-btn {
  width: 1.85rem;
  height: 1.85rem;
  padding: 0;
  border-radius: 0.35rem;
  border: 1px solid #e4e4e7;
  background: #fff;
  color: #334155;
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
}
.dark .playlists-drawer-movie-list-icon-btn {
  border-color: #52525b;
  background: #27272a;
  color: #e4e4e4;
}
.playlists-drawer-movie-list-icon-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.playlists-drawer-movie-list-save-order {
  align-self: stretch;
  margin-top: 0.25rem;
}
.playlists-drawer-movie-list-foot-hint {
  margin: 0;
  font-size: 0.7rem;
  line-height: 1.4;
  color: #71717a;
}
.dark .playlists-drawer-movie-list-foot-hint {
  color: #a1a1aa;
}

/* ── shadcn-style primitives (Watch / List drawer body) ─────────────────── */

.prd-body-text {
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0;
}
.prd-text-muted {
  color: rgb(var(--muted-foreground, 100 116 139));
}
.prd-text-destructive {
  color: rgb(var(--destructive, 239 68 68));
}

/* Card */
.prd-card {
  border-radius: calc(var(--radius, 0.5rem) - 2px);
  border: 1px solid rgb(var(--border, 228 228 231));
  background: rgb(var(--card, 255 255 255));
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  margin-bottom: 0.75rem;
}
.dark .prd-card {
  border-color: rgb(var(--border, 39 39 42));
  background: rgb(var(--card, 24 24 27));
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.35);
}
.prd-card--compact {
  padding: 0.65rem 0.75rem;
  margin-bottom: 0.65rem;
}
.prd-card--muted {
  padding: 0.85rem 1rem;
}
.prd-card-empty {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: rgb(var(--muted-foreground, 100 116 139));
}
.prd-card-title {
  margin: 0;
  padding: 0.65rem 0.75rem 0.35rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgb(var(--muted-foreground, 100 116 139));
}
.prd-separator {
  height: 1px;
  margin: 0 0.75rem;
  background: rgb(var(--border, 228 228 231));
}
.dark .prd-separator {
  background: rgb(var(--border, 39 39 42));
}
.prd-card-content {
  padding: 0 0.25rem 0.65rem;
}
.prd-stream-stack {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.5rem 0.65rem 0.75rem !important;
}

/* Streaming row as card row */
.prd-stream-stack .prd-stream-card.playlists-right-drawer-row {
  border: 1px solid rgb(var(--border, 228 228 231));
  border-bottom: 1px solid rgb(var(--border, 228 228 231)) !important;
  border-radius: calc(var(--radius, 0.5rem) - 2px);
  padding: 0.6rem 0.65rem;
  margin: 0;
  background: rgb(var(--background, 250 250 250));
  transition:
    background-color 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease;
}
.dark .prd-stream-stack .prd-stream-card.playlists-right-drawer-row {
  border-color: rgb(var(--border, 39 39 42));
  background: rgb(var(--background, 16 16 18));
}
a.prd-stream-card.playlists-right-drawer-row--link:hover {
  background: rgb(var(--accent, 244 244 245));
  box-shadow: 0 2px 8px -2px rgb(0 0 0 / 0.08);
}
.dark a.prd-stream-card.playlists-right-drawer-row--link:hover {
  background: rgb(var(--accent, 39 39 42));
  box-shadow: 0 2px 12px -2px rgb(0 0 0 / 0.4);
}

/* Buttons */
.prd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.8125rem;
  border-radius: calc(var(--radius, 0.5rem) - 2px);
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    opacity 0.15s ease,
    transform 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}
.prd-btn:disabled {
  opacity: 0.5;
  pointer-events: none;
}
.prd-btn-sm {
  min-height: 2rem;
  padding: 0 0.65rem;
  font-size: 0.75rem;
}
.prd-btn-lg {
  min-height: 2.75rem;
  padding: 0 1.15rem;
  font-size: 0.875rem;
}
.prd-btn-block {
  width: 100%;
}
.prd-radio-listen-live-btn {
  text-transform: none;
  letter-spacing: 0.01em;
}
.prd-radio-listen-live-btn__icon {
  display: inline-flex;
  flex-shrink: 0;
}
.prd-btn-default {
  background: rgb(var(--primary, 24 24 27));
  color: rgb(var(--primary-foreground, 250 250 250));
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}
.prd-btn-default:hover:not(:disabled) {
  opacity: 0.92;
}
.prd-btn-default:active:not(:disabled) {
  transform: scale(0.98);
}
.dark .prd-btn-default {
  background: rgb(var(--primary, 250 250 250));
  color: rgb(var(--primary-foreground, 24 24 27));
}
.prd-btn-secondary {
  background: rgb(var(--secondary, 244 244 245));
  color: rgb(var(--secondary-foreground, 24 24 27));
  border-color: rgb(var(--border, 228 228 231));
}
.dark .prd-btn-secondary {
  background: rgb(var(--secondary, 39 39 42));
  color: rgb(var(--secondary-foreground, 250 250 250));
  border-color: rgb(var(--border, 39 39 42));
}
.prd-btn-secondary:hover:not(:disabled) {
  background: rgb(var(--accent, 244 244 245));
}
.dark .prd-btn-secondary:hover:not(:disabled) {
  background: rgb(var(--accent, 63 63 70));
}
.prd-btn-outline {
  background: rgb(var(--background, 255 255 255));
  color: rgb(var(--foreground, 10 10 10));
  border-color: rgb(var(--border, 228 228 231));
}
.dark .prd-btn-outline {
  background: rgb(var(--background, 16 16 18));
  color: rgb(var(--foreground, 250 250 250));
  border-color: rgb(var(--border, 39 39 42));
}
.prd-btn-outline:hover:not(:disabled) {
  background: rgb(var(--accent, 244 244 245));
}
.dark .prd-btn-outline:hover:not(:disabled) {
  background: rgb(var(--accent, 39 39 42));
}
.prd-btn-ghost {
  background: transparent;
  color: rgb(var(--foreground, 10 10 10));
  border-color: transparent;
}
.dark .prd-btn-ghost {
  color: rgb(var(--foreground, 250 250 250));
}
.prd-btn-ghost:hover:not(:disabled) {
  background: rgb(var(--accent, 244 244 245));
}
.dark .prd-btn-ghost:hover:not(:disabled) {
  background: rgb(var(--accent, 39 39 42));
}

.playlists-right-drawer-close.prd-btn-ghost {
  border: 1px solid rgb(var(--border, 228 228 231));
  font-weight: 600;
}
.dark .playlists-right-drawer-close.prd-btn-ghost {
  border-color: rgb(var(--border, 39 39 42));
}

/* Input (list search) */
.prd-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  font-size: 0.875rem;
  line-height: 1.25;
  border-radius: calc(var(--radius, 0.5rem) - 2px);
  border: 1px solid rgb(var(--border, 228 228 231));
  background: rgb(var(--background, 250 250 250));
  color: rgb(var(--foreground, 10 10 10));
  padding: 0.5rem 0.65rem;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}
.dark .prd-input {
  border-color: rgb(var(--border, 39 39 42));
  background: rgb(var(--background, 16 16 18));
  color: rgb(var(--foreground, 250 250 250));
}
.prd-input:focus {
  outline: none;
  border-color: rgb(var(--ring, 24 24 27));
  box-shadow: 0 0 0 2px rgb(var(--ring, 24 24 27) / 0.2);
}
.dark .prd-input:focus {
  border-color: rgb(var(--ring, 212 212 216));
  box-shadow: 0 0 0 2px rgb(212 212 216 / 0.25);
}

/* Command list (List it) */
.prd-list-command {
  margin-bottom: 0.85rem;
}
.prd-list-command-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgb(var(--muted-foreground, 100 116 139));
  margin-bottom: 0.4rem;
}
.prd-list-command-options {
  margin-top: 0.5rem;
  max-height: 12rem;
  overflow-y: auto;
  border-radius: calc(var(--radius, 0.5rem) - 2px);
  border: 1px solid rgb(var(--border, 228 228 231));
  background: rgb(var(--background, 250 250 250));
}
.dark .prd-list-command-options {
  border-color: rgb(var(--border, 39 39 42));
  background: rgb(var(--background, 16 16 18));
}
.prd-list-command-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.55rem 0.65rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  border-bottom: 1px solid rgb(var(--border, 228 228 231) / 0.65);
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background 0.12s ease;
}
.dark .prd-list-command-option {
  border-bottom-color: rgb(39 39 42 / 0.8);
}
.prd-list-command-option:last-child {
  border-bottom: none;
}
.prd-list-command-option:hover,
.prd-list-command-option:focus-visible {
  background: rgb(var(--accent, 244 244 245));
}
.dark .prd-list-command-option:hover,
.dark .prd-list-command-option:focus-visible {
  background: rgb(var(--accent, 39 39 42));
}
.prd-list-command-option[aria-selected='true'] {
  background: rgb(var(--accent, 244 244 245));
  box-shadow: inset 3px 0 0 rgb(var(--primary, 24 24 27));
}
.dark .prd-list-command-option[aria-selected='true'] {
  background: rgb(var(--accent, 39 39 42));
  box-shadow: inset 3px 0 0 rgb(var(--primary, 250 250 250));
}
.prd-list-command-new {
  margin-top: 0.55rem;
  padding: 0.65rem;
  border-radius: calc(var(--radius, 0.5rem) - 2px);
  border: 2px dashed rgb(var(--border, 228 228 231));
  background: transparent;
}
.dark .prd-list-command-new {
  border-color: rgb(var(--border, 52 52 58));
}
.prd-list-command-new button {
  width: 100%;
  text-align: center;
  font-weight: 700;
  font-size: 0.8125rem;
  padding: 0.35rem;
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

/* Multi-select add-to-list */
.prd-add-to-list-scroll {
  max-height: min(42vh, 22rem);
  overflow-y: auto;
  margin: 0.5rem 0 0.75rem;
  padding-right: 0.15rem;
}
.prd-add-to-list-section {
  margin-bottom: 0.65rem;
}
.prd-add-to-list-section:last-child {
  margin-bottom: 0;
}
.prd-add-to-list-rows {
  border-radius: calc(var(--radius, 0.5rem) - 2px);
  border: 1px solid rgb(var(--border, 228 228 231));
  background: rgb(var(--background, 250 250 250));
  overflow: hidden;
}
.dark .prd-add-to-list-rows {
  border-color: rgb(var(--border, 39 39 42));
  background: rgb(var(--background, 16 16 18));
}
.prd-add-to-list-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid rgb(var(--border, 228 228 231) / 0.65);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
}
.dark .prd-add-to-list-row {
  border-bottom-color: rgb(39 39 42 / 0.8);
}
.prd-add-to-list-row:last-child {
  border-bottom: none;
}
.prd-add-to-list-row:hover:not(.is-disabled) {
  background: rgb(var(--accent, 244 244 245));
}
.dark .prd-add-to-list-row:hover:not(.is-disabled) {
  background: rgb(var(--accent, 39 39 42));
}
.prd-add-to-list-row.is-disabled {
  opacity: 0.72;
  cursor: default;
}
.prd-add-to-list-row input[type='checkbox'] {
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
  accent-color: rgb(var(--primary, 24 24 27));
}
.prd-add-to-list-row-label {
  flex: 1;
  min-width: 0;
}
.prd-add-to-list-row-hint {
  font-size: 0.6875rem;
  font-weight: 600;
  color: rgb(var(--muted-foreground, 100 116 139));
  flex-shrink: 0;
}
.prd-add-to-list-row-hint--on-list {
  color: rgb(var(--muted-foreground, 100 116 139));
}
.prd-add-to-list-row-hint--just-added {
  color: rgb(22 163 74);
}
.dark .prd-add-to-list-row-hint--just-added {
  color: rgb(74 222 128);
}
.prd-add-to-list-save {
  width: 100%;
  margin-top: 0.35rem;
}

.prd-add-to-list-placement {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgb(var(--border));
}
.prd-add-to-list-placement-hint {
  margin: 0.25rem 0 0.5rem;
  font-size: 0.75rem;
  line-height: 1.35;
  color: rgb(var(--muted-foreground));
}
.prd-add-to-list-placement-rows {
  border: 1px solid rgb(var(--border));
  border-radius: 0.5rem;
  padding: 0.25rem 0.35rem;
  background: rgb(var(--card));
  max-height: min(40vh, 280px);
  overflow-y: auto;
}

.prd-atl-placement-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  padding: 0.4rem 0.15rem;
  border-bottom: 1px solid rgb(var(--border) / 0.65);
}
.prd-atl-placement-row:last-child {
  border-bottom: none;
}
.prd-atl-placement-row.is-pending,
.prd-atl-placement-row.is-just-added {
  background: rgb(var(--accent) / 0.35);
  border-radius: 0.375rem;
  border-bottom-color: transparent;
}

.prd-atl-placement-lead {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.125rem;
  flex-shrink: 0;
  width: 1.5rem;
  padding-top: 0.1rem;
}

.prd-atl-placement-pos {
  font-size: 0.9375rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -0.03em;
  color: rgb(var(--foreground));
  text-align: center;
}

.prd-atl-placement-grip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.prd-atl-placement-grip .pls-drag-handle {
  width: 1.375rem;
  height: 1.25rem;
  min-width: 1.375rem;
  min-height: 1.25rem;
  border-radius: calc(var(--radius, 0.5rem) - 4px);
  background: transparent;
}
.prd-atl-placement-grip .pls-drag-handle:hover,
.prd-atl-placement-grip .pls-drag-handle--grabbing,
.prd-atl-placement-grip .pls-drag-handle[aria-grabbed='true'] {
  background: rgb(var(--muted) / 0.4);
}
.prd-atl-placement-grip .pls-drag-handle__icon {
  width: 0.8125rem;
  height: 0.8125rem;
  opacity: 0.72;
}
.prd-atl-placement-grip .pls-drag-handle:hover .pls-drag-handle__icon,
.prd-atl-placement-grip .pls-drag-handle--grabbing .pls-drag-handle__icon,
.prd-atl-placement-grip .pls-drag-handle[aria-grabbed='true'] .pls-drag-handle__icon {
  opacity: 1;
}

.prd-atl-placement-thumb {
  position: relative;
  flex-shrink: 0;
  width: 2.25rem;
  aspect-ratio: 2 / 3;
  border-radius: calc(var(--radius, 0.5rem) - 4px);
  overflow: hidden;
  background: rgb(var(--muted));
  border: 1px solid rgb(var(--border));
}
.prd-atl-placement-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prd-atl-placement-meta {
  min-width: 0;
  flex: 1;
}

.prd-atl-placement-title {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.25;
  color: rgb(var(--foreground));
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.prd-atl-placement-year {
  margin-top: 0.1rem;
  font-size: 0.6875rem;
  line-height: 1.2;
  color: rgb(var(--muted-foreground));
}

.prd-atl-placement-badge {
  display: inline-block;
  margin-top: 0.15rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgb(var(--primary));
}
.prd-add-to-list-edit-link {
  color: rgb(var(--primary));
  text-decoration: underline;
  text-underline-offset: 2px;
}
.prd-add-to-list-edit-link:hover {
  opacity: 0.85;
}

/* TV episode picker inside card */
.playlists-right-drawer-tv-details.prd-card {
  padding: 0;
  overflow: hidden;
}
.playlists-right-drawer-tv-summary {
  font-weight: 600;
  font-size: 0.8125rem;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  list-style: none;
}
.playlists-right-drawer-tv-summary::-webkit-details-marker {
  display: none;
}
.playlists-right-drawer-tv-row {
  padding: 0 0.75rem 0.5rem;
  gap: 0.5rem;
}
.playlists-right-drawer-tv-select {
  flex: 1;
  min-width: 0;
  border-radius: calc(var(--radius, 0.5rem) - 2px);
  border: 1px solid rgb(var(--border, 228 228 231));
  background: rgb(var(--background, 250 250 250));
  color: inherit;
  font-size: 0.8125rem;
  padding: 0.35rem 0.5rem;
}
.dark .playlists-right-drawer-tv-select {
  border-color: rgb(var(--border, 39 39 42));
  background: rgb(var(--background, 16 16 18));
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Movie list primary buttons: prefer shadcn tokens when paired with .prd-btn */
.playlists-drawer-movie-list-btn-primary.prd-btn {
  width: 100%;
  box-sizing: border-box;
}
.playlists-drawer-movie-list-btn-primary.prd-btn-default {
  background: rgb(var(--primary, 24 24 27)) !important;
  color: rgb(var(--primary-foreground, 250 250 250)) !important;
}
.dark .playlists-drawer-movie-list-btn-primary.prd-btn-default {
  background: rgb(var(--primary, 250 250 250)) !important;
  color: rgb(var(--primary-foreground, 24 24 27)) !important;
}
.playlists-drawer-movie-list-btn-primary.prd-btn-secondary {
  background: rgb(var(--secondary, 244 244 245)) !important;
  color: rgb(var(--secondary-foreground, 24 24 27)) !important;
  border: 1px solid rgb(var(--border, 228 228 231)) !important;
}
.dark .playlists-drawer-movie-list-btn-primary.prd-btn-secondary {
  background: rgb(var(--secondary, 39 39 42)) !important;
  color: rgb(var(--secondary-foreground, 250 250 250)) !important;
  border-color: rgb(var(--border, 39 39 42)) !important;
}

/* ── Add to List: signed-out hybrid empty state (drawer stays open) ───────── */

.prd-add-to-list-signed-out {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 0 0 0.35rem;
}
.prd-add-to-list-signed-out-subject {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.15rem;
}
.prd-add-to-list-signed-out-subject-poster {
  width: 3rem;
  height: 3rem;
  flex: 0 0 auto;
  border-radius: calc(var(--radius) - 2px);
  object-fit: cover;
  background: rgb(var(--muted, 244 244 245));
}
.prd-add-to-list-signed-out-subject-title {
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.3;
  color: rgb(var(--foreground, 24 24 27));
}
.dark .prd-add-to-list-signed-out-subject-title {
  color: rgb(var(--foreground, 250 250 250));
}
.prd-add-to-list-signed-out-card {
  margin-bottom: 0;
}
.prd-add-to-list-signed-out-sep {
  margin: 0.65rem 0;
}
.prd-add-to-list-signed-out-lead {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: rgb(var(--foreground, 24 24 27));
}
.prd-add-to-list-signed-out-lead em {
  font-style: italic;
  font-weight: 600;
}
.dark .prd-add-to-list-signed-out-lead {
  color: rgb(var(--foreground, 250 250 250));
}
.prd-add-to-list-signed-out-benefits {
  margin: 0;
  padding: 0 0 0 1.1rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: rgb(var(--muted-foreground, 100 116 139));
  list-style: disc;
}
.prd-add-to-list-signed-out-benefits li + li {
  margin-top: 0.35rem;
}
.prd-add-to-list-signed-out-primary {
  margin-top: 0.15rem;
  min-height: 2.75rem;
  font-size: 0.875rem;
}
.prd-add-to-list-signed-out-continue {
  display: block;
  width: 100%;
  margin: 0 auto;
  padding: 0.35rem 0.5rem;
  border: none;
  background: transparent;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgb(var(--muted-foreground, 100 116 139));
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.prd-add-to-list-signed-out-continue:hover {
  color: rgb(var(--foreground, 24 24 27));
}
.dark .prd-add-to-list-signed-out-continue:hover {
  color: rgb(var(--foreground, 250 250 250));
}

/* Contest published List — selective titles block */
.prd-contest-results-titles {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgb(var(--border, 228 228 231));
}
.dark .prd-contest-results-titles {
  border-top-color: rgba(63, 63, 70, 0.9);
}
.prd-contest-results-titles-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}
.prd-contest-results-titles-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}
.prd-contest-results-link-btn {
  border: none;
  background: transparent;
  padding: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgb(var(--muted-foreground, 100 116 139));
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.prd-contest-results-link-btn:hover {
  color: rgb(var(--foreground, 24 24 27));
}
.dark .prd-contest-results-link-btn:hover {
  color: rgb(var(--foreground, 250 250 250));
}
.prd-contest-results-titles-meta {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  color: rgb(var(--muted-foreground, 100 116 139));
}
.prd-contest-results-titles-body {
  max-height: min(40vh, 18rem);
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-right: 0.15rem;
}
.prd-contest-results-title-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.25rem;
  border-radius: 0.35rem;
  cursor: pointer;
}
.prd-contest-results-title-row:hover {
  background: rgba(0, 0, 0, 0.035);
}
.dark .prd-contest-results-title-row:hover {
  background: rgba(255, 255, 255, 0.05);
}
.prd-contest-results-title-row input[type='checkbox'] {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
}
.prd-contest-results-title-thumb {
  width: 2rem;
  height: 2.75rem;
  object-fit: cover;
  border-radius: 0.25rem;
  background: rgb(var(--muted, 244 244 245));
  flex-shrink: 0;
}
.prd-contest-results-title-thumb.is-empty {
  display: inline-block;
}
.prd-contest-results-title-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.prd-contest-results-title-name {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.25;
  color: rgb(var(--foreground, 24 24 27));
}
.prd-contest-results-title-year {
  font-size: 0.7rem;
  color: rgb(var(--muted-foreground, 100 116 139));
}
