/* ==================================================================
   TV PLUS - site stili
   Olculer ve renkler admin panelinden CSS degiskeni olarak gelir.
   Yerlesim: ortalanmis dar kolon (oynatici + liste) + iki yanda kanat reklam
   ================================================================== */

:root {
  --accent: #d4a706;
  --accent-2: #b8960b;
  --bg: #0a0a0a;
  --bg-2: #121212;
  --text: #ffffff;
  --muted: #8b8b8b;
  --radius: 12px;
  --max-w: 1100px;
  --player-w: 728px;
  --sidebar-w: 320px;

  --card: rgba(255, 255, 255, .035);
  --card-2: rgba(255, 255, 255, .06);
  --line: rgba(255, 255, 255, .08);
  --gold-line: color-mix(in srgb, var(--accent) 32%, transparent);
  --blur: blur(12px);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { padding: 0; margin: 0; }

body {
  background-color: var(--bg);
  background-image: radial-gradient(1100px 520px at 50% -10%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 68%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* Icerik kisa kaldiginda footer'in ekranin altina yaslanmasi icin */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
/* Arka plan gorseli: olcek, konum, sabitlik ve karartma panelden gelir */
body.has-bg {
  background-size: var(--bg-size, cover);
  background-position: var(--bg-pos, center center);
  background-repeat: var(--bg-repeat, no-repeat);
  background-attachment: var(--bg-attach, fixed);
}
body.has-bg::before {
  content: '';
  position: fixed; inset: 0; z-index: -1;
  background: rgba(0, 0, 0, var(--bg-overlay, .6));
}
/* Arka plan gorseli varken ustteki cubuklar gorseli kapatmasin.
   Bulaniklik (backdrop-filter) burada ozellikle kapatilir: aksi halde
   gorselin ust seridi bulaniklasip "gorsel bardan sonra basliyor" gibi durur. */
body.has-bg .topmost-bar {
  background: transparent;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  border-bottom: 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .95), 0 0 12px rgba(0, 0, 0, .8);
}
/* Not: header'da bulaniklik bilerek acik birakildi - cam gorunumun temeli odur.
   Yalnizca en ustteki ince serit saydam kalir ki arka planin tepesi net gorunsun. */
body.has-bg .site-footer { background: transparent; }
body.has-bg .footer-text,
body.has-bg .footer-credit { text-shadow: 0 1px 4px rgba(0, 0, 0, .9); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }

.frame {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 12px 26px;
  /* Footer'i asagi itebilmek icin frame de dikey esnek kutu olur */
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  /* Arka plandaki logo/afis alani icin panelden ayarlanan ust bosluk */
  padding-top: var(--top-offset, 0px);
  position: relative;
  z-index: 2;
}

/* Kartsiz (duz) header: zemin, cerceve ve golge kalkar,
   logo ve menu dogrudan arka planin uzerinde durur. */
/* Kartsiz header: yalnizca cerceve/golge kalkar.
   Zemin koyulugu ayri bir ayardir (--header-alpha), burada ona dokunulmaz. */
/* Kartsiz gorunum: yalnizca cerceve zayiflar. Bulaniklik ve isik korunur,
   aksi halde cam etkisi kaybolur. */
body.header-flat .site-header {
  border-color: rgba(255, 255, 255, .04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}
body.header-flat .site-header .logo-text strong { text-shadow: 0 2px 8px rgba(0, 0, 0, .85); }
body.header-flat .nav-item { text-shadow: 0 1px 5px rgba(0, 0, 0, .9); }

/* ------------------------------ butonlar --------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 16px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--card-2); cursor: pointer; font-weight: 600; font-size: 12.5px;
  transition: .18s; white-space: nowrap;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent; color: #12100a;
}
.btn.primary:hover { filter: brightness(1.1); color: #12100a; }
.btn.ghost { background: transparent; }
.btn.sm { padding: 6px 12px; font-size: 11.5px; }
.btn.block { width: 100%; }

/* ------------------------------ en ust serit ----------------------- */
.topmost-bar {
  background: #000;
  border-bottom: 1px solid var(--line);
  text-align: center;
  padding: 7px 14px;
  font-size: 11.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, .82);
  letter-spacing: .2px;
  position: relative; z-index: 3;
}

.announce {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  color: #12100a; font-weight: 800; font-size: 12.5px; padding: 8px 40px;
  position: relative; text-align: center; z-index: 3;
}
.announce-close {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; font-size: 20px; line-height: 1; cursor: pointer; color: inherit;
}

/* ------------------------------ header ----------------------------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin-top: 14px; padding: 8px 18px;
  /* Cam yuzey. Koyuluk panelden ayarlanir (--header-alpha). */
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .03) 45%, rgba(255, 255, 255, .015)),
    rgba(12, 14, 20, var(--header-alpha, .45));
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: calc(var(--radius) + 3px);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  min-height: 62px;
  position: relative;
  box-shadow:
    0 18px 40px -20px rgba(0, 0, 0, .8),
    inset 0 1px 0 rgba(255, 255, 255, .16);
}

