/* Altay Sinema — OLED siyahı + kütüphane altını. Tasarım sistemi: ui-ux-pro-max "Dark Mode (OLED)", Inter, Cinzel logo. */
@font-face { font-family: Inter; src: url(fonts/inter-latin-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215; }
@font-face { font-family: Inter; src: url(fonts/inter-latin-ext-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Cinzel; src: url(fonts/cinzel-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+2000-206F; }
@font-face { font-family: Cinzel; src: url(fonts/cinzel-latin-ext-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap;
  unicode-range: U+0100-024F, U+1E00-1EFF; }

:root {
  --zemin: #000; --kart: #0c0c0d; --sessiz: #17171a; --cizgi: #26262b;
  --yazi: #f5f5f4; --yazi-2: #a8a29e; --yazi-3: #78716c;
  --altin: #e8b04b; --altin-koyu: #b8862e; --altin-yazi: #1a1206;
  --tehlike: #f87171;
  --r-k: 8px; --r-o: 14px; --r-b: 22px;
  --bosluk: clamp(16px, 4vw, 48px);
  --hizli: 160ms; --orta: 280ms; --egri: cubic-bezier(.2, .8, .2, 1);
  --ust-y: 64px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--zemin); color: var(--yazi); font: 400 16px/1.5 Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; min-height: 100dvh; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--altin); outline-offset: 3px; border-radius: 6px; }
#kok { outline: none; }
[hidden] { display: none !important; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Üst çubuk: kahramanın üstünde saydam, kaydırınca koyulaşır */
.ust { position: fixed; inset: 0 0 auto; z-index: 20; height: calc(var(--ust-y) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) var(--bosluk) 0; display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(#000c, #0000); transition: background var(--orta) var(--egri); }
.ust.dolu { background: #000e; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.logo { display: flex; align-items: baseline; gap: 8px; font-family: Cinzel, serif; font-weight: 600; letter-spacing: .14em; }
.logo span { font-size: 22px; color: var(--altin); }
.logo small { font-size: 11px; color: var(--yazi-2); letter-spacing: .3em; }
.ust-sag { display: flex; gap: 4px; }
.ikon-dugme { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: none;
  color: var(--yazi); transition: background var(--hizli); }
.ikon-dugme:hover { background: #ffffff14; }

/* Düğmeler */
.dugme { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px;
  border-radius: var(--r-o); border: 0; font-weight: 600; font-size: 16px; transition: transform var(--hizli) var(--egri), background var(--hizli), opacity var(--hizli); }
.dugme:active { transform: scale(.97); }
.dugme.ana { background: var(--altin); color: var(--altin-yazi); }
.dugme.ana:hover { background: #f0c063; }
.dugme.cam { background: #ffffff1f; color: var(--yazi); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.dugme.cam:hover { background: #ffffff2e; }
.dugme[disabled] { opacity: .5; cursor: progress; }
.dugme svg { width: 20px; height: 20px; }
.dugme.ana svg { fill: currentColor; stroke: none; }

/* Kahraman (öne çıkan film) */
.kahraman { position: relative; min-height: min(78dvh, 720px); display: flex; align-items: flex-end;
  padding: calc(var(--ust-y) + 40px) var(--bosluk) 40px; isolation: isolate; overflow: hidden; }
.kahraman-resim { position: absolute; inset: 0; z-index: -1; background: var(--sessiz) center 20% / cover no-repeat; }
.kahraman-resim.bulanik { filter: blur(36px) saturate(1.3); transform: scale(1.15); opacity: .55; }
.kahraman-resim::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, #000 0%, #000c 22%, #0000 60%), linear-gradient(90deg, #000b 0%, #0000 65%); }
.kahraman-ic { max-width: 620px; animation: belir .6s var(--egri) both; }
.etiket { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--altin); margin-bottom: 10px; }
.kahraman h1 { margin: 0 0 10px; font-size: clamp(32px, 7vw, 64px); line-height: 1.05; font-weight: 800; letter-spacing: -.02em; text-wrap: balance; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--yazi-2); font-size: 14px; margin-bottom: 14px; }
.meta .puan { color: var(--altin); font-weight: 600; }
.ozet { color: #d6d3d1; margin: 0 0 22px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.dugmeler { display: flex; flex-wrap: wrap; gap: 12px; }

/* Şeritler ve ızgara */
.bolum { padding: 8px 0 28px; }
.bolum h2 { margin: 0 var(--bosluk) 12px; font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.serit { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(124px, 30vw, 190px); gap: 12px; overflow-x: auto;
  padding: 4px var(--bosluk) 8px; scroll-snap-type: x mandatory; scroll-padding: 0 var(--bosluk); scrollbar-width: none; }
.serit::-webkit-scrollbar { display: none; }
.serit.yatay { grid-auto-columns: clamp(220px, 62vw, 340px); }
.izgara { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(104px, 28vw, 180px), 1fr)); gap: 14px 12px; padding: 0 var(--bosluk); }
.afis { position: relative; display: block; scroll-snap-align: start; border-radius: var(--r-k); overflow: hidden; background: var(--sessiz);
  aspect-ratio: 2 / 3; transition: transform var(--orta) var(--egri), box-shadow var(--orta) var(--egri); animation: belir .45s var(--egri) both; }
.yatay .afis { aspect-ratio: 16 / 9; }
.afis img { width: 100%; height: 100%; object-fit: cover; }
.afis:hover { transform: translateY(-4px); box-shadow: 0 14px 30px #000a, 0 0 0 1px #e8b04b55; }
.afis .ad { position: absolute; inset: auto 0 0; padding: 26px 10px 10px; font-size: 13px; font-weight: 600; line-height: 1.3;
  background: linear-gradient(#0000, #000e); }
.afis .yedek { position: absolute; inset: 0; display: grid; place-items: center; padding: 12px; text-align: center; font-weight: 600; font-size: 14px;
  color: var(--yazi-2); background: radial-gradient(circle at 30% 20%, #2a2112, var(--sessiz)); }
.ilerleme { position: absolute; inset: auto 0 0; height: 4px; background: #ffffff33; }
.ilerleme i { display: block; height: 100%; background: var(--altin); }
.bos { margin: 30px var(--bosluk); padding: 40px 24px; text-align: center; border: 1px dashed var(--cizgi); border-radius: var(--r-b); color: var(--yazi-2); }
.bos b { display: block; color: var(--yazi); font-size: 18px; margin-bottom: 6px; }

/* Arama */
.ara-kutu { position: sticky; top: calc(var(--ust-y) + env(safe-area-inset-top)); z-index: 5; padding: 12px var(--bosluk); background: #000e; }
.ara-kutu input { width: 100%; height: 50px; padding: 0 18px; border-radius: var(--r-o); border: 1px solid var(--cizgi); background: var(--sessiz); font-size: 16px; }
.sayfa { padding-top: calc(var(--ust-y) + env(safe-area-inset-top)); padding-bottom: 40px; }

/* Detay */
.detay-ust { display: grid; gap: 22px; align-items: end; }
.detay-afis { width: clamp(120px, 30vw, 220px); border-radius: var(--r-o); overflow: hidden; box-shadow: 0 20px 50px #000c; aspect-ratio: 2 / 3; background: var(--sessiz); }
.detay-afis img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 760px) { .detay-ust { grid-template-columns: auto 1fr; } }
.turler { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.turler li { padding: 5px 12px; border-radius: 999px; background: #ffffff14; font-size: 13px; color: #e7e5e4; }
.detay-govde { padding: 4px var(--bosluk) 40px; max-width: 900px; }
.detay-govde p { color: #d6d3d1; margin: 0 0 24px; }
.kisi { display: grid; justify-items: center; gap: 6px; text-align: center; font-size: 12px; color: var(--yazi-2); }
.kisi .yuz { width: 76px; height: 76px; border-radius: 50%; overflow: hidden; background: var(--sessiz); display: grid; place-items: center; font-weight: 700; color: var(--yazi-3); }
.kisi .yuz img { width: 100%; height: 100%; object-fit: cover; }
.kisi b { color: var(--yazi); font-weight: 600; }
.serit.kisiler { grid-auto-columns: 92px; }

/* Oynatıcı */
.oynatici { position: fixed; inset: 0; z-index: 50; background: #000; display: grid; }
.oynatici video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.oyn-ust { position: absolute; inset: 0 0 auto; display: flex; align-items: center; gap: 10px;
  padding: calc(env(safe-area-inset-top) + 8px) 12px 28px; background: linear-gradient(#000d, #0000); transition: opacity var(--orta); }
.oyn-ust.gizli { opacity: 0; pointer-events: none; }
.oyn-ust h1 { flex: 1; margin: 0; font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oyn-ust select { height: 40px; padding: 0 10px; border-radius: var(--r-k); border: 1px solid #ffffff33; background: #000a; font-size: 14px; }
.yukleniyor { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.yukleniyor i { width: 46px; height: 46px; border-radius: 50%; border: 3px solid #ffffff2a; border-top-color: var(--altin); animation: don 0.9s linear infinite; }

/* Giriş / kayıt */
.giris { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; isolation: isolate; position: relative; }
.giris::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse at 50% -10%, #3a2a0e 0%, #000 60%); }
.giris-kart { width: 100%; max-width: 400px; animation: belir .5s var(--egri) both; }
.giris-logo { text-align: center; margin-bottom: 30px; font-family: Cinzel, serif; font-weight: 600; letter-spacing: .16em; }
.giris-logo span { display: block; font-size: 40px; color: var(--altin); }
.giris-logo small { font-size: 13px; color: var(--yazi-2); letter-spacing: .4em; }
.alan { display: grid; gap: 6px; margin-bottom: 16px; }
.alan label { font-size: 14px; font-weight: 500; color: #e7e5e4; }
.alan input { height: 52px; padding: 0 16px; border-radius: var(--r-o); border: 1px solid var(--cizgi); background: #111113; font-size: 16px;
  transition: border-color var(--hizli); }
.alan input:focus { border-color: var(--altin); outline: none; box-shadow: 0 0 0 3px #e8b04b33; }
.alan .not { font-size: 13px; color: var(--yazi-3); }
.hata { margin: 0 0 16px; padding: 12px 14px; border-radius: var(--r-k); background: #3b1218; border: 1px solid #7f1d1d; color: #fecaca; font-size: 14px; }
.giris-kart .dugme { width: 100%; margin-top: 6px; }
.alt-bag { margin-top: 22px; text-align: center; color: var(--yazi-2); font-size: 15px; }
.alt-bag a { color: var(--altin); font-weight: 600; padding: 8px 4px; }
.bilgi { margin-top: 18px; font-size: 13px; color: var(--yazi-3); text-align: center; line-height: 1.5; }

.bildirim { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 60; transform: translate(-50%, 20px);
  padding: 12px 18px; border-radius: var(--r-o); background: #1c1917; border: 1px solid var(--cizgi); font-size: 14px;
  opacity: 0; pointer-events: none; transition: opacity var(--orta), transform var(--orta) var(--egri); max-width: calc(100% - 32px); }
.bildirim.goster { opacity: 1; transform: translate(-50%, 0); }
.bildirim.hata { border-color: #7f1d1d; color: #fecaca; }

.iskelet { background: linear-gradient(90deg, var(--sessiz) 0%, #222226 50%, var(--sessiz) 100%); background-size: 200% 100%; animation: parla 1.4s infinite; }

@keyframes belir { from { opacity: 0; transform: translateY(12px); } }
@keyframes don { to { transform: rotate(360deg); } }
@keyframes parla { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}

/* Dizi: sezon seçici + bölüm listesi */
.sezon-secici { display: flex; gap: 8px; overflow-x: auto; padding: 0 var(--bosluk) 14px; scrollbar-width: none; }
.sezon-secici button { flex: none; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--cizgi); background: none; font-weight: 600; font-size: 14px; color: var(--yazi-2); }
.sezon-secici button[aria-pressed="true"] { background: var(--altin); border-color: var(--altin); color: var(--altin-yazi); }
.bolum-liste { display: grid; gap: 6px; padding: 0 var(--bosluk); max-width: 980px; }
.bolum-satir { display: grid; grid-template-columns: clamp(130px, 34vw, 220px) 1fr; gap: 14px; padding: 8px; border-radius: var(--r-o); transition: background var(--hizli); }
.bolum-satir:hover { background: #ffffff0d; }
.bolum-resim { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-k); overflow: hidden; background: var(--sessiz); }
.bolum-resim img { width: 100%; height: 100%; object-fit: cover; }
.bolum-oynat { position: absolute; inset: 0; display: grid; place-items: center; background: #0006; opacity: 0; transition: opacity var(--hizli); }
.bolum-oynat svg { width: 34px; height: 34px; fill: #fff; stroke: none; }
.bolum-satir:hover .bolum-oynat, .bolum-satir:focus-visible .bolum-oynat { opacity: 1; }
.bolum-bilgi { display: grid; align-content: center; gap: 4px; min-width: 0; }
.bolum-bilgi b { font-size: 15px; font-weight: 600; }
.bolum-bilgi span { font-size: 13px; color: var(--yazi-3); }
.bolum-bilgi p { margin: 2px 0 0; font-size: 13px; color: var(--yazi-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
a.etiket:hover { text-decoration: underline; }

/* Sonraki bölüm sayacı (oynatıcı) */
.sonraki { position: absolute; right: 16px; bottom: calc(80px + env(safe-area-inset-bottom)); display: flex; gap: 10px; align-items: center;
  padding: 14px; border-radius: var(--r-o); background: #000d; border: 1px solid var(--cizgi); animation: belir .3s var(--egri) both; }
.sonraki b { font-size: 14px; }
.sonraki span { display: block; font-size: 12px; color: var(--yazi-2); }

/* Oynatıcı ekleri: atlama işareti, kaydırma önizlemesi, girişi atla; seçim kutuları 44 px */
.oyn-ust select { height: 44px; }
.atlama-isareti { position: absolute; top: 50%; transform: translateY(-50%); padding: 14px 20px; border-radius: 999px; background: #000a;
  font-weight: 700; opacity: 0; pointer-events: none; transition: opacity var(--hizli); }
.atlama-isareti.sol { left: 12%; } .atlama-isareti.sag { right: 12%; }
.atlama-isareti.goster { opacity: 1; }
.onizleme { position: absolute; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: grid; gap: 6px; justify-items: center;
  padding: 6px; border-radius: var(--r-k); background: #000c; border: 1px solid var(--cizgi); pointer-events: none; }
.onizleme-resim { border-radius: 4px; background-repeat: no-repeat; max-width: 60vw; }
.onizleme span { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.atla { position: absolute; right: 16px; bottom: calc(90px + env(safe-area-inset-bottom)); border: 1px solid #ffffff55; }

/* Keşif çipleri */
.cipler { display: flex; gap: 8px; overflow-x: auto; padding: 4px var(--bosluk) 22px; scrollbar-width: none; }
.cipler::-webkit-scrollbar { display: none; }
.cip { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--cizgi);
  background: #ffffff0a; font-size: 14px; font-weight: 600; color: #e7e5e4; transition: background var(--hizli), border-color var(--hizli); }
.cip:hover { background: #ffffff14; border-color: #ffffff33; }
.cip.ana-cip { background: var(--altin); border-color: var(--altin); color: var(--altin-yazi); }
.cip svg { width: 18px; height: 18px; }
a.kisi:hover b { color: var(--altin); }
.kisi-ust { display: flex; align-items: center; gap: 16px; margin: 8px var(--bosluk) 22px; }
.kisi-ust h1 { margin: 0; font-size: 26px; }
.yuz.buyuk { width: 96px; height: 96px; font-size: 32px; }

/* Profil */
.profil { max-width: 560px; margin: 0 auto; padding-left: var(--bosluk); padding-right: var(--bosluk); }
.profil-ust { display: flex; align-items: center; gap: 16px; margin: 12px 0 26px; }
.profil-ust h1 { margin: 0; font-size: 26px; }
.profil-harf { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--altin); color: var(--altin-yazi); font-size: 28px; font-weight: 800; }
.profil-kutu { padding: 20px; margin-bottom: 16px; border: 1px solid var(--cizgi); border-radius: var(--r-b); background: var(--kart); }
.profil-kutu h2 { margin: 0 0 4px; font-size: 18px; }
.profil-kutu .not, .profil-ust .not { margin: 0 0 14px; font-size: 14px; color: var(--yazi-3); }
.profil-kutu .dugme, .cikis-dugme { width: 100%; }
.alan textarea { padding: 12px 16px; border-radius: var(--r-o); border: 1px solid var(--cizgi); background: #111113; font-size: 16px; resize: vertical; }
.alan textarea:focus { border-color: var(--altin); outline: none; box-shadow: 0 0 0 3px #e8b04b33; }

/* Giriş: kişi seçimi */
.gizli-baslik { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kim { margin: 0 0 12px; text-align: center; color: var(--yazi-2); font-size: 15px; }
.kisi-secim { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 10px; margin-bottom: 20px; }
.kisi-secim button { display: grid; justify-items: center; gap: 8px; padding: 12px 6px; border-radius: var(--r-o); border: 1px solid transparent;
  background: none; font-size: 14px; font-weight: 600; min-height: 44px; overflow-wrap: anywhere; }
.kisi-secim button:hover { background: #ffffff0d; }
.kisi-secim button[aria-pressed="true"] { border-color: var(--altin); background: #e8b04b14; }
.kisi-secim .profil-harf { width: 56px; height: 56px; font-size: 24px; }
.bos-harf { background: var(--sessiz) !important; color: var(--yazi-2) !important; }

/* Birlikte izle: oynatıcıdaki davet düğmesi */
.oyn-ust .davet { min-height: 44px; padding: 0 14px; font-size: 14px; gap: 8px; }
.grup-sayi { font-variant-numeric: tabular-nums; }

/* istek listesi */
.istek-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.istek { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 12px; border: 1px solid var(--cizgi); border-radius: 12px; }
.istek-metin { flex: 1 1 160px; min-width: 0; display: grid; gap: 2px; }
.istek-metin strong { overflow-wrap: anywhere; }
.istek-metin .not { margin: 0; font-size: 13px; }
.istek-durum { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--cizgi); color: var(--yazi-3); }
.istek.eklendi .istek-durum { background: var(--altin); color: var(--altin-yazi); }
.profil-kutu .dugme.kucuk { width: auto; min-height: 36px; padding: 6px 12px; font-size: 13px; }
.dugme.kucuk.sil { color: #ff8a8a; }

/* 23 Kas TV kumanda + indirilenler (tv.js, indir.js) */
.tv-ort { position: fixed; inset: 0; z-index: 60; background: #000a; display: flex; align-items: flex-end; justify-content: center; }
.tv-pencere { width: min(520px, 100%); background: #111; border-radius: 20px 20px 0 0; padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); display: grid; gap: 12px; }
.tv-sec { justify-content: flex-start; }
.tv-kumanda { display: grid; gap: 10px; }
.tv-kumanda .dugme { padding: 0 14px; }
.tv-konum { color: var(--yazi-2); font-variant-numeric: tabular-nums; }
.indirilen-kota { color: var(--yazi-2); font-size: 13px; }
.indirilen-liste { display: grid; gap: 14px; margin-top: 12px; }
.indirilen { display: flex; gap: 14px; align-items: flex-start; }
.indirilen img { width: 84px; border-radius: 8px; }
.indirilen span { display: block; color: var(--yazi-2); font-size: 13px; margin: 4px 0 10px; }
.indirilen-oyn { position: fixed; inset: 0; z-index: 70; }

/* S6 çocuk profili: üstte rozet, saat bitince nazik ekran */
.cocuk-rozet { margin-right: auto; margin-left: 10px; padding: 3px 10px; border-radius: 999px; background: #e8b04b; color: #000; font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.cocuk-son { text-align: center; }
.cocuk-son h1 { font-family: 'Cinzel', serif; color: #e8b04b; font-size: 26px; margin: 8px 0; }
.cocuk-son p { color: #cfcfcf; line-height: 1.6; }
.cocuk-ay { font-size: 56px; color: #e8b04b; }
