/* Mode défilement : même écran CRT que la galerie (style.css fournit police, couleurs,
   .crt/.screen/.crt-fx, .dots, .inv, .vol, .toast). Ici : le fil et ses diapos. */
.feedpage .screen { overflow: hidden; }
.tt { text-transform: uppercase; letter-spacing: .07em; text-shadow: var(--glow); -webkit-text-stroke: .45px currentColor; }
.feedpage .crt-fx, .feed-open .crt-fx { background:
    repeating-linear-gradient(to bottom, rgba(0,0,0,.3) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at 50% 50%, transparent 55%, rgba(0,0,0,.5) 88%, rgba(0,0,0,.9) 100%),
    linear-gradient(160deg, rgba(255,255,255,.05) 0%, transparent 30%); }

/* Fil vertical aimanté */
.feed { position: absolute; inset: 0; overflow-y: scroll; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none; outline: none; }
.feed::-webkit-scrollbar { display: none; }
.slide { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden;
  display: grid; grid-template-columns: 1fr minmax(0, 760px) 270px 1fr; grid-template-rows: minmax(0, 1fr) auto; column-gap: 28px; row-gap: 12px;
  padding: 78px 34px 26px; }

/* Cadre du média : fenêtre de terminal avec barre de titre allumée */
.frame { grid-column: 2; grid-row: 1; min-height: 0; display: flex; flex-direction: column; border: 2px solid var(--hot); background: #000; box-shadow: 0 0 0 4px #000, 0 0 30px var(--glow-s); }
.ftitle { display: flex; gap: 12px; align-items: center; padding: 0 10px; background: var(--lit); color: var(--ink); text-shadow: none; -webkit-text-stroke: .45px var(--ink); white-space: nowrap; }
.ftitle .fname { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ftitle .dots { color: var(--ink); filter: none; opacity: .5; height: .7em; }
.ftitle .idx, .ftitle .fkind { opacity: .7; }
.mwrap { position: relative; flex: 1 1 auto; min-height: 0; }
.media { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
/* Le média remplit toujours son cadre (agrandi si besoin) : la transition arrive pile dessus. */
.media img, .media video { width: 100%; height: 100%; object-fit: contain; display: block; }
.media p { color: var(--muted); padding: 16px; text-align: center; }
.tap { position: absolute; inset: 0; z-index: 1; cursor: pointer; }
.play-ind { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; pointer-events: none; display: none; background: var(--lit); color: var(--ink); text-shadow: none; -webkit-text-stroke: .5px var(--ink); padding: 2px 16px; font-size: 1.6em; box-shadow: var(--lit-glow); }
.slide.paused .play-ind { display: block; animation: blink 1.2s steps(1) infinite; }
.burst { position: absolute; left: 50%; top: 50%; z-index: 2; pointer-events: none; opacity: 0; font-size: 140px; line-height: 1; color: var(--hot); text-shadow: 0 0 6px var(--hot), 0 0 30px var(--ph), 0 0 80px var(--glow-c); transform: translate(-50%, -50%); -webkit-text-stroke: 0; }
.burst.go { animation: burst .8s steps(8); }
@keyframes burst { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.5); } 20% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); } 70% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -70%) scale(1.1); } }

/* Colonne d'actions : menu de terminal */
.actions { grid-column: 3; grid-row: 1; align-self: end; display: grid; gap: 6px; }
.a-title { padding-bottom: 6px; margin-bottom: 4px; background-image: radial-gradient(circle, currentColor 1.15px, transparent 1.7px); background-size: 10px 5px; background-repeat: repeat-x; background-position: left bottom; }
.act { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: 0; padding: 1px 10px; color: var(--hot); text-decoration: none; text-align: left; font-size: 1.05em; text-shadow: inherit; -webkit-text-stroke: inherit; letter-spacing: inherit; white-space: nowrap; }
.act .k { color: var(--muted); min-width: 1ch; }
.act .dots { height: .7em; min-width: 12px; }
.act:hover { outline: 1px dotted var(--hot); }
.act.like[aria-pressed="true"], .act.sound.unmuted, .act:active { background: var(--lit); color: var(--ink); text-shadow: none; -webkit-text-stroke: .45px var(--ink); box-shadow: var(--lit-glow); }
.act.like[aria-pressed="true"] .k, .act.sound.unmuted .k { color: var(--ink); opacity: .65; }
.act.like[aria-pressed="true"] .dots, .act.sound.unmuted .dots { filter: none; }
.act.report.done { opacity: .5; }
.a-hint { color: var(--muted); margin-top: 8px; line-height: 1.15; }