/* Alt kenarda ortaya dogru koyulasan altin saç teli cizgi */
.site-header::after {
  content: '';
  position: absolute; left: 16px; right: 16px; bottom: -1px; height: 1px;
  background: linear-gradient(90deg,
    transparent,
    color-mix(in srgb, var(--accent) 55%, transparent) 28%,
    color-mix(in srgb, var(--accent) 70%, transparent) 50%,
    color-mix(in srgb, var(--accent) 55%, transparent) 72%,
    transparent);
  pointer-events: none;
}
/* h1 gorsel olarak logonun kendisidir; baslik varsayilanlari sifirlanir */
.logo-h1 { margin: 0; font-size: inherit; font-weight: inherit; line-height: 1; }
/* Ekran okuyucu ve arama motorlari icin: gorunmez ama gercek metin */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.logo { display: flex; align-items: center; gap: 10px; min-width: 0; }
.logo { position: relative; transition: opacity .18s; }
.logo:hover { opacity: .88; }
.logo-mark {
  width: 34px; height: 34px; flex: 0 0 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #12100a; display: grid; place-items: center;
  box-shadow:
    0 4px 14px -4px color-mix(in srgb, var(--accent) 60%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, .35);
}

/* Logo ile menu arasinda ince ayirici (yalnizca genis ekranda) */
@media (min-width: 761px) {
  .header-nav::before {
    content: '';
    width: 1px; height: 26px; margin-right: 12px; flex: 0 0 1px;
    background: linear-gradient(180deg, transparent, var(--line) 30%, var(--line) 70%, transparent);
  }
}
.logo-mark svg { width: 19px; height: 19px; stroke-width: 2.1; }
.logo-text strong {
  font-size: 20px; font-weight: 800; letter-spacing: .6px;
  background: linear-gradient(180deg, #fff 40%, var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  white-space: nowrap;
}
#logoImage { max-height: 40px; width: auto; }

.header-nav { display: flex; align-items: stretch; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.header-nav::-webkit-scrollbar { display: none; }
.nav-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  padding: 7px 13px; border-radius: 9px; min-width: 62px;
  color: rgba(255, 255, 255, .72); transition: .16s; white-space: nowrap;
}
.nav-item svg { width: 17px; height: 17px; stroke-width: 1.8; }
.nav-label { font-size: 9.5px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; }
.nav-item { position: relative; }
/* Altta genisleyen ince vurgu cizgisi */
.nav-item::after {
  content: '';
  position: absolute; left: 50%; bottom: 1px;
  width: 0; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  transform: translateX(-50%);
  transition: width .24s cubic-bezier(.4, 0, .2, 1);
}
.nav-item:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  color: var(--accent);
}
.nav-item:hover::after { width: 20px; }
.nav-item:hover svg { transform: translateY(-1px); }
.nav-item svg { transition: transform .2s ease; }

