/* extra.css — Agent G: hearts/stars (states only — card.css owns the card layout), tabs + sort bar,
   search page, person page, /ma-liste/, /signaler/, 404. Dark EVOLOAD theme: bg #222 / #1e1e1e, panels #333,
   text #ccc, accent #f48625, hover #f8aa0c, star #ffc107. Loaded after local.css, before nav/card/theme css. */

/* ---------------------------------------------------------------- toggle states (heart / star) */
.fav-btn, .later-btn { cursor: pointer; user-select: none; -webkit-user-select: none; transition: color .2s, transform .15s; }
.fav-btn:active, .later-btn:active { transform: scale(.92); }
.fav-btn.is-fav, .fav-btn.is-fav .fa { color: #f48625; }
.fav-btn.is-fav:hover, .fav-btn.is-fav:hover .fa { color: #f8aa0c; }
.later-btn.is-later, .later-btn.is-later .fa { color: #ffc107; }
.later-btn.is-later:hover, .later-btn.is-later:hover .fa { color: #ffd54f; }
.fav-btn:focus-visible, .later-btn:focus-visible { outline: 2px solid #f48625; outline-offset: 2px; border-radius: 50%; }

/* inline pills (detail pages, intro texts): not inside a card */
.fav-btn-inline, .later-btn-inline,
.fmain .fav-btn, .fmain .later-btn {
  position: static; float: none; opacity: 1;
  display: inline-flex; align-items: center; justify-content: center;
  height: 26px; min-width: 26px; padding: 0 9px; margin: 0 3px; border-radius: 13px;
  background: rgba(0, 0, 0, .55); box-shadow: 0 0 0 1px rgba(255, 255, 255, .1);
  color: #bbb; font: 14px/1 Verdana, Geneva, sans-serif; vertical-align: middle; text-decoration: none;
}
.fs-intro .fav-btn, .fs-intro .later-btn, .fs-intro .fs-resume-inline { cursor: default; }
.fs-resume-inline { display: inline-block; padding: 0 8px; line-height: 22px; border-radius: 2px; background: #f48625; color: #fff; font-size: 11px; font-weight: 700; text-transform: uppercase; }

/* nav badge (optional: <span data-fav-count hidden></span> next to "Ma liste") */
[data-fav-count] { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 4px; border-radius: 9px; background: #f48625; color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
[data-fav-count][hidden] { display: none; }

/* toast (used when H's window.fsToast is absent) */
.fs-toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 9999; transform: translate(-50%, 20px);
  padding: 10px 18px; border-radius: 4px; background: rgba(20, 20, 20, .95); color: #fff; font-size: 13px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .5); border-left: 3px solid #f48625; opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.fs-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------------------------------------------------------- shared bits */
.fs-intro { padding: 0 10px 10px; }
.fs-muted { color: #888; font-weight: 400; font-size: 12px; }
.fs-center { text-align: center; }
.fs-count { display: inline-block; margin-left: 6px; padding: 0 7px; min-width: 20px; border-radius: 10px; background: rgba(255, 255, 255, .12); color: #fff; font-size: 11px; line-height: 20px; text-align: center; vertical-align: middle; font-weight: 400; }
.st-capt .fs-count { position: relative; top: -1px; }
.fs-empty { clear: both; width: 100%; padding: 40px 20px; text-align: center; color: #999; font-size: 14px; line-height: 22px; }
.fs-empty .fa { display: block; font-size: 48px; color: #444; margin-bottom: 10px; }
.fs-empty a { color: #f48625; text-decoration: underline; }
.fs-empty a:hover { text-decoration: none; }
.fs-empty.fs-error .fa { color: #a03939; }
.fs-loading .fa { color: #f48625; }
.fs-empty strong { color: #eee; font-size: 16px; }

.fs-btn {
  display: inline-block; height: 36px; line-height: 36px; padding: 0 18px; border-radius: 3px;
  background: #f48625; color: #fff; font: 700 12px/36px Verdana, Geneva, sans-serif; text-transform: uppercase;
  text-decoration: none !important; cursor: pointer; border: 0; transition: background-color .2s;
}
.fs-btn:hover { background: #f8aa0c; color: #fff; }
.fs-btn[disabled] { background: #555; color: #999; cursor: not-allowed; }
.fs-btn .fa { margin-right: 6px; }
.fs-btn-ghost { background: #333; color: #ccc; }
.fs-btn-ghost:hover { background: #444; color: #fff; }
.fs-btn-sm { height: 30px; line-height: 30px; font-size: 11px; padding: 0 12px; }

.fs-chip {
  display: inline-block; margin: 0 6px 6px 0; padding: 0 12px; line-height: 28px; border-radius: 14px;
  background: #333; color: #ddd; font-size: 12px; text-decoration: none; white-space: nowrap; transition: background .15s, color .15s;
}
.fs-chip .fa { margin-right: 5px; color: #f48625; }
.fs-chip:hover, .fs-chip.current { background: #f48625; color: #fff; }
.fs-chip:hover .fa, .fs-chip.current .fa { color: #fff; }

.fs-inline-search { display: flex; max-width: 520px; margin: 14px auto; gap: 8px; }
.fs-inline-search input[type=text] { flex: 1 1 auto; height: 40px; padding: 0 14px; border-radius: 3px; background: #333; border: 1px solid #111; color: #fff; font: 13px Verdana, Geneva, sans-serif; }
.fs-inline-search input[type=text]:focus { border-color: #f48625; outline: none; }
.fs-inline-search .fs-btn { height: 40px; line-height: 40px; flex: none; }

/* tabs inside .st-tabs (search / person / ma-liste) */
.fs-tabs, .sect-t .st-tabs.fs-tabs { display: inline-flex; flex-wrap: wrap; gap: 6px; max-width: 100%; min-width: 0; flex: 0 1 auto; white-space: normal; }
.fs-tabs span { position: relative; margin: 0; white-space: nowrap; }
.fs-tabs span b { display: inline-block; margin-left: 5px; padding: 0 6px; min-width: 18px; border-radius: 9px; background: rgba(255, 255, 255, .12); color: #fff; font-size: 10px; line-height: 18px; text-align: center; font-weight: 400; vertical-align: middle; }
.fs-tabs span.current b { background: #f48625; }
.fs-tabs span .fa { margin-right: 4px; color: #f48625; }
.fs-tabs span[data-empty] { opacity: .5; }
.fs-tabs span:focus-visible { outline: 2px solid #f48625; outline-offset: -2px; }

/* "Trier par" bar (right side of a section header) */
.fs-sort { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px; padding: 0 !important; background: transparent !important; box-shadow: none !important; height: auto !important; line-height: 30px; }
.fs-sort-label { color: #888; font-size: 11px; text-transform: uppercase; margin-right: 6px; }
.fs-sort a { display: inline-block; padding: 0 10px; line-height: 28px; border-radius: 3px; background: #333; color: #ccc; font-size: 11px; text-transform: uppercase; }
.fs-sort a:hover { color: #fff; background: #3a3a3a; }
.fs-sort a.current { color: #fff; box-shadow: inset 0 0 0 2px #f48625; }

/* highlight of the query */
mark.fs-hl { background: rgba(244, 134, 37, .35); color: inherit; padding: 0 1px; border-radius: 2px; }
.fs-q { color: #fff; font-weight: 700; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .5); text-underline-offset: 3px; }

/* section headers: let the tabs wrap below the caption on narrow screens */
.fs-search-head .st-left, .fs-list-head .st-left { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px 10px; }
.fs-search-head .st-capt, .fs-list-head .st-capt { max-width: 100%; white-space: normal; height: auto; min-height: 30px; }
.sect-t.fs-search-head, .sect-t.fs-list-head { flex-wrap: wrap; gap: 8px 12px; height: auto; align-items: flex-start; }
.fs-search-sect[hidden], [data-list-grid][hidden], [data-list-intro][hidden] { display: none !important; }

/* ---------------------------------------------------------------- search page */
.fs-empty-search { padding: 30px 16px 24px; }
.fs-empty-search .fa { font-size: 56px; }
.fs-suggest-words, .fs-suggest-links { margin-top: 12px; }
.fs-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; padding: 4px 0 10px; }
.fs-person { display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; border-radius: 6px; background: #2c2c2c; color: #ddd; min-width: 0; transition: background .15s, transform .15s; }
.fs-person:hover { background: #3a3a3a; color: #fff; transform: translateY(-2px); }
.fs-person img { flex: none; width: 60px; height: 60px; border-radius: 50%; object-fit: cover; background: #111; }
.fs-person-name { display: block; font-weight: 700; color: #fff; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fs-person-role { display: block; font-size: 11px; color: #999; margin-top: 3px; }
.fs-person:hover .fs-person-role { color: #ccc; }
.fs-person > span { min-width: 0; }

/* ---------------------------------------------------------------- person page */
.person-head { display: flex; gap: 24px; align-items: flex-start; padding: 6px 0 4px; }
.person-photo-wrap { flex: 0 0 185px; }
.person-photo { display: block; width: 185px; height: 278px; object-fit: cover; border-radius: 6px; background: #111; box-shadow: 0 6px 24px rgba(0, 0, 0, .5); }
.person-info { flex: 1 1 auto; min-width: 0; }
.person-name { font-size: 28px; font-weight: 700; color: #fff; margin: 2px 0 10px; line-height: 1.15; }
.person-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 14px; font-size: 13px; color: #bbb; align-items: center; }
.person-meta .fa { color: #f48625; margin-right: 5px; }
.person-meta em { color: #888; font-style: normal; }
.person-tag { display: inline-block; padding: 0 9px; line-height: 22px; background: #f48625; color: #fff; border-radius: 2px; font-size: 11px; text-transform: uppercase; font-weight: 700; }
.person-tag .fa { color: #fff; }
.person-bio-in { position: relative; }
.person-bio p { margin: 0 0 8px; line-height: 20px; color: #ccc; }
.person-bio.is-clamped .person-bio-in { max-height: 120px; overflow: hidden; }
.person-bio.is-clamped .person-bio-in::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 48px; background: linear-gradient(rgba(30, 30, 30, 0), #1e1e1e); pointer-events: none; }
.person-bio button.person-bio-more { display: inline-block; height: 26px; margin: 6px 0 8px; padding: 0 12px; line-height: 26px; border-radius: 13px; background: #333; color: #f48625; font: 700 11px/26px Verdana, Geneva, sans-serif; text-transform: uppercase; cursor: pointer; border: 0; }
.person-bio button.person-bio-more:hover { background: #f48625; color: #fff; }
.person-bio-more .fa { margin-right: 4px; }
.person-links { margin-top: 6px; }
.fs-filmo .sect-t { margin-bottom: 0; }

/* ---------------------------------------------------------------- /ma-liste/ */
.fs-list-actions { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 0 !important; background: transparent !important; box-shadow: none !important; height: auto !important; }
.fs-filters { display: inline-flex; gap: 4px; }
.fs-filters .fs-chip { margin: 0; }
.fs-list-actions .fs-btn { margin-left: 6px; }
.fs-list-grid { min-height: 120px; }
.fs-card-remove {
  position: absolute; top: 4px; left: 4px; z-index: 70; width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .75); color: #ddd; font-size: 12px; cursor: pointer;
  opacity: 0; transition: opacity .15s, background .15s; box-shadow: 0 0 0 1px rgba(255, 255, 255, .15);
}
.short:hover .fs-card-remove, .short:focus-within .fs-card-remove, .fs-card-remove:focus { opacity: 1; }
.fs-card-remove:hover { background: #e5050b; color: #fff; }
.fs-list-grid .short-in .mli-eps { top: 32px; }
.fs-resume {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 68; padding: 7px 8px; background: rgba(244, 134, 37, .95); color: #fff;
  font-size: 11px; font-weight: 700; text-transform: uppercase; text-align: center; text-decoration: none; letter-spacing: .2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background .15s;
}
.fs-resume:hover { background: #f8aa0c; color: #fff; }
.fs-resume .fa { margin-right: 4px; }
.fs-resume small { display: block; font-size: 9px; font-weight: 400; text-transform: none; opacity: .9; margin-top: 1px; }
.fs-hist-card .short-title { display: none; }

/* ---------------------------------------------------------------- 404 */
.fs-404-hero { display: flex; gap: 30px; align-items: flex-start; padding: 24px 16px 20px; }
.fs-404-code { flex: none; font: 900 96px/1 Verdana, Geneva, sans-serif; color: #f48625; letter-spacing: -4px; text-shadow: 0 10px 40px rgba(244, 134, 37, .25); }
.fs-404-body { flex: 1 1 auto; min-width: 0; }
.fs-404-title { font-size: 24px; font-weight: 700; color: #fff; margin: 8px 0 10px; }
.fs-404-msg { color: #bbb; line-height: 20px; margin-bottom: 8px; }
.fs-404 .fs-inline-search { margin: 14px 0; }
.fs-404-links { margin: 8px 0 6px; }
.fs-404-genres { font-size: 12px; color: #888; }
.fs-404-genres a { color: #ccc; margin-left: 8px; text-decoration: underline; }
.fs-404-genres a:hover { color: #f48625; }
.fs-404-msg + .fs-inline-search + .fs-muted a { color: #f48625; text-decoration: underline; }

/* ---------------------------------------------------------------- forms (/signaler/) */
.fs-form-wrap { padding: 10px; }
.fs-form { max-width: 640px; }
.fs-row { margin-bottom: 16px; }
.fs-row label { display: block; margin-bottom: 6px; color: #eee; font-size: 13px; font-weight: 700; }
.fs-form select, .fs-form textarea, .fs-form input[type=text] {
  display: block; width: 100%; color: #fff; background-color: #333; border: 1px solid #111; border-radius: 3px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .4); font: 13px Verdana, Geneva, sans-serif;
}
.fs-form select { height: 40px; padding: 0 10px; }
.fs-form textarea { padding: 10px; min-height: 120px; line-height: 20px; resize: vertical; }
.fs-form select:focus, .fs-form textarea:focus { border-color: #f48625; outline: none; }
.fs-counter { text-align: right; font-size: 11px; color: #777; margin-top: 4px; }
.fs-counter.is-near { color: #f48625; }
.fs-static { padding: 10px 12px; background: #333; border-radius: 3px; color: #ccc; line-height: 20px; }
.fs-static a { color: #f48625; text-decoration: underline; }
.fs-static a:hover { text-decoration: none; }
.fs-target { display: flex; gap: 14px; align-items: center; }
.fs-target img { flex: none; width: 54px; height: 81px; object-fit: cover; border-radius: 3px; background: #111; }
.fs-target strong { display: block; color: #fff; font-size: 14px; }
.fs-target small { color: #999; }
.fs-actions { padding-top: 4px; }
.fs-actions .fs-btn { margin-right: 8px; }
.fs-hp { position: absolute !important; left: -9999px !important; top: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.fs-notice { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; margin: 0 0 16px; border-radius: 3px; background: #333; color: #ddd; line-height: 22px; font-size: 14px; }
.fs-notice > .fa { font-size: 28px; line-height: 32px; flex: none; }
.fs-notice p { margin: 6px 0 0; }
.fs-notice em { color: #fff; font-style: normal; }
.fs-notice-ok { border-left: 4px solid #33a42d; }
.fs-notice-ok > .fa { color: #33a42d; }
.fs-notice-err { border-left: 4px solid #e5050b; }
.fs-notice-err > .fa { color: #e5050b; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 760px) {
  .fs-people { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
  .person-head { gap: 16px; }
  .person-photo-wrap { flex-basis: 120px; }
  .person-photo { width: 120px; height: 180px; }
  .person-name { font-size: 22px; }
  .fs-404-hero { flex-direction: column; gap: 6px; padding: 14px 10px; }
  .fs-404-code { font-size: 72px; }
  .fs-sort { line-height: 26px; }
  .fs-sort a { padding: 0 8px; line-height: 24px; }
}
@media (max-width: 600px) {
  .fs-form-wrap { padding: 4px 0; }
  .fs-actions .fs-btn { display: block; width: 100%; margin: 0 0 8px; text-align: center; }
  .fs-notice { flex-direction: column; gap: 8px; }
  .fs-inline-search { flex-direction: column; }
  .fs-inline-search .fs-btn { width: 100%; text-align: center; }
  .fs-tabs span { padding: 0 8px; }
  .fs-card-remove { opacity: 1; }
  .fs-404-code { font-size: 56px; letter-spacing: -2px; }
  .fs-404-title { font-size: 19px; }
}
@media (max-width: 480px) {
  .person-head { flex-direction: column; align-items: center; text-align: center; }
  .person-meta { justify-content: center; }
  .person-bio { text-align: left; }
  .fs-people { grid-template-columns: 1fr; }
}
