/* Cashmere iPhone — TV tasarımının telefona uyarlanması.
   Renkler TV ile aynı: siyah zemin, gri parıltı, bronz-altın vurgu (#b78b5a), ince yazı. */
:root {
  --bg: #0a0a0a; --panel: rgba(20,20,20,0.7); --card: #1a1a1a; --line: #333; --text: #e8e8e8; --dim: #888;
  --gold: #b78b5a; --gold2: #d4af37; --goldbg: rgba(212,175,55,0.15);
  --st: env(safe-area-inset-top); --sb: env(safe-area-inset-bottom); --sl: env(safe-area-inset-left); --sr: env(safe-area-inset-right);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); overflow: hidden; }
body { font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-weight: 300; -webkit-user-select: none; user-select: none; -webkit-text-size-adjust: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input { font: inherit; -webkit-user-select: text; user-select: text; }
.hidden { display: none !important; }
#bg-glow { position: fixed; inset: 0; background: radial-gradient(ellipse at 30% 30%, #2a2a2a 0%, #0a0a0a 60%); pointer-events: none; z-index: 0; }

/* ---------- Ekranlar ---------- */
.screen { position: fixed; inset: 0; z-index: 10; padding: var(--st) var(--sr) var(--sb) var(--sl); display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s linear .35s; }
.screen.active { opacity: 1; visibility: visible; transition: opacity .35s ease; }
.bar { display: flex; align-items: center; height: 52px; padding: 0 14px; flex: 0 0 auto; letter-spacing: 2px; }
.bar .back { font-size: 34px; color: #aaa; width: 36px; line-height: 1; margin-top: -4px; }
.bar .title { flex: 1; font-size: 19px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar .ico { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; }
.bar .ico img, .bar .ico svg { width: 22px; height: 22px; }

/* ---------- Analog saat (TV ile aynı) ---------- */
.clock { position: relative; border: 1px solid #444; border-radius: 50%; box-shadow: 0 0 20px rgba(0,0,0,.5); margin: 0 auto; }
.clock::before { content: ''; position: absolute; top: 7%; left: 50%; width: 1px; height: 7%; background: #e8e8e8; opacity: .6; transform: translateX(-50%);
  box-shadow: 0 var(--tick) 0 #e8e8e8, calc(var(--tick) / -2) calc(var(--tick) / 2) 0 #e8e8e8, calc(var(--tick) / 2) calc(var(--tick) / 2) 0 #e8e8e8; }
.clock i { position: absolute; bottom: 50%; left: 50%; transform-origin: bottom center; border-radius: 2px; }
.clock .h { width: 2px; height: 25%; margin-left: -1px; background: var(--gold); }
.clock .m { width: 1px; height: 39%; margin-left: -.5px; background: #aaa; }
.clock b { position: absolute; top: 50%; left: 50%; width: 5px; height: 5px; background: #fff; border-radius: 50%; transform: translate(-50%, -50%); }

/* ---------- Ana ekran ---------- */
#main { align-items: center; }
#main .top-icons { position: absolute; top: calc(var(--st) + 10px); right: calc(var(--sr) + 12px); display: flex; z-index: 2; }
#main .top-icons button { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; }
#main .top-icons img { width: 22px; height: 22px; }
#m-clock { width: 38vw; height: 38vw; max-width: 190px; max-height: 190px; --tick: calc(min(38vw, 190px) * 0.79); margin-top: 9vh; }
#rings { display: grid; grid-template-columns: 1fr 1fr; gap: 6vw 10vw; margin-top: 7vh; }
.ring { display: flex; flex-direction: column; align-items: center; }
.circle { position: relative; width: 31vw; height: 31vw; max-width: 150px; max-height: 150px; border-radius: 50%; background: rgba(15,15,15,.8); border: 1.5px solid #2a2a2a; }
.circle::before { content: ''; position: absolute; inset: -1.5px; border-radius: 50%; border: 1.5px solid #fff; background: rgba(255,255,255,.05);
  box-shadow: 0 0 18px rgba(255,255,255,.25); opacity: 0; transition: opacity .45s cubic-bezier(.22,.61,.36,1); }
.circle img { position: absolute; top: 50%; left: 50%; width: 56%; height: 56%; transform: translate(-50%, -50%); pointer-events: none; }
.circle .off { filter: brightness(.6) grayscale(1); }
.circle .on { filter: brightness(1.2) drop-shadow(0 0 6px rgba(255,255,255,.8)); opacity: 0; transition: opacity .45s; }
.ring.active .circle::before, .ring.active .circle .on { opacity: 1; }
.ring span { margin-top: 12px; font-size: 14px; letter-spacing: 2.5px; color: #aaa; }
.ring.active span { color: #fff; }
#m-status { margin-top: auto; margin-bottom: 18px; font-size: 12px; letter-spacing: 1.5px; color: #666; text-align: center; padding: 0 20px; }
#m-status button { margin-top: 10px; }

/* ---------- Ortak liste paneli ---------- */
.panel { background: var(--panel); border-radius: 4px; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 5px; scrollbar-width: none; }
.panel::-webkit-scrollbar { display: none; }
.cat { padding: 12px 12px; font-size: 14px; letter-spacing: .6px; color: #bbb; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border: 1px solid transparent; border-radius: 3px; }
.cat.active { background: rgba(212,175,55,.2); border-color: var(--gold); color: #fff; }
.cat .cnt { color: #666; font-size: 11px; margin-left: 6px; }
.lock::after { content: ''; display: inline-block; width: 10px; height: 12px; margin-left: 7px; vertical-align: -1px; opacity: .75;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 12'%3E%3Crect x='1' y='5' width='8' height='7' rx='1' fill='%23b78b5a'/%3E%3Cpath d='M3 5V3.5a2 2 0 0 1 4 0V5' fill='none' stroke='%23b78b5a' stroke-width='1.2'/%3E%3C/svg%3E") center / contain no-repeat; }
.ch { display: flex; align-items: center; height: 54px; padding: 0 10px; border: 1px solid transparent; border-radius: 3px; }
.ch .lg { width: 44px; height: 30px; object-fit: contain; flex: 0 0 auto; margin-right: 10px; }
.ch .lg.none { background: #1d1d1d; border-radius: 3px; }
.ch .nm { flex: 1; font-size: 14px; color: #ddd; letter-spacing: .4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch.fav .nm { color: var(--gold2); }
.ch.active { background: var(--goldbg); border-color: var(--gold); }
.ch.active .nm { color: #fff; }
.ch.active .lg { filter: drop-shadow(0 0 3px rgba(212,175,55,.8)); }
.ch.moving { border-style: dashed; border-color: var(--gold2); }
.empty { padding: 30px 12px; text-align: center; color: #666; font-size: 13px; letter-spacing: 1px; }
.conn { position: absolute; inset: 0; pointer-events: none; z-index: 5; width: 100%; height: 100%; }
.conn path { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linejoin: miter; stroke-linecap: butt; shape-rendering: geometricPrecision; }

/* ---------- Canlı yayın / Film-Dizi gövdesi: dikey ---------- */
.body3 { position: relative; flex: 1; min-height: 0; display: grid; padding: 0 10px 8px; gap: 8px;
  grid-template-columns: 40% 1fr; grid-template-rows: auto 1fr; grid-template-areas: "right right" "cats items"; }
.body3 .right { grid-area: right; display: flex; flex-direction: column; }
.body3 .cats { grid-area: cats; }
.body3 .items { grid-area: items; }
.body3 .clock { display: none; }
.preview { position: relative; width: 100%; aspect-ratio: 16 / 9; background: rgba(0,0,0,.5); border-radius: 4px; overflow: hidden; }
.preview .hint { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #555; font-size: 12px; letter-spacing: 2px; }
.searchbar { padding: 0 10px 8px; }
.searchbar input { width: 100%; height: 38px; border-radius: 4px; border: 1px solid #444; background: rgba(0,0,0,.5); color: #fff; padding: 0 12px; font-size: 15px; outline: none; }
.searchbar input:focus { border-color: var(--gold); }

/* ---------- Yatay: TV'deki 3 panel ---------- */
@media (orientation: landscape) {
  .bar { height: 44px; }
  .body3 { grid-template-columns: 23% 27% 1fr; grid-template-rows: 1fr; grid-template-areas: "cats items right"; gap: 12px; padding: 0 14px 10px; }
  .body3 .clock { display: block; width: 26vh; height: 26vh; --tick: calc(26vh * 0.79); margin: 2vh auto 3vh; }
  .body3 .right { justify-content: flex-start; }
  #m-clock { width: 28vh; height: 28vh; --tick: calc(28vh * 0.79); margin-top: 6vh; }
  #rings { grid-template-columns: repeat(4, auto); gap: 0 5vw; margin-top: 7vh; }
  .circle { width: 22vh; height: 22vh; }
}

/* ---------- Oynatma sahnesi (tek video kutusu; önizlemede küçük, tam ekranda büyük) ---------- */
#stage { position: fixed; z-index: 60; background: #000; overflow: hidden; border-radius: 4px; display: none; }
#stage.on { display: block; }
#stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
#stage.full { border-radius: 0; z-index: 80; inset: 0; width: auto !important; height: auto !important; top: 0 !important; left: 0 !important; }
#stage.full.rot { inset: auto; top: 50% !important; left: 50% !important; width: 100vh !important; height: 100vw !important; transform: translate(-50%, -50%) rotate(90deg); }
#pmsg { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: rgba(0,0,0,.65); color: #ddd; font-size: 13px; letter-spacing: 1.5px;
  padding: 8px 14px; border-radius: 4px; pointer-events: none; z-index: 3; white-space: nowrap; }
#stage.full #pmsg { font-size: 16px; }

/* Canlı OSD (TV ile aynı oranlar) */
#osd { position: absolute; left: 0; right: 0; bottom: 0; height: 24%; min-height: 70px; background: rgba(0,0,0,.9); display: flex; z-index: 4;
  opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s linear .35s; padding-bottom: var(--sb); }
#stage.full.ui #osd { opacity: 1; visibility: visible; transition: opacity .35s; }
#osd .lgw { width: 20%; display: flex; align-items: center; justify-content: center; }
#osd .lgw img { max-width: 80%; max-height: 70%; object-fit: contain; }
#osd .inf { flex: 1; display: flex; flex-direction: column; justify-content: center; min-width: 0; padding-left: 8px; }
#osd .cn { font-size: 22px; color: #fff; letter-spacing: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#osd .tech { font-size: 12px; color: #ccc; letter-spacing: .5px; margin-top: 6px; }
#osd .sync { width: 28%; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 11px; color: #aaa; letter-spacing: 1px; }
#osd .sync button { width: 34px; height: 30px; border: 1px solid #444; border-radius: 4px; font-size: 16px; color: #ddd; }
#topbar { position: absolute; top: 0; left: 0; right: 0; height: 56px; display: flex; align-items: center; padding: 0 12px; z-index: 5;
  background: linear-gradient(rgba(0,0,0,.7), rgba(0,0,0,0)); opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s linear .35s; }
#stage.full.ui #topbar { opacity: 1; visibility: visible; transition: opacity .35s; }
#topbar .back { font-size: 34px; color: #ddd; width: 44px; height: 44px; line-height: 40px; }
#topbar .t { flex: 1; font-size: 15px; color: #ddd; letter-spacing: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Mini kanal şeridi (TV'deki beyaz şerit) */
#mini { position: absolute; left: 0; right: 0; bottom: 24%; height: 30%; z-index: 3; display: flex; align-items: flex-end; padding: 0 12px 8px;
  background: linear-gradient(to top, rgba(255,255,255,.97) 0%, rgba(255,255,255,.88) 55%, rgba(255,255,255,0) 100%);
  overflow-x: auto; overflow-y: hidden; scrollbar-width: none; opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s linear .3s; }
#mini::-webkit-scrollbar { display: none; }
#stage.full.ui #mini { opacity: 1; visibility: visible; transition: opacity .3s; }
#stage.vodmode #mini, #stage.vodmode #osd { display: none; }
.mc { flex: 0 0 auto; width: 90px; margin-right: 12px; }
.mc .box { height: 56px; padding: 6px 8px; display: flex; align-items: center; justify-content: center; border: 2px solid transparent; border-radius: 8px; }
.mc img { max-width: 100%; max-height: 100%; object-fit: contain; }
.mc .n { margin-top: 4px; text-align: center; font-size: 11px; color: #111; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc.playing .box { background: rgba(212,175,55,.38); border-color: rgba(212,175,55,.6); }

/* ---------- Film/Dizi ---------- */
.vitem { display: flex; align-items: center; padding: 6px 8px; border: 1px solid transparent; border-radius: 3px; min-height: 64px; }
.vitem img, .vitem .ph { width: 38px; height: 54px; object-fit: cover; border-radius: 2px; flex: 0 0 auto; margin-right: 10px; background: #1d1d1d; }
.vitem .tx { min-width: 0; flex: 1; }
.vitem .nm { font-size: 14px; color: #ddd; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vitem .mt { font-size: 11px; color: #888; margin-top: 3px; letter-spacing: .5px; }
.vitem.active { background: var(--goldbg); border-color: var(--gold); }
.vdetail { background: #141414; border-radius: 4px; padding: 14px; overflow-y: auto; height: 100%; }
#vod-detail { position: relative; padding: 0; overflow: hidden; background: #141414 url("img/vod-wall.webp") 0 0 / 100% 100% no-repeat; }
#vod-detail .wtop { position: absolute; left: 4%; right: 6.5%; top: 4%; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
#vod-detail .wtop h2 { margin: 0; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#vod-detail .wtop .rt { color: #fff; text-shadow: 0 0 5px rgba(0,0,0,.85); white-space: nowrap; }
#vod-detail .winfo { position: absolute; left: 4%; top: 19%; width: 41%; bottom: 4%; overflow-y: auto; scrollbar-width: none; }
#vod-detail .winfo::-webkit-scrollbar { display: none; }
#vod-detail .wpost { position: absolute; left: 47.92%; top: 19.167%; width: 45.614%; height: 70.879%; overflow: hidden; }
#vod-detail .wpost .pst { width: 100%; height: 100%; max-width: none; object-fit: cover; border-radius: 0; background: transparent; }
.vdetail h2 { margin: 0 0 4px; font-size: 18px; font-weight: 400; color: #fff; letter-spacing: 1px; }
.vdetail .rt { color: var(--gold2); font-size: 13px; }
.vdetail .row { display: flex; gap: 12px; margin-top: 10px; }
.vdetail .pst { width: 38%; max-width: 180px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 3px; background: #1d1d1d; flex: 0 0 auto; }
.vdetail .meta span { display: inline-block; margin-right: 10px; font-size: 12px; color: #aaa; }
.vdetail .cast { font-size: 12px; color: #888; margin-top: 6px; }
.vdetail .desc { font-size: 13px; color: #ccc; line-height: 1.45; margin-top: 8px; }
.vdetail .credit { font-size: 10px; color: #555; margin-top: 10px; }
.gold-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 120px; height: 40px; padding: 0 18px; border: 1px solid var(--gold); border-radius: 4px;
  background: rgba(212,175,55,.15); color: #fff; letter-spacing: 2px; font-size: 14px; }
.gold-btn:active { background: var(--gold); color: #0a0a0a; }
#vsheet { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.6); display: flex; align-items: flex-end; padding-top: calc(var(--st) + 40px); }
#vsheet .sh { width: 100%; height: 100%; background: #111; border-top: 1px solid var(--gold); border-radius: 10px 10px 0 0; display: flex; flex-direction: column; padding-bottom: var(--sb); }
#vsheet .vdetail { flex: 1; border-radius: 0; }
.seasons { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 6px; scrollbar-width: none; }
.seasons::-webkit-scrollbar { display: none; }
.seasons button { flex: 0 0 auto; padding: 7px 12px; border: 1px solid #444; border-radius: 3px; font-size: 13px; color: #bbb; letter-spacing: .5px; }
.seasons button.active { border-color: var(--gold); background: rgba(212,175,55,.2); color: #fff; }
.ep { padding: 11px 6px; border-bottom: 1px solid #222; font-size: 14px; color: #ddd; }
.ep small { display: block; color: #777; font-size: 11px; margin-top: 3px; }

/* VOD OSD */
#vosd { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; background: rgba(0,0,0,.9); display: none; align-items: stretch; gap: 14px; height: calc(124px + var(--sb)); padding: 10px 14px calc(var(--sb) + 10px); }
#stage.vodmode.full.ui #vosd { display: flex; }
#vosd .pst { height: 100%; aspect-ratio: 2 / 3; width: auto; object-fit: cover; border-radius: 3px; background: #222; flex: 0 0 auto; align-self: center; }
#vosd .col { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
#vosd .prog { position: relative; height: 24px; display: flex; align-items: center; }
#vosd .prog .bgl { position: absolute; left: 0; right: 0; height: 5px; background: #444; border-radius: 3px; }
#vosd .prog .fil { position: absolute; left: 0; height: 5px; background: var(--gold2); border-radius: 3px; width: 0; }
#vosd .prog .knob { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: #fff; transform: translateX(-50%); left: 0; }
#vosd .times { display: flex; justify-content: space-between; font-size: 12px; color: #aaa; }
#vosd .row { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
#vosd .tt { flex: 1; min-width: 0; font-size: 22px; line-height: 1.2; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#vosd .btns { display: flex; gap: 10px; align-items: center; flex: 0 0 auto; }
#vosd .btns button { height: 40px; padding: 0 18px; border: 1px solid var(--gold); border-radius: 5px; font-size: 16px; color: var(--gold2); background: var(--goldbg); display: flex; align-items: center; gap: 6px; }
#vosd .btns button.hidden { display: none; }
#vo-res { flex: 0 0 auto; width: 96px; display: flex; align-items: center; justify-content: center; color: #aaa; font-size: 20px; }
#vo-res img { max-width: 100%; max-height: 100%; object-fit: contain; }
/* Ortadaki oynatma düğmeleri (YouTube gibi) */
#vctl { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); z-index: 5; display: none; align-items: center; gap: 44px; }
#stage.vodmode.full.ui #vctl { display: flex; }
#vctl button { width: 62px; height: 62px; border-radius: 50%; border: 1.5px solid var(--gold); background: rgba(0,0,0,.55); color: var(--gold2); display: flex; align-items: center; justify-content: center; padding: 0; }
#vctl button.big { width: 84px; height: 84px; border-width: 2px; }
#vctl button svg { width: 62%; height: 62%; }
#vctl .ic-pause { display: inline; } #vctl .ic-play { display: none; }
#vctl button.paused .ic-pause { display: none; } #vctl button.paused .ic-play { display: inline; }
#vctl button:active { background: var(--goldbg); }
#subs { position: absolute; left: 0; right: 0; bottom: 5%; z-index: 3; text-align: center; pointer-events: none; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0 6%; }
#subs span { display: inline-block; padding: 1px 8px; border-radius: 3px; white-space: pre-line; line-height: 1.25; max-width: 100%; }
#subs span:empty { display: none; }
#sub2 { position: absolute; top: 12%; left: 50%; transform: translateX(-50%); z-index: 3; max-width: 88%; text-align: center; pointer-events: none; padding: 1px 8px; border-radius: 3px; white-space: pre-line; line-height: 1.25; }
#sub2:empty { display: none; }

/* Altyazı / ses menüsü (TV: 3 sütun) */
.vmenu { position: absolute; inset: 0; z-index: 6; background: rgba(0,0,0,.75); display: flex; align-items: center; justify-content: center; padding: 14px; }
.vmenu .box { background: #151515; border: 1px solid var(--gold); border-radius: 6px; width: 100%; max-width: 760px; max-height: 100%; display: flex; flex-direction: column; overflow: hidden; }
.vmenu .cols { display: flex; flex: 1; min-height: 0; }
.vmenu .col { flex: 1; overflow-y: auto; padding: 8px; border-right: 1px solid #262626; }
.vmenu .col:last-child { border-right: 0; }
.vmenu .ttl { font-size: 12px; letter-spacing: 1.5px; color: #aaa; padding: 4px 6px 8px; }
.vmenu .ttl.y { color: #ffd400; }
.vmenu .it { padding: 9px 8px; font-size: 13px; color: #ccc; border-radius: 3px; border: 1px solid transparent; }
.vmenu .it.sel { border-color: var(--gold); background: rgba(212,175,55,.18); color: #fff; }
.vmenu .set { display: flex; align-items: center; justify-content: space-between; padding: 7px 4px; font-size: 12px; color: #bbb; }
.vmenu .set .ctl { display: flex; align-items: center; gap: 6px; }
.vmenu .set button { width: 30px; height: 28px; border: 1px solid #444; border-radius: 3px; color: #ddd; }
.vmenu .set .val { min-width: 54px; text-align: center; color: #fff; }
.vmenu .foot { display: flex; justify-content: flex-end; padding: 8px; border-top: 1px solid #262626; }

/* ---------- Ayarlar ---------- */
#settings { position: fixed; inset: 0; z-index: 90; background: #111; transform: translateX(100%); transition: transform .45s cubic-bezier(.22,.61,.36,1);
  padding: var(--st) var(--sr) var(--sb) var(--sl); }
#settings.active { transform: translateX(0); }
.sub { position: absolute; inset: var(--st) var(--sr) var(--sb) var(--sl); display: flex; flex-direction: column; padding: 0 18px 18px; overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateX(16px); transition: opacity .3s, transform .3s; }
.sub.active { opacity: 1; visibility: visible; transform: none; }
.shead { display: flex; align-items: center; justify-content: space-between; height: 56px; flex: 0 0 auto; font-size: 18px; color: #ccc; letter-spacing: 2px; }
.shead .bk { font-size: 30px; color: #888; width: 36px; }
.shead .x { font-size: 22px; color: #888; width: 36px; text-align: right; }
.mi { display: flex; align-items: center; justify-content: space-between; padding: 15px 16px; background: rgba(26,26,26,.8); border: 1px solid var(--line);
  border-radius: 4px; font-size: 15px; letter-spacing: 1px; margin-bottom: 10px; }
.mi:active { background: #e8e8e8; color: #0a0a0a; }
.mi .chev { font-size: 22px; color: #888; }
.mi .note { font-size: 12px; color: #888; }
.mi.on { border-color: var(--gold); background: rgba(212,175,55,.15); }
.mi small { display: block; font-size: 11px; color: #888; margin-top: 3px; letter-spacing: .5px; }
.lbl { font-size: 12px; color: #999; letter-spacing: 1px; margin: 12px 0 6px; }
.inp { width: 100%; height: 44px; border-radius: 4px; border: 1px solid #444; background: rgba(0,0,0,.5); color: #fff; padding: 0 12px; font-size: 16px; outline: none; }
.inp:focus { border-color: var(--gold); }
.inp[readonly] { color: #999; }
.seg { display: flex; gap: 8px; }
.seg button { flex: 1; height: 40px; border: 1px solid #444; border-radius: 4px; color: #ccc; letter-spacing: 1px; font-size: 14px; }
.seg button.active { border-color: var(--gold); background: rgba(212,175,55,.2); color: #fff; }
.acts { display: flex; gap: 10px; margin-top: 22px; }
.acts .gold-btn { flex: 1; }
.danger { border-color: #8a2b2b !important; background: rgba(138,43,43,.15) !important; }
.pitem { display: flex; align-items: center; justify-content: space-between; padding: 13px 14px; border: 1px solid var(--line); border-radius: 4px; margin-bottom: 10px; background: rgba(26,26,26,.8); }
.pitem.active { border-color: var(--gold); }
.pitem .pn { font-size: 15px; color: #eee; }
.pitem .pt { font-size: 11px; color: #888; letter-spacing: 1px; margin-top: 3px; }
.pitem .badge { font-size: 11px; color: var(--gold2); letter-spacing: 1px; }
.pitem .ed { width: 40px; height: 40px; color: #aaa; font-size: 18px; }
#buf-box.off { opacity: .35; pointer-events: none; }
.note2 { font-size: 12px; color: #777; margin-top: 8px; line-height: 1.4; }
.langs .mi { display: block; width: 100%; box-sizing: border-box; padding: 14px 16px; text-align: center; }

/* ---------- Açılır pencereler ---------- */
.overlay { position: fixed; inset: 0; z-index: 120; background: rgba(0,0,0,.7); display: flex; align-items: center; justify-content: center; padding: 20px; }
.box { background: #1a1a1a; border: 1px solid var(--gold); border-radius: 6px; padding: 20px; width: 100%; max-width: 360px; box-shadow: 0 10px 20px rgba(0,0,0,.8); }
.box .bt { font-size: 16px; color: #fff; letter-spacing: 1px; margin-bottom: 14px; text-align: center; }
.box .bh { font-size: 12px; color: #888; text-align: center; margin-top: 10px; }
.box .bh.link { color: var(--gold2); text-decoration: underline; }
.box .pin { text-align: center; letter-spacing: 14px; font-size: 26px; }
#sheet { position: fixed; inset: 0; z-index: 110; background: rgba(0,0,0,.6); display: flex; align-items: flex-end; }
#sheet .card { width: 100%; background: #161616; border-top: 1px solid var(--gold); border-radius: 12px 12px 0 0; padding: 8px 14px calc(var(--sb) + 12px); }
#sheet .h { font-size: 13px; color: #888; text-align: center; padding: 10px 0 8px; letter-spacing: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#sheet button { display: block; width: 100%; height: 50px; border-top: 1px solid #262626; font-size: 16px; color: #eee; letter-spacing: 1px; }
#sheet button.c { color: #888; }
#move-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: #161616; border-top: 1px solid var(--gold); display: flex; align-items: center;
  justify-content: center; gap: 14px; padding: 10px 14px calc(var(--sb) + 10px); }
#move-bar button { width: 64px; height: 42px; border: 1px solid #444; border-radius: 4px; font-size: 18px; }
#move-bar .gold-btn { width: auto; }
#toast { position: fixed; left: 50%; bottom: calc(var(--sb) + 70px); transform: translateX(-50%); z-index: 200; background: rgba(26,26,26,.95); border: 1px solid var(--gold);
  color: #eee; padding: 10px 16px; border-radius: 4px; font-size: 14px; letter-spacing: .5px; max-width: 86vw; text-align: center; opacity: 0; transition: opacity .3s; pointer-events: none; }
#toast.on { opacity: 1; }

/* ---------- İlk açılış: dil çarkı ---------- */
#first-lang { z-index: 150; background: #0a0a0a url('img/splash.webp') center / cover no-repeat; flex-direction: column; justify-content: flex-end; padding-bottom: calc(var(--sb) + 30px); }
.pwin { position: relative; width: 78vw; max-width: 340px; height: 200px; overflow: hidden; }
.plist { position: absolute; inset: 0; overflow-y: auto; scroll-snap-type: y mandatory; padding: 80px 0; scrollbar-width: none; }
.plist::-webkit-scrollbar { display: none; }
.pit { height: 40px; line-height: 40px; text-align: center; font-size: 15px; color: #555; scroll-snap-align: center; transition: color .2s, font-size .2s; }
.pit.sel { color: var(--gold); font-size: 22px; font-weight: 500; letter-spacing: 1.5px; text-shadow: 0 0 14px rgba(183,139,90,.5); }
.phl { position: absolute; top: 80px; left: 12%; right: 12%; height: 40px; pointer-events: none; border-top: 1px solid rgba(183,139,90,.4); border-bottom: 1px solid rgba(183,139,90,.4);
  background: linear-gradient(rgba(183,139,90,.06), rgba(183,139,90,.02), rgba(183,139,90,.06)); border-radius: 4px; }
#first-lang .gold-btn { margin-top: 22px; }

/* VLC motoru: görüntü web sayfasının arkasındaki yerel görünümde → sayfa saydam */
html.vlc, html.vlc body { background: transparent !important; }
html.vlc #bg-glow, html.vlc .screen, html.vlc #vsheet { visibility: hidden !important; }
html.vlc #stage.vlc, html.vlc #stage.vlc video { background: transparent; }
html.vlc #stage.vlc video { visibility: hidden; }