/* Vurgulu baglanti: altin kapsul + hafif isima */
.nav-item.highlight {
  color: #12100a;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 4px 14px -4px color-mix(in srgb, var(--accent) 55%, transparent);
}
.nav-item.highlight:hover {
  color: #12100a;
  filter: brightness(1.08);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.nav-item.highlight::after { display: none; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 21px; height: 2px; background: var(--text); margin: 4px 0; border-radius: 2px; }
.mobile-nav {
  display: none; flex-wrap: wrap; gap: 4px; margin-top: 8px; padding: 10px;
  background: rgba(10, 10, 10, .9); border: 1px solid var(--line); border-radius: var(--radius);
}
.mobile-nav.open { display: flex; }
.mobile-nav .nav-item { flex-direction: row; gap: 8px; padding: 9px 12px; }
.mobile-nav .nav-label { font-size: 11px; }

/* ------------------------------ yerlesim --------------------------- */
.content-wrapper {
  display: grid;
  grid-template-columns: minmax(0, var(--player-w)) minmax(0, var(--sidebar-w));
  justify-content: center;
  gap: 16px;
  align-items: stretch;
  margin-top: 14px;
}
.player-col { min-width: 0; display: flex; flex-direction: column; gap: 10px; }

/* ------------------------------ oynatici --------------------------- */
.player-card {
  background: #000;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: calc(var(--radius) + 3px);
  overflow: hidden;
  box-shadow:
    0 26px 60px -26px rgba(0, 0, 0, .85),
    inset 0 1px 0 rgba(255, 255, 255, .12);
}
.player-stage { position: relative; background: #000; aspect-ratio: 16 / 9; width: 100%; }
.screens { position: absolute; inset: 0; display: grid; gap: 2px; background: #000; }
.screens.single { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.screens.two { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
.screens.three, .screens.four { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.screen { position: relative; background: #000; overflow: hidden; min-width: 0; min-height: 0; }
.screen video, .screen iframe { width: 100%; height: 100%; object-fit: contain; border: 0; display: block; background: #000; }
.screen-label {
  position: absolute; left: 7px; top: 7px; padding: 3px 8px; border-radius: 5px;
  background: rgba(0, 0, 0, .7); font-size: 10px; font-weight: 700; pointer-events: none;
  max-width: 70%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.screens.single .screen-label { display: none; }
.screen-close {
  position: absolute; right: 6px; top: 6px; width: 22px; height: 22px; border-radius: 5px;
  background: rgba(0, 0, 0, .65); display: none; place-items: center; cursor: pointer; font-size: 15px;
}
.screens:not(.single) .screen-close { display: grid; }

/* --------------------- canli yayin kontrolleri --------------------- */
.pctrl {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
  display: flex; align-items: center; gap: 6px; padding: 8px 10px;
  background: linear-gradient(to top, rgba(0, 0, 0, .88), rgba(0, 0, 0, .45) 60%, transparent);
  opacity: 0; transform: translateY(6px); transition: .2s; pointer-events: none;
}
.screen:hover .pctrl,
.screen:focus-within .pctrl,
.pctrl.show { opacity: 1; transform: none; pointer-events: auto; }
.screens:not(.single) .pctrl { padding: 5px 6px; gap: 4px; }

.pc-btn {
  width: 30px; height: 30px; flex: 0 0 30px; border-radius: 7px; cursor: pointer;
  display: grid; place-items: center; color: #fff;
  background: rgba(255, 255, 255, .08); border: 0; transition: .15s;
}
.pc-btn:hover { background: var(--accent); color: #12100a; }
.pc-btn svg { width: 15px; height: 15px; }

.pc-vol {
  width: 72px; height: 4px; flex: 0 0 72px; cursor: pointer; -webkit-appearance: none;
  appearance: none; background: rgba(255, 255, 255, .25); border-radius: 4px; outline: none;
}
.pc-vol::-webkit-slider-thumb {
  -webkit-appearance: none; width: 11px; height: 11px; border-radius: 50%;
  background: var(--accent); cursor: pointer;
}
.pc-vol::-moz-range-thumb {
  width: 11px; height: 11px; border: 0; border-radius: 50%; background: var(--accent); cursor: pointer;
}
.screens:not(.single) .pc-vol { display: none; }

.pc-live {
  display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px;
  border-radius: 7px; cursor: pointer; font-size: 10px; font-weight: 800; letter-spacing: .5px;
  background: rgba(255, 255, 255, .08); border: 0; color: rgba(255, 255, 255, .8); transition: .15s;
}
.pc-live i { width: 7px; height: 7px; border-radius: 50%; background: #ff3b30; }
.pctrl.is-live .pc-live i { animation: blink 1.4s infinite; }
.pc-live:hover { background: rgba(255, 255, 255, .16); color: #fff; }
/* Canli kenardan geride kalindiysa dikkat cek */
.pc-live.behind { background: rgba(255, 59, 48, .22); color: #ff8a80; }
.pc-live.behind i { animation: none; background: #888; }
.pctrl:not(.is-live) .pc-live { display: none; }
.screens:not(.single) .pc-live span { display: none; }

.pc-spacer { flex: 1; }
.pc-quality {
  padding: 5px 7px; border-radius: 7px; cursor: pointer; font-size: 10.5px; font-weight: 700;
  background: rgba(255, 255, 255, .08); border: 0; color: #fff; outline: none;
}
.pc-quality option { background: #16161a; color: #fff; }
@media (max-width: 560px) { .pc-vol, .pc-pip { display: none; } }

.player-overlay {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: #000; z-index: 3; overflow: hidden;
}
.player-overlay .pnl-poster { position: absolute; inset: 0; display: none; }
.player-overlay .pnl-poster.filled { display: block; }
.player-overlay .pnl-poster .pnl-unit,
.player-overlay .pnl-poster img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.overlay-inner {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 20px;
}
/* Poster varken yalnizca oynat dairesi kalir; cevresindeki kapsul cerceve yok.
   (Iki ic ice halka gorunmesin diye zemin ve yuvarlaklik kaldirildi.) */
.player-overlay.has-poster .overlay-inner {
  background: none;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  border-radius: 0;
  padding: 0;
}
.player-overlay.has-poster .overlay-inner p { display: none; }
.overlay-icon {
  width: 60px; height: 60px; border-radius: 50%;
  border: 2px solid var(--gold-line); display: grid; place-items: center; color: var(--accent);
  background: rgba(0, 0, 0, .5); cursor: pointer; transition: .2s;
}
.overlay-icon:hover { background: color-mix(in srgb, var(--accent) 20%, transparent); }
.overlay-icon svg { width: 25px; height: 25px; fill: currentColor; stroke: none; }
.player-overlay p { margin: 0; color: rgba(255, 255, 255, .72); font-size: 12.5px; max-width: 340px; }

.player-loader { position: absolute; inset: 0; display: grid; place-items: center; z-index: 4; pointer-events: none; }
.spin {
  width: 40px; height: 40px; border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .14); border-top-color: var(--accent);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------- oynatici alt cubugu --------------------- */
.player-bar { display: flex; gap: 8px; align-items: stretch; flex-wrap: wrap; }
.now-pill {
  flex: 1 1 190px; min-width: 0;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 16px; border-radius: 9px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .025)), rgba(12, 14, 20, .42);
  border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14);
  font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .9);
  overflow: hidden;
}
.now-pill svg { width: 12px; height: 12px; flex: 0 0 12px; color: var(--accent); }
.now-pill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.bar-tools { display: flex; gap: 6px; flex-wrap: wrap; min-width: 0; }
.tool-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px; border-radius: 9px; cursor: pointer;
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02)),
              color-mix(in srgb, var(--accent) 12%, rgba(12, 14, 20, .42));
  border: 1px solid color-mix(in srgb, var(--accent) 38%, rgba(255, 255, 255, .1));
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
  color: var(--accent); font-size: 11.5px; font-weight: 700; transition: .16s;
}
.tool-btn:hover { background: color-mix(in srgb, var(--accent) 22%, transparent); }
.tool-btn.active { background: var(--accent); color: #12100a; border-color: var(--accent); }
.tool-btn svg { width: 13px; height: 13px; }
.quality-select {
  padding: 8px 10px; border-radius: 9px; cursor: pointer; font-size: 11.5px; font-weight: 600;
  background: rgba(10, 10, 10, .75); border: 1px solid var(--line);
}
.player-status { font-size: 11.5px; color: var(--muted); text-align: center; min-height: 14px; }
.player-status.error { color: #ff6b6b; }

/* ------------------------------ liste ------------------------------ */
.channel-list {
  /* Cam yuzey: yari saydam, arkasi bulaniklastirilmis, ust kenari isikli */
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .028) 34%, rgba(255, 255, 255, .012)),
    rgba(14, 16, 22, var(--glass-alpha, .42));
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: calc(var(--radius) + 3px);
  display: flex; flex-direction: column; overflow: hidden;
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow:
    0 26px 60px -26px rgba(0, 0, 0, .85),
    inset 0 1px 0 rgba(255, 255, 255, .16);
}
.tabs {
  display: flex; gap: 2px; padding: 6px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}
.tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  padding: 8px 3px; background: none; border: 0; cursor: pointer; border-radius: 8px;
  color: rgba(255, 255, 255, .52); font-size: 8.5px; font-weight: 800; letter-spacing: .4px;
  transition: .18s ease; min-width: 0; position: relative;
}
.tab svg { width: 14px; height: 14px; transition: transform .18s ease; }
.tab span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.tab:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.tab:hover svg { transform: translateY(-1px); }
/* Aktif sekme: sert alt cizgi yerine yumusak kapsul + kisa vurgu */
.tab.active {
  color: var(--accent);
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--accent) 16%, transparent),
    color-mix(in srgb, var(--accent) 6%, transparent));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}
.tab.active::after {
  content: '';
  position: absolute; left: 50%; bottom: 3px; transform: translateX(-50%);
  width: 16px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
}

.tab-panel { display: flex; flex-direction: column; min-height: 0; flex: 1; }

.search-bar { position: relative; padding: 10px 10px 8px; }
.search-bar svg { position: absolute; left: 20px; top: 19px; color: var(--muted); width: 14px; height: 14px; }
.search-bar input {
  width: 100%; padding: 9px 12px 9px 32px; border-radius: 8px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); outline: none; font-size: 12px;
}
.search-bar input:focus { border-color: var(--gold-line); }

.group-chips { display: flex; gap: 5px; padding: 0 10px 8px; overflow-x: auto; scrollbar-width: none; }
.group-chips::-webkit-scrollbar { display: none; }
.chip {
  padding: 4px 10px; border-radius: 20px; font-size: 10px; font-weight: 700; cursor: pointer;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); white-space: nowrap; transition: .15s;
}
.chip:hover { border-color: var(--gold-line); }
.chip.active { background: var(--accent); border-color: var(--accent); color: #12100a; }

.list-scroll {
  overflow-y: auto; flex: 1; min-height: 240px; max-height: 452px; padding: 0 8px 10px;
  scrollbar-width: thin; scrollbar-color: var(--accent) transparent;
}
.list-scroll::-webkit-scrollbar { width: 5px; }
.list-scroll::-webkit-scrollbar-thumb { background: var(--gold-line); border-radius: 3px; }
.empty-state { padding: 28px 14px; text-align: center; color: var(--muted); font-size: 12px; }

/* --------------------------- mac satirlari ------------------------- */
.match-row {
  padding: 9px 6px; border-radius: 9px; cursor: pointer;
  border: 1px solid transparent; transition: .15s;
}
.match-row:hover { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .1); }
.match-row.active { background: color-mix(in srgb, var(--accent) 13%, transparent); border-color: var(--gold-line); }
.match-row + .match-row { border-top: 1px solid rgba(255, 255, 255, .06); border-radius: 0; }
.match-top { display: flex; align-items: center; gap: 6px; }
.team { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; }
.team.away { flex-direction: row-reverse; text-align: right; }
.team-logo {
  width: 22px; height: 22px; flex: 0 0 22px; object-fit: contain; border-radius: 4px;
}
.team-logo.ph {
  display: grid; place-items: center; font-size: 8px; font-weight: 800;
  background: rgba(255, 255, 255, .1); color: var(--accent);
}
.team-name {
  font-size: 11px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.match-time {
  flex: 0 0 auto; font-size: 12px; font-weight: 800; color: var(--accent);
  padding: 0 4px; letter-spacing: .3px;
}
.match-time.live {
  color: #ff5a4d; display: inline-flex; align-items: center; gap: 4px;
}
.match-time.live::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: #ff3b30;
  animation: blink 1.4s infinite;
}
@keyframes blink { 50% { opacity: .25; } }
.match-league {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  margin-top: 5px; font-size: 9px; color: var(--muted); font-weight: 600;
}
.match-league svg { width: 10px; height: 10px; }

/* --------------------------- kanal satirlari ----------------------- */
.group-title {
  padding: 11px 6px 5px; font-size: 9.5px; font-weight: 800;
  letter-spacing: 1px; text-transform: uppercase; color: var(--muted);
}
.channel-item {
  display: flex; align-items: center; gap: 9px; padding: 8px; border-radius: 9px;
  cursor: pointer; transition: .15s; border: 1px solid transparent;
}
.channel-item:hover { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .1); }
.channel-item.active { background: color-mix(in srgb, var(--accent) 13%, transparent); border-color: var(--gold-line); }
/* Logo satirin sagindadir ve genistir: yayin logolari yatay oldugu icin
   34px'lik kare kutuda okunmayacak kadar kuculuyordu. Arka plan tonu
   kaldirildi, logo dogrudan satirin uzerinde durur. */
.channel-logo {
  width: 82px; height: 34px; flex: 0 0 82px; border-radius: 6px;
  object-fit: contain; object-position: center;
}
/* Logosu olmayan kanalin bas harfleri: dar rozet olarak kalir */
.channel-logo.placeholder {
  width: 42px; flex: 0 0 42px;
  display: grid; place-items: center; font-size: 11px; font-weight: 800; color: var(--accent);
  background: rgba(255, 255, 255, .07); border: 1px solid var(--line);
}
.channel-meta { min-width: 0; flex: 1; }
.channel-name { font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Logo 82px yer aldigi icin metin alani daraldi: rozetler kucultulmesin,
   uzun grup adlari alt satira tasmak yerine kirpilsin. */
.channel-sub {
  font-size: 9.5px; color: var(--muted); display: flex; gap: 5px; align-items: center;
  overflow: hidden; white-space: nowrap;
}
.channel-sub .badge { flex: none; }
.badge {
  font-size: 8.5px; font-weight: 800; padding: 1.5px 5px; border-radius: 3px;
  background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--accent);
}
.badge.live { background: rgba(255, 59, 48, .18); color: #ff6b6b; }
.channel-play { color: var(--muted); opacity: 0; transition: .15s; }
.channel-item:hover .channel-play, .channel-item.active .channel-play { opacity: 1; color: var(--accent); }

/* --------------------------- coklu ekran --------------------------- */
.multi-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 4px 10px 10px; font-size: 11px; color: var(--accent); font-weight: 700;
}
.multi-actions { display: flex; gap: 5px; }
.multi-item {
  display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .05); cursor: pointer; font-size: 11.5px;
  transition: .15s; margin-bottom: 4px; overflow: hidden;
}
.multi-item:hover { border-color: var(--gold-line); }
.multi-item.selected { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 13%, transparent); }
.multi-item span.txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.multi-item .box {
  width: 15px; height: 15px; flex: 0 0 15px; border-radius: 4px; border: 1.5px solid var(--line);
  display: grid; place-items: center; font-size: 9px; color: #12100a;
}
.multi-item.selected .box { background: var(--accent); border-color: var(--accent); }

