/* İzleme sayfası: oynatıcı, başlık, indirme, bölüm listesi, altyazı görünümü */
.back { margin-bottom: 14px; }
.watch-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
@media (max-width: 900px) { .watch-wrap { grid-template-columns: minmax(0, 1fr); } }
.player-box { background: #000; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 16/9; position: relative; }
.player-box video, .player-box iframe, .player-box .plyr { width: 100%; height: 100%; border: 0; display: block; }
.player-msg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; color: var(--muted); background: rgba(0,0,0,.75); z-index: 5; }
.watch-bar { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.watch-bar h1 { font-size: 1.15rem; }
.sub { font-size: .85rem; color: var(--muted); margin-top: 4px; }

/* İndirme: tek düğme + açılır menü */
.dl { position: relative; }
.dl-btn { position: relative; overflow: hidden; min-width: 92px; }
.dl-btn .dl-prog { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--accent); transition: width .3s; }
.dl-menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 270px; max-width: calc(100vw - 32px);
  background: var(--card2); border: 1px solid var(--border); border-radius: 10px; padding: 6px;
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
}
/* Telefonda menü düğmenin altında tüm satır genişliğinde açılsın (ekrandan taşmasın) */
@media (max-width: 600px) {
  .watch-bar .btns { position: relative; width: 100%; }
  .dl { position: static; }
  .dl-menu { left: 0; right: 0; min-width: 0; max-width: none; }
}
.dl-menu button {
  display: flex; justify-content: space-between; gap: 12px; width: 100%; text-align: left;
  background: transparent; border: 0; color: var(--text); padding: 9px 10px; border-radius: 6px; cursor: pointer; font-size: .9rem;
}
.dl-menu button:hover:not(:disabled), .dl-menu button:focus-visible { background: rgba(255,255,255,.06); outline: none; }
.dl-menu button:disabled { opacity: .45; cursor: default; }
.dl-menu span, .dl-menu small { white-space: nowrap; }
.dl-menu small { color: var(--muted); }
.dl-menu hr { border: 0; border-top: 1px solid var(--border); margin: 4px 2px; }
.dl-menu .dl-note { font-size: .8rem; color: var(--muted); padding: 6px 10px; }

/* Bölüm listesi */
.ep-panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.ep-panel h2 { font-size: .95rem; margin-bottom: 10px; color: var(--muted); }
.tabs { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.tab { background: transparent; border: 1px solid var(--border); color: var(--muted); padding: 5px 12px; border-radius: 999px; cursor: pointer; font-size: .85rem; }
.tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.ep-list { max-height: 520px; overflow-y: auto; }
.ep-item {
  width: 100%; text-align: left; background: transparent; color: var(--text);
  border: 1px solid transparent; padding: 10px 12px; border-radius: 8px;
  cursor: pointer; margin-bottom: 6px; font-size: .9rem; display: block; position: relative; overflow: hidden;
}
.ep-item:hover { background: var(--card2); }
.ep-item.active { background: rgba(229,9,20,.15); border-color: var(--accent); font-weight: 700; }
.ep-item small { color: var(--muted); font-weight: 400; margin-left: 6px; }
.ep-item .bar { position: absolute; left: 0; right: 0; bottom: 0; }
.ep-item.done::after { content: "✓"; position: absolute; right: 12px; top: 10px; color: var(--ok); }

/* Altyazı: kalın beyaz yazı, saydam arka plan, okunabilirlik için siyah kontur + gölge */
.plyr__captions .plyr__caption {
  font-size: clamp(15px, 2.6vw, 30px); line-height: 1.3; font-weight: 700; color: #fff;
  background: transparent; padding: 0 .2em;
  -webkit-text-stroke: 0; paint-order: stroke fill;
  text-shadow: -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000, 2px 2px 0 #000,
               0 -2px 0 #000, 0 2px 0 #000, -2px 0 0 #000, 2px 0 0 #000, 0 3px 6px rgba(0,0,0,.8);
}
video::cue {
  background: transparent; color: #fff; font-weight: 700;
  text-shadow: -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000, 2px 2px 0 #000, 0 3px 6px rgba(0,0,0,.8);
}
.plyr--fullscreen-active .plyr__captions .plyr__caption { font-size: clamp(20px, 3vw, 44px); }
