/* ═══════════════════════════════════════════════════════════════════
   FOTO FOKUS — mockup'ın ff-page (landing), ff-detail ve ff-viewer'ı.
   Yalnız galeri sayfalarında ($extra_css) yükleniyor; app.css'in .lb
   lightbox'ını .lb-ff varyantıyla zenginleştiriyor. Varsayılan .lb (diğer
   4 sayfa) app.css'te; buradaki kurallar yalnız .lb-ff kapsamında.
   ═══════════════════════════════════════════════════════════════════ */

/* ── Zenginleştirilmiş lightbox (mockup .ff-viewer) ──
   Mockup ızgarası: 56px başlık | esnek sahne | 98px sarı şerit | 62px küçük
   resimler. Varsayılan .lb (diğer 4 sayfa) app.css'te ve buraya girmiyor. */
.lb-ff.open{display:grid;grid-template-rows:56px minmax(0,1fr) auto 62px;grid-template-columns:100%;
  align-items:stretch;justify-items:stretch;justify-content:stretch;align-content:stretch;
  width:min(100%,540px);height:100dvh;margin:0 auto;background:#07090c;overflow:hidden;opacity:1}
/* Üst çubuk: geri (sol) + paylaş (sağ). Varsayılan yolda gizli. */
.lb-ff .lb-head{display:grid;grid-template-columns:44px 1fr 44px;align-items:center;gap:8px;padding:0 10px;
  border-bottom:1px solid rgba(255,255,255,.07);background:rgba(7,9,12,.98)}
.lb-ff .lb-share{grid-column:3}
.lb-ff .lb-back,.lb-ff .lb-share{width:38px;height:38px;border-radius:50%;border:1px solid rgba(255,255,255,.12);
  background:#10141a;color:#fff;display:grid;place-items:center;cursor:pointer;padding:0}
.lb-ff .lb-back svg,.lb-ff .lb-share svg{width:18px;height:18px}
/* Üst çubuk geri düğmesini taşıyor; ayrıca çarpı basılmıyor. */
.lb-ff .lb-x{display:none}
.lb-ff .lb-stage{position:relative;min-height:0;width:100%;max-width:none;max-height:none;
  display:block;background:#020304;cursor:default;gap:0;touch-action:pan-y}
.lb-ff .lb-img{position:absolute;inset:0;width:100%;height:100%;max-width:none;max-height:none;
  object-fit:cover;border-radius:0;box-shadow:none;background:#020304;transition:opacity .16s ease}
.lb-ff .lb-wm{display:inline-flex;align-items:center;gap:5px;position:absolute;top:69px;left:13px;z-index:6;
  padding:9px 12px;border-radius:999px;background:rgba(7,9,12,.84);border:1px solid rgba(255,255,255,.2);
  box-shadow:0 8px 22px rgba(0,0,0,.26);font-size:13px;font-weight:950;line-height:1;letter-spacing:-.15px;color:#fff}
.lb-ff .lb-wm span{color:#ef3346}
.lb-ff .lb-count{top:69px;bottom:auto;left:auto;right:13px;transform:none;z-index:6;
  padding:7px 11px;background:rgba(7,9,12,.76);border:1px solid rgba(255,255,255,.14);
  font-weight:950;font-size:10.5px;line-height:1;backdrop-filter:blur(8px)}
/* Oklar sahnenin dikey ortasında: .lb-nav ızgara kabına göre mutlak, o yüzden
   sahne ortası elle hesaplanıyor (başlık 56 + şerit 98 + küçük resim 62 = 216).
   !important, app.css:2145'teki !important zeminini yenmek için şart. */
.lb-ff .lb-nav{top:calc(56px + (100dvh - 216px)/2);width:40px;height:40px;font-size:22px;z-index:6;
  background:rgba(7,9,12,.68)!important;border:1px solid rgba(255,255,255,.14)!important;backdrop-filter:blur(8px)}
/* Sarı altyazı şeridi (mockup .ff-caption-band) — sahnenin ALTINDA, ızgara satırı. */
.lb-ff .lb-cap{position:static;margin:0;max-width:none;text-align:left;
  background:#f2c94c;color:#11151b;border-top:1px solid rgba(0,0,0,.12);
  display:grid;grid-auto-rows:auto;max-height:98px;padding:7px 14px 8px 16px;box-sizing:border-box;overflow:hidden}
.lb-ff .lb-cap-l{min-width:0;display:flex;align-items:center;padding:4px 0;font-size:10.6px;line-height:1.12;font-weight:850;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border-bottom:1px solid rgba(17,21,27,.08)}
.lb-ff .lb-cap-l:last-child{border-bottom:0}
/* Küçük resim şeridi (mockup .ff-thumbs). */
.lb-ff .lb-thumbs{display:flex;align-items:center;gap:7px;overflow-x:auto;scrollbar-width:none;
  padding:9px 10px calc(9px + env(safe-area-inset-bottom,0));
  background:#0a0d11;border-top:1px solid rgba(255,255,255,.07)}
.lb-ff .lb-thumbs::-webkit-scrollbar{display:none}
.lb-ff .lb-thumb{flex:0 0 58px;height:40px;border-radius:8px;border:2px solid transparent;
  background:#11151b center/cover no-repeat;opacity:.56;cursor:pointer;padding:0}
.lb-ff .lb-thumb.active{border-color:#ef3346;opacity:1}
@media(max-width:390px){
  .lb-ff.open{grid-template-rows:54px minmax(0,1fr) auto 60px}
  .lb-ff .lb-head{padding:0 9px}
  .lb-ff .lb-back,.lb-ff .lb-share{width:36px;height:36px}
  .lb-ff .lb-wm{top:65px;left:11px;padding:8px 11px;font-size:12px}
  .lb-ff .lb-count{top:65px;right:11px;padding:6px 9px;font-size:10px}
  .lb-ff .lb-nav{top:calc(54px + (100dvh - 208px)/2);width:38px;height:38px}
  .lb-ff .lb-cap{padding:6px 12px 7px 14px}
  .lb-ff .lb-cap-l{font-size:10.1px}
  .lb-ff .lb-thumb{flex-basis:54px;height:38px}
}
/* ── Landing (mockup .ff-page) ── */
.ff-page-w{max-width:var(--app-w);margin:0 auto}
.ff-main-title{display:flex;align-items:center;gap:9px;margin:2px 14px 15px;font-size:26px;font-weight:950;letter-spacing:-.9px;color:var(--hb-t)}
.ff-main-title:before{content:"";width:5px;height:28px;border-radius:99px;background:var(--hb-red)}
/* Mockup .ff-lead KART DEĞİL: çerçevesiz, yalnız alt çizgi. Görsel 272px/4px. */
.ff-lead2{display:block;position:relative;margin:0 14px;padding-bottom:12px;
  border-bottom:1px solid var(--hb-line2);text-decoration:none;color:#fff}
.ff-lead2-img{position:relative;display:block;height:272px;border-radius:4px;overflow:hidden;
  background:var(--hb-panel3) center/cover no-repeat}
.ff-lead2-img:after{content:"";position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(0,0,0,.02) 12%,rgba(0,0,0,.10) 36%,rgba(0,0,0,.74) 82%,rgba(0,0,0,.92) 100%)}
/* Mockup'ta lead'de başlık/tarih/sayaç GİZLİ; yalnız açıklama metni var. */
.ff-lead2-c{position:absolute;left:16px;right:16px;bottom:14px;z-index:2;
  display:flex;flex-direction:column;justify-content:flex-end;min-height:128px;max-width:78%}
.ff-lead2-c p{margin:0;color:rgba(255,255,255,.92);font-size:12.5px;line-height:1.55;
  display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden;
  text-shadow:0 2px 10px rgba(0,0,0,.24)}
.ff-list-h{display:flex;align-items:center;justify-content:space-between;margin:22px 14px 9px}
.ff-list-h b{font-size:19px;font-weight:950;letter-spacing:-.45px;color:var(--hb-t)}
.ff-ranked2{display:grid;padding:0 14px;border-top:1px solid var(--hb-line2)}
.ff-row2{display:grid;grid-template-columns:30px 108px 1fr;gap:0 10px;align-items:center;
  padding:13px 0;min-height:98px;border-bottom:1px solid var(--hb-line2);text-decoration:none;color:inherit}
.ff-row2-no{font-size:23px;font-weight:950;color:var(--hb-t3);letter-spacing:-1px;line-height:1}
.ff-row2:first-child .ff-row2-no{color:var(--hb-red)}
[data-theme="dark"] .ff-row2:first-child .ff-row2-no{color:var(--hb-red2)}
.ff-row2-img{height:74px;border-radius:4px;background:var(--hb-panel3) center/cover no-repeat}
.ff-row2-c b{display:-webkit-box;font-size:12.5px;line-height:1.38;letter-spacing:-.12px;font-weight:700;
  color:var(--hb-t);-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
@media(max-width:390px){
  .ff-lead2-img{height:250px}
  .ff-lead2-c{left:12px;right:12px;bottom:12px;min-height:112px;max-width:82%}
  .ff-lead2-c p{font-size:11.5px}
  .ff-row2{grid-template-columns:28px 96px 1fr;gap:0 8px}
  .ff-row2-img{height:68px}
  .ff-row2-c b{font-size:12px}
}
/* ── Galeri detay (foto ızgarası → ff-viewer) ── */
.ff-d-head{padding:0 0 12px}
.ff-d-head h2{margin:0;font-size:22px;font-weight:900;letter-spacing:-.5px;color:var(--hb-t)}
.ff-d-head p{margin:6px 0 0;color:var(--hb-t2);font-size:12.5px;line-height:1.5}
.ff-d-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:4px;margin-top:12px}
.ff-d-item{position:relative;aspect-ratio:1/1;border-radius:6px;overflow:hidden;background:var(--hb-panel3) center/cover no-repeat;cursor:pointer;display:block}
.ff-d-i{position:absolute;left:6px;bottom:5px;z-index:1;font-size:9px;font-weight:900;color:#fff;text-shadow:0 1px 4px rgba(0,0,0,.7)}