/* --------------------------- bilgi paneli -------------------------- */
.info-panel { padding: 14px 12px; }
.info-panel h3 { margin: 0 0 8px; font-size: 13px; color: var(--accent); }
.info-panel p { margin: 0; font-size: 12px; color: rgba(255, 255, 255, .72); white-space: pre-line; }
.social-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.social-row a {
  width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center;
  background: var(--card-2); border: 1px solid var(--line); font-size: 11px; font-weight: 700; transition: .16s;
}
.social-row a:hover { border-color: var(--accent); color: var(--accent); }

/* ------------------------------ footer ----------------------------- */
/* margin-top:auto -> ustunde kalan bosluk footer'i asagi iter,
   icerik uzunsa normal akista alta gelir (ekrani ortmez). */
.site-footer { margin-top: auto; padding-top: 18px; text-align: center; }
.footer-text { font-size: 11.5px; color: var(--muted); margin: 12px 0 4px; }
.footer-credit { font-size: 11px; color: rgba(255, 255, 255, .45); margin: 0; }
.footer-credit b { color: var(--accent); font-weight: 700; }

/* ================================================================== */
/* REKLAM ALANLARI                                                     */
/* ================================================================== */
.pnl-zone { display: none; }
.pnl-zone.filled { display: block; }
.pnl-zone .pnl-unit { display: block; margin: 0 auto; }
.pnl-zone img { border-radius: 8px; margin: 0 auto; height: auto; }