/* Légende + barre de progression segmentée */
.caption { grid-column: 2 / 4; grid-row: 2; min-width: 0; display: grid; gap: 4px; }
.caption .title { font-weight: 400; font-size: 1.4em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.caption .title:empty { display: none; }
.caption .title::before { content: "> "; color: var(--muted); }
.caption .info { color: var(--muted); }
.progress { display: none; align-items: center; gap: 12px; margin-top: 2px; }
.slide.is-video .progress { display: flex; }
.pbar { position: relative; flex: 1 1 auto; height: 16px; border: 1px solid var(--muted); padding: 2px; cursor: pointer; touch-action: none; }
.pbar i { display: block; height: 100%; width: 0; background: repeating-linear-gradient(90deg, var(--hot) 0 7px, transparent 7px 9px); box-shadow: 0 0 10px var(--glow-c); pointer-events: none; }
.pbar:hover, .pbar.drag { border-color: var(--hot); }
.ptime { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Barre du haut */
.fbar { position: absolute; top: 0; left: 0; right: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 22px 34px 14px; background: linear-gradient(#000 40%, transparent); }
.fbar .st-l { text-decoration: none; white-space: nowrap; font-size: 1.1em; }
.fbar .st-l:hover { background: var(--lit); color: var(--ink); text-shadow: none; -webkit-text-stroke: .45px var(--ink); }
.fbar .cur::after { content: "_"; animation: blink 1.06s steps(1) infinite; }
.seg { display: flex; gap: 4px; }
.seg button, .tb { background: none; border: 0; padding: 0 10px; color: var(--hot); text-shadow: inherit; -webkit-text-stroke: inherit; letter-spacing: inherit; white-space: nowrap; }
.seg button b { font-weight: 400; color: var(--muted); }
.seg button:hover, .tb:hover { outline: 1px dotted var(--hot); }
.seg button[aria-pressed="true"] { background: var(--lit); color: var(--ink); text-shadow: none; -webkit-text-stroke: .45px var(--ink); box-shadow: var(--lit-glow); }
.seg button[aria-pressed="true"] b { color: var(--ink); opacity: .65; }
.top-right { display: flex; align-items: center; gap: 8px; }
.tb .kk { color: var(--muted); }
.tb.ph { display: inline-flex; align-items: center; gap: 8px; }
.top-right .vol-pop { top: calc(100% + 8px); bottom: auto; }

.feed-empty { position: absolute; inset: 0; z-index: 5; display: grid; place-content: center; justify-items: center; gap: 16px; text-align: center; padding: 16px; }
.feed-empty .inv { text-decoration: none; min-width: 0; padding: 2px 16px; }
.hint { position: absolute; left: 50%; bottom: 120px; transform: translateX(-50%); z-index: 9; background: #000; border: 2px solid var(--hot); padding: 2px 14px; white-space: nowrap; pointer-events: none; box-shadow: 0 0 20px var(--glow-s); animation: blink 1.4s steps(1) infinite; }

/* Téléphone : cadre plein écran, actions en ligne sous la légende */
@media (max-width: 860px) {
  .slide { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto auto; padding: 64px 12px 14px; row-gap: 8px; }
  .frame { grid-column: 1; }
  .caption { grid-column: 1; grid-row: 2; }
  .caption .title { font-size: 1.15em; }
  .actions { grid-column: 1; grid-row: 3; display: flex; gap: 4px; align-self: auto; }
  .a-title, .a-hint, .act .k, .act .dots { display: none; }
  .act { flex: 1 1 0; justify-content: center; flex-direction: column; gap: 0; padding: 2px 0; font-size: .82em; border: 1px solid var(--line); }
  .act .n { order: -1; font-size: 1.25em; }
  .fbar { display: grid; grid-template-columns: 1fr auto; row-gap: 8px; column-gap: 8px; padding: 12px 12px 10px; }
  .fbar .st-l { font-size: 1em; }
  .fbar .st-sub { display: none; }
  .seg { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; }
  .seg button { padding: 0 5px; font-size: .9em; }
  .seg button b { display: none; }
  .top-right { gap: 2px; }
  .tb { padding: 0 6px; }
  .tb.ph .ph-name, .tb.ph > span:first-child { display: none; }
  .tb .kk { display: none; }
  .slide { padding-top: 96px; }
  .hint { bottom: 150px; font-size: .9em; }
}
@media (prefers-reduced-motion: reduce) {
  .slide.paused .play-ind, .hint, .fbar .cur::after, .burst.go { animation: none; }
  .burst.go { opacity: 1; }
}
@media (min-width: 861px) and (max-width: 1400px) { .tb.ph > span:first-child { font-size: 0; } .tb.ph .ph-name { font-size: 22px; } }

/* ===== Surcouche du fil dans la galerie + transition vignette → fil ===== */
.screen.flayer { z-index: 30; overflow: hidden; }
.flip-clone { position: fixed; z-index: 40; pointer-events: none; overflow: hidden; background: #000; transform-origin: 50% 50%; will-change: transform, clip-path, opacity; contain: strict; }
.flip-clone img { width: 100%; height: 100%; display: block; }
.flayer .fbar, .flayer .actions, .flayer .caption, .flayer .frame { transition: none; }

/* ===== Icônes pixel des actions (v15) ===== */
.act .ico { width: 24px; height: 24px; flex: 0 0 auto; fill: currentColor; filter: drop-shadow(0 0 2px var(--hot)) drop-shadow(0 0 7px var(--glow-c)); }
.act .ico .i-on { display: none; }
.act.like[aria-pressed="true"] .ico .i-on, .act.sound.unmuted .ico .i-on { display: inline; }
.act.like[aria-pressed="true"] .ico .i-off, .act.sound.unmuted .ico .i-off { display: none; }
.act.like[aria-pressed="true"] .ico, .act.sound.unmuted .ico { filter: none; }
.act.like.pop .ico { animation: likepop .35s steps(4); }
@keyframes likepop { 50% { transform: scale(1.35); } }
.act .adm-k { display: inline-flex; align-items: center; justify-content: center; font-size: 22px; line-height: 1; filter: none; }
.act.adm { color: var(--danger); }
.act.adm:hover { outline-color: var(--danger); }
.actions .act { padding: 3px 10px; }
@media (max-width: 860px) {
  .act .ico { width: 26px; height: 26px; }
  .act { gap: 2px; }
  .act .n { order: 0; font-size: 1em; }
  .act .ico { order: -1; }
  .act .lb { font-size: .9em; }
  .act.adm .n { display: none; }
}

/* Actions admin : visibles seulement en mode admin */
.act.adm { display: none; }
.is-admin .act.adm { display: flex; }

/* Clic sur les côtés vides = retour à la galerie (ordinateur) */
