/* ═══ 11-17 ORTAK KABUK A · Town (`town.js`) ve ofis (`oyun/koy.js`) AYNI dosyayı yükler ═══════════════════════════════════
   Emir: "menüler çok karmaşık; ofis ve town ikisinin de kullanımı kolay ve aynı olmalı". Maket
   https://claude.ai/artifact/FeiowBJELkWg381kHoPMQT ("A · geliştirilmiş"). Kural: her şeyin tek yeri var.
     1. Solda sabit çubuk, her ekranda aynı beş bölüm (Town · Office · Content · Videos · Season).
     2. Bölümün paneli hep çubuğun yanında: başlık (ad + kısa bilgi + daralt) ve altında sekmeler (hap).
     3. Tıklanan şeyin ayrıntısı sağda, video ortada pencere, hesap ve bildirim sağ üstte.
   Telefonda çubuk alt sekme çubuğu olur (Town < 761 px, ofis < 900 px: iki sayfanın kendi kırılımı). */
.kbk-ray{position:fixed;left:0;top:calc(60px + env(safe-area-inset-top,0px));bottom:0;width:72px;z-index:9;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;gap:4px;padding:10px 6px;margin:0;background:#0e1628;border:0;border-right:1px solid rgba(255,255,255,.12);border-radius:0;box-shadow:none;pointer-events:auto;font-family:"Bricolage Grotesque","Avenir Next","Segoe UI",system-ui,sans-serif}
.kbk-ray .kbk-r{position:relative;flex:none;width:60px;height:60px;box-sizing:border-box;padding:0;margin:0;border:0;border-radius:12px;background:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;color:#a9b3c7;font:600 11px/1 "Bricolage Grotesque","Avenir Next","Segoe UI",system-ui,sans-serif;text-decoration:none;cursor:pointer;box-shadow:none}
.kbk-ray .kbk-r:hover{background:rgba(255,255,255,.06);color:#f4f1e8}
.kbk-ray .kbk-r:focus-visible{outline:2px solid #ffd978;outline-offset:-2px}
.kbk-ray .kbk-r.on{background:rgba(245,196,81,.14);color:#f5c451}
.kbk-ray .kbk-r.on::before{content:"";position:absolute;left:-6px;top:14px;bottom:14px;width:3px;border-radius:0 3px 3px 0;background:#f5c451}
.kbk-ray .kbk-r svg,.kbk-ray .kbk-r .ic svg{width:22px;height:22px;display:block}
.kbk-ray .kbk-r .ik{width:22px;height:22px;padding:0;border:0;background:none;display:block}
.kbk-ray .kbk-r[hidden]{display:none}
.kbk-say{position:absolute;top:4px;right:3px;min-width:18px;height:16px;padding:0 4px;box-sizing:border-box;border-radius:8px;background:#f5c451;color:#13203a;font:700 10px/16px "IBM Plex Mono",ui-monospace,monospace;font-style:normal;text-align:center;white-space:nowrap}
.kbk-say[hidden],.kbk-say:empty{display:none}

/* panel başlığı: bölüm adı, kısa bilgi, daralt; altında sekmeler */
.kbk-bas{position:sticky;top:0;z-index:2;padding:14px 14px 12px;background:inherit;border-bottom:1px solid rgba(255,255,255,.1);color:#f4f1e8;font-family:"Bricolage Grotesque","Avenir Next","Segoe UI",system-ui,sans-serif}
.kbk-bt{display:flex;align-items:center;gap:10px;min-width:0}
.kbk-bt b{flex:none;font-weight:800;font-size:20px;line-height:1.2;letter-spacing:-.01em}
.kbk-bt small{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:500 12px "IBM Plex Mono",ui-monospace,monospace;color:#a9b3c7}
.kbk-bt .kbk-kapa{margin-left:auto;flex:none;width:30px;height:30px;padding:0;border-radius:8px;border:1px solid rgba(255,255,255,.18);background:none;color:#a9b3c7;display:grid;place-items:center;cursor:pointer}
.kbk-bt .kbk-kapa:hover{color:#f4f1e8;border-color:rgba(255,255,255,.3)}
.kbk-bt .kbk-kapa svg{width:16px;height:16px}
.kbk-hap{display:flex;gap:6px;flex-wrap:wrap;margin-top:12px}
.kbk-hap[hidden]{display:none}
.kbk-hap button{height:34px;padding:0 14px;box-sizing:border-box;border-radius:999px;border:1px solid rgba(255,255,255,.24);background:none;color:#f4f1e8;font:700 13px "Bricolage Grotesque","Avenir Next","Segoe UI",system-ui,sans-serif;display:inline-flex;align-items:center;gap:6px;cursor:pointer;white-space:nowrap}
.kbk-hap button:hover{border-color:rgba(255,255,255,.4)}
.kbk-hap button:focus-visible{outline:2px solid #ffd978;outline-offset:2px}
.kbk-hap button[aria-selected="true"],.kbk-hap button[aria-pressed="true"]{background:#f5c451;border-color:#f5c451;color:#13203a}
.kbk-hap em{font:700 10px/1.5 "IBM Plex Mono",ui-monospace,monospace;font-style:normal;background:#f5c451;color:#13203a;border-radius:8px;padding:0 5px}
.kbk-hap em[hidden]{display:none}
.kbk-hap button[aria-selected="true"] em,.kbk-hap button[aria-pressed="true"] em{background:#13203a;color:#f5c451}

/* hesap menüsü (ofis; Town'un kendi `#town-menu`sü aynı satırları taşır) */
.kbk-menu{position:fixed;top:calc(66px + env(safe-area-inset-top,0px));right:14px;width:292px;max-width:calc(100vw - 28px);box-sizing:border-box;z-index:40;padding:10px;border-radius:14px;background:#0e1628;border:1px solid rgba(255,255,255,.18);box-shadow:0 14px 34px rgba(8,14,28,.5);color:#f4f1e8;font-family:"Bricolage Grotesque","Avenir Next","Segoe UI",system-ui,sans-serif}
.kbk-menu[hidden]{display:none}
.kbk-menu .kbk-m{display:block;width:100%;box-sizing:border-box;padding:9px 10px;border:0;border-radius:10px;background:none;color:inherit;text-align:left;text-decoration:none;font:inherit;cursor:pointer}
.kbk-menu .kbk-m:hover{background:rgba(255,255,255,.06)}
.kbk-menu .kbk-m b{display:block;font-size:15px;font-weight:700}
.kbk-menu .kbk-m span{font-size:12.5px;color:#a9b3c7}
.kbk-menu .kbk-ft{display:flex;flex-wrap:wrap;gap:6px 14px;margin-top:8px;padding:10px 10px 4px;border-top:1px solid rgba(255,255,255,.14);font-size:12.5px}
.kbk-menu .kbk-ft a{color:#a9b3c7;text-decoration:none}
.kbk-menu .kbk-ft a:hover{color:#f4f1e8}

@media (prefers-reduced-motion:reduce){.kbk-ray .kbk-r,.kbk-hap button{transition:none}}
/* telefon: alt sekme çubuğu (Town) */
@media (max-width:760px){
  #town .kbk-ray{top:auto;bottom:0;left:0;right:0;width:auto;height:calc(62px + env(safe-area-inset-bottom,0px));flex-direction:row;gap:0;padding:0 env(safe-area-inset-right,0px) env(safe-area-inset-bottom,0px) env(safe-area-inset-left,0px);border-right:0;border-top:1px solid rgba(255,255,255,.12)}
  #town .kbk-ray .kbk-r{flex:1 1 0;width:auto;height:62px;border-radius:0;gap:4px}
  #town .kbk-ray .kbk-r.on{background:none}
  #town .kbk-ray .kbk-r.on::before{left:28%;right:28%;top:0;bottom:auto;width:auto;height:3px;border-radius:0 0 3px 3px}
  #town .kbk-say{right:calc(50% - 26px)}
}
/* telefon: alt sekme çubuğu (ofis) */
@media (max-width:899px){
  #koy .kbk-ray{top:auto;bottom:0;left:0;right:0;width:auto;height:calc(62px + env(safe-area-inset-bottom,0px));flex-direction:row;gap:0;padding:0 env(safe-area-inset-right,0px) env(safe-area-inset-bottom,0px) env(safe-area-inset-left,0px);border-right:0;border-top:1px solid rgba(255,255,255,.12)}
  #koy .kbk-ray .kbk-r{flex:1 1 0;width:auto;height:62px;border-radius:0;gap:4px}
  #koy .kbk-ray .kbk-r.on{background:none}
  #koy .kbk-ray .kbk-r.on::before{left:28%;right:28%;top:0;bottom:auto;width:auto;height:3px;border-radius:0 0 3px 3px}
  #koy .kbk-say{right:calc(50% - 26px)}
}

/* ═══ 11-18 TAM EKRAN SAYFA (Content, Videos, Season; AI'ın kalıbı) · maket FeiowBJELkWg381kHoPMQT "Tam ekran sayfalar" ═══════════
   Emir: "full width olayı varsa content sayfalarını da böyle yapalım, video kısmını da, season'u da". Üst çubuk ve sol çubuk yerinde;
   geri kalan alan sayfa: başlık (ad · kısa bilgi · sekmeler · kapat), 4 özet kutu, iki sütun (geniş liste solda, yan kartlar sağda). */
.tp{position:fixed;left:72px;top:calc(60px + env(safe-area-inset-top,0px));right:0;bottom:0;z-index:30;overflow:auto;overscroll-behavior:contain;background:#0b1220;color:#f4f1e8;font-family:"Bricolage Grotesque","Avenir Next","Segoe UI",system-ui,sans-serif;font-size:14px}
.tp *{box-sizing:border-box}
.tp-in{max-width:1240px;margin:0 auto;padding:24px 28px 40px}
.tp-h{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.tp-h h2{margin:0;font-size:26px;font-weight:800}
.tp-h small{font:500 13px "IBM Plex Mono",ui-monospace,monospace;color:#a9b3c7}
.tp-h .sp{flex:1}
.tp-h .kbk-hap{margin:0}
.tp-x{width:38px;height:38px;border-radius:10px;border:1px solid rgba(255,255,255,.2);background:none;color:#a9b3c7;font-size:18px;cursor:pointer;flex:none}
.tp-x:hover{color:#f4f1e8}
.tp-sub{margin:6px 0 18px;color:#a9b3c7;font-size:14px;line-height:1.5;display:flex;gap:6px 12px;align-items:center;flex-wrap:wrap}
.tp-sub b{color:#f4f1e8}
.tp-t{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:12px}
.tp-tile{background:#13203a;border:1px solid rgba(255,255,255,.12);border-radius:14px;padding:16px;min-width:0}
.tp-tile.hero{border-color:rgba(245,196,81,.5)}
.tp-tile .k{font:600 11px "IBM Plex Mono",ui-monospace,monospace;letter-spacing:.1em;text-transform:uppercase;color:#a9b3c7}
.tp-tile .v{font-size:34px;font-weight:800;margin:6px 0 2px;font-variant-numeric:tabular-nums;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tp-tile .v.yazi{font-size:24px;line-height:1.35}
.tp-tile .s{font-size:13px;color:#a9b3c7;line-height:1.4}
.tp-g{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:12px;align-items:start}
.tp-col{display:grid;gap:12px;min-width:0}
.tp-card{background:#13203a;border:1px solid rgba(255,255,255,.12);border-radius:14px;padding:16px 18px;min-width:0}
.tp-card>h3{margin:0 0 2px;font-size:16px;font-weight:700}
.tp-card>.s{font-size:13px;color:#a9b3c7;margin-bottom:12px}
.tp-bos{margin:0;color:#a9b3c7}
.tp-chips{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:6px}
.tp-chips button{height:30px;padding:0 11px;border-radius:999px;border:1px solid rgba(255,255,255,.18);background:none;color:#f4f1e8;display:inline-flex;align-items:center;gap:6px;font:700 12.5px "Bricolage Grotesque",system-ui,sans-serif;cursor:pointer}
.tp-chips button[aria-pressed="true"]{border-color:#f5c451;color:#f5c451}
.tp-chips b{font:600 11px "IBM Plex Mono",ui-monospace,monospace;color:#a9b3c7}
.tp-more{margin-top:10px;background:none;border:0;padding:0;color:#f5c451;font:700 13px "Bricolage Grotesque",system-ui,sans-serif;text-decoration:underline;cursor:pointer}
/* video sayfası */
.tp-vg{display:grid;grid-template-columns:360px minmax(0,1fr);gap:20px;align-items:start}
.tp-vp{position:relative;width:360px;aspect-ratio:9/16;border-radius:16px;overflow:hidden;background:#000;border:1px solid rgba(255,255,255,.12)}
.tp-vp img,.tp-vp iframe{width:100%;height:100%;object-fit:cover;display:block;border:0}
.tp-vp .vidp-oyn{position:absolute;left:50%;top:50%;width:64px;height:64px;margin:-32px 0 0 -32px;border-radius:50%;border:0;background:#f5c451;display:grid;place-items:center;cursor:pointer}
.tp-etk{display:inline-flex;align-items:center;height:24px;padding:0 8px;border-radius:6px;background:#f5c451;color:#13203a;font:700 11px "IBM Plex Mono",ui-monospace,monospace;letter-spacing:.06em;text-transform:uppercase}
.tp-etk.sen{background:#9fe3b7;color:#0c2416;margin-left:6px}
.tp-vi h3.tp-vb{margin:10px 0 0;font-size:24px;font-weight:800;line-height:1.2}
.tp-vi .tp-vm{font:500 12.5px "IBM Plex Mono",ui-monospace,monospace;color:#a9b3c7;margin:6px 0 14px}
.tp-vnav{display:flex;gap:8px;margin-top:10px;flex-wrap:wrap}
.tp-b1,.tp-b2{height:38px;padding:0 14px;border-radius:10px;font:800 14px "Bricolage Grotesque",system-ui,sans-serif;display:inline-flex;align-items:center;gap:6px;cursor:pointer;text-decoration:none}
.tp-b1{background:#f5c451;color:#13203a;border:0}
.tp-b2{background:none;color:#f4f1e8;border:1px solid rgba(255,255,255,.24)}
.tp-b1:disabled,.tp-b2:disabled{opacity:.4;cursor:default}
.tp-rev{display:grid;place-items:center;width:100%;height:46px;margin-top:10px;border-radius:12px;border:1.5px solid #f5c451;background:none;color:#f5c451;font:800 15px "Bricolage Grotesque",system-ui,sans-serif;cursor:pointer}
.tp-cev{margin-top:10px}
.tp-cev small{font:600 11px "IBM Plex Mono",ui-monospace,monospace;letter-spacing:.1em;color:#a9b3c7}
.tp-cev b{display:block;font-size:22px;margin:2px 0 4px}
.tp-vgrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.tp-ve{display:block;width:100%;padding:0;text-align:left;background:#0f1a2e;border:1px solid rgba(255,255,255,.12);border-radius:12px;overflow:hidden;color:#f4f1e8;cursor:pointer;font:inherit}
.tp-ve[aria-current="true"]{border-color:#f5c451}
.tp-ve img{width:100%;aspect-ratio:3/4;object-fit:cover;display:block}
.tp-ve span{display:block;padding:8px 10px}
.tp-ve b{display:block;font-size:12.5px;line-height:1.3;max-height:33px;overflow:hidden}
.tp-ve small{font:500 11px "IBM Plex Mono",ui-monospace,monospace;color:#a9b3c7}
.tp-ve em{font-style:normal;color:#9fe3b7;font-weight:700}
@media (max-width:1100px){.tp-t{grid-template-columns:repeat(2,minmax(0,1fr))}.tp-g{grid-template-columns:minmax(0,1fr)}.tp-vgrid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:900px){.tp-vg{grid-template-columns:minmax(0,1fr)}.tp-vp{width:min(360px,100%);margin:0 auto}}
@media (max-width:760px){#town .tp{left:0;top:0;bottom:calc(62px + env(safe-area-inset-bottom,0px));z-index:40}.tp-in{padding:16px 14px 28px}.tp-tile .v{font-size:28px}.tp-vgrid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:899px){#koy .tp{left:0;top:0;bottom:calc(62px + env(safe-area-inset-bottom,0px));z-index:40}}
