#player {
  width: 100%;
  height: 100%;
  background: #000;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

#player-overlay {
  background: rgba(0, 0, 0, 0.7);
  border-radius: 8px;
  color: #fff;
}

.progress {
  background: #333;
  border-radius: 4px;
  height: 10px;
  overflow: hidden;
}

.bar {
  background: #1e87f0;
  height: 100%;
  transition: width 0.3s ease;
}

.uk-label {
  background: #1e87f0;
  border-radius: 4px;
}

.uk-button-text img {
  vertical-align: middle;
  margin-right: 8px;
}

@media (max-width: 960px) {
  .uk-width-2-3\@m {
      width: 100%;
  }
  .uk-width-1-3\@m {
      width: 100%;
  }
  #player {
      aspect-ratio: 16/9;
  }
}

.progress-container {
  margin-top: 10px;
  background: #333;
  border-radius: 5px;
  overflow: hidden;
  height: 20px;
  position: relative;
}

.progress-bar {
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, #222, #444);
  border-radius: 5px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: #1e87f0;
  transition: width 0.3s ease;
  position: absolute;
  top: 0;
  left: 0;
}

.progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  text-shadow: 0 0 2px #000;
  z-index: 1;
}

.uk-label-time {
  background: #666;
  color: #fff;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 14px;
  display: inline-block;
}

#title {
  color: #ccc;
  font-size: 16px;
  padding: 5px;
}

@media (max-width: 960px) {
  .progress-container {
      height: 15px;
  }
  .progress-text {
      font-size: 10px;
  }
  .uk-label-time {
      font-size: 12px;
      padding: 3px 8px;
  }
}

@media (max-width: 640px) {
  .uk-grid.uk-child-width-auto {
      flex-direction: column;
      align-items: stretch;
  }
  .uk-button {
      width: 100%;
      margin-bottom: 5px;
  }
}

.hide {
  display: none !important;
}

#progress {
  display: none;
}

/* Fix for white spaces on scroll */
body {
  background: #222; /* Dark background to match design */
}

/* Mobile optimization for buttons */
@media (max-width: 640px) {
  /* Reduce overall padding in mobile view */
  .uk-section {
    padding: 10px !important;
  }
  .uk-padding {
    padding: 10px !important;
  }
  
  .uk-button {
    width: auto;
    max-width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
    white-space: normal;
    text-align: center;
  }
  
  /* Ensure form elements fit on small screens */
  form {
    padding: 5px;
    width: 95%;
    box-sizing: border-box;
  }
  
  .uk-input {
    width: 100%;
    box-sizing: border-box;
    padding: 5px 10px;
  }
  
  /* Optimize iframe for mobile - reduce height and center button */
  .uk-text-left.uk-hidden-s iframe {
    height: 50px;
    display: block;
    overflow: hidden;
  }

  /* Reduce space below search field */
  .uk-flex.uk-flex-middle {
    margin-bottom: 1px;
  }

  /* Align mobile button to left and minimize space */
  .uk-text-left.uk-hidden-s {
    margin-top: 1px;
    margin-bottom: 1px;
    padding: 0;
  }
  
  /* Add left padding for channel names in mobile view */
  .uk-button.uk-button-text {
    padding-left: 10px;
  }
  
  
}