/* ============================================================
   BLLFLIX — "Gece Sineması" tasarım sistemi
   OLED siyahı · kırmızı imza · altın vurgu · Bebas Neue + Manrope
   ============================================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #050507;
  --panel: #101014;
  --panel2: #191920;
  --txt: #f2f0ec;
  --dim: #918f9b;
  --line: rgba(255,255,255,.07);
  --line2: rgba(255,255,255,.16);
  --red: #e50914;
  --red-hot: #ff2b35;
  --gold: #ffd166;
  --ok: #3ddc84;
  --disp: 'Bebas Neue', 'Arial Narrow', 'Avenir Next Condensed', sans-serif;
  --body: 'Manrope', -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.2, .7, .3, 1);
  --shadow: 0 14px 40px rgba(0,0,0,.55);
}

html { color-scheme: dark; }
body {
  background: var(--bg); color: var(--txt);
  font: 500 15px/1.6 var(--body);
  min-height: 100vh; position: relative;
  -webkit-font-smoothing: antialiased;
}
/* sinema atmosferi: tepede kısık kırmızı ışık + köşe vinyeti */
body::before {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(90rem 40rem at 50% -20rem, rgba(229,9,20,.13), transparent 60%),
    radial-gradient(120rem 80rem at 50% 120%, rgba(0,0,0,.6), transparent 60%);
}
/* film greni */
body::after {
  content: ''; position: fixed; inset: -50%; z-index: 60; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}
