/* Rehber bölümleri: video altındaki şerit ve bölüm listesi */
.rb-bolumler { margin: 0 auto 14px; font: 14px/1.4 "Open Sans", Arial, sans-serif; color: #1f2937; text-align: left; }
/* Bölüm şeridi: videonun altına bitişik koyu bant (oynatıcıya monteli görünüm) */
.rb-montaj { vertical-align: bottom; }
.rb-bant { background: #182230; color: #e2e8f0; padding: 10px 12px 9px; border-radius: 0 0 6px 6px; font-size: 12px; }
.rb-bant-ust { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 7px; min-height: 18px; }
.rb-durum { min-width: 0; color: #f1f5f9; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rb-sure { flex-shrink: 0; font-family: Consolas, "Courier New", monospace; color: #94a3b8; }
.rb-serit { display: flex; gap: 4px; align-items: center; height: 14px; }
.rb-seg { position: relative; flex: 1 1 0; min-width: 6px; height: 6px; padding: 0; border: 0; border-radius: 3px;
  background: rgba(255, 255, 255, .22); cursor: pointer; overflow: hidden; transition: height .12s, background .12s; }
.rb-seg:hover, .rb-seg:focus-visible { height: 10px; background: rgba(255, 255, 255, .36); outline: none; }
.rb-seg.rb-etkin { background: rgba(255, 255, 255, .3); }
.rb-dolgu { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: #38a1ff; }
.rb-liste { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px;
  grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); }
.rb-bolum { width: 100%; display: flex; gap: 8px; align-items: baseline; padding: 6px 8px; border: 1px solid #e2e8f0;
  border-radius: 6px; background: #fff; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.rb-bolum:hover, .rb-bolum:focus-visible { border-color: #1d4ed8; outline: none; }
.rb-bolum[aria-current="true"] { border-color: #1d4ed8; background: #eff6ff; }
.rb-zaman { font-variant-numeric: tabular-nums; color: #1d4ed8; font-weight: 600; min-width: 3.2em; }
/* Küçük resimler (video dosyasında resim kutusu varsa) */
.rb-serit { position: relative; }
.rb-onizleme { position: absolute; bottom: 18px; left: 0; z-index: 5; width: 192px; padding: 4px; border-radius: 6px;
  background: #0f172a; color: #fff; font-size: 12px; line-height: 1.3; box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
  pointer-events: none; display: none; }
.rb-onizleme.rb-acik { display: block; }
.rb-onizleme img { display: block; width: 100%; height: auto; border-radius: 3px; margin-bottom: 3px; }
.rb-resimli .rb-bolum { align-items: center; }
.rb-resim { flex: none; width: 64px; height: 36px; object-fit: cover; border-radius: 3px; background: #e2e8f0; }
/* Yatay liste (AYAR.liste = "yatay"): şerit genişliğinde tek satır, sığmazsa yatay kaydırma çubuğu */
.rb-yatay .rb-liste { position: relative; display: flex; overflow-x: auto; scroll-behavior: smooth; padding-bottom: 6px; }
.rb-yatay .rb-liste > li { flex: 0 0 min(240px, 80%); display: flex; }
.rb-yatay .rb-bolum[aria-current="true"] { box-shadow: 0 0 0 1px #1d4ed8; }
/* Yatay listenin sağ/sol düğmeleri: kenara yapışık, liste boyunda; dış kenara doğru koyulaşan buğu (altındaki kart
   yarı görünür). Buğu rengi panel zemini (#f8fafc) ile aynıdır. Başta/sonda ya da liste sığınca gizli. */
.rb-kaydirma { position: relative; margin-top: 10px; }
.rb-kaydirma .rb-liste { margin-top: 0; }
.rb-ok { position: absolute; top: 0; bottom: 0; z-index: 2; width: 88px; margin: 0; padding: 0; border: 0;
  color: #1e293b; font: bold 30px/1 Arial, sans-serif; text-shadow: 0 0 6px #fff; cursor: pointer;
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.rb-ok:hover { color: #1d4ed8; }
.rb-sol { left: 0; padding-right: 40px; border-radius: 0 0 0 5px;
  background: linear-gradient(to left, rgba(248, 250, 252, 0), #f8fafc 80%);
  -webkit-mask-image: linear-gradient(to left, transparent, #000 65%); mask-image: linear-gradient(to left, transparent, #000 65%); }
.rb-sag { right: 0; padding-left: 40px; border-radius: 0 0 5px 0;
  background: linear-gradient(to right, rgba(248, 250, 252, 0), #f8fafc 80%);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 65%); mask-image: linear-gradient(to right, transparent, #000 65%); }
.rb-ok.rb-gizli { display: none; }
/* Katlanır liste (AYAR.katla = "acik" ya da "kapali"): şerit genişliğinde çerçeve, başlığı aç/kapa düğmesi */
.rb-panel { margin-top: 8px; border: 1px solid #cbd5e1; border-radius: 6px; background: #f8fafc; }
.rb-ac { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 6px 10px;
  border: 0; border-radius: 6px; background: transparent; color: inherit; font: inherit; font-size: 13px;
  font-weight: 600; text-align: left; cursor: pointer; }
.rb-ac:hover { color: #1d4ed8; }
.rb-ac:focus-visible { outline: 2px solid #1d4ed8; outline-offset: -2px; }
/* Aç/kapa oku: sitenin Font Awesome 4.7'si (mpAna.Master), fa-chevron-down; açıkken yumuşakça yukarı döner */
.rb-ac::after { content: "\f078"; font: normal 12px/1 FontAwesome; transform: rotate(180deg); transition: transform .35s ease; }
.rb-kapali .rb-ac::after { transform: none; }
.rb-panel .rb-liste { margin: 0; padding: 0 8px 8px; }
.rb-panel .rb-kaydirma { margin-top: 0; }
/* Yumuşak aç/kapa: panel iki satırlı ızgara, liste satırı 1fr <-> 0fr kayar (desteklemeyen tarayıcıda anında açılır).
   Kapalıyken visibility: hidden, kartlar sekmeyle odaklanmasın. */
.rb-panel { display: grid; grid-template-rows: auto 1fr; transition: grid-template-rows .35s ease; }
.rb-kapali .rb-panel { grid-template-rows: auto 0fr; }
.rb-panel > .rb-liste, .rb-panel > .rb-kaydirma { min-height: 0; overflow: hidden; transition: visibility .35s; }
.rb-kapali .rb-panel > .rb-liste, .rb-kapali .rb-panel > .rb-kaydirma { visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .rb-panel, .rb-ac::after { transition: none; } }
/* Duyarlı görünüm: bölümlü video ekrana sığmazsa oranını koruyarak küçülür (oranı js verir); dar ekranda kartlar küçülür */
.rb-video { max-width: 100%; height: auto !important; }
@media (max-width: 600px) {
  .rb-bolumler { font-size: 13px; }
  .rb-bolum { gap: 6px; padding: 5px 6px; }
  .rb-resim { width: 48px; height: 27px; }
  .rb-yatay .rb-liste > li { flex-basis: min(200px, 80%); }
  .rb-liste { grid-template-columns: repeat(auto-fill, minmax(min(180px, 100%), 1fr)); }
  .rb-ok { width: 64px; font-size: 26px; }
  .rb-sol { padding-right: 28px; }
  .rb-sag { padding-left: 28px; }
}
