* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  overflow: hidden;
  background: #1a1a2e;
  color: #ccc;
  font-family: 'Georgia', serif;
}

body {
  display: flex;
  flex-direction: column;
}

/* ── Header ── */
header {
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #252540;
  flex-shrink: 0;
}

h1 {
  font-size: 1.4rem;
  color: #f0c040;
  letter-spacing: 4px;
  font-weight: normal;
}

/* ── Sélecteurs ── */
#selectors {
  display: flex;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid #252540;
  flex-shrink: 0;
}

#selectors select {
  flex: 1;
  background: #16213e;
  color: #ccc;
  border: 1px solid #2a2a4a;
  border-radius: 7px;
  padding: 10px 32px 10px 14px;
  font-size: .9rem;
  font-family: 'Georgia', serif;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

#selectors select:focus {
  outline: none;
  border-color: rgba(240,192,64,.5);
}

#selectors select:disabled {
  opacity: 0.35;
  cursor: default;
}

/* ── Chips ── */
#playlist-lines {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 8px;
  padding: 16px 20px;
}

#playlist-lines::-webkit-scrollbar { width: 3px; }
#playlist-lines::-webkit-scrollbar-thumb { background: #333; border-radius: 2px; }

#playlist-lines:empty::before {
  content: 'Sélectionne un répertoire';
  color: #333;
  font-size: .9rem;
}

.line-chip {
  padding: 7px 13px;
  font-size: .82rem;
  color: #666;
  border: 1px solid #2a2a4a;
  border-radius: 6px;
  background: #1a1a2e;
  cursor: pointer;
  font-family: 'Georgia', serif;
  transition: color .12s, border-color .12s, background .12s;
}
.line-chip.active {
  color: #f0c040;
  border-color: rgba(240,192,64,.5);
  background: #1a1a05;
}
.line-chip:hover {
  border-color: rgba(240,192,64,.3);
  color: #bbb;
}

/* ── Barre du bas ── */
#playlist-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-top: 1px solid #252540;
  flex-shrink: 0;
  gap: 12px;
}

.pl-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

#playlist-count {
  font-size: .78rem;
  color: #555;
}

.pl-btn {
  background: #1a1a2e;
  color: #aaa;
  border: 1px solid #2a2a4a;
  border-radius: 5px;
  padding: 5px 12px;
  font-size: .78rem;
  font-family: 'Georgia', serif;
  cursor: pointer;
  transition: color .12s, border-color .12s;
}
.pl-btn:hover { color: #f0c040; border-color: rgba(240,192,64,.4); }

#btn-start {
  background: #f0c040;
  color: #000;
  border: none;
  border-radius: 8px;
  padding: 11px 28px;
  font-size: .95rem;
  font-weight: bold;
  font-family: 'Georgia', serif;
  cursor: pointer;
  letter-spacing: .04em;
  transition: background .15s;
}
#btn-start:hover { background: #ffd050; }
