/* Mısır telefon kumandası — TV uygulamasıyla aynı görsel dil (lacivert zemin, tereyağı sarısı vurgu, Jakarta). */

@font-face { font-family: 'Jakarta'; font-weight: 400; src: url(fonts/pjs-latin-ext-400.woff2) format('woff2'); unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: 'Jakarta'; font-weight: 400; src: url(fonts/pjs-latin-400.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: 'Jakarta'; font-weight: 600; src: url(fonts/pjs-latin-ext-600.woff2) format('woff2'); unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: 'Jakarta'; font-weight: 600; src: url(fonts/pjs-latin-600.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: 'Jakarta'; font-weight: 700; src: url(fonts/pjs-latin-ext-700.woff2) format('woff2'); unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: 'Jakarta'; font-weight: 700; src: url(fonts/pjs-latin-700.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: 'Jakarta'; font-weight: 800; src: url(fonts/pjs-latin-ext-800.woff2) format('woff2'); unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: 'Jakarta'; font-weight: 800; src: url(fonts/pjs-latin-800.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }

:root {
  --bg: #0A0D16; --bg-2: #0F1320; --surface: #161B2B; --surface-2: #1F2538; --surface-3: #2A3149;
  --text: #F6F2EA; --text-2: rgba(246, 242, 234, .68); --text-3: rgba(246, 242, 234, .42);
  --butter: #FFC93C; --red: #E5484D; --ok: #5EE6B0;
  --ease: cubic-bezier(.22, .9, .24, 1); --spring: cubic-bezier(.3, 1.35, .45, 1);
  --top: env(safe-area-inset-top, 0px); --bot: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: 'Jakarta', -apple-system, sans-serif; font-size: 16px; -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; overscroll-behavior-y: none; }
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
input { font: inherit; }
.hidden { display: none !important; }
svg.i { width: 1em; height: 1em; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- üst ve alt çubuk ---------- */

#ust { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: calc(10px + var(--top)) 16px 10px;
  background: rgba(10, 13, 22, .86); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
#ust img { width: 34px; height: 34px; object-fit: contain; }
#ust b { font-size: 21px; font-weight: 800; letter-spacing: -.02em; flex: 1; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 20px; font-size: 13px; font-weight: 700; background: var(--surface); color: var(--text-2); }
.pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); }
.pill.acik { color: var(--ok); }
.pill.acik::before { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.pill.kapali { color: #FF8A8A; }
.pill.kapali::before { background: var(--red); }

#sayfa { padding: 4px 0 calc(var(--alt-h, 70px) + 24px); }
#alt { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; transition: transform .32s var(--ease); }
#sekmeler { display: flex; padding: 6px 6px calc(6px + var(--bot));
  background: rgba(15, 19, 32, .92); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-top: 1px solid rgba(255, 255, 255, .06); }
#sekmeler button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 7px 0; font-size: 11px; font-weight: 700; color: var(--text-3); border-radius: 14px; transition: color .2s; }
#sekmeler button svg.i { font-size: 23px; }
#sekmeler button.secili { color: var(--butter); }

/* ---------- ortak ---------- */

h2 { margin: 22px 16px 12px; font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.bos { padding: 40px 24px; text-align: center; color: var(--text-3); font-size: 15px; line-height: 1.5; }
.bos img { width: 110px; display: block; margin: 0 auto 14px; }
.tv-kapali { color: var(--text-2); }
.tv-kapali img { width: 180px; max-width: 65vw; height: auto; }
.tv-kapali b { font-size: 21px; font-weight: 800; color: var(--text); line-height: 1.6; }
.tv-kapali .tv-ac { display: flex; width: 100%; max-width: 280px; margin: 18px auto 0; }
/* bekleme: TV'deki dönen halkanın küçüğü; anında gelen yanıtta yanıp sönmesin diye 0,3 sn sonra belirir */
.bekle { display: flex; justify-content: center; padding: 44px 0; animation: bekle-belir .25s .3s both; }
/* her zaman ortada: yatay satırda (bölümler) ve ızgarada da tüm genişliği kaplar (dizi bölümlerinde köşede kalıyordu) */
.bekle { box-sizing: border-box; width: 100%; flex: 1 0 100%; }
.izgara > .bekle { grid-column: 1 / -1; }
.bekle i { width: 34px; height: 34px; border-radius: 50%; border: 4px solid rgba(255, 255, 255, .15); border-top-color: var(--butter); animation: bekle-don .9s linear infinite; }
@keyframes bekle-don { to { transform: rotate(360deg); } }
@keyframes bekle-belir { from { opacity: 0; } to { opacity: 1; } }
.cipler { display: flex; gap: 8px; overflow-x: auto; padding: 4px 16px 10px; scrollbar-width: none; }
.cipler::-webkit-scrollbar { display: none; }
.cip { flex: none; padding: 12px 16px; border-radius: 20px; background: var(--surface); color: var(--text-2); font-size: 14px; font-weight: 700; white-space: nowrap; }
.cip.secili { background: var(--text); color: var(--bg); }
.izgara { display: grid; align-items: start; grid-template-columns: repeat(3, 1fr); gap: 14px 10px; padding: 0 16px; }
.kart { position: relative; text-align: left; }
.kart .poster { position: relative; aspect-ratio: 2 / 3; border-radius: 12px; overflow: hidden; background: linear-gradient(160deg, var(--surface-2), var(--surface)); }
.kart .poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kart .poster.logo img { object-fit: contain; padding: 22%; }
.kart .poster .yer { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--surface-3); font-size: 34px; }
.kart .ad { margin-top: 7px; font-size: 13px; font-weight: 700; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kart .yil { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.kart:active .poster { transform: scale(.96); transition: transform .15s; }
.rozet { position: absolute; left: 6px; top: 6px; padding: 2px 7px; border-radius: 7px; background: rgba(10, 13, 22, .8); font-size: 11px; font-weight: 800; }
.rozet.alt { color: var(--butter); }
.imdb { position: absolute; left: 6px; bottom: 6px; display: flex; align-items: center; gap: 4px; padding: 2px 6px 2px 3px; border-radius: 7px; background: rgba(10, 13, 22, .82); font-size: 11.5px; font-weight: 800; }
.imdb i, .imdb-b i { font-style: normal; padding: 0 4px; border-radius: 4px; background: #F5C518; color: #000; font-size: 9.5px; font-weight: 800; }
.yatay { display: flex; align-items: flex-start; gap: 12px; overflow-x: auto; padding: 0 16px 4px; scrollbar-width: none; }
.yatay::-webkit-scrollbar { display: none; }
.yatay .kart { flex: none; width: 112px; }
.genis { flex: none; width: 230px; text-align: left; }
.genis .resim { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--surface); }
.genis .resim img { width: 100%; height: 100%; object-fit: cover; display: block; }
.genis .cubuk { position: absolute; left: 8px; right: 8px; bottom: 7px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .25); }
.genis .cubuk i { display: block; height: 100%; border-radius: 2px; background: var(--butter); }
.genis .ad { margin-top: 7px; font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.genis .alt-yazi { font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* dizi yaprağında bölüm kartları: yaprağın iç boşluğunu taşıp kenardan kenara kayar */
.bolumler { margin: 0 -18px; padding: 0 18px 6px; }
.bolumler .genis { width: 200px; }
.genis .resim img.afis { opacity: .35; }

/* ---------- arama ---------- */

.arama { position: sticky; top: var(--ust-h, calc(60px + var(--top))); z-index: 10; padding: 6px 16px 12px; background: linear-gradient(var(--bg) 70%, rgba(10, 13, 22, 0)); }
.arama label { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; border-radius: 14px; background: var(--surface); }
.arama label svg.i { color: var(--text-3); font-size: 20px; }
.arama input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--text); font-size: 17px; font-weight: 600; }
.arama input::-webkit-search-cancel-button { display: none; }
.arama input::placeholder { color: var(--text-3); font-weight: 500; }
.arama .temizle { color: var(--text-3); font-size: 20px; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -12px; }

/* ---------- liste satırları (kanal, bölüm) ---------- */

.satirlar { padding: 0 12px; }
.satir { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; border-radius: 14px; text-align: left; }
.satir:active { background: var(--surface); }
.satir .lg { width: 58px; height: 40px; flex: none; border-radius: 9px; background: var(--surface); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.satir .lg img { max-width: 46px; max-height: 30px; object-fit: contain; }
.satir .lg b { font-size: 13px; color: var(--text-3); }
.satir .no { width: 30px; flex: none; text-align: center; font-size: 17px; font-weight: 800; color: var(--text-3); }
.satir .t { flex: 1; min-width: 0; }
.satir .t b { display: block; font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.satir .t small { display: block; font-size: 12.5px; color: var(--text-3); margin-top: 2px; }
.satir .cubuk { width: 54px; height: 4px; border-radius: 2px; background: var(--surface-3); flex: none; }
.satir .cubuk i { display: block; height: 100%; background: var(--butter); border-radius: 2px; }
.satir .tamam { color: var(--ok); font-size: 18px; }
.satir.oynuyor b { color: var(--butter); }

/* ---------- şu an oynuyor ---------- */

/* oynatma çubuğu menünün üstünde, sağdan-soldan-alttan eşit 8 px boşlukla */
#simdi { position: relative; margin: 0 8px 8px; display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 8px;
  border-radius: 18px; background: rgba(31, 37, 56, .96); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 12px 30px rgba(0, 0, 0, .45); overflow: hidden; }
#simdi .kapak { width: 44px; height: 44px; border-radius: 10px; flex: none; background: var(--surface-3) center/cover; }
#simdi .kapak.logo { background-size: 70%; background-repeat: no-repeat; }
#simdi .t { flex: 1; min-width: 0; text-align: left; }
#simdi .t b { display: block; font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#simdi .t small { display: block; font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#simdi .dugme { width: 44px; height: 44px; border-radius: 22px; display: flex; align-items: center; justify-content: center; font-size: 22px; flex: none; }
#simdi .dugme.ana { background: var(--text); color: var(--bg); }
#simdi .ilerleme { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--butter); transition: width 1s linear; }

/* ---------- alt sayfa (detay, oynatıcı, kumanda) ---------- */

#katman .perde { position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, .5); opacity: 0; transition: opacity .25s; }
#katman .perde.ac { opacity: 1; }
.yaprak { position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; max-height: 92vh; overflow-y: auto; border-radius: 26px 26px 0 0; background: var(--bg-2);
  padding: 0 0 calc(24px + var(--bot)); transform: translateY(100%); transition: transform .38s var(--ease); box-shadow: 0 -20px 60px rgba(0, 0, 0, .5); }
.yaprak.ac { transform: none; }
.yaprak .tutamak { position: sticky; top: 0; z-index: 2; display: flex; justify-content: center; padding: 10px 0 6px; }
.yaprak .tutamak i { width: 40px; height: 5px; border-radius: 3px; background: var(--surface-3); }
.yaprak .kapat { position: absolute; right: 10px; top: 4px; z-index: 3; width: 44px; height: 44px; border-radius: 22px; background: rgba(10, 13, 22, .6); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.yaprak .bd { margin-top: -21px; aspect-ratio: 16 / 9; background: var(--surface) center/cover; }
.yaprak .bd::after { content: ''; display: block; height: 100%; background: linear-gradient(0deg, var(--bg-2), rgba(15, 19, 32, 0) 55%); }
.yaprak .ic { padding: 0 18px; }
.yaprak h3 { margin: -30px 0 8px; position: relative; font-size: 25px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.yaprak .bilgi { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 13.5px; color: var(--text-2); font-weight: 600; margin-bottom: 12px; }
.imdb-b { display: inline-flex; align-items: center; gap: 5px; color: var(--text); font-weight: 800; }
.imdb-b small { color: var(--text-3); font-weight: 500; }
.rt { display: inline-flex; align-items: center; gap: 5px; color: var(--text); font-weight: 800; }
.rt i { width: 12px; height: 12px; border-radius: 50%; background: #FA320A; }
.yaprak p { margin: 0 0 14px; font-size: 14.5px; line-height: 1.5; color: var(--text-2); }
.yaprak .kunye { font-size: 12.5px; color: var(--text-3); margin-bottom: 16px; line-height: 1.5; }
.dugmeler { display: flex; gap: 10px; margin: 6px 0 16px; }
.btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; border-radius: 25px; background: var(--surface-2); font-size: 15.5px; font-weight: 800; }
.btn.ana { background: var(--butter); color: #1A1300; }
.btn svg.i { font-size: 19px; }
.btn:active { transform: scale(.97); }

/* ---------- oynatıcı yaprağı ---------- */

.oyn { padding: 0 20px; text-align: center; }
.oyn .kapak { height: min(34vh, 300px); margin: 6px auto 18px; aspect-ratio: 2 / 3; border-radius: 16px; background: var(--surface) center/cover; box-shadow: 0 20px 50px rgba(0, 0, 0, .5); }
.oyn .kapak.logo { height: min(20vh, 160px); aspect-ratio: 16 / 10; background-size: 60%; background-repeat: no-repeat; }
.oyn h3 { margin: 0 0 4px; font-size: 22px; }
.oyn .ust { color: var(--text-2); font-size: 14px; margin-bottom: 18px; }
.zaman { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; color: var(--text-3); font-variant-numeric: tabular-nums; margin-top: 6px; }
.oyn input[type=range] { width: 100%; accent-color: var(--butter); height: 28px; }
.kontrol { display: flex; align-items: center; justify-content: center; gap: 22px; margin: 14px 0 20px; }
.kontrol button { width: 56px; height: 56px; border-radius: 28px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; font-size: 24px; position: relative; }
.kontrol button small { position: absolute; bottom: 6px; font-size: 9.5px; font-weight: 800; }
.kontrol .buyuk { width: 76px; height: 76px; border-radius: 38px; background: var(--text); color: var(--bg); font-size: 32px; }
.secimler { text-align: left; }
.secimler h4 { margin: 14px 0 8px; font-size: 13px; font-weight: 800; color: var(--text-3); }
.secimler .cipler { padding: 0 0 4px; }
.oyn .kalite { display: inline-block; margin: -10px 0 16px; padding: 3px 10px; border: 1.5px solid var(--line, rgba(255, 255, 255, .25)); border-radius: 8px; font-size: 12px; font-weight: 800; color: var(--text-2); letter-spacing: .02em; }
.adim-satir { display: flex; align-items: center; gap: 6px; }
.adim-satir .cip { padding: 12px 12px; }
.adim-satir .deger { flex: 1; text-align: center; font-size: 15px; font-weight: 800; white-space: nowrap; }
.adim-not { min-height: 20px; margin: 6px 0 2px; font-size: 12.5px; color: var(--text-3); text-align: center; }
.adim-not .cip { margin-top: 2px; }
.kanal-no-satir { display: flex; gap: 8px; }
.adim-not.dis-ad { text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kanal-no-satir input { flex: 1; min-width: 0; padding: 12px 16px; border-radius: 20px; border: 0; background: var(--surface); color: var(--text); font: inherit; font-size: 16px; font-weight: 700; }

/* ---------- kumanda ---------- */

.kumanda { padding: 10px 24px 0; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.yon { position: relative; width: 250px; height: 250px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); }
.yon button { position: absolute; width: 80px; height: 80px; display: flex; align-items: center; justify-content: center; font-size: 30px; color: var(--text-2); border-radius: 40px; }
.yon button:active { background: var(--surface-3); color: var(--text); }
.yon .yu { left: 85px; top: 4px; } .yon .as { left: 85px; bottom: 4px; } .yon .so { left: 4px; top: 85px; } .yon .sa { right: 4px; top: 85px; }
.yon .ok { left: 70px; top: 70px; width: 110px; height: 110px; border-radius: 55px; background: var(--surface-3); color: var(--text); font-size: 17px; font-weight: 800; }
.yon .ok:active { background: var(--butter); color: #1A1300; }
.tus-sira { display: flex; gap: 14px; justify-content: center; }
.tus-sira button { width: 64px; height: 52px; border-radius: 16px; background: var(--surface); display: flex; align-items: center; justify-content: center; font-size: 22px; flex-direction: column; gap: 2px; }
.tus-sira button small { font-size: 10px; font-weight: 700; color: var(--text-3); }
.tus-sira button:active { background: var(--surface-3); }
.renk { width: 60px !important; height: 44px !important; background: transparent !important; }
.renk::after { content: ''; width: 46px; height: 14px; border-radius: 7px; background: var(--c); }

#bildirim { position: fixed; left: 50%; top: calc(64px + var(--top)); z-index: 60; transform: translate(-50%, -20px); opacity: 0; padding: 11px 18px; border-radius: 14px;
  background: var(--text); color: var(--bg); font-size: 14px; font-weight: 800; transition: opacity .2s, transform .3s var(--ease); pointer-events: none;
  width: max-content; max-width: calc(100vw - 32px); text-align: center; }
#bildirim.ac { opacity: 1; transform: translate(-50%, 0); }

/* yaprak kaydırılınca tutamak ve kapat düğmesi içeriğin üstünde okunur kalsın */
.yaprak.kaydi .tutamak { background: var(--bg-2); }
.oyn .ust.hata { color: #FF8A8A; }
.btn.pasif { opacity: .45; }
#simdi .kapak { border: 0; padding: 0; }

/* küçük telefonlar (iPhone SE vb.) */
@media (max-width: 360px), (max-height: 600px) {
  .kumanda { gap: 12px; padding-top: 0; }
  .yon { transform: scale(.8); margin: -24px 0; }
  .tus-sira { gap: 10px; }
  .tus-sira button { width: 58px; }
  .izgara { gap: 12px 8px; }
  .yaprak h3 { font-size: 22px; }
}

/* TV sesi */
.ses-satir { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 4px 0 10px; }
.ses-btn { width: 56px; height: 48px; border-radius: 16px; background: var(--surface); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.ses-btn:active { background: var(--surface-3); }
.ses-gosterge { min-width: 112px; height: 48px; padding: 0 16px; border-radius: 16px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ses-gosterge svg.i { font-size: 24px; }
.ses-gosterge.sessiz { color: #FF8A8A; }

/* üst: arama düğmesi */
.ust-ara { width: 40px; height: 40px; border-radius: 20px; display: flex; align-items: center; justify-content: center; font-size: 21px; color: var(--text-2); margin-right: 4px; }
.ust-ara.secili { background: var(--surface-2); color: var(--butter); }
/* kategori çipleri kaydırınca başlığın altında kalır */
.cipler.yapiskan { position: sticky; top: var(--ust-h, calc(60px + var(--top))); z-index: 9; background: var(--bg); padding-top: 8px; margin-top: -2px; }
/* kumanda boş alanın ortasında */
.kumanda { min-height: calc(100vh - var(--ust-h, 60px) - var(--alt-h, 70px) - 34px); justify-content: center; padding-top: 0; }
@supports (height: 100dvh) { .kumanda { min-height: calc(100dvh - var(--ust-h, 60px) - var(--alt-h, 70px) - 34px); } }
/* ayrıntı yaprakları sabit yükseklikte açılır: içerik gelince yukarı zıplamaz */
.yaprak.uzun { height: 88vh; }
/* listeme ekle */
.btn.fav { flex: none; width: 50px; padding: 0; }
.btn.fav.secili { color: #FF6B6B; }
.btn.fav.secili svg.i { fill: #FF6B6B; stroke: #FF6B6B; }
/* geçmiş */
.baslik-sira { display: flex; align-items: center; justify-content: space-between; padding-right: 8px; }
.metin-btn { padding: 12px; font-size: 14px; font-weight: 700; color: var(--text-3); }
.gecmis { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px; }
.gecmis-cip { display: flex; align-items: center; border-radius: 20px; background: var(--surface); }
.gecmis-cip .q { display: flex; align-items: center; gap: 8px; padding: 11px 4px 11px 14px; font-size: 14px; font-weight: 700; color: var(--text-2); }
.gecmis-cip .q svg.i { color: var(--text-3); }
.gecmis-cip .sil { width: 40px; height: 42px; display: flex; align-items: center; justify-content: center; color: var(--text-3); font-size: 15px; }
/* Listem: devam kartında ilerleme */
.kart .poster .cubuk { position: absolute; left: 8px; right: 8px; bottom: 8px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .25); }
.kart .poster .cubuk i { display: block; height: 100%; border-radius: 2px; background: var(--butter); }

/* klavye açıkken alt menü yok (iOS sabit menüyü klavyenin üstüne taşıyordu) */
body.klavye #alt { display: none; }

/* Kick sekmesi: 16:9 yayın kartları */
.kick-izgara { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; padding: 0 16px; }
.kick-izgara .genis { width: auto; }
.genis .rozet.canli { background: #E5484D; color: #fff; }
.genis .rozet.izleyici { left: auto; right: 6px; }
.genis .resim.kapali img { filter: grayscale(1); opacity: .5; }
.btn.takip.secili { color: #FF6B6B; }
.btn.takip.secili svg.i { fill: #FF6B6B; stroke: #FF6B6B; }

/* kaydırınca menü tamamen kaybolur; yalnız "şu an oynuyor" çubuğu kalır */
#sekmeler { transition: opacity .25s; }
#alt.gizli #sekmeler { opacity: 0; pointer-events: none; }
/* oynatıcı yaprağı: düğme yazıları kırılmasın; üç düğme olunca üçüncüsü alt satırda tam genişlik */
.oyn .dugmeler { flex-wrap: wrap; }
.oyn .dugmeler .btn { min-width: calc(50% - 5px); white-space: nowrap; }

/* Kumanda: altta SES ve KANAL dikey tuşları, ortada sessiz */
.kumanda .tus-sira button { width: 120px; flex-direction: row; gap: 8px; }
.kumanda .tus-sira button small { font-size: 13px; }
.rocker-sira { display: flex; align-items: center; justify-content: center; gap: 28px; }
.rocker { width: 76px; height: 168px; border-radius: 38px; background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 6px 0; }
.rocker button { width: 64px; height: 60px; border-radius: 30px; display: flex; align-items: center; justify-content: center; font-size: 26px; color: var(--text); }
.rocker button:active { background: var(--surface-3); }
.rocker small { font-size: 11px; font-weight: 800; letter-spacing: .08em; color: var(--text-3); }
.sessiz-btn { width: 72px; height: 72px; border-radius: 50%; background: var(--surface-2); display: flex; align-items: center; justify-content: center; font-size: 26px; color: var(--text); }
.sessiz-btn:active { background: var(--surface-3); }
.sessiz-btn.acik { color: #FF8A8A; }
@media (max-width: 360px), (max-height: 600px) {
  .rocker { height: 140px; } .rocker button { height: 50px; }
}
/* tuşlar başparmağa yakın: blok alt menünün hemen üstüne yaslanır, boşluk üstte kalır */
.kumanda { justify-content: flex-end; padding-bottom: 14px; }

/* arama: mikrofon ve zar */
.arama { display: flex; gap: 10px; align-items: center; }
.arama label { flex: 1; min-width: 0; }
.arama .mik { color: var(--text-2); font-size: 21px; display: flex; align-items: center; justify-content: center; width: 40px; height: 44px; margin-right: -8px; }
.arama .mik.dinliyor { color: #FF6B6B; animation: nabiz 1s ease-in-out infinite; }
@keyframes nabiz { 50% { opacity: .35; } }
.arama .zar { flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--surface); color: var(--butter); font-size: 22px; display: flex; align-items: center; justify-content: center; }
.arama .zar:active { background: var(--surface-3); }
.yaprak .btn.baska { width: 100%; margin: -6px 0 16px; }
/* oynatıcıda künye */
.oyn-kunye { text-align: left; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line, rgba(255,255,255,.08)); }
.oyn-kunye p { font-size: 14px; line-height: 1.5; color: var(--text-2); margin: 10px 0; }
.oyn-kunye .bilgi { justify-content: flex-start; }
.oyn-kunye h4 { margin: 16px 0 6px; font-size: 14px; color: var(--text-3); }
.oyn-kunye .satir { width: 100%; }
/* kumanda: uyku hapı */
.uyku-hap { align-self: flex-end; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 20px; background: var(--surface); color: var(--text-2); font-size: 14px; font-weight: 700; }
.uyku-hap svg.i { font-size: 18px; }
.uyku-hap.acik { color: var(--butter); }
.hap-sira { align-self: stretch; display: flex; justify-content: space-between; gap: 8px; }
.hap-sira .uyku-hap { align-self: auto; }
.ayar-ic { text-align: left; }
.ayar-ic h3 { margin: 0; }
.ayar-ic h4 { margin: 16px 0 8px; font-size: 13px; font-weight: 800; color: var(--text-3); }
.ayar-ic .cipler { padding: 0 0 4px; }
.soru-kutu { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: -4px 0 18px; padding: 16px; border-radius: 16px; background: var(--surface-2); }
.soru-kutu small { color: var(--text-2); font-size: 13px; }
.soru-kutu .btn { flex: none; align-self: stretch; margin-top: 6px; }
.yaprak .ayar-ic { padding-top: 34px; padding-bottom: 24px; }
.yaprak .uyku-ic { padding-top: 34px; padding-bottom: 8px; }
.uyku-ic p { color: var(--text-2); font-size: 14px; line-height: 1.5; }
.uyku-sec { flex-wrap: wrap; padding: 6px 0 10px; }
.uyku-sec .iptal { color: #FF8A8A; }

/* öneri yaprağı: Başka öner + Oylayalım */
.yaprak .oneri-dug { margin: -6px 0 16px; }
/* oylama yaprağı */
.yaprak .oylama-ic { padding-top: 34px; padding-bottom: 12px; }
.oy-ust { display: flex; align-items: center; justify-content: space-between; }
.oy-ust h3 { margin: 0; }
.oy-ust .sayac { font-size: 28px; font-weight: 800; color: var(--butter); font-variant-numeric: tabular-nums; }
.oylama-ic p { color: var(--text-2); font-size: 14px; line-height: 1.5; margin: 6px 0 14px; }
.oy-kartlar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: start; }
.oy-kart { text-align: left; transition: transform .2s, opacity .3s; }
.oy-kart .afis { aspect-ratio: 2 / 3; border-radius: 12px; overflow: hidden; background: var(--surface); }
.oy-kart .afis img { width: 100%; height: 100%; object-fit: cover; display: block; }
.oy-kart .ad { margin-top: 6px; font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oy-kart .cubuk { margin-top: 6px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.oy-kart .cubuk i { display: block; height: 100%; width: 0; background: var(--butter); transition: width .3s; }
.oy-kart small { display: block; margin-top: 4px; font-size: 12px; color: var(--text-3); }
.oy-kart.secili .afis { box-shadow: 0 0 0 3px var(--butter); }
.oy-kart.kazanan { transform: scale(1.04); }
.oy-kart.kaybeden { opacity: .35; }

/* Kick sohbeti (oynatıcı yaprağında) */
.sohbet { text-align: left; margin-top: 22px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .08); }
.sohbet-ust { display: flex; align-items: baseline; justify-content: space-between; }
.sohbet-ust h4 { margin: 0; font-size: 15px; }
.sohbet-ust small { font-size: 12px; color: var(--text-3); }
.sohbet-liste { margin-top: 10px; height: 38vh; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.4; }
.sohbet .mesaj { word-break: break-word; color: var(--text-2); }
.sohbet .mesaj b { font-weight: 800; }
.sohbet .emote { height: 22px; vertical-align: middle; margin: 0 1px; }

/* Ara: Ne izlesem? ve Oylayalım */
.hizli { display: flex; gap: 10px; padding: 0 16px 6px; }
.hizli-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border-radius: 14px; background: var(--surface); font-size: 14.5px; font-weight: 700; color: var(--text); }
.hizli-btn svg.i { font-size: 19px; color: var(--butter); }
.hizli-btn:active { background: var(--surface-3); }
/* öneri yaprağında yeni öneri yumuşakça gelsin */
.yaprak > .yeni { animation: yeniOneri .35s ease-out; }
@keyframes yeniOneri { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* oylama (iki kişilik): durum yazısı ve 2/2 oy */
.oylama-ic .oy-durum { color: var(--text-2); font-size: 14px; line-height: 1.5; margin: 6px 0 14px; min-height: 42px; }
.oy-ust .oy-sayi { font-size: 13px; font-weight: 800; color: var(--butter); }
.oy-kart small { display: block; margin-top: 2px; font-size: 12px; color: var(--text-3); }

/* izleme özeti yaprağı */
.yaprak .ozet-ic { padding-top: 34px; padding-bottom: 24px; text-align: left; }
.ozet-ic h3 { margin: 0 0 6px; }
.ozet-ic p { color: var(--text-2); font-size: 14px; line-height: 1.5; margin: 0; }
.ozet-ic h4 { margin: 16px 0 4px; font-size: 13px; font-weight: 800; color: var(--text-3); }
.ozet-ic .ozet-oge { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.ozet-ic .ozet-oge b { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ozet-ic .ozet-oge small { flex: none; opacity: .65; }

/* film/dizi detayında işaret ve seri düğmeleri */
.cipler.isaret { padding: 10px 0 6px; }
.cipler.isaret:empty { display: none; }
.yaprak .liste-ic { padding-top: 34px; padding-bottom: 24px; }
.liste-ic h3 { margin: 0 0 14px; }

/* kaldığın yerden: dizi bölümü afişle aynı boyda yatay kart (112×168 afiş → 299×168) */
.yatay .kart.genis-kart { width: 299px; }
.kart .poster.kare { aspect-ratio: 16 / 9; }
.kart .poster.kare img.arka { position: absolute; top: 0; left: 0; }
.kart .poster.kare .golge { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: linear-gradient(90deg, rgba(10, 13, 22, .8), rgba(10, 13, 22, .3) 60%, rgba(10, 13, 22, .1)); }
.kart .poster.kare img.karesiz + .golge { background: rgba(10, 13, 22, .72); }
.kart .poster.kare img.afis { position: absolute; left: 10px; top: 10px; width: 92px; height: 138px; border-radius: 8px; box-shadow: 0 6px 16px rgba(0, 0, 0, .5); }
.kart .poster .bolum-etiket { position: absolute; left: 114px; bottom: 22px; line-height: 1.15; text-shadow: 0 1px 4px rgba(0, 0, 0, .8); }
.kart .poster .bolum-etiket small { display: block; font-size: 12px; font-weight: 600; color: var(--text-2); }
.kart .poster .bolum-etiket b { font-size: 18px; font-weight: 800; }
.kart { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
/* uzun basma menüsü */
.yaprak .secenek-ic { padding-top: 34px; padding-bottom: 24px; }
.secenek-ic h3 { margin: 0 0 10px; }
.secenek-ic .secenek { display: block; width: 100%; padding: 15px 4px; text-align: left; font-size: 16px; font-weight: 700; color: var(--text); border-bottom: 1px solid rgba(255, 255, 255, .07); }
.cipler.sira-cip { padding: 0 16px 8px; }
.cipler.sira-cip .cip { padding: 6px 12px; font-size: 13px; }
.kart .poster .rozet.et { background: var(--butter); color: #1A1300; z-index: 2; }
.kart .poster.kare .rozet.et { left: auto; right: 6px; }

/* telefonda izle */
.dugmeler.tel-dug { margin-top: -6px; }
.oyn .dugmeler.tel-dug { margin: 0 0 6px; }

/* kim bağlı (TV etiketinin solunda) */
#kisiler { display: flex; gap: 6px; }
#kisiler:empty { display: none; }
.pill.kisi.bagli { color: var(--ok); }
.pill.kisi.bagli::before { background: var(--ok); }
.pill.kisi.izliyor { color: var(--butter); }
.pill.kisi.izliyor::before { background: var(--butter); box-shadow: 0 0 8px var(--butter); }
.pill.kisi.yok { color: var(--text-3); }
.yaprak .ben-ic, .yaprak .uyari-ic { padding-top: 34px; padding-bottom: 24px; }
.yaprak .ben-ic h3, .yaprak .uyari-ic h3 { margin: 0 0 8px; }
.ad-satir { display: flex; gap: 10px; }
.ad-satir input { flex: 1; min-width: 0; height: 50px; padding: 0 18px; border: 0; border-radius: 25px; background: var(--surface-2); color: var(--text); font-size: 15.5px; }
