body {
  margin: 0;
  background: rgb(21, 21, 21);
  color: white;
  font-family: Arial, sans-serif;
}

html {
  overflow-x: hidden;
  scrollbar-gutter: stable;
}
body {
  margin: 0;
  background: rgb(21, 21, 21);
  color: white;
  font-family: Arial, sans-serif;
}

h2, p {
  margin: 0;
  padding: 0;
}
    .top-container {
      margin-bottom: 15px;
      display: flex;
      align-items: center;
      justify-content: center;
      background-color: rgb(30, 30, 30);
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
      padding: 10px 0;
    }
        a {
      color: inherit;
      text-decoration: none;
      outline-offset: 3px;
    }
        a:focus-visible,
    button:focus-visible {
      outline: 2px solid #3399ff;
      outline-offset: 2px;
    }
        .logo {
      font-size: 24px;
      font-weight: 700;
      cursor: pointer;
      user-select: none;
    }
#main-content-wrapper {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
.video-container {
  border-radius: 1.5%;
  position: relative;
  width: 100%;
  background: black;
  height: auto;
  overflow: hidden;
}
.video-preview {
  border-radius: 1.5%;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: black;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 2em;
  z-index: 1;
}
.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  background: black;
  object-fit: contain;
}
.controls {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  padding: 0 10px 10px 10px;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 2;
}
.controls-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding-top: 10px;
}
.controls-left,
.controls-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
button,
select {
  background: none;
  border: none;
  color: white;
  font-size: 16px;
  cursor: pointer;
}
.volume-container input[type="range"] {
  width: 100px;
  accent-color: #1279d4;
}
.timeline-container {
  position: relative;
  width: 99%;
  height: 19px;
  background: transparent;
  cursor: pointer;
  z-index: 2;
  margin-top: 5px;
  right: 5px;
}
.timeline-container:hover {
  background: transparent;
}
.timeline-visible-bar {
  position: absolute;
  top: 50%;
  left: 10px;
  width: calc(100% - 20px);
  height: 5px;
  background: #444;
  transform: translateY(-50%);
}
#progress {
  width: 0%;
  height: 100%;
  background: #1279d4;
  position: absolute;
  top: 0;
  left: 0;
}
#preview-thumbnail {
  position: absolute;
  pointer-events: none;
  display: none;
  z-index: 10;
  background-color: black;
  background-repeat: no-repeat;
  background-size: auto;
  border-radius: 5px;
  overflow: hidden;
  top: -100px;
}
.preview-time-display {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: inline-block;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  font-size: 0.5em;
  text-align: center;
  padding: 2px 5px;
  box-sizing: border-box;
  pointer-events: none;
  border-radius: 15%;
}
.video-info {
  color: white;
  display: none;
  padding-left: 3px;
}
.tags {
  font-size: 14px;
  color: #aaa;
}
#quality-select {
  color: white;
}
#quality-select option {
  background: black;
  color: white;
}
#pause-btn {
  font-size: 20px;
  transform: translateY(-2px);
}
#fullscreen-btn {
  font-size: 21.28px;
  margin-right: 20px;
  transform: translateY(-2px);
}
#mute-btn {
  transform: translateY(-2px);
}
#rewind-btn,
#forward-btn {
  transform: translateY(-1.5px);
}
@media (max-width: 1024px) and (min-width: 769px) {
  .volume-container input[type="range"] {
    width: 75px;
  }
}
@media (max-width: 768px) {
  .controls {
    padding: 0 5px 5px 5px;
  }
  .controls-main {
    padding-top: 5px;
  }
  .controls-left,
  .controls-right {
    gap: 3px;
  }
  button,
  select {
    font-size: 10px;
  }
  .volume-container input[type="range"] {
    width: 66px;
  }
  #pause-btn {
    font-size: 13px;
    transform: translateY(-1px);
  }
  #fullscreen-btn {
    font-size: 14px;
    margin-right: 3px;
    transform: translateY(-2px);
  }
  #mute-btn {
    transform: translateY(-2px);
  }
  #rewind-btn,
  #forward-btn {
    transform: translateY(-1.5px);
  }
  #time-display {
    font-size: 9px;
  }
}
