/* home.css — home page parity with french-stream.net (agent E).
   Loaded after local.css / extra.css from views/home.ejs; H's theme.css loads last. */

/* ------------------------------------------------------------------ top slider (.fssts-block) */
.fssts-block { display: block; clear: both; position: relative; margin: 0 0 15px; padding: 13px 15px 9px;
  background: linear-gradient(180deg, #191919, #1e1e1e); border: 1px solid rgba(255,255,255,.06); border-radius: 4px;
  box-shadow: 0 0 20px 2px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.03); }
.fssts-block * { box-sizing: border-box; }
.fssts-block .fssts-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 6px; line-height: 1.4; }
.fssts-block .fssts-cap { position: relative; display: inline-block; padding: 0 0 5px; margin: 0; border-radius: 0; background: none;
  font-size: 13px; font-weight: 600; color: #e6e6ec; letter-spacing: .02em; text-transform: uppercase; }
.fssts-block .fssts-cap::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(244,134,37,.28) 15%, #f48625 50%, rgba(244,134,37,.28) 85%, transparent); }
.fssts-block .fssts-more { flex: 0 0 auto; padding: 0; background: none; font-size: 11px; color: #9a9aa4; white-space: nowrap; text-decoration: none; }
.fssts-block .fssts-more:hover { color: #f48625; background: none; }
.fssts-block .fssts-rail { position: relative; }
.fssts-block .fssts-track { display: flex; gap: 9px; overflow-x: auto; overflow-y: hidden; scroll-behavior: smooth; scroll-snap-type: none;
  padding: 14px 4px 26px; margin: 0; scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; cursor: grab; }
.fssts-block .fssts-track.is-dragging { cursor: grabbing; scroll-behavior: auto; }
.fssts-block .fssts-track::-webkit-scrollbar { display: none; }
.fssts-block .fssts-card { position: relative; flex: 0 0 168px; width: 168px; aspect-ratio: auto; margin: 0; padding: 0; float: none;
  border-radius: 7px; overflow: hidden; background: #15151b; box-shadow: 0 4px 12px rgba(0,0,0,.4);
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s; }
.fssts-block .fssts-card > a { display: block; width: 100%; height: auto; color: #fff; outline: none; }
.fssts-block .fssts-card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; margin: 0; border: 0; transition: none; -webkit-user-drag: none; user-select: none; }
.fssts-block .fssts-card:hover img { transform: none; }
.fssts-block .fssts-ov { position: absolute; inset: 0; padding: 8px 9px; display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(to top, rgba(0,0,0,.92) 6%, transparent 66%); opacity: 0; transition: opacity .3s; }
.fssts-block .fssts-ov b { display: block; margin: 0; font-size: 12px; font-weight: 600; line-height: 1.15; color: #fff; white-space: normal;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.fssts-block .fssts-ov i { display: block; margin-top: 2px; font-size: 10px; font-style: normal; color: #c8c8d0; text-transform: none; letter-spacing: 0; }
.fssts-block .fssts-badge, .fssts-block .fssts-eps { position: absolute; top: 5px; left: 5px; z-index: 2; padding: 1px 5px; border-radius: 2px;
  font-size: 9px; font-weight: 700; line-height: 14px; color: #fff; text-transform: uppercase; background: rgba(0,0,0,.65); box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.fssts-block .fssts-eps { text-transform: none; background: rgba(244,134,37,.9); box-shadow: none; }
.fssts-block .fssts-card:hover, .fssts-block .fssts-card:focus-within { transform: translateY(-6px) scale(1.09); z-index: 4;
  box-shadow: 0 24px 30px -10px rgba(0,0,0,.85), 0 12px 18px -8px rgba(0,0,0,.6); }
.fssts-block .fssts-card:hover .fssts-ov, .fssts-block .fssts-card:focus-within .fssts-ov { opacity: 1; }
.fssts-block .fssts-card > a:focus-visible { box-shadow: inset 0 0 0 3px #f48625; }
.fssts-block .fssts-card .fav-btn { top: 5px; right: 5px; opacity: 0; z-index: 3; }
.fssts-block .fssts-card:hover .fav-btn, .fssts-block .fssts-card:focus-within .fav-btn, .fssts-block .fssts-card .fav-btn.is-fav { opacity: 1; }
.fssts-block .fssts-nav { position: absolute; top: 0; bottom: 6px; width: 40px; display: flex; align-items: center; justify-content: center; z-index: 6;
  cursor: pointer; color: #fff; font-size: 30px; line-height: 1; opacity: 0; transition: opacity .25s, color .15s; user-select: none;
  background: linear-gradient(90deg, rgba(25,25,25,.95), rgba(25,25,25,0)); border-radius: 0; text-shadow: 0 1px 5px rgba(0,0,0,.85); }
.fssts-block .fssts-nav.r { background: linear-gradient(270deg, rgba(25,25,25,.95), rgba(25,25,25,0)); }
.fssts-block .fssts-rail:hover .fssts-nav, .fssts-block .fssts-nav:focus-visible { opacity: 1; }
.fssts-block .fssts-nav:hover { color: #f48625; background: linear-gradient(90deg, rgba(25,25,25,.95), rgba(25,25,25,0)); }
.fssts-block .fssts-nav.r:hover { background: linear-gradient(270deg, rgba(25,25,25,.95), rgba(25,25,25,0)); }
.fssts-block .fssts-nav.l { left: 0; }
.fssts-block .fssts-nav.r { right: 0; }
.fssts-block .fssts-nav.is-off { opacity: 0 !important; pointer-events: none; }
.fssts-block.no-scroll .fssts-nav { display: none; }
.fssts-block .fssts-loading { flex: 0 0 168px; display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; border-radius: 7px; background: #15151b; color: #666; font-size: 22px; }
@keyframes fsstsIn { from { opacity: 0; transform: translateY(18px) scale(.93); } to { opacity: 1; transform: none; } }
@keyframes fsstsOv { 0% { opacity: 0; } 22% { opacity: 1; } 60% { opacity: 1; } 100% { opacity: 0; } }
.fssts-block .fssts-card.fssts-in { animation: fsstsIn .55s cubic-bezier(.2,.75,.25,1) both; }
.fssts-block .fssts-card.fssts-flash .fssts-ov { animation: fsstsOv 1.7s ease both; }
@media (prefers-reduced-motion: reduce) {
  .fssts-block .fssts-card.fssts-in, .fssts-block .fssts-card.fssts-flash .fssts-ov { animation: none !important; }
  .fssts-block .fssts-track { scroll-behavior: auto; }
}
@media (hover: none) { .fssts-block .fssts-ov { opacity: 1; } .fssts-block .fssts-nav { display: none; } .fssts-block .fssts-card .fav-btn { opacity: .85; } }
@media (max-width: 760px) {
  .fssts-block { padding: 10px 10px 4px; border-radius: 0; }
  .fssts-block .fssts-card, .fssts-block .fssts-loading { flex-basis: 150px; width: 150px; }
  .fssts-block .fssts-track { padding: 10px 2px 14px; }
}

/* ------------------------------------------------------------------ section headers + tabs */
.sect-t.fx-row.icon-r { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; width: 100%; margin-bottom: 20px; }
.sect-t.fx-row.icon-r .st-left { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; padding-bottom: 0; line-height: 40px; }
.sect-t.fx-row.icon-r .st-left::-webkit-scrollbar { display: none; }
.sect-t .st-left .st-capt { flex: 0 0 auto; display: inline-flex; align-items: center; margin-right: 4px; white-space: nowrap; line-height: 40px; }
.sect-t .st-left .st-capt .fa { margin-left: 8px; font-size: 13px; }
.sect-t .st-tabs { display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto; white-space: nowrap; margin: 0; }
.sect-t .st-tabs a { display: inline-block; vertical-align: top; flex: 0 0 auto; }
.sect-t .st-tabs span { display: inline-block; padding: 0 12px; border-radius: 2px; line-height: 34px; font-size: 13px; color: #ccc; background: #2a2a2a;
  cursor: pointer; white-space: nowrap; box-shadow: inset 0 0 0 1px rgba(255,255,255,.04); transition: color .2s, background .2s, box-shadow .2s; }
.sect-t .st-tabs a:hover span:not(.current) { color: #fff; background: #333; }
.sect-t .st-tabs span.current { color: #fff; background: #33333345; box-shadow: inset 0 0 0 1px #f48625; }
.sect-t .st-tabs a.is-loading span { color: #f48625; }
.sect-t .st-tabs .st-more span { padding: 0 8px; letter-spacing: 1px; }
.sect-t.fx-row.icon-r .st-right { flex: 0 0 auto; display: inline-flex; align-items: center; margin-left: 10px; padding: 0 12px; line-height: 40px;
  white-space: nowrap; border-radius: 3px; color: #fff; background: #222; box-shadow: inset 0 0 0 2px #f48625; transition: background .2s, color .2s; }
.sect-t.fx-row.icon-r .st-right:hover { background: #f48625; color: #fff; }
.sect-t.fx-row.icon-r .st-right .fa { margin-left: 8px; }
@media (max-width: 1024px) { .sect-t .st-tabs span { padding: 0 8px; font-size: 12px; } .sect-t .st-left .st-capt { font-size: 15px; } }
@media (max-width: 760px) {
  .sect-t.fx-row.icon-r { gap: 6px; margin-bottom: 12px; }
  .sect-t .st-left .st-capt { font-size: 14px; }
  .sect-t .st-tabs span { line-height: 30px; padding: 0 8px; font-size: 11px; }
  .sect-t.fx-row.icon-r .st-right:not(.st-filt) { display: inline-flex; padding: 0 8px; line-height: 32px; font-size: 11px; margin-left: 4px; }
  .sect-t.fx-row.icon-r .st-right .fa { display: none; }
}

/* section body swap (AJAX tabs) */
.sect-c[data-section-body] { position: relative; min-height: 120px; transition: opacity .18s ease; }
.sect-c[data-section-body].is-loading { opacity: .45; pointer-events: none; }
.sect-c[data-section-body].is-loading::after { content: ""; position: absolute; left: 50%; top: 60px; width: 34px; height: 34px; margin-left: -17px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.15); border-top-color: #f48625; animation: fsSpin .8s linear infinite; }
@keyframes fsSpin { to { transform: rotate(360deg); } }
.sect-c[data-section-body] .short.is-new { animation: fsstsIn .45s cubic-bezier(.2,.75,.25,1) both; }
.sect-c .fs-empty { padding: 30px 10px; text-align: center; color: #888; width: 100%; }
.sect-c .fs-empty .fa { display: block; font-size: 40px; margin-bottom: 8px; color: #555; }
.sect-c .fs-error { padding: 20px 10px; color: #f48625; width: 100%; text-align: center; }

/* rail mode (reference: home-carousel-u6.js turns tabbed grids into one-row rails) — toggled in the header */
.sect.is-rail .sect-c.floats { display: flex; flex-wrap: nowrap; align-items: flex-start; overflow-x: auto; overflow-y: hidden; scroll-behavior: smooth; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 6px; }
.sect.is-rail .sect-c.floats::-webkit-scrollbar { display: none; }
.sect.is-rail .sect-c.floats > .short { flex: 0 0 16.66%; float: none; }
.sect.is-rail .sect-c.floats > .fs-empty, .sect.is-rail .sect-c.floats > .fs-error { flex: 1 0 100%; }
.sect { position: relative; }
.fs-rail-arrow { position: absolute; top: 50%; width: 30px; height: 88px; border-radius: 3px; z-index: 40; display: none; align-items: center; justify-content: center;
  color: #fff; font-size: 24px; line-height: 1; cursor: pointer; opacity: .4; background: rgba(12,12,12,.7); box-shadow: 0 2px 10px rgba(0,0,0,.45); user-select: none; outline: none;
  transition: opacity .2s, background .2s, box-shadow .2s; transform: translateY(-50%); }
.sect.is-rail .fs-rail-arrow { display: flex; }
.fs-rail-arrow.l { left: -15px; } .fs-rail-arrow.r { right: -15px; }
.sect:hover .fs-rail-arrow { opacity: .9; }
.fs-rail-arrow:hover, .fs-rail-arrow:focus-visible { opacity: 1; box-shadow: inset 0 0 0 1px #f48625; }
.fs-rail-arrow.is-off { opacity: .1 !important; pointer-events: none; }
.st-layout { flex: 0 0 auto; display: inline-flex; gap: 2px; margin-left: 4px; }
.st-layout > span { display: inline-block; width: 30px; height: 30px; padding: 0; line-height: 30px; text-align: center; border-radius: 2px; background: #2a2a2a; color: #aaa; font-size: 13px; cursor: pointer; }
.st-layout > span .fa { margin: 0; }
.st-layout > span:hover { background: #333; color: #fff; }
.st-layout > span.current { color: #f48625; box-shadow: inset 0 0 0 1px #f48625; background: #33333345; }
@media (max-width: 950px) { .sect.is-rail .sect-c.floats > .short { flex-basis: 33.33%; } .fs-rail-arrow { width: 26px; height: 64px; font-size: 20px; } .fs-rail-arrow.l { left: -13px; } .fs-rail-arrow.r { right: -13px; } }
@media (max-width: 470px) { .sect.is-rail .sect-c.floats > .short { flex-basis: 50%; } .st-layout { display: none; } }

/* ------------------------------------------------------------------ "Derniers ajouts" dropdown (reference: Ajouts de la Commu) */
.dropdown-overlay { display: grid; grid-template-columns: repeat(5, 1fr); max-height: 0; overflow: hidden; padding: 0; margin: 0; border-radius: 10px;
  transition: max-height .4s ease, margin .4s ease; box-shadow: 0 6px 25px rgba(0,0,0,.5); background: #1a1a1a; }
.dropdown-overlay.active { max-height: 200px; margin: -10px 0 16px; }
.dropdown-overlay a { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 4px; padding: 12px 10px; border-radius: 8px; color: #ccc;
  font-size: 14px; font-weight: 500; text-align: center; text-decoration: none; transition: all .25s ease; }
.dropdown-overlay a:hover { color: #fff; background: rgba(255,255,255,.08); transform: translateY(-2px); }
.dropdown-overlay a .fa { font-size: 16px; color: #ff8533; margin: 0; }
.dropdown-toggle-btn .fa { display: inline-block; font-size: 12px; transition: transform .3s ease; }
.dropdown-toggle-btn[aria-expanded="true"] .fa { transform: rotate(180deg); }
@media (max-width: 768px) {
  .dropdown-overlay { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 5px; -webkit-overflow-scrolling: touch; }
  .dropdown-overlay a { flex-shrink: 0; padding: 12px 16px; font-size: 13px; }
}

/* ------------------------------------------------------------------ Continuer à regarder */
.cw-block .short { position: relative; }
.cw-block .short .cw-ep { position: absolute; left: 10px; right: 10px; top: 0; z-index: 12; padding: 4px 8px; font-size: 11px; font-weight: 700; color: #fff;
  background: linear-gradient(to bottom, rgba(0,0,0,.85), rgba(0,0,0,0)); text-shadow: 0 1px 2px #000; pointer-events: none; }
.cw-block .short .cw-ep b { color: #f48625; }
.cw-block .short .cw-rm { position: absolute; z-index: 13; top: 6px; right: 16px; width: 22px; height: 22px; line-height: 20px; border-radius: 50%; text-align: center;
  font-size: 14px; color: #fff; background: rgba(0,0,0,.7); cursor: pointer; opacity: 0; transition: opacity .15s, background .15s; box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
.cw-block .short:hover .cw-rm { opacity: 1; }
.cw-block .short .cw-rm:hover { background: #f48625; }
.cw-block .short .cw-bar { position: absolute; left: 10px; right: 10px; bottom: 20px; height: 3px; z-index: 12; background: rgba(255,255,255,.2); pointer-events: none; }
.cw-block .short .cw-bar i { display: block; height: 100%; background: #f48625; }
.cw-block .st-tabs [data-cw-clear] span { background: #2a2a2a; }
.cw-block .cw-rail { display: flex; flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scroll-behavior: smooth; scrollbar-width: thin; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
.cw-block .cw-rail > .short { flex: 0 0 16.66%; float: none; }
@media (max-width: 950px) { .cw-block .cw-rail > .short { flex-basis: 33.33%; } }
@media (max-width: 470px) { .cw-block .cw-rail > .short { flex-basis: 50%; } }
@media (hover: none) { .cw-block .short .cw-rm { opacity: 1; } }

/* ------------------------------------------------------------------ misc */
#home-root > p { margin: 0; height: 10px; }
.pages { border-radius: 2px; }