.pnl-wide.filled { max-width: var(--player-w); margin: 10px auto; width: 100%; }
.pnl-box.filled { padding: 10px; }

/* gold yazi bandi */
.pnl-strip.filled { margin: 10px 0; }
.pnl-strip .pnl-note,
.pnl-zone .pnl-note {
  display: block; padding: 11px 18px; border-radius: var(--radius); text-align: center;
  background: rgba(10, 10, 10, .75);
  border: 1px solid var(--gold-line);
  font-weight: 800; font-size: 11.5px; letter-spacing: .3px;
  color: var(--text); text-transform: uppercase; transition: .18s;
}
.pnl-zone .pnl-note:hover { border-color: var(--accent); color: var(--accent); }

.pnl-float {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: 12px; z-index: 5;
  max-width: 320px; width: 88%;
}
.pnl-float.filled { display: block; }

.pnl-mtop { padding: 8px 12px 0; }
.pnl-mtop.filled { display: none; }
@media (max-width: 900px) { .pnl-mtop.filled { display: block; } }

.pnl-mbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 6px 8px;
  background: rgba(10, 10, 10, .95); border-top: 1px solid var(--line); backdrop-filter: var(--blur);
}
.pnl-mbar.filled { display: none; }
@media (max-width: 900px) { .pnl-mbar.filled { display: block; } body { padding-bottom: 68px; } }
.sticky-close {
  position: absolute; right: 4px; top: -12px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--bg-2); border: 1px solid var(--line); color: var(--text); cursor: pointer;
  font-size: 15px; line-height: 1; display: grid; place-items: center; z-index: 2;
}