body.theater::before, body.theater::after { display: none; }  /* sinema modunda saf siyah */
body > * { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }
code { background: var(--panel2); padding: 1px 7px; border-radius: 5px; font-size: 13px; }
small { color: var(--dim); font-weight: 500; }
::selection { background: rgba(229,9,20,.5); color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
button, select, .tile, .chip, .tlink, .htile { cursor: pointer; }
.ic { vertical-align: -3px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------------- üst bar ---------------- */
.topbar {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 26px; position: sticky; top: 0; z-index: 50;
  background: rgba(5,5,7,.78); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-family: var(--disp); font-size: 27px; letter-spacing: 2.5px; line-height: 1;
  color: var(--txt); padding-top: 3px;
}
.brand span { color: var(--red); text-shadow: 0 0 18px rgba(229,9,20,.55); }
.brand.big { font-size: 58px; letter-spacing: 5px; display: block; text-align: center; margin-bottom: 26px; }
.spacer { flex: 1; }
.uname { color: var(--dim); font-size: 13px; font-weight: 600; margin-right: 8px; display: inline-flex; align-items: center; gap: 6px; }
.tlink {
  color: var(--dim); font-size: 13.5px; font-weight: 600; padding: 8px 12px; border-radius: 8px;
  display: inline-flex; align-items: center; gap: 7px; transition: color .2s, background .2s;
}
.tlink:hover { color: var(--txt); background: rgba(255,255,255,.06); }

/* ---------------- ana sayfa ---------------- */
.hero { padding: 40px 28px 6px; }
.hero h1 {
  font-family: var(--disp); font-size: clamp(34px, 5vw, 52px); letter-spacing: 3px;
  line-height: 1; font-weight: 400;
}
.hero p { color: var(--dim); font-size: 14.5px; margin-top: 6px; max-width: 60ch; }

.sech {
  font-family: var(--disp); font-size: 23px; letter-spacing: 2px; font-weight: 400;
  padding: 26px 28px 2px; display: flex; align-items: center; gap: 10px;
}
.sech::before { content: ''; width: 4px; height: 20px; background: var(--red); border-radius: 2px;
  box-shadow: 0 0 12px rgba(229,9,20,.6); }
.sech .ic { color: var(--gold); }

.tile { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }

/* bağlam menüsü (sağ tık / uzun basma) */
.ctx {
  position: fixed; z-index: 100; min-width: 230px;
  background: rgba(18,18,24,.97); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line2); border-radius: 12px; padding: 6px;
  box-shadow: var(--shadow); animation: rise .18s var(--ease);
}
.ctx .ctxt { padding: 8px 12px 6px; font-size: 12px; font-weight: 800; color: var(--dim); letter-spacing: .3px;
  border-bottom: 1px solid var(--line); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.ctx button {
  display: flex; align-items: center; gap: 9px; width: 100%; text-align: left;
  background: none; border: none; color: var(--txt); padding: 10px 12px; border-radius: 8px;
  font: 600 14px var(--body); transition: background .15s; min-height: 40px;
}
.ctx button:hover { background: rgba(255,255,255,.07); }
.ctx button .ic { color: var(--gold); }

/* filtre satırı: çipler + sıralama */
.filters { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 28px 0; }
.filters .chips { padding: 0; }
.sortlbl { color: var(--dim); font-size: 12px; font-weight: 700; margin-left: auto; white-space: nowrap; }
.sortlbl select { background: var(--panel2); border: 1px solid var(--line2); border-radius: 8px; color: var(--txt); padding: 7px 9px; margin-left: 6px; font: 600 13px var(--body); }
.hiddenbar { padding: 6px 28px 50px; }

.chips { display: flex; gap: 8px; padding: 14px 28px 0; flex-wrap: wrap; }
.chip {
  background: rgba(255,255,255,.05); border: 1px solid var(--line2); color: var(--dim);
  border-radius: 999px; padding: 7px 16px; font: 600 13px var(--body); letter-spacing: .4px;
  transition: all .2s var(--ease); min-height: 34px;
}
.chip:hover { color: var(--txt); border-color: rgba(255,255,255,.3); transform: translateY(-1px); }
.chip.on { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 4px 18px rgba(229,9,20,.4); }

.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 24px 20px; padding: 22px 28px 60px;
}
.loading { grid-column: 1/-1; text-align: center; color: var(--dim); padding: 70px 0; line-height: 2; }

/* film kartı */
.tile { display: block; animation: rise .5s var(--ease) backwards; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.tile:nth-child(1) { animation-delay: .02s } .tile:nth-child(2) { animation-delay: .06s }
.tile:nth-child(3) { animation-delay: .1s }  .tile:nth-child(4) { animation-delay: .14s }
.tile:nth-child(5) { animation-delay: .18s } .tile:nth-child(6) { animation-delay: .22s }
.tile:nth-child(7) { animation-delay: .26s } .tile:nth-child(8) { animation-delay: .3s }

.pwrap {
  position: relative; aspect-ratio: 2/3; overflow: hidden; border-radius: 12px;
  background: linear-gradient(160deg, var(--panel2), var(--panel));
  border: 1px solid var(--line);
  transition: border-color .25s, box-shadow .25s var(--ease), transform .25s var(--ease);
}
.pwrap::after {  /* alt karartma — rozetler okunur kalsın */
  content: ''; position: absolute; inset: auto 0 0 0; height: 38%;
  background: linear-gradient(transparent, rgba(0,0,0,.65)); pointer-events: none;
  opacity: 0; transition: opacity .25s;
}
.tile:hover .pwrap { transform: translateY(-5px); border-color: rgba(229,9,20,.55); box-shadow: var(--shadow), 0 0 0 1px rgba(229,9,20,.25), 0 10px 45px rgba(229,9,20,.12); }
.tile:hover .pwrap::after { opacity: 1; }
.pwrap img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s var(--ease); }
.tile:hover .pwrap img { transform: scale(1.06); }
.pwrap .ph { display: none; position: absolute; inset: 0; align-items: center; justify-content: center; color: rgba(255,255,255,.16); }
.pwrap.noimg .ph { display: flex; }

.badge {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  background: rgba(5,5,7,.8); backdrop-filter: blur(6px);
  color: var(--ok); font-size: 11.5px; font-weight: 700; letter-spacing: .3px;
  padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.12);
}
.badge.cont2 { color: var(--gold); }
.gtag {
  position: absolute; bottom: 10px; left: 10px; z-index: 2;
  background: rgba(5,5,7,.8); backdrop-filter: blur(6px);
  color: var(--gold); font-size: 10px; font-weight: 800; letter-spacing: 1.2px;
  padding: 4px 9px; border-radius: 6px; border: 1px solid rgba(255,209,102,.25);
  transition: background .2s, color .2s;
}
.gtag:hover { background: var(--gold); color: #1a1300; }
.tdel {
  position: absolute; top: 10px; left: 10px; z-index: 3;
  width: 30px; height: 30px; border: 1px solid rgba(255,255,255,.15); border-radius: 50%;
  background: rgba(5,5,7,.8); backdrop-filter: blur(6px); color: #ff6b6b; font-size: 14px;
  opacity: 0; transition: opacity .2s, background .2s, border-color .2s;
}
.tile:hover .tdel { opacity: 1; }
.tdel:hover { background: var(--red); border-color: var(--red); color: #fff; }
/* ⋮ seçenek düğmesi — yalnız dokunmatik cihazlarda (mobilde sürükleme yok, menünün görünür yolu bu) */
.tmore {
  position: absolute; bottom: 10px; right: 10px; z-index: 3; display: none;
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18);
  background: rgba(5,5,7,.82); backdrop-filter: blur(6px); color: #fff;
  font-size: 19px; font-weight: 700; line-height: 1; align-items: center; justify-content: center;
}
@media (pointer: coarse) { .tmore { display: flex; } }
body.touch .tmore { display: flex; }   /* JS algılaması — emülatör/karma cihaz güvencesi */
.pbar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.18); z-index: 2; }
.pbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--red), var(--red-hot)); box-shadow: 0 0 8px rgba(229,9,20,.7); }

