/* BICIM-TV3 (17 Kas 2026): one TV grid for home #formats (12 formats + "Diğer N biçim") and /bicimler/, /en/formats/ (all of them).
   Sized as askleap.ai/formats measured at 1440 px: 3 columns of 430 px sets (12 px bezel, 48 px chin) with a 32 px gap = a 406x228
   screen; 1024 px: 3 columns; 701-899 px: 2; a phone: 1 column, 318x179 at 390 px. No tilt here: a rotated <video> is resampled by the
   compositor and comes out soft (the shelf's +-0.5deg tilt was one reason the clips looked blurry next to Leap's).
   The :is(#formats #tvs.btv,#tum-bicimler .btv) prefix weighs two ids, over home.css's #formats #tvs / #formats .tv rules (a separate file:
   another session is changing home.css / tv-cerceve.css; this one only adds). */
:is(#formats #tvs.btv,#tum-bicimler .btv){--set:430px;--gap:32px;display:grid;grid-template-columns:repeat(3,minmax(0,var(--set)));justify-content:center;gap:44px var(--gap);margin:var(--space-m) 0 0;padding:6px 0 0;list-style:none;overflow:visible}
:is(#formats #tvs.btv,#tum-bicimler .btv)>.tv{flex:none;width:auto;min-width:0;margin:0;container:none;position:relative;left:auto;isolation:isolate}
/* the body: the format's own colour (--c), Zıpır's speaker grill, two knobs, feet and the length badge in the chin */
:is(#formats #tvs.btv,#tum-bicimler .btv) .tv .set{--chin:48px;position:relative;display:block;padding:12px 12px var(--chin);border-radius:24px;background:var(--c);box-shadow:var(--clay),var(--lift);transform:none;transform-origin:50% 100%;transition:transform .35s var(--spring,ease)}
:is(#formats #tvs.btv,#tum-bicimler .btv) .tv .set:before{content:"";position:absolute;left:18px;bottom:16px;width:64px;height:16px;border-radius:8px;background:radial-gradient(circle,rgba(0,0,0,.28) 1.6px,transparent 2.2px) 0 0/8px 8px}
:is(#formats #tvs.btv,#tum-bicimler .btv) .tv .set:after,:is(#formats #tvs.btv,#tum-bicimler .btv) .tv .knob2{content:"";position:absolute;right:18px;bottom:13px;width:22px;height:22px;border-radius:50%;background:radial-gradient(circle at 35% 30%,rgba(255,255,255,.75),transparent 55%),var(--c);box-shadow:0 3px 5px #2814004d,inset 0 -3px 5px #28140040;filter:saturate(1.15) brightness(.9)}
:is(#formats #tvs.btv,#tum-bicimler .btv) .tv .knob2{right:48px}
:is(#formats #tvs.btv,#tum-bicimler .btv) .tv .feet{position:absolute;left:14%;right:14%;bottom:-9px;height:14px;z-index:-1}
:is(#formats #tvs.btv,#tum-bicimler .btv) .tv .feet:before,:is(#formats #tvs.btv,#tum-bicimler .btv) .tv .feet:after{content:"";position:absolute;bottom:0;width:30px;height:14px;border-radius:0 0 10px 10px;background:var(--c);filter:brightness(.78)}
:is(#formats #tvs.btv,#tum-bicimler .btv) .tv .feet:before{left:0}
:is(#formats #tvs.btv,#tum-bicimler .btv) .tv .feet:after{right:0}
:is(#formats #tvs.btv,#tum-bicimler .btv) .tv .screen{position:relative;display:block;aspect-ratio:16/9;border-radius:16px;overflow:hidden;background:#0d1512;box-shadow:inset 0 0 0 3px #0000002e;isolation:isolate}
:is(#formats #tvs.btv,#tum-bicimler .btv) .tv .screen img.poster{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:0;box-shadow:none}
:is(#formats #tvs.btv,#tum-bicimler .btv) .tv .screen video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
:is(#formats #tvs.btv,#tum-bicimler .btv) .tv .fg-sure{position:absolute;left:50%;right:auto;top:auto;bottom:calc(var(--chin) / 2);transform:translate(-50%,50%);z-index:3;padding:.1rem .5rem;border-radius:999px;background:rgba(18,22,20,.92);color:#fff;font-size:.72rem;font-weight:700;font-variant-numeric:tabular-nums;line-height:1.5;pointer-events:none}
/* >= 1420 px (the wrap is capped at 1400 there): the grid is Leap's 3 x 430 + 2 x 32 = 1354 px, centred on the wrap, so 20 px wider than
   the wrap's text column on each side. A fixed width centred on the wrap sits at (viewport - 1354) / 2 whatever the 3vw gutter is, so
   it does not move when the page is locked under the full-size dialog (BICIM-TV4: a classic scrollbar's 15 px leave vw then). */
@media(min-width:1420px){:is(#formats #tvs.btv,#tum-bicimler .btv),#formats .btv-diger{margin-inline:calc((100% - 1354px) / 2)}}
/* the hub's clip fades in over its still once it really plays (bicim-tv.js adds .on on 'playing') */
#tum-bicimler .btv .screen .btv-v{opacity:0;transition:opacity .45s}
#tum-bicimler .btv .screen.on .btv-v{opacity:1}
/* the card text: name, one line of what it looks like, where the clip comes from */
:is(#formats #tvs.btv,#tum-bicimler .btv) .tv figcaption,#tum-bicimler .btv .btv-cap{display:block;margin:16px 0 0;padding:0 6px}
:is(#formats #tvs.btv,#tum-bicimler .btv) .tv figcaption b,#tum-bicimler .btv .btv-ad{display:block;font-family:var(--body);font-weight:800;font-size:var(--text-l);line-height:1.15;color:var(--ink)}
#tum-bicimler .btv .btv-ad{margin:0;padding:0}
#tum-bicimler .btv .btv-cap{margin-top:0}
:is(#formats #tvs.btv,#tum-bicimler .btv) .tv span.btv-tanim{display:block;margin-top:.2rem;color:var(--ink);font-size:.98rem;line-height:1.35;text-wrap:pretty}
:is(#formats #tvs.btv,#tum-bicimler .btv) .tv small.btv-kaynak{display:block;margin-top:.25rem;color:var(--ink-2);font-size:.85rem;line-height:1.4;overflow-wrap:anywhere}
:is(#formats #tvs.btv,#tum-bicimler .btv) .tv .tag{display:inline-block;margin:0 0 8px;padding:5px 10px;border-radius:10px;background:var(--butter);color:var(--ink);font:700 .78rem/1 var(--body);font-style:normal}
/* the hub card is one link (screen and name) to its format page */
#tum-bicimler .btv .btv-a{display:flex;align-items:center;min-height:var(--tap,44px);margin-top:6px;padding:0 6px;color:inherit;text-decoration:none;background:none;border-radius:12px}
#tum-bicimler .btv .btv-ekr{display:block;color:inherit;text-decoration:none;background:none}
#tum-bicimler .btv .btv-a:focus-visible{outline:3px solid var(--green-deep);outline-offset:5px}

#tum-bicimler .btv-bas{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.5rem 1rem}
#tum-bicimler .btv-bas .fg-h{font-family:var(--display);font-size:var(--text-2xl);line-height:1.05}
#tum-bicimler.btv-hub{margin-top:var(--space-l)}
.btv-dur{display:inline-flex;align-items:center;gap:8px;min-height:var(--tap,44px);padding:0 16px 0 13px;border:0;border-radius:999px;background:var(--putty-2,#EFE5D2);color:var(--ink);font:700 var(--text-s)/1 var(--body);cursor:pointer;box-shadow:inset 0 -3px #0002}
.btv-dur[hidden]{display:none}
.btv-dur svg{fill:currentColor}
.btv-dur[aria-pressed=false] .i-play,.btv-dur[aria-pressed=true] .i-pause{display:none}
.btv-dur:focus-visible{outline:3px solid var(--green-deep);outline-offset:3px}
/* home: the band after the twelve TVs, one link to the page with all the formats */
#formats .btv-diger{display:flex;background-image:none;align-items:center;gap:clamp(14px,2vw,28px);min-height:var(--tap,44px);margin:clamp(40px,4vw,56px) 0 0;padding:16px clamp(16px,2.4vw,28px);border-radius:24px;background:var(--paper);border:2px solid var(--line);color:var(--ink);text-decoration:none;box-shadow:var(--lift);transition:transform .3s var(--spring,ease),border-color .2s}
#formats .btv-diger:hover{transform:translateY(-3px);border-color:var(--ink)}
#formats .btv-diger:focus-visible{outline:3px solid var(--green-deep);outline-offset:4px}
.btv-yigin{flex:none;display:flex;padding-left:22px}
.btv-yigin img{display:block;width:88px;height:auto;aspect-ratio:16/9;object-fit:cover;margin-left:-22px;border-radius:10px;border:3px solid var(--paper);box-shadow:0 4px 10px #2814002e}
.btv-yigin img:nth-child(odd){transform:rotate(-4deg)}.btv-yigin img:nth-child(even){transform:rotate(3deg) translateY(-3px)}
.btv-dt{flex:1;min-width:0}
.btv-dt b{display:block;font-family:var(--display);font-weight:400;font-size:var(--text-xl);line-height:1.05}
.btv-dt small{display:block;margin-top:.3rem;color:var(--ink-2);font-size:var(--text-s);line-height:1.4}
.btv-ok{flex:none;display:grid;place-items:center;width:52px;height:52px;border-radius:50%;background:var(--ink);color:var(--paper);transition:transform .3s var(--spring,ease)}
#formats .btv-diger:hover .btv-ok{transform:translateX(4px)}
@media(max-width:899px){:is(#formats #tvs.btv,#tum-bicimler .btv){grid-template-columns:repeat(2,minmax(0,1fr));margin-inline:0;gap:40px 24px}}
@media(max-width:700px){
  :is(#formats #tvs.btv,#tum-bicimler .btv){display:grid;grid-template-columns:minmax(0,1fr);gap:36px;margin-inline:0;padding:6px 8px 0;overflow:visible;scroll-snap-type:none}
  :is(#formats #tvs.btv,#tum-bicimler .btv) .tv figcaption b,#tum-bicimler .btv .btv-ad{font-size:1.2rem}
  .btv-yigin img{width:64px}.btv-yigin img:nth-child(n+4){display:none}
  .btv-ok{width:44px;height:44px}
}
@media(max-width:420px){.btv-yigin{display:none}}
@media(prefers-reduced-motion:reduce){:is(#formats #tvs.btv,#tum-bicimler .btv) .tv .set,#formats .btv-diger,.btv-ok{transition:none;transform:none!important;animation:none!important}#tum-bicimler .btv .screen .btv-v{transition:none}}
/* BICIM-TV4 (17 Kas, Leap's home page: the TV springs under the pointer; a round "grow" button in the middle of the chin; a click opens
   the clip big in a modal): hover/focus spring, the button (a 44 px target around a 28 px paper disc), the full-size TV dialog. */
@keyframes btv-boing{0%{transform:none}20%{transform:scale(1.035,.955)}42%{transform:translateY(-7px) scale(.975,1.03)}64%{transform:translateY(-1px) scale(1.012,.99)}82%{transform:scale(.996,1.004)}to{transform:none}}
@media(hover:hover)and (pointer:fine){:is(#formats #tvs.btv,#tum-bicimler .btv) .tv:hover .set{animation:btv-boing .75s var(--ease,ease)}}
:is(#formats #tvs.btv,#tum-bicimler .btv) .tv .set.btv-buyur{cursor:zoom-in}
:is(#formats #tvs.btv,#tum-bicimler .btv) .tv .set.btv-buyur .fg-sure{left:calc(50% - 26px);transform:translate(-100%,50%)}
:is(#formats #tvs.btv,#tum-bicimler .btv) .tv .grow{position:absolute;left:50%;bottom:calc((var(--chin) - 44px) / 2);z-index:4;display:grid;place-items:center;width:44px;height:44px;margin:0 0 0 -22px;padding:0;border:0;border-radius:50%;background:none;color:var(--ink);cursor:zoom-in;-webkit-tap-highlight-color:transparent}
:is(#formats #tvs.btv,#tum-bicimler .btv) .tv .grow[hidden]{display:none}
.btv .grow-i{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--paper);box-shadow:0 1px 2px rgba(60,40,15,.18),0 6px 14px -6px rgba(60,40,15,.45);transition:transform .3s var(--spring,ease)}
.btv .grow-i svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
@media(hover:hover)and (pointer:fine){.btv .tv:hover .grow-i{transform:scale(1.15)}}
.btv .grow:focus-visible{outline:none}.btv .grow:focus-visible .grow-i{transform:scale(1.15);outline:3px solid var(--ink);outline-offset:2px}
/* the page under the dialog stays where it is: no scroll and no reflow */
html:not(.btv-sb):has(dialog.btv-pl[open]){overflow:hidden}
/* a classic scrollbar (Windows, Linux; html.btv-sb, bicim-tv.js): overflow:hidden would take it away and with it 15 px of vw, and the
   site's vw-sized type and gutters would move 1-1.5 px behind the dialog (measured; scrollbar-gutter keeps the width, not the vw).
   There the scrollbar stays and bicim-tv.js holds the page still instead (wheel, touch, keys; any scroll that slips through is undone). */
.btv-pl{overscroll-behavior:contain;width:min(92vw,1100px,calc((100vh - 150px) * 16 / 9 + 28px));width:min(92vw,1100px,calc((100dvh - 150px) * 16 / 9 + 28px));max-width:none;max-height:none;margin:auto;padding:0 0 12px;border:0;background:none;color:var(--ink);overflow:visible}
.btv-pl::backdrop{background:rgba(22,38,30,.42);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.btv-pl[open]::backdrop{animation:btv-perde .3s ease}
@keyframes btv-perde{from{opacity:0}}
.btv-pl-set{position:relative;padding:14px 14px 0;border-radius:30px;background:var(--c,var(--butter));box-shadow:inset 0 -12px 22px -8px rgba(40,20,0,.22),inset 0 10px 16px -10px rgba(255,255,255,.7),0 40px 90px -30px rgba(20,10,0,.6);transform-origin:0 0}
.btv-pl-set:before,.btv-pl-set:after{content:"";position:absolute;bottom:-12px;width:46px;height:14px;border-radius:0 0 12px 12px;background:var(--c,var(--butter));filter:brightness(.78);z-index:-1}
.btv-pl-set:before{left:16%}.btv-pl-set:after{right:16%}
.btv-pl-ekran{border-radius:18px;overflow:hidden;background:#0d1512;box-shadow:inset 0 0 0 3px #0000002e}
.btv-pl-ekran video{display:block;width:100%;height:auto;aspect-ratio:16/9;background:#0d1512}
.btv-pl-alt{display:flex;align-items:center;gap:12px;padding:12px 2px 14px}
.btv-pl-yazi{flex:1;min-width:0;margin:0;padding:8px 14px;border-radius:14px;background:var(--paper);box-shadow:inset 0 -3px #0000000f}
.btv-pl-yazi b{display:block;font-family:var(--body);font-weight:800;font-size:var(--text-l);line-height:1.15}
.btv-pl-yazi small{display:block;margin-top:2px;color:var(--ink-2);font-size:.85rem;line-height:1.35;overflow-wrap:anywhere}
.btv-pl-x{flex:none;display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:14px;background:var(--paper);color:var(--ink);cursor:pointer;box-shadow:inset 0 -3px #0000001f;transition:transform .25s var(--spring,ease)}
.btv-pl-x svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round}
.btv-pl-x:hover{transform:scale(1.08)}
.btv-pl-x:focus-visible{outline:3px solid var(--ink);outline-offset:2px}
@media(max-width:560px){.btv-pl-set{padding:8px 8px 0;border-radius:22px}.btv-pl-ekran{border-radius:14px}.btv-pl-alt{padding:8px 0 10px;gap:8px}.btv-pl-yazi{padding:6px 10px}.btv-pl-yazi b{font-size:1.05rem}}
@media(prefers-reduced-motion:reduce){:is(#formats #tvs.btv,#tum-bicimler .btv) .tv:hover .set{animation:none}.btv .grow-i,.btv-pl-x{transition:none}.btv .tv:hover .grow-i{transform:none}.btv-pl[open]::backdrop{animation:none}}
