/* =========================================================
   PLAYER.CSS – FINAL STABİL SÜRÜM (2026)
   iframe + mp4 + hls | tab | sidebar | mobile safe
========================================================= */

:root {
  --primary-color: #ff3b30;
  --plyr-color-main: #ff3b30;
  --bg-dark: #000;
}

/* ---------------------------------------------------------
   ANA KAPSAYICI
--------------------------------------------------------- */
.player-container {
  position: relative;
  width: 100%;
  background: #000;
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 25px;
}

/* ---------------------------------------------------------
   PLAYER UI (TAB BAR)
--------------------------------------------------------- */
.player-ui-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 20;
  background: linear-gradient(to bottom, rgba(0,0,0,.9), rgba(0,0,0,0));
}

.player-tabs-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
}

.player-tabs {
  display: flex;
  gap: 8px;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 20px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: .25s;
}

.tab-btn.active {
  background: var(--primary-color);
}

.sidebar-toggle-link {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ---------------------------------------------------------
   VIDEO BOX
--------------------------------------------------------- */
.video-box {
  position: relative;
  width: 100%;
  background: #000;
}

/* ---------------------------------------------------------
   TAB CONTENT – STABİL YÖNTEM
   ❌ display:none YOK
--------------------------------------------------------- */
.video-content {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
  pointer-events: none;
  background: #000;
  aspect-ratio: 16 / 9;
}

.video-content.active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
}

/* ---------------------------------------------------------
   IFRAME (VIDMOLY / YOUTUBE / OK / VK)
--------------------------------------------------------- */
.video-content iframe {
  width: 100%;
  height: 100%;
  min-height: 240px;
  aspect-ratio: 16 / 9;
  border: none !important;
  background: #000 !important;
  display: block;
}

/* ---------------------------------------------------------
   PLYR (MP4 / HLS)
--------------------------------------------------------- */
.plyr,
.plyr__video-wrapper,
.plyr__video-embed {
  background: #000 !important;
}

.plyr--video {
  width: 100%;
  height: 100%;
  border-radius: 0;
}

.plyr video {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
  background: #000;
}

/* ---------------------------------------------------------
   MOBİL
--------------------------------------------------------- */
@media (max-width: 768px) {
  .player-container {
    border-radius: 0;
  }

  .tab-btn span {
    display: none;
  }
}