.tile .t { padding: 12px 4px 0; font-weight: 700; font-size: 14.5px; line-height: 1.35;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.tile .d { padding: 2px 4px 0; color: var(--dim); font-size: 12.5px; font-weight: 600; }
.rstar { color: var(--gold); font-weight: 700; }

/* Devam Et rafı */
.cont-row { display: flex; gap: 16px; overflow-x: auto; padding: 16px 28px 10px; scrollbar-width: thin; scrollbar-color: var(--panel2) transparent; }
.tile.cont { flex: 0 0 175px; }
.cplay {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(.9); z-index: 2;
  width: 50px; height: 50px; border-radius: 50%;
  background: rgba(229,9,20,.9); color: #fff; box-shadow: 0 6px 24px rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center; padding-left: 3px;
  opacity: 0; transition: opacity .2s, transform .25s var(--ease);
}
.tile.cont:hover .cplay { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* ---------------- sinema modu (oynatıcı) ---------------- */
body.theater { background: #000; overflow: hidden; }
.theater-wrap { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
.phead {
  display: flex; align-items: center; gap: 12px; padding: 10px 18px; flex-wrap: wrap;
  background: linear-gradient(#000, rgba(0,0,0,.55));
}
.phead .back {
  color: var(--dim); display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px; transition: color .2s, background .2s;
}
.phead .back:hover { color: #fff; background: rgba(255,255,255,.09); }
.ptitle {
  font-family: var(--disp); font-size: 21px; letter-spacing: 1.5px; font-weight: 400; color: #eee;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; padding-top: 2px;
}
.ptitle small { color: var(--dim); font-family: var(--body); font-size: 13px; letter-spacing: 0; }
.sublabel { color: var(--dim); font-size: 12px; font-weight: 600; white-space: nowrap; }
.sublabel select {
  background: rgba(255,255,255,.08); color: var(--txt); border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px; padding: 6px 9px; margin-left: 6px; font: 600 13px var(--body);
  transition: border-color .2s;
}
.sublabel select:hover { border-color: rgba(255,255,255,.35); }

.stars { display: inline-flex; align-items: center; gap: 2px; margin-left: 8px; white-space: nowrap; }
.stars b { color: rgba(255,255,255,.25); font-size: 19px; font-weight: 400; transition: color .12s, transform .12s; cursor: pointer; padding: 2px; }
.stars b:hover { transform: scale(1.25); }
.stars b.on { color: var(--gold); text-shadow: 0 0 10px rgba(255,209,102,.45); }
.stars:hover b { color: rgba(255,209,102,.4); }
.stars b:hover ~ b { color: rgba(255,255,255,.25); }
.stars b:hover, .stars b.on:hover { color: var(--gold); }
.stars em { font-style: normal; color: var(--dim); font-size: 12px; font-weight: 600; margin-left: 6px; }

.vstage { flex: 1; min-height: 0; position: relative; background: #000; }
.vstage video { width: 100%; height: 100%; object-fit: contain; background: #000; display: block; outline: none; }

/* altyazı: varsayılan KOYU SARI; renk seçici video.cue-* ile değiştirir */
video::cue { color: #e6b400; background: rgba(0,0,0,.55); font-size: 1.05em; line-height: 1.35; }
video.cue-sari::cue  { color: #e6b400; }
video.cue-beyaz::cue { color: #ffffff; }

.bigplay {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 96px; height: 96px; border-radius: 50%; border: none;
  background: rgba(229,9,20,.94); color: #fff;
  display: flex; align-items: center; justify-content: center; padding-left: 6px;
  box-shadow: 0 10px 50px rgba(0,0,0,.7), 0 0 0 0 rgba(229,9,20,.5);
  animation: pulse 2.2s infinite; transition: transform .2s var(--ease);
}
@keyframes pulse { 70% { box-shadow: 0 10px 50px rgba(0,0,0,.7), 0 0 0 26px rgba(229,9,20,0); } }
.bigplay:hover { transform: translate(-50%, -50%) scale(1.08); }

.toast {
  position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 70;
  background: rgba(16,16,20,.95); border: 1px solid var(--line2); backdrop-filter: blur(10px);
  padding: 11px 20px; border-radius: 10px; font-size: 13.5px; font-weight: 600;
  box-shadow: var(--shadow); animation: rise .35s var(--ease);
}

/* ---------------- giriş / kurulum ---------------- */
.authbox {
  max-width: 400px; margin: 12vh auto; padding: 42px 36px;
  background: linear-gradient(170deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
  border: 1px solid var(--line2); border-radius: 18px; backdrop-filter: blur(10px);
  box-shadow: var(--shadow); animation: rise .5s var(--ease);
}
.authbox h3 { margin-bottom: 20px; font-size: 14.5px; font-weight: 600; text-align: center; color: var(--dim); }
.authbox form { display: flex; flex-direction: column; gap: 12px; }
.authbox input {
  background: rgba(255,255,255,.05); border: 1px solid var(--line2); border-radius: 10px;
  color: var(--txt); padding: 13px 15px; font: 600 15px var(--body); transition: border-color .2s, background .2s;
}
.authbox input:focus { outline: none; border-color: var(--red); background: rgba(255,255,255,.08); }
.authbox button {
  background: linear-gradient(180deg, var(--red-hot), var(--red)); border: none; border-radius: 10px;
  color: #fff; padding: 13px; font: 800 15px var(--body); letter-spacing: .3px;
  box-shadow: 0 6px 22px rgba(229,9,20,.35); transition: transform .15s, box-shadow .2s; min-height: 46px;
}
.authbox button:hover { transform: translateY(-1px); box-shadow: 0 9px 28px rgba(229,9,20,.5); }
.err { color: #ff7b7b; font-size: 13px; font-weight: 600; min-height: 18px; }
.hint { color: var(--dim); font-size: 12.5px; margin-top: 20px; line-height: 1.9; }

/* ---------------- yönetim dashboard'u ---------------- */
.dash { max-width: 1200px; margin: 0 auto; padding: 30px 26px 60px; }
.dhead { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.dhead h1 { font-family: var(--disp); font-size: 34px; letter-spacing: 2.5px; font-weight: 400; flex: 1; }
.dactions { display: flex; gap: 10px; }
.dbtn {
  background: linear-gradient(180deg, var(--red-hot), var(--red)); border: none; border-radius: 10px;
  color: #fff; padding: 11px 20px; font: 700 14px var(--body); display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 5px 18px rgba(229,9,20,.3); transition: transform .15s, box-shadow .2s; min-height: 42px;
}
.dbtn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(229,9,20,.45); }
.dbtn:disabled { opacity: .55; cursor: wait; transform: none; }
.dbtn.ghost { background: rgba(255,255,255,.06); border: 1px solid var(--line2); color: var(--txt); box-shadow: none; }
.dbtn.ghost:hover { border-color: rgba(255,255,255,.35); }
.scanout { min-height: 20px; margin: 10px 0 6px; font-size: 13.5px; color: var(--dim); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 16px 0 26px; }
.stat {
  background: linear-gradient(165deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px;
  transition: transform .2s var(--ease), border-color .2s; animation: rise .45s var(--ease) backwards;
}
.stat:nth-child(2) { animation-delay: .05s } .stat:nth-child(3) { animation-delay: .1s }
.stat:nth-child(4) { animation-delay: .15s } .stat:nth-child(5) { animation-delay: .2s }
.stat:hover { transform: translateY(-3px); border-color: var(--line2); }
.stat .si { color: var(--red-hot); margin-bottom: 8px; }
.stat .sv { font-family: var(--disp); font-size: 30px; letter-spacing: 1px; line-height: 1; }
.stat .sl { color: var(--dim); font-size: 11.5px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; margin-top: 5px; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.tab {
  background: none; border: none; border-bottom: 2px solid transparent; color: var(--dim);
  padding: 11px 18px; font: 700 14px var(--body); display: inline-flex; align-items: center; gap: 8px;
  transition: color .2s; min-height: 44px;
}
.tab:hover { color: var(--txt); }
.tab.on { color: var(--txt); border-bottom-color: var(--red); }

.panel { background: rgba(255,255,255,.02); border: 1px solid var(--line); border-top: none; border-radius: 0 0 14px 14px; padding: 20px 22px; }
.tscroll { overflow-x: auto; }
.subh { font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--dim); margin: 20px 0 10px; }

.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; color: var(--dim); font-weight: 700; font-size: 11px; letter-spacing: .8px; text-transform: uppercase; padding: 9px 10px; border-bottom: 1px solid var(--line2); white-space: nowrap; }
.tbl td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tbody tr { transition: background .15s; }
.tbl tbody tr:hover { background: rgba(255,255,255,.025); }
.tbl .dim { color: var(--dim); font-size: 12px; white-space: nowrap; }
.tbl tr.missing td { opacity: .5; }
.warn { color: var(--gold); font-size: 12px; font-weight: 700; }
.fpath { color: var(--dim); font-size: 11px; margin-top: 2px; font-weight: 500; }
.pcell img { width: 40px; height: 58px; object-fit: cover; border-radius: 6px; display: block; background: var(--panel2); border: 1px solid var(--line); }
.gsel { background: var(--panel2); border: 1px solid var(--line2); border-radius: 7px; color: var(--txt); padding: 5px 7px; font: 600 12px var(--body); }
.wbar { display: inline-block; width: 72px; height: 6px; background: rgba(255,255,255,.1); border-radius: 999px; overflow: hidden; vertical-align: middle; margin-right: 6px; }
.wbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--red), var(--red-hot)); }

button.mini {
  padding: 6px 12px; font: 600 12px var(--body); background: rgba(255,255,255,.05);
  border: 1px solid var(--line2); border-radius: 7px; color: var(--txt);
  white-space: nowrap; transition: border-color .2s, color .2s; min-height: 30px;
}
button.mini:hover { border-color: rgba(255,255,255,.4); }
button.mini.danger:hover { border-color: var(--red); color: #ff7b7b; }
.inline { display: flex; gap: 10px; flex-wrap: wrap; }
.inline input {
  background: rgba(255,255,255,.05); border: 1px solid var(--line2); border-radius: 9px;
  color: var(--txt); padding: 10px 13px; font: 600 14px var(--body); transition: border-color .2s;
}
.inline input:focus { outline: none; border-color: var(--red); }

/* ---------------- film ekleme sihirbazı ---------------- */
.addwrap { max-width: 760px; margin: 0 auto; padding: 34px 26px 70px; }
.addwrap h1 { font-family: var(--disp); font-size: 38px; letter-spacing: 2.5px; font-weight: 400; margin-bottom: 4px; display: flex; align-items: center; gap: 12px; }
.addwrap h1 .ic { color: var(--red-hot); }
.addwrap .sub { color: var(--dim); font-size: 14px; margin-bottom: 26px; max-width: 62ch; }
.step {
  background: rgba(255,255,255,.025); border: 1px solid var(--line); border-radius: 16px;
  padding: 22px 24px; margin-bottom: 16px; animation: rise .45s var(--ease) backwards;
}
.step:nth-of-type(2) { animation-delay: .07s } .step:nth-of-type(3) { animation-delay: .14s }
.step h2 { font-size: 11.5px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--dim); margin-bottom: 14px; }
.step .row { display: flex; gap: 10px; }
.step input[type=url], .step input[type=text], .step input[type=number] {
  background: rgba(255,255,255,.05); border: 1px solid var(--line2); border-radius: 10px;
  color: var(--txt); padding: 12px 14px; font: 600 14.5px var(--body); width: 100%; transition: border-color .2s;
}
.step input:focus { outline: none; border-color: var(--red); }
.step input[type=file] { color: var(--dim); font: 600 13.5px var(--body); }
.step select { background: var(--panel2); border: 1px solid var(--line2); border-radius: 9px; color: var(--txt); padding: 10px 11px; font: 600 14px var(--body); }
.step button {
  background: linear-gradient(180deg, var(--red-hot), var(--red)); border: none; border-radius: 10px;
  color: #fff; padding: 11px 22px; font: 700 14px var(--body); white-space: nowrap;
  box-shadow: 0 5px 18px rgba(229,9,20,.3); transition: transform .15s; min-height: 44px;
}
.step button:hover { transform: translateY(-1px); }
.step button:disabled { opacity: .55; transform: none; }
.hint2 { color: var(--dim); font-size: 12px; font-weight: 500; margin-top: 9px; }
.preview { display: flex; gap: 18px; margin-top: 18px; align-items: flex-start; animation: rise .4s var(--ease); }
.preview img { width: 116px; border-radius: 10px; display: block; border: 1px solid var(--line2); box-shadow: var(--shadow); }
.pmeta { flex: 1; display: flex; flex-direction: column; gap: 11px; }
.pmeta label { color: var(--dim); font-size: 11px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; display: flex; flex-direction: column; gap: 5px; }
.srow { display: flex; align-items: center; gap: 10px; margin-top: 9px; color: var(--dim); font-size: 13px; font-weight: 600; }
.bigbtn {
  width: 100%; background: linear-gradient(180deg, var(--red-hot), var(--red)); border: none; border-radius: 13px;
  color: #fff; padding: 16px; font: 800 16px var(--body); letter-spacing: .3px;
  box-shadow: 0 8px 28px rgba(229,9,20,.35); transition: transform .15s, box-shadow .2s; min-height: 54px;
}
.bigbtn:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(229,9,20,.5); }
.bigbtn:disabled { opacity: .55; cursor: wait; transform: none; }
.prog { margin-top: 18px; }
.pline { display: flex; justify-content: space-between; color: var(--dim); font-size: 13px; font-weight: 600; margin-bottom: 7px; }
.pbar2 { height: 9px; background: rgba(255,255,255,.08); border-radius: 999px; overflow: hidden; }
.pbar2 i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--red), var(--red-hot)); box-shadow: 0 0 12px rgba(229,9,20,.7); transition: width .3s var(--ease); }
.done {
  margin-top: 18px; background: rgba(61,220,132,.07); border: 1px solid rgba(61,220,132,.35);
  border-radius: 12px; padding: 15px 19px; font-size: 14.5px; font-weight: 600; animation: rise .4s var(--ease);
}
.done a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

/* ---------------- detay + dizi sayfası ---------------- */
.detail { max-width: 1000px; margin: 0 auto; padding: 36px 26px 60px; display: flex; gap: 34px; align-items: flex-start; }
.dposter { flex: 0 0 260px; }
.dposter img { width: 100%; border-radius: 14px; border: 1px solid var(--line2); box-shadow: var(--shadow); display: block; }
.dinfo { flex: 1; min-width: 0; }
.dtag { display: inline-block; color: var(--gold); font-size: 11px; font-weight: 800; letter-spacing: 1.5px; border: 1px solid rgba(255,209,102,.3); padding: 4px 10px; border-radius: 6px; margin-bottom: 12px; }
.dinfo h1 { font-family: var(--disp); font-size: clamp(30px, 4vw, 44px); letter-spacing: 2px; font-weight: 400; line-height: 1.05; }
.dinfo h1 small { font-family: var(--body); font-size: 16px; }
.dmeta { display: flex; gap: 18px; flex-wrap: wrap; color: var(--dim); font-size: 13.5px; font-weight: 600; margin: 12px 0 16px; }
.dplot { font-size: 15px; line-height: 1.75; max-width: 62ch; margin-bottom: 12px; }
.dcast { color: var(--dim); font-size: 13.5px; margin-bottom: 20px; }
.dactions2 { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.dbtn.big { padding: 14px 28px; font-size: 15px; border-radius: 12px; }
.dadmin { border-top: 1px solid var(--line); padding-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.seasonh { font-family: var(--disp); font-size: 19px; letter-spacing: 1.5px; font-weight: 400; margin: 22px 0 8px; }
.eplist { display: flex; flex-direction: column; gap: 6px; }
.eprow { display: grid; grid-template-columns: 40px 1fr auto 90px; gap: 12px; align-items: center;
  background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px;
  transition: border-color .2s, background .2s; }
.eprow:hover { border-color: rgba(229,9,20,.5); background: rgba(255,255,255,.05); }
.epno { font-family: var(--disp); font-size: 22px; color: var(--dim); text-align: center; }
.ept { font-weight: 700; font-size: 14px; }
.ept em { font-style: normal; font-size: 12px; font-weight: 600; margin-left: 8px; }
.epw { color: var(--ok); } .epc { color: var(--gold); }
.epd { color: var(--dim); font-size: 12px; }
.epbar { height: 5px; background: rgba(255,255,255,.1); border-radius: 999px; overflow: hidden; }
.epbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--red), var(--red-hot)); }

/* ---------------- oynatıcı ek araçları ---------------- */
.badge.new { color: #7ecbff; }
.pbtn { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 8px;
  color: var(--txt); padding: 6px 10px; font: 700 12px var(--body); min-height: 32px; transition: border-color .2s; }
.pbtn:hover { border-color: rgba(255,255,255,.4); }
.subtools { display: inline-flex; gap: 4px; align-items: center; }
.subtools em { font-style: normal; color: var(--gold); font-size: 11px; font-weight: 700; min-width: 34px; }
.partytag { color: var(--gold); font-size: 12px; font-weight: 800; letter-spacing: 1px; border: 1px solid rgba(255,209,102,.35); padding: 6px 10px; border-radius: 8px; }

/* altyazı boyutları */
video.cuesz-1::cue { font-size: .85em; }
video.cuesz-2::cue { font-size: 1.05em; }
video.cuesz-3::cue { font-size: 1.3em; }
video.cuesz-4::cue { font-size: 1.6em; }

.skipintro { position: absolute; right: 26px; bottom: 90px; z-index: 5;
  background: rgba(5,5,7,.85); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.25);
  color: #fff; font: 700 14px var(--body); padding: 12px 20px; border-radius: 10px; cursor: pointer;
  transition: background .2s, transform .15s; animation: rise .3s var(--ease); }
.skipintro:hover { background: var(--red); border-color: var(--red); transform: translateY(-2px); }

.nextup { position: absolute; right: 26px; bottom: 90px; z-index: 6;
  background: rgba(16,16,20,.96); backdrop-filter: blur(12px); border: 1px solid var(--line2);
  border-radius: 14px; padding: 18px 20px; box-shadow: var(--shadow); animation: rise .35s var(--ease); max-width: 340px; }
.nextup .nut { font-size: 14px; margin-bottom: 12px; }
.nextup .nub { display: flex; gap: 10px; }

/* ---------------- üst bar araçları: arama + sıralama ---------------- */
.tbtools { display: flex; align-items: center; gap: 10px; margin-left: 18px; flex: 1; max-width: 480px; }
.tsearch { display: flex; align-items: center; gap: 8px; flex: 1; background: rgba(255,255,255,.06);
  border: 1px solid var(--line2); border-radius: 999px; padding: 7px 14px; color: var(--dim); transition: border-color .2s; }
.tsearch:focus-within { border-color: rgba(229,9,20,.6); }
.tsearch input { flex: 1; background: none; border: none; outline: none; color: var(--txt); font: 600 13.5px var(--body); min-width: 0; }
.tsearch input::placeholder { color: var(--dim); }
.tbtools select { background: var(--panel2); border: 1px solid var(--line2); border-radius: 8px; color: var(--txt); padding: 7px 9px; font: 600 12.5px var(--body); }
.herobtns { display: flex; gap: 10px; margin-top: 14px; }

/* ---------------- modal (rastgele seçici + fragman) ---------------- */
.modal { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.75); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 20px; }
.mbox { background: var(--panel); border: 1px solid var(--line2); border-radius: 18px; padding: 26px 28px;
  max-width: 460px; width: 100%; position: relative; box-shadow: var(--shadow); animation: rise .3s var(--ease); }
.mbox.wide { max-width: 760px; }
.mbox h2 { font-family: var(--disp); font-size: 24px; letter-spacing: 1.5px; font-weight: 400; margin-bottom: 16px; }
.mclose { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.07); border: 1px solid var(--line2); color: var(--txt); cursor: pointer; }
.mrow { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; color: var(--dim); font-size: 13.5px; font-weight: 600; }
.mrow select { background: var(--panel2); border: 1px solid var(--line2); border-radius: 8px; color: var(--txt); padding: 7px 9px; font: 600 13px var(--body); margin-left: 6px; }
.rndpick { display: flex; gap: 16px; align-items: center; margin-top: 18px; animation: rise .3s var(--ease); }
.rndpick img { width: 100px; border-radius: 10px; border: 1px solid var(--line2); }
.trframe { aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: #000; }
.trframe iframe { width: 100%; height: 100%; border: none; display: block; }

/* ---------------- timeline önizlemesi ---------------- */
.thumbzone { position: absolute; left: 0; right: 0; bottom: 0; height: 64px; z-index: 4; }
@media (pointer: coarse) { .thumbzone { display: none; } }
.thumbbox { position: absolute; bottom: 72px; transform: translateX(-50%); z-index: 5; pointer-events: none;
  background: #000; border: 1px solid rgba(255,255,255,.35); border-radius: 8px; overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,.7); }
.thumbbox .tb-img { width: 160px; height: 90px; background-repeat: no-repeat; }
.thumbbox .tb-t { text-align: center; font: 700 11px var(--body); color: #fff; padding: 3px 0; background: rgba(0,0,0,.8); }

/* ---------------- istekler + grafik (dashboard) ---------------- */
.reqlist, .toplist { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.reqrow { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.03);
  border: 1px solid var(--line); border-radius: 9px; padding: 9px 13px; font-size: 13.5px; flex-wrap: wrap; }
.reqrow.done { opacity: .5; }
.chart { display: flex; align-items: flex-end; gap: 6px; height: 140px; padding: 10px 4px 4px; margin-bottom: 18px; }
.cbar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.cbar i { display: block; width: 100%; max-width: 34px; min-height: 2px; border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--red-hot), var(--red)); transition: height .3s var(--ease); }
.cbar span { color: var(--dim); font-size: 10px; font-weight: 700; }

/* ---------------- yükleme kuyruğu ---------------- */
.qbtns { margin-bottom: 12px; }
.queuelist { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.qrow { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.03);
  border: 1px solid var(--line); border-radius: 9px; padding: 9px 13px; font-size: 13.5px; }
.qrow small { color: var(--dim); }

/* ---------------- çift altyazı üst katmanı ---------------- */
.dualtop { position: absolute; top: 8%; left: 50%; transform: translateX(-50%); z-index: 5; pointer-events: none;
  max-width: 84%; text-align: center; white-space: pre-line;
  color: #7ecbff; font: 600 clamp(14px, 2.2vw, 24px)/1.4 var(--body);
  background: rgba(0,0,0,.55); padding: 4px 14px; border-radius: 8px; }

/* ---------------- parti sohbeti ---------------- */
.pchat { position: absolute; right: 14px; top: 14px; z-index: 6; width: 250px; max-height: 45%;
  display: flex; flex-direction: column; background: rgba(10,10,14,.82); backdrop-filter: blur(10px);
  border: 1px solid var(--line2); border-radius: 12px; overflow: hidden; }
.pcmsgs { flex: 1; overflow-y: auto; padding: 10px 12px; font-size: 12.5px; line-height: 1.6; display: flex; flex-direction: column; gap: 4px; }
.pcmsgs b { color: var(--gold); }
.pcform { display: flex; border-top: 1px solid var(--line); }
.pcform input { flex: 1; background: none; border: none; outline: none; color: var(--txt); padding: 9px 12px; font: 600 13px var(--body); min-width: 0; }
.pcform button { background: none; border: none; color: var(--gold); padding: 0 12px; cursor: pointer; font-size: 15px; }
@media (max-width: 700px) { .pchat { width: 180px; max-height: 36%; } }

/* ---------------- TV modu: büyük arayüz + odak halkası ---------------- */
body.tv { font-size: 18px; }
body.tv .grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 32px 26px; }
body.tv .tile .t { font-size: 19px; }
body.tv .tile .d { font-size: 15px; }
body.tv .tile.cont { flex: 0 0 230px; }
body.tv .sech { font-size: 30px; }
body.tv .hero h1 { font-size: 62px; }
body.tv .tile:focus { outline: 4px solid var(--gold); outline-offset: 4px; border-radius: 14px; }
body.tv .tile:focus .pwrap { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(255,209,102,.4), var(--shadow); }

/* ---------------- responsive ---------------- */
@media (max-width: 760px) {
  .detail { flex-direction: column; padding: 22px 16px 50px; }
  .dposter { flex: none; width: 180px; }
  .eprow { grid-template-columns: 32px 1fr 70px; }
  .eprow .epd { display: none; }
  .skipintro, .nextup { right: 12px; bottom: 76px; }
}
@media (max-width: 640px) {
  .topbar { padding: 10px 14px; flex-wrap: wrap; }
  .brand { font-size: 23px; }
  .tlink { padding: 8px 9px; font-size: 12.5px; }
  .uname { display: none; }
  .tbtools { order: 10; flex-basis: 100%; margin: 8px 0 0; max-width: none; }
  .hero { padding: 26px 16px 2px; }
  .sech, .chips { padding-left: 16px; padding-right: 16px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px 12px; padding: 16px 16px 50px; }
  .cont-row { padding: 12px 16px 8px; }
  .tile.cont { flex: 0 0 145px; }
  .phead { padding: 8px 10px; gap: 8px; }
  .ptitle { font-size: 17px; }
  .stars b { font-size: 17px; }
  .bigplay { width: 76px; height: 76px; }
  .dash { padding: 22px 14px 50px; }
  .addwrap { padding: 24px 16px 60px; }
  .authbox { margin: 8vh 16px; padding: 34px 26px; }
}