/* ------------------------------ pencereler ------------------------- */
.popup-backdrop {
  position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 20px;
  background: rgba(0, 0, 0, .8); backdrop-filter: blur(4px);
}
.popup-box {
  position: relative; background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; max-width: 460px; width: 100%;
}
.popup-close {
  position: absolute; right: 8px; top: 8px; width: 28px; height: 28px; border-radius: 7px;
  background: var(--card-2); border: 1px solid var(--line); color: var(--text);
  cursor: pointer; font-size: 17px; line-height: 1;
}
.report-box h3 { margin: 0 0 6px; font-size: 15px; }
.report-box textarea {
  width: 100%; margin: 12px 0; padding: 10px; border-radius: 9px; resize: vertical;
  background: rgba(0, 0, 0, .4); border: 1px solid var(--line); outline: none; font-size: 12.5px;
}
.report-ok { color: #4ade80; font-size: 12px; text-align: center; margin: 10px 0 0; }

/* ================================================================== */
/* SOHBET                                                              */
/* ================================================================== */
.chat-widget { position: fixed; right: 14px; bottom: 14px; z-index: 70; }
.chat-launcher {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px;
  border-radius: 30px; cursor: pointer; font-size: 12.5px; font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: 0; color: #12100a; box-shadow: 0 10px 26px -8px rgba(0, 0, 0, .8);
}
.chat-launcher svg { width: 16px; height: 16px; stroke-width: 2; }

.chat-box {
  width: 285px; height: 400px; display: flex; flex-direction: column;
  background: rgba(14, 14, 14, .97); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 24px 60px -20px #000;
}
.chat-head {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px;
  background: rgba(0, 0, 0, .55); border-bottom: 1px solid var(--line);
}
.chat-title { font-size: 12.5px; font-weight: 700; flex: 1; }
.chat-online { font-size: 10px; color: var(--muted); }
.chat-close { background: none; border: 0; color: var(--muted); font-size: 19px; cursor: pointer; line-height: 1; }
.chat-pinned {
  display: block; padding: 7px 12px; font-size: 10.5px; font-weight: 700;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border-bottom: 1px solid var(--gold-line); color: var(--accent);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.chat-messages {
  flex: 1; overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 9px;
  scrollbar-width: thin; scrollbar-color: var(--accent) transparent;
}
.chat-messages::-webkit-scrollbar { width: 5px; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--gold-line); border-radius: 3px; }
.chat-msg { display: flex; gap: 7px; }
.chat-avatar {
  width: 26px; height: 26px; flex: 0 0 26px; border-radius: 7px; display: grid; place-items: center;
  font-size: 10px; font-weight: 800; color: #12100a;
}
.chat-body { min-width: 0; flex: 1; }
.chat-nick { font-size: 10.5px; font-weight: 800; color: var(--accent); }
.chat-text { font-size: 11.5px; color: rgba(255, 255, 255, .85); word-break: break-word; }
.chat-empty { color: var(--muted); font-size: 11.5px; text-align: center; margin: auto; }
.chat-embed { flex: 1; overflow: hidden; }
.chat-embed iframe { width: 100%; height: 100%; border: 0; }
.chat-form { display: flex; gap: 5px; padding: 8px; border-top: 1px solid var(--line); background: rgba(0, 0, 0, .4); }
.chat-form input {
  border-radius: 7px; padding: 7px 9px; font-size: 11.5px; outline: none;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line); min-width: 0;
}
#chatNick { flex: 0 0 68px; }
#chatText { flex: 1; }
.chat-form button {
  flex: 0 0 32px; border-radius: 7px; cursor: pointer; display: grid; place-items: center;
  background: var(--accent); border: 0; color: #12100a;
}
.chat-form button svg { width: 14px; height: 14px; stroke-width: 2; }
@media (max-width: 600px) { .chat-box { width: calc(100vw - 28px); height: 340px; } }

