/* =========================
   AYARLAR (SEN SADECE BURAYI OYNARSIN)
========================= */
:root{
  --pvbbar-overlay-pad: 12px;     /* modal kenar boşluğu (8–16) */
  --pvbbar-dialog-w: 1100px;      /* modal genişlik üst sınır */
  --pvbbar-player-max: 1050px;    /* video genişliği (980–1200) */
  --pvbbar-list-w: 280px;         /* sol liste genişliği (240–320) */
  --pvbbar-item-h: 44px;          /* kutu yüksekliği */
  --pvbbar-items-visible: 10;     /* listede görünen video sayısı */
}

/* =========================
   ALT BANT
========================= */
#pvbbar.pvbbar{
  position:fixed;
  left:0; right:0; bottom:0;
  z-index:2147483646;
  display:flex;
  justify-content:center;
  padding:10px 12px;
  background:rgba(10,10,10,.92);
  backdrop-filter:blur(6px);
}
#pvbbar .pvbbar__btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  border:0;
  border-radius:4px;
  padding:12px 16px;
  cursor:pointer;
  font-weight:600;
  line-height:1;
}
#pvbbar .pvbbar__yticon{
  width:22px;
  height:22px;
  fill:#fff;
}

/* =========================
   MODAL: KİLİT + OVERLAY
========================= */
body.pvbbar-modal-open{ overflow:hidden !important; }

#pvbbarModal.pvbbar__overlay{
  position:fixed;
  inset:0;
  z-index:99999;
  background:rgba(0,0,0,.75);
  display:none;
  align-items:center;
  justify-content:center;
  padding:var(--pvbbar-overlay-pad);
}
#pvbbarModal.pvbbar__overlay.is-open{ display:flex; }

/* =========================
   DIALOG (KUTU)
========================= */
#pvbbarModal .pvbbar__dialog{
  position:relative;
  width:min(var(--pvbbar-dialog-w), 96vw);
  max-height:90vh;
  background:#111;
  border-radius:14px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
#pvbbarModal .pvbbar__close{
  position:absolute;
  top:8px;
  right:8px;
  z-index:3;
  border:0;
  border-radius:999px;
  padding:8px 10px;
  cursor:pointer;
}

/* =========================
   İÇ LAYOUT
========================= */
#pvbbarModal .pvbbar__layout{
  display:grid;
  grid-template-columns: var(--pvbbar-list-w) 1fr;
  min-height:60vh;
}

/* Mobil: video üstte, liste altta */
@media (max-width:820px){
  #pvbbarModal .pvbbar__layout{
    grid-template-columns:1fr;
    grid-template-rows:auto auto;
  }
  /* Mobil: player üstte, liste altta */
  #pvbbarModal .pvbbar__content{ grid-row:1; }
  #pvbbarModal .pvbbar__list{ grid-row:2; border-right:0; border-top:1px solid rgba(255,255,255,.08); }
}


/* =========================
   SOL TARAF (LİSTE + BAŞLIK)
========================= */
#pvbbarModal .pvbbar__list{
  padding:16px 10px 10px;
  border-right:1px solid rgba(255,255,255,.08);
  overflow:hidden;               /* scroll sadece listScroll'da */
  min-height:0;
}

/* Başlık: TEK SATIR, kırılma yok */
#pvbbarModal .pvbbar__listTitle{
  display:flex;
  align-items:center;
  gap:6px;
  padding:0 6px 10px;
  margin:0 0 10px;
  border-bottom:1px solid rgba(255,255,255,.08);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
#pvbbarModal .pvbbar__postTitle,
#pvbbarModal .pvbbar__videosLabel{
  color:#fff !important;
  white-space:nowrap;
  text-transform:none !important;     /* NASIL YAZDIYSA ÖYLE */
}
#pvbbarModal .pvbbar__postTitle{
  font-size:13px;
  font-weight:600;
  line-height:1.2;
}
#pvbbarModal .pvbbar__videosLabel{
  font-size:12px;
  opacity:.9;
}

/* Scroll alanı: sadece burası kayar */
#pvbbarModal .pvbbar__listScroll{
  overflow-y:auto;
  overflow-x:hidden;
  max-height: calc(var(--pvbbar-items-visible) * var(--pvbbar-item-h));
  padding-right:4px;
  box-sizing:border-box;
}

/* Liste kutuları: TAM STANDART */
#pvbbarModal .pvbbar__item{
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
  box-sizing:border-box;
  height:var(--pvbbar-item-h);
  min-height:var(--pvbbar-item-h);
  max-height:var(--pvbbar-item-h);
  padding:10px 12px;
  margin:0 0 8px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
  cursor:pointer;
  text-align:left;

  /* Yazı: NASIL GİRİLDİYSE ÖYLE */
  font-size:13px;
  text-transform:none !important;
  letter-spacing:normal !important;
}

/* Başlık metni de aynen */
#pvbbarModal .pvbbar__itemTitle{
  font-size:13px;
  font-weight:600;
  line-height:1.2;
  text-transform:none !important;
}

/* Aktif video yeşil */
#pvbbarModal .pvbbar__item.is-active{
  border-left:4px solid #2ecc71;
  background:rgba(46,204,113,.12);
}
#pvbbarModal .pvbbar__item.is-active .pvbbar__itemTitle{
  color:#2ecc71;
}

/* =========================
   SAĞ TARAF (VIDEO)
========================= */
#pvbbarModal .pvbbar__content{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px;
  overflow:hidden;  /* sağ tarafta scroll yok */
  min-height:0;
}
#pvbbarModal .pvbbar__player{
  width:100%;
  max-width:var(--pvbbar-player-max);
  aspect-ratio:16/9;
  height:auto;
  background:#000;
  border-radius:10px;
  overflow:hidden;
}
#pvbbarModal .pvbbar__player iframe,
#pvbbarModal .pvbbar__player video{
  width:100%;
  height:100%;
  display:block;
}

/* Player alt başlık */
#pvbbarModal .pvbbar__nowTitle{
  max-width:var(--pvbbar-player-max);
  width:100%;
  font-size:13px;
  font-weight:600;
  color:rgba(255,255,255,.92);
  text-align:center;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* =========================
   SCROLLBAR (Sadece sol listede)
========================= */
#pvbbarModal .pvbbar__listScroll{
  scrollbar-width:thin;
  scrollbar-color:rgba(0,0,0,.6) rgba(255,255,255,.08);
}
#pvbbarModal .pvbbar__listScroll::-webkit-scrollbar{ width:8px; }
#pvbbarModal .pvbbar__listScroll::-webkit-scrollbar-track{ background:rgba(255,255,255,.06); }
#pvbbarModal .pvbbar__listScroll::-webkit-scrollbar-thumb{
  background:rgba(0,0,0,.6);
  border-radius:8px;
}

/* =========================
   GÜVENLİK: hiçbir şey uppercase/lowercase olmasın
========================= */
#pvbbarModal *{
  text-transform:none !important;
}
