/* ==========================================================================
   Take Your Own (yotoplay-take-your-own) — Design System & Styles (Vanilla CSS)
   Warm tactile editorial palette inspired by physical audio cards & LED icons
   ========================================================================== */

:root {
  /* Color Palette (HSL-curated warm paper, deep charcoal ink, Yoto tangerine) */
  --bg-canvas: hsl(35, 38%, 97%);
  --bg-canvas-subtle: hsl(34, 30%, 94%);
  --bg-surface: hsl(0, 0%, 100%);
  --bg-surface-hover: hsl(35, 35%, 99%);
  --bg-surface-selected: hsl(19, 100%, 98.2%);
  --bg-led: hsl(225, 18%, 13%);

  --text-primary: hsl(24, 14%, 11%);
  --text-secondary: hsl(24, 8%, 38%);
  --text-muted: hsl(24, 6%, 54%);
  --text-on-accent: hsl(0, 0%, 100%);

  --accent: hsl(17, 88%, 50%);
  --accent-hover: hsl(17, 90%, 44%);
  --accent-active: hsl(17, 92%, 39%);
  --accent-soft: hsl(19, 95%, 94%);
  --accent-border: hsl(17, 82%, 78%);

  --success: hsl(146, 64%, 32%);
  --success-soft: hsl(145, 58%, 93%);
  --warning: hsl(35, 88%, 38%);
  --warning-soft: hsl(40, 92%, 93%);
  --danger: hsl(356, 72%, 47%);
  --danger-soft: hsl(356, 85%, 95%);

  --border-subtle: hsla(24, 15%, 12%, 0.08);
  --border-strong: hsla(24, 15%, 12%, 0.16);

  /* Elevation */
  --shadow-xs: 0 1px 2px hsla(24, 20%, 10%, 0.04);
  --shadow-card:
    0 1px 2px hsla(24, 20%, 10%, 0.05),
    0 10px 26px -8px hsla(24, 20%, 10%, 0.08);
  --shadow-card-hover:
    0 2px 4px hsla(24, 20%, 10%, 0.06),
    0 18px 36px -10px hsla(24, 20%, 10%, 0.13);
  --shadow-cover:
    0 4px 12px -2px hsla(24, 25%, 10%, 0.16),
    0 1px 3px hsla(24, 25%, 10%, 0.1);
  --shadow-dock:
    0 -2px 10px hsla(24, 20%, 10%, 0.04),
    0 16px 42px -6px hsla(24, 25%, 10%, 0.22);
  --shadow-modal:
    0 24px 64px -12px hsla(24, 25%, 8%, 0.28),
    0 4px 16px -4px hsla(24, 25%, 8%, 0.1);

  /* Typography */
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Radii & Spacing */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-card-art: 14px;
  --radius-pill: 999px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background-color: var(--bg-canvas);
  background-image: radial-gradient(
    ellipse 90% 420px at 50% 0%,
    hsla(26, 75%, 91%, 0.55) 0%,
    transparent 75%
  );
  line-height: 1.5;
  padding-bottom: 120px;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   Layout Container & Top Navigation
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: hsla(35, 38%, 97%, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--text-on-accent);
  display: grid;
  place-items: center;
  box-shadow: 0 3px 10px hsla(17, 88%, 45%, 0.28), inset 0 1px 0 hsla(0, 0%, 100%, 0.35);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.brand-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
  letter-spacing: -0.005em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Buttons & Badges
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-md);
  padding: 9px 15px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition:
    background-color 150ms var(--ease-out),
    border-color 150ms var(--ease-out),
    transform 120ms var(--ease-out),
    box-shadow 150ms var(--ease-out);
  white-space: nowrap;
}

.btn:active:not(:disabled) {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.52;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--accent);
  color: var(--text-on-accent);
  box-shadow: 0 2px 8px hsla(17, 88%, 42%, 0.26), inset 0 1px 0 hsla(0, 0%, 100%, 0.22);
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
  box-shadow: 0 4px 14px hsla(17, 88%, 42%, 0.34), inset 0 1px 0 hsla(0, 0%, 100%, 0.26);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--bg-surface-hover);
  border-color: hsla(24, 15%, 12%, 0.28);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 8px 12px;
}

.btn-ghost:hover:not(:disabled) {
  background: hsla(24, 15%, 12%, 0.05);
  color: var(--text-primary);
}

.btn-lg {
  padding: 12px 20px;
  font-size: 0.95rem;
  border-radius: 13px;
}

.auth-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--success-soft);
  color: var(--success);
  font-size: 0.82rem;
  font-weight: 600;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

