body {
  margin: 0;
  background: #000;
  color: #fff;
  font-family: Arial, sans-serif;
}
.player {
  width: 100%;
  max-width: 1000px;
  margin: auto;
}
.video-wrapper {
  position: relative;
  background: #000;
}
#videoPlayer {
  width: 100%;
  display: none;
  background: #000;
  cursor: pointer;
}
.controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 0px 10px;
  background: rgba(0, 0, 0, 0);
  box-sizing: border-box;
  opacity: 1;
  transition: opacity 0.25s ease;
  pointer-events: auto;
}
.video-wrapper.hide-controls .controls {
  opacity: 0;
  pointer-events: none;
}
.video-wrapper.hide-controls #videoPlayer {
  cursor: none;
}
.left-controls,
.center-controls,
.right-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}
.center-controls {
  flex: 1;
}
button {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 22px;
}
button:hover {
  color: #4da3ff;
}
button:focus {
  outline: none;
}

button:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

#volume-bar {
  width: 120px;
  height: 10px;
  background: #FFFFFF40;
  border-radius: 5px;
  -webkit-appearance: none;
  cursor: pointer;
}
#volume-bar::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #007bff;
  cursor: pointer;
}
#volume-bar::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: none;
  border-radius: 50%;
  background: #007bff;
  cursor: pointer;
}
#seek-bar {
  flex: 1;
  min-width: 100px;
  height: 10px;
  background: #FFFFFF40;
  border-radius: 5px;
  -webkit-appearance: none;
  cursor: pointer;
}
#seek-bar::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 5px;
  height: 16px;
  background: #007bff;
  cursor: pointer;
}
#seek-bar::-moz-range-thumb {
  width: 5px;
  height: 16px;
  border: none;
  background: #007bff;
  cursor: pointer;
}
#current-time,
#duration {
  width: 48px;
  text-align: center;
  font-size: 14px;
}
.video-container {
  display: flex;
  flex-direction: column;
}
.video-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border-top: 1px solid #333;
  cursor: pointer;
}
.video-item:hover {
  background: #1c1c1c;
}
.video-title {
  flex: 1;
}
.download-btn {
  font-size: 22px;
  cursor: pointer;
}
.download-btn:hover {
  color: #4da3ff;
}
.player:fullscreen {
  width: 100vw;
  height: 100vh;
  max-width: none;
  background: #000;
}
.player:fullscreen .video-wrapper {
  width: 100%;
  height: 100%;
}
.player:fullscreen #videoPlayer {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.player:fullscreen .controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}
.player:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  max-width: none;
  background: #000;
}
.player:-webkit-full-screen .video-wrapper {
  width: 100%;
  height: 100%;
}
.player:-webkit-full-screen #videoPlayer {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.player:-webkit-full-screen .controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}
.subtitle-container {
  position: relative;
}
.subtitle-menu {
  position: absolute;
  bottom: 40px;
  right: 0;
  min-width: 160px;
  display: none;
  background: #222;
  border: 1px solid #444;
  border-radius: 8px;
  overflow: hidden;
  z-index: 1000;
}
.subtitle-menu.show {
  display: block;
}
.subtitle-item {
  padding: 10px 15px;
  cursor: pointer;
  white-space: nowrap;
}
.subtitle-item:hover {
  background: #333;
}
#play-btn {
  font-size: 24px;
}
@media (max-width: 700px) {
  .controls {
    flex-wrap: wrap;
  }
  .center-controls {
    width: 100%;
  }
  #volume-bar {
    width: 100px;
  }
}