/* ================================================================== */
/* SINEMA MODU                                                         */
/* ================================================================== */
body.cinema { background: #000; padding: 0; }
body.cinema::before { display: none; }
body.cinema .site-header,
body.cinema .mobile-nav,
body.cinema .announce,
body.cinema .topmost-bar,
body.cinema .site-footer,
body.cinema .channel-list,
body.cinema .chat-widget,
body.cinema .pnl-zone:not(.pnl-float) { display: none !important; }
body.cinema .frame { max-width: 100%; padding: 0; }
body.cinema .content-wrapper { grid-template-columns: 1fr; gap: 0; margin: 0; }
body.cinema .player-card { border: 0; border-radius: 0; }
body.cinema .player-bar { padding: 8px 12px; }
body.cinema .player-col { gap: 0; }

/* ================================================================== */
/* RESPONSIVE                                                          */
/* ================================================================== */
@media (max-width: 1080px) {
  .content-wrapper { grid-template-columns: minmax(0, 1fr); max-width: var(--player-w); margin-inline: auto; }
  .list-scroll { max-height: 380px; }
}
@media (max-width: 760px) {
  .header-nav { display: none; }
  .nav-toggle { display: block; }
  .frame { padding: 0 10px 22px; }
  .site-header { margin-top: 10px; padding: 8px 12px; min-height: 54px; }
  .logo-text strong { font-size: 17px; }
  .tool-btn span { display: none; }
  .tool-btn { padding: 9px 11px; }
  .player-bar { flex-direction: column; align-items: stretch; }
  .now-pill { flex: none; font-size: 11px; }
  .bar-tools { justify-content: center; }
  .quality-select { flex: 1; min-width: 0; }
  .tab span { font-size: 8px; }
  .tab { padding: 9px 2px; }
}
@media (max-width: 420px) {
  .screens.three, .screens.four { grid-template-columns: 1fr; grid-template-rows: repeat(4, 1fr); }
}

/* ================================================================== */
/* SEO ICERIK BOLUMU (sayfa alti)                                      */
/* Native <details> kullanilir: acilip kapanma icin JS gerekmez,       */
/* icerik DOM'da her zaman durur ve arama motoru tamamini okur.        */
/* ================================================================== */
.seo-content {
  margin-top: 18px;
  max-width: var(--player-w);
  margin-inline: auto;
  width: 100%;
}
.seo-heading {
  font-size: 15px; font-weight: 800; letter-spacing: .3px;
  margin: 0 0 4px; color: var(--text);
}
.seo-intro { margin: 0 0 12px; font-size: 12.5px; color: var(--muted); }

.seo-item {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02) 40%, rgba(255, 255, 255, .01)),
    rgba(14, 16, 22, var(--glass-alpha, .38));
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: calc(var(--radius) + 2px);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
  margin-bottom: 8px;
  overflow: hidden;
}
.seo-item summary {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 16px; cursor: pointer; list-style: none;
  transition: background .18s;
}
.seo-item summary::-webkit-details-marker { display: none; }
.seo-item summary:hover { background: rgba(255, 255, 255, .04); }
.seo-item summary h2 {
  margin: 0; flex: 1; font-size: 13px; font-weight: 700; letter-spacing: .2px;
  color: var(--text);
}
/* Acilir ok isareti */
.seo-ok {
  width: 9px; height: 9px; flex: 0 0 9px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(45deg); transition: transform .22s ease; margin-right: 4px;
}
.seo-item[open] > summary .seo-ok { transform: rotate(-135deg); }
.seo-item[open] > summary { border-bottom: 1px solid rgba(255, 255, 255, .07); }