/* --------------------------------------------------------------------------
   Hero & Toolbar
   -------------------------------------------------------------------------- */

.hero {
  padding: 36px 0 24px;
}

.hero-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.hero h1 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.8vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.032em;
  line-height: 1.15;
}

.hero-lead {
  margin: 0;
  max-width: 600px;
  color: var(--text-secondary);
  font-size: 0.98rem;
}

.hero-stats {
  display: flex;
  gap: 20px;
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.stat-item strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding: 12px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}

.toolbar-left,
.toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.search-wrap {
  position: relative;
  min-width: 230px;
  flex: 1 1 240px;
}

.search-wrap svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 8px 12px 8px 36px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-canvas);
  font-size: 0.88rem;
  transition: border-color 150ms, background-color 150ms, box-shadow 150ms;
}

.search-input:focus {
  outline: none;
  background: var(--bg-surface);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.filter-tabs {
  display: inline-flex;
  padding: 3px;
  border-radius: var(--radius-md);
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
}

.filter-tab {
  border: none;
  background: transparent;
  padding: 6px 12px;
  border-radius: 9px;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: background-color 140ms, color 140ms, box-shadow 140ms;
}

.filter-tab.active {
  background: var(--bg-surface);
  color: var(--text-primary);
  font-weight: 600;
  box-shadow: var(--shadow-xs);
}

.sort-select {
  padding: 7px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-canvas);
  font-size: 0.84rem;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   Playlist Card Grid (Tactile Physical Card Proportions)
   -------------------------------------------------------------------------- */

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(262px, 1fr));
  gap: 20px;
}

.playlist-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow-card);
  transition:
    transform 180ms var(--ease-out),
    box-shadow 180ms var(--ease-out),
    border-color 150ms var(--ease-out),
    background-color 150ms var(--ease-out);
  cursor: pointer;
  user-select: none;
}

.playlist-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--border-strong);
}

.playlist-card.is-selected {
  background: var(--bg-surface-selected);
  border-color: var(--accent);
  box-shadow:
    0 0 0 1px var(--accent),
    var(--shadow-card-hover);
}

/* Physical Yoto Card Cover Frame */
.card-art-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-card-art);
  overflow: hidden;
  background: var(--bg-canvas-subtle);
  box-shadow: var(--shadow-cover);
  margin-bottom: 14px;
}

.card-art-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 hsla(0, 0%, 100%, 0.38), inset 0 0 0 1px hsla(0, 0%, 0%, 0.06);
  pointer-events: none;
}

.card-art-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 280ms var(--ease-out);
}

.playlist-card:hover .card-art-img {
  transform: scale(1.025);
}

.select-check {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: hsla(0, 0%, 100%, 0.92);
  backdrop-filter: blur(6px);
  border: 1.5px solid hsla(24, 15%, 12%, 0.2);
  display: grid;
  place-items: center;
  color: transparent;
  box-shadow: 0 2px 8px hsla(0, 0%, 0%, 0.14);
  transition:
    transform 150ms var(--ease-out),
    background-color 140ms var(--ease-out),
    border-color 140ms var(--ease-out),
    color 140ms var(--ease-out);
}

.playlist-card.is-selected .select-check {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text-on-accent);
  transform: scale(1.06);
}

