:root {
  --bg-color: #121212;
  --card-bg: #1e1e1e;
  --accent: #bb86fc;
  --text: #ffffff;
  --text-sub: #b3b3b3;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  background-color: var(--bg-color);
  color: var(--text);
  margin: 0;
  padding-bottom: 90px; /* Espace pour le lecteur fixe */
}

header {
  display: flex;
  align-items: center;
  padding: 1rem;
  background-color: var(--card-bg);
  position: sticky;
  top: 0;
  z-index: 10;
}

button {
  background: var(--accent);
  border: none;
  color: #000;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
}

.hidden { display: none !important; }

/* Grille responsive */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  padding: 16px;
}

.card {
  background: var(--card-bg);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
}

.card:hover { transform: scale(1.03); }
.card img { width: 100%; border-radius: 6px; aspect-ratio: 1/1; object-fit: cover; }
.card h3 { font-size: 0.9rem; margin: 8px 0 0; }

/* Liste d'épisodes */
.episode-list { padding: 16px; }
.episode-item {
  background: var(--card-bg);
  padding: 12px;
  margin-bottom: 8px;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Lecteur audio fixe */
#player-bar {
  position: fixed;
  bottom: 0; width: 100%;
  background: #000;
  border-top: 1px solid #333;
  padding: 10px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

audio { width: 100%; max-width: 600px; }