:root {
  --green: #2fd6a6;
  --green-dark: #16b98a;
  --ink: #141414;
  --muted: #6b6b6b;
  --bg: #f5fcfc;
  --card: #ffffff;
  --line: #e6e6e6;
  --radius: 14px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin-inline: auto;
  margin-block: 0;
  max-width: 760px;
  padding: 0 1rem 4rem;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}
.site-header { text-align: center; padding-top: 1.5rem; }
.logo { width: 220px; max-width: 70%; height: auto; }

.tabs { display: flex; gap: 0.5rem; justify-content: center; margin: 0.5rem 0 1rem; }
.tab {
  border: 2px solid var(--ink);
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
}
.tab.active { background: var(--green); border-color: var(--green-dark); }

.controls { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.search-wrap { position: relative; flex: 1 1 100%; }
#search {
  width: 100%;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 1rem;
  background: #fff;
}
#search:focus { outline: 2px solid var(--green); border-color: var(--green); }

.suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 20;
  margin: 0;
  padding: 4px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  max-height: 300px;
  overflow-y: auto;
}
.suggestion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  cursor: pointer;
}
.suggestion.active,
.suggestion:hover { background: var(--green); }
.suggestion .s-name { font-weight: 700; }
.suggestion .s-meta { color: var(--muted); font-size: 0.8rem; }
.suggestion.active .s-meta,
.suggestion:hover .s-meta { color: var(--ink); }

.suggestion-header {
  margin: 0 -4px;
  padding: 0.4rem 0.75rem;
  background: var(--green-dark);
  color: #fff;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 800;
}
.suggestion-header:first-child {
  border-top-left-radius: 9px;
  border-top-right-radius: 9px;
}
.suggestion-header:not(:first-child) { margin-top: 6px; }
.suggestion-pod { flex-direction: column; align-items: flex-start; gap: 0.15rem; }
.suggestion-pod .s-text { font-weight: 500; }
.suggestion-pod .s-meta { font-size: 0.78rem; }

.active-filter { display: flex; align-items: center; gap: 0.4rem; width: 100%; font-size: 0.85rem; color: var(--muted); }
.chip {
  border: none;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  background: var(--green);
  color: var(--ink);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
}
.chip:hover { background: var(--green-dark); }

.count { color: var(--muted); font-size: 0.85rem; margin: 1rem 0 0.5rem; }

.list { display: flex; flex-direction: column; gap: 0.8rem; }
.card {
  border: 1px solid var(--line);
  border-left: 6px solid var(--green);
  border-radius: var(--radius);
  padding: 1rem;
  background: var(--card);
}
.text { margin: 0 0 0.6rem; font-size: 1.05rem; }
.who { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.badge {
  border: none;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  background: var(--green);
  color: var(--ink);
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
}
.badge:hover { background: var(--green-dark); }
.arrow, .amp { color: var(--muted); font-weight: 700; }
.meta { display: flex; flex-wrap: wrap; gap: 0.6rem; color: var(--muted); font-size: 0.82rem; align-items: center; }
.meta .ts { font-variant-numeric: tabular-nums; }
.ep-link { color: var(--green-dark); font-weight: 700; text-decoration: none; }
.ep-link:hover { text-decoration: underline; }

.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin-top: 0.2rem; }
.card-foot .meta { flex: 1 1 auto; }
.like {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
  line-height: 1;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
}
.like:hover { border-color: var(--green-dark); color: var(--ink); }
.like .like-icon { width: 1rem; height: 1rem; display: block; }
.like.liked { background: var(--green); border-color: var(--green-dark); color: var(--ink); font-weight: 700; }
.like-count { font-variant-numeric: tabular-nums; }

/* Infobulle au survol du bouton dislike */
.like[data-tip]:hover::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  z-index: 30;
  width: max-content;
  max-width: 220px;
  background: var(--ink);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  pointer-events: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}
mark { background: var(--green); color: var(--ink); border-radius: 3px; padding: 0 1px; }
.empty { color: var(--muted); text-align: center; padding: 2rem 0; }

@keyframes flash {
  0%, 100% { box-shadow: 0 0 0 0 rgba(47, 214, 166, 0); }
  20% { box-shadow: 0 0 0 4px rgba(47, 214, 166, 0.85); }
}
.card.flash { animation: flash 1.2s ease-out; }