.category-chip {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 2;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: hsla(24, 20%, 10%, 0.72);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.71rem;
  font-weight: 600;
  text-transform: capitalize;
  letter-spacing: 0.01em;
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.28;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-author {
  margin: 0 0 10px;
  font-size: 0.83rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-meta-row {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.card-stats-mono {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.inspect-btn {
  border: 1px solid var(--border-subtle);
  background: var(--bg-canvas);
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.76rem;
  font-weight: 600;
  transition: background-color 140ms, color 140ms, border-color 140ms;
}

.inspect-btn:hover {
  background: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 56px 20px;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-strong);
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   Floating Selection Action Bar (Bottom Dock)
   -------------------------------------------------------------------------- */

.selection-dock {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translate(-50%, 140%);
  opacity: 0;
  pointer-events: none;
  z-index: 40;
  width: min(760px, calc(100% - 32px));
  background: hsl(24, 14%, 12%);
  color: #fff;
  border-radius: 18px;
  padding: 12px 16px;
  box-shadow: var(--shadow-dock);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition:
    transform 240ms var(--ease-out),
    opacity 200ms var(--ease-out);
}

.selection-dock.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

.dock-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.dock-thumbs {
  display: flex;
  align-items: center;
}

.dock-thumb {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid hsl(24, 14%, 12%);
  margin-left: -10px;
  background: #333;
}

.dock-thumb:first-child {
  margin-left: 0;
}

.dock-summary {
  min-width: 0;
}

.dock-count {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.94rem;
  letter-spacing: -0.015em;
}

.dock-sub {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: hsla(0, 0%, 100%, 0.68);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dock-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.dock-clear-btn {
  background: hsla(0, 0%, 100%, 0.1);
  border: none;
  color: hsla(0, 0%, 100%, 0.85);
  padding: 9px 13px;
  border-radius: 11px;
  font-size: 0.83rem;
  font-weight: 500;
}

.dock-clear-btn:hover {
  background: hsla(0, 0%, 100%, 0.18);
  color: #fff;
}

/* --------------------------------------------------------------------------
   Slide-Over Tracklist Drawer & Pixelated 16x16 LED Icons
   -------------------------------------------------------------------------- */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: hsla(24, 18%, 8%, 0.42);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms var(--ease-out);
}

.backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  width: min(480px, 100%);
  background: var(--bg-surface);
  box-shadow: var(--shadow-modal);
  transform: translateX(102%);
  transition: transform 260ms var(--ease-out);
  display: flex;
  flex-direction: column;
}

.drawer.is-open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.drawer-hero {
  display: flex;
  gap: 16px;
  margin-bottom: 18px;
}

.drawer-cover {
  width: 108px;
  height: 108px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: var(--shadow-cover);
  flex-shrink: 0;
}

.drawer-meta h2 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  line-height: 1.22;
}

.drawer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.drawer-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.58;
  margin: 0 0 20px;
  white-space: pre-line;
}

.chapter-list-title {
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin: 0 0 10px;
}

.chapter-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.chapter-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.86rem;
}

.chapter-row:last-child {
  border-bottom: none;
}

.led-icon-box {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: var(--bg-led);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: inset 0 1px 2px hsla(0, 0%, 0%, 0.5);
}

.led-icon-box img {
  width: 20px;
  height: 20px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.chapter-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

.chapter-dur {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.drawer-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  gap: 10px;
}

.drawer-footer .btn {
  flex: 1;
}

/* --------------------------------------------------------------------------
   Modals (Sign-In, Add Link, Live Upload Progress)
   -------------------------------------------------------------------------- */

.modal-wrap {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms var(--ease-out);
}

.modal-wrap.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  width: min(540px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: var(--bg-surface);
  border-radius: 20px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-modal);
  padding: 24px;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.modal-header h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.22rem;
  letter-spacing: -0.02em;
}

.close-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  display: grid;
  place-items: center;
}

.close-icon-btn:hover {
  background: var(--bg-canvas);
  color: var(--text-primary);
}

.modal p {
  margin: 0 0 14px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.step-box {
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 12px;
}

.step-label {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.text-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--bg-surface);
  font-size: 0.88rem;
}

.text-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.alert-msg {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.84rem;
  margin-top: 10px;
}

.alert-error {
  background: var(--danger-soft);
  color: var(--danger);
}

.alert-info {
  background: var(--warning-soft);
  color: var(--warning);
}

/* Upload Progress Queue */
.job-overall-bar {
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--bg-canvas-subtle);
  overflow: hidden;
  margin: 12px 0 18px;
}

.job-overall-fill {
  height: 100%;
  background: var(--accent);
  border-radius: inherit;
  transition: width 260ms var(--ease-out);
}

.job-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.job-item {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  background: var(--bg-canvas);
}

.job-item.is-active {
  background: var(--bg-surface);
  border-color: var(--accent-border);
}

.job-item.is-done {
  background: var(--success-soft);
  border-color: hsla(146, 64%, 32%, 0.22);
}

.job-item.is-error {
  background: var(--danger-soft);
  border-color: hsla(356, 72%, 47%, 0.25);
}

.job-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-weight: 600;
  font-size: 0.9rem;
}

.job-item-sub {
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.card-id-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 2px 7px;
  border-radius: 6px;
  background: hsla(146, 64%, 32%, 0.14);
  color: var(--success);
  font-weight: 600;
}

/* Responsive Adjustments */
@media (max-width: 680px) {
  .container {
    padding: 0 16px;
  }
  .hero {
    padding: 24px 0 18px;
  }
  .catalog-grid {
    grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
    gap: 12px;
  }
  .playlist-card {
    padding: 10px;
  }
  .selection-dock {
    flex-direction: column;
    align-items: stretch;
    bottom: 12px;
  }
  .dock-actions {
    justify-content: flex-end;
  }
  .dock-actions .btn-primary {
    flex: 1;
  }
}