.seo-body { padding: 4px 16px 16px; }
.seo-body h3 {
  margin: 16px 0 6px; font-size: 12.5px; font-weight: 700; color: var(--accent);
  letter-spacing: .2px;
}
.seo-body h3:first-child { margin-top: 8px; }
.seo-body p {
  margin: 0 0 10px; font-size: 12.5px; line-height: 1.75;
  color: rgba(255, 255, 255, .72);
}
.seo-body ul { margin: 0 0 10px; padding-left: 18px; }
.seo-body li {
  font-size: 12.5px; line-height: 1.7; color: rgba(255, 255, 255, .72); margin-bottom: 4px;
}
.seo-body li::marker { color: var(--accent); }

@media (max-width: 760px) {
  .seo-content { max-width: 100%; }
  .seo-item summary { padding: 12px 13px; }
  .seo-body { padding: 4px 13px 14px; }
}

/* ================================================================== */
/* EKRANA SABITLENMIS FOOTER REKLAMI                                   */
/* Kapali iken sarmalayici "display:contents" olur: yerlesime hic       */
/* dokunmaz, reklam normal akista footer icinde durur.                 */
/* ================================================================== */
.pnl-dock { display: contents; }
.pnl-dock > .sticky-close { display: none; }

/* Yalnizca banner gorunur: arkasinda serit, cerceve veya golge yok.
   pointer-events sarmalayicida kapatilir, banner'in kendisinde acilir;
   boylece seffaf alan altindaki icerige tiklamayi engellemez. */
body.dock-on .pnl-dock {
  display: block;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 65;
  padding: 0 12px 10px;
  background: none;
  border: 0;
  box-shadow: none;
  pointer-events: none;
}
body.dock-on .pnl-dock .pnl-zone.filled {
  margin: 0 auto;
  pointer-events: auto;
}

/* Alt bant iceriginin ustunu ortmesin (yukseklik JS ile olculur) */
body.dock-on { padding-bottom: var(--dock-h, 110px); }

/* Iki sabit bant ust uste binmesin: mobil bant devre disi kalir */
body.dock-on .pnl-mbar { display: none !important; }

/* Sinema modunda tum reklamlar gibi bu da gizlenir */
body.cinema.dock-on .pnl-dock { display: none; }
body.cinema.dock-on { padding-bottom: 0; }

/* Footer yazilarindaki baglantilar */
.footer-text a,
.footer-credit a {
  color: var(--accent);
  font-weight: 700;
  transition: opacity .16s;
}
.footer-text a:hover,
.footer-credit a:hover { opacity: .8; text-decoration: underline; }

/* Arka plan gorseline baglanti: icerigin ALTINDA duran tam ekran katman.
   .frame z-index 2'de oldugu icin icerige tiklamayi engellemez; yalnizca
   yanlardaki bos alanlara tiklandiginda devreye girer. */
.bg-link {
  position: fixed; inset: 0; z-index: 1;
  display: block; cursor: pointer;
}
