.main-display {
  flex: 1;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  height: 48.16546762589928vh;
  border: 1px solid #ddd;
}

.video-call-container {
  height: 68vh !important;
}
.video-section {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.chat-section {
  width: 300px;
  background: rgba(8, 8, 8, 0.1);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
  .chat-section {
    transition: transform 0.3s ease-in-out;
    transform: translateX(100%);
  }

  .chat-section.active {
    transform: translateX(0);
  }
}

.chat-section {
  width: 300px;
  background: #000;
  border-radius: 10px;
  display: none;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: fixed;
  right: 20px;
  top: 150px;
  z-index: 1000;
  transition: transform 0.3s ease;
}

.chat-section.active {
  display: flex;
}

@media (max-width: 768px) {
  .chat-section {
    width: 100%;
    right: 0;
    top: 0;
    bottom: 0px;
    border-radius: 0;
  }
}

.control-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: auto;
  height: 70px !important;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 4px;
  position: relative;
  flex: 1;
  gap: 2px;
  margin-right: 20px !important;
}

.video-chat-layout {
  display: flex;
  height: calc(80vh - 80px);
  gap: 20px;
  padding: 20px;
  position: relative;
}
@media screen and (max-width: 768px) {
  .video-chat-layout {
    height: 85vh !important;
  }

  .call-controls {
    gap: 0px !important;
    max-height: 270px !important;
  }
}

.video-section {
  flex: 1;
}


@media (max-width: 768px) {
  .video-chat-layout {
    flex-direction: column;
    height: 100%;
    padding: 10px;
  }

  .chat-section {
    position: fixed;
    top: 0;
    width: 100%;
    right: 0;
    left: 0px;
    height: 94vh;
    z-index: 1000;
    transform: translateX(0);
  }

  .chat-section.active {
    transform: translateX(-300px);
  }

  .video-section {
    height: 100% !important;
  }
}

.streams-content {
  background: transparent;
  border-radius: 10px;
  height: 100%;
  border: 1px solid #fefefe;
}

@media screen and (min-width: 769px) {
  [id^="agora-video-player-track"] {
    background-color: transparent !important;
    height: 48vh !important;
   
  }
}
@media screen and (max-width: 768px) {
  [id^="agora-video-player-track"] {
    background-color: transparent !important;
    height: 30vh !important;

  }
}
@media screen and (max-width: 475px) {
  [id^="agora-video-player-track"] {
    background-color: transparent !important;
    height: 30vh !important;
  
  }
}
@media (max-width: 768px) {
  .video-streams {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)) !important;
  }

  #main-speaker {
    border: 1px solid #ab00ff !important;
  }

  .video-container {
    position: relative;
    border-radius: 8px;
    background-color: #000;
    aspect-ratio: 16/9;
  /*   height: 48.16546762589928vh !important; */
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background: rgba(0, 0, 0, 0.2);
  }

  .select2-container--default
    .select2-selection--single
    .select2-selection__arrow {
    top: 8px !important;
  }
}
@media screen and (max-width: 475px) {
  .video-container {
    height: 48.16546762589928vh !important;
  }
}

.control-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.control-btn i {
  font-size: 18px;
  margin-bottom: 5px;
}

.control-btn span {
  font-size: 11px;
  text-align: center;
}

.volume-control {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  padding: 10px;
  border-radius: 10px;
  width: 120px;
  margin-bottom: 10px;
}

.volume-control.show {
  display: block;
}

#volume-slider {
  width: 100%;
  height: 5px;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  outline: none;
}

#volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 15px;
  height: 15px;
  background: white;
  border-radius: 50%;
  cursor: pointer;
}

.language-select {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 5px 10px;
  width: 120px;
  cursor: pointer;
}

.language-select option {
  background: rgba(0, 0, 0, 0.9);
  color: white;
}

/* Chat toggle butonu için aktif durum stili */
#chat-toggle-btn.active {
  background: rgba(171, 0, 255, 0.3) !important;
}

#chat-toggle-btn.active i {
  color: #ab00ff !important;
}

/*video streams*/

.video-streams {
  width: 300px;
  height: 52vh !important;
}

.video-streams {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
  gap: 1rem;
  width: 100%;
  margin-bottom: 400px;
}

/*CALL CONTROLS*/

.call-controls {
  flex-wrap: wrap;
  width: 60%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 15px;
  position: fixed;
  top: 78vh !important;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

@media (max-width: 992px) {
  .call-controls {
    flex-wrap: wrap;
    gap: 5px;
    padding: 10px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 700px !important;
    position: absolute !important;
    bottom: 0px !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  }

  .control-btn {
    width: 60px;
    height: 60px;
  }

  .control-btn i {
    font-size: 20px;
  }

  .control-btn span {
    font-size: 10px;
  }
}

.subtitles-container {
  position: absolute;
  width: 95%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  text-align: center;
  top: 52vh !important;
  max-height: 150px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none; 
  -ms-overflow-style: none; 
}

@media screen and (max-height:700px) {
  .subtitles-container {
    max-height: 60px!important;
  }
}

.subtitles-container::-webkit-scrollbar {
  display: none!important;
}

@media screen and (max-width: 768px) {
  .video-streams {
    height: 33vh !important;
    display: flex !important;
  }
  .call-controls {
    top: 43.2vh !important;
  }
  .subtitles-container {
    top: 33vh !important;
    max-height: 120px;
    overflow-y: auto;
    overflow-x: hidden;
  }
  .subtitles-content {
    font-size: 16px;
    padding: 8px 16px;
  }

}

@media screen and (max-width: 425px) {
  .video-streams {
    height: 33vh !important;
  }
  .control-btn {
    margin-right: 15px !important;
  }
}

.subtitles-content {
 
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  backdrop-filter: blur(4px);
  font-size: 18px;
  line-height: 1.4;
  max-width: 100%;
  margin: 0 auto;
  opacity: 0;
  transition: opacity 0.3s ease;
  word-wrap: break-word;
  white-space: pre-wrap;
}

.subtitles-content.active {
  opacity: 1;
}

.subtitles-content:empty {
  display: none;
}
