*,
*::before,
*::after {
  box-sizing: border-box;
}
:root {
  /* COLORS */
  --main-bg-color: #0f0f0f;
  --second-bg-color: #222222;
  --font-color: #e4e4e4;
  --second-font-color: #908f8f;
  --border-color: #5b5b5b;
  --comment-sec-bg-color: #898888;
  /* --nav-logo-color:#2020dc00; */
  /* HEIGHTS */
  --top-header-h: 56px;
  /* WIDTHS */
  --side-bar-w: 0px;
}
/* VIDEO PLAYER PAGE */
.video-player-page {
  width: 100%;
  height: 100%;
  background-color: var(--main-bg-color);
  display: none;
  grid-template-columns: 2fr 1fr;
  padding: 10px 0;
  padding-left: 15px;
}
/* /////////// */
.left-pac {
  overflow-y: scroll;
  padding-right: 10px;
}
/* /////////// */
/* VIDEO PLAYER STYLE START */
.video-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  aspect-ratio: 16/9;
  display: flex;
  justify-content: center;
  margin-inline: auto;
  background-color: black;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 15px;
}

.video-container.theater,
.video-container.full-screen {
  max-width: initial;
  width: 100%;
}

.video-container.theater {
  max-height: 90vh;
}

.video-container.full-screen {
  max-height: 100vh;
}

video {
  width: 100%;
  background-color: var(--second-bg-color);
}

.video-controls-container {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  color: white;
  z-index: 100;
  opacity: 0;
  transition: opacity 150ms ease-in-out;
}

.video-controls-container::before {
  content: "";
  position: absolute;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
  width: 100%;
  aspect-ratio: 6 / 1;
  z-index: -1;
  pointer-events: none;
}

.video-container:hover .video-controls-container,
.video-container:focus-within .video-controls-container,
.video-container.paused .video-controls-container {
  opacity: 1;
}

.video-controls-container .controls {
  display: flex;
  gap: 0.5rem;
  padding: 0.25rem;
  align-items: center;
}

.video-controls-container .controls button {
  background: none;
  border: none;
  color: inherit;
  padding: 0;
  height: 30px;
  width: 30px;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 150ms ease-in-out;
}

.video-controls-container .controls button:hover {
  opacity: 1;
}

.video-container.paused .pause-icon {
  display: none;
}

.video-container:not(.paused) .play-icon {
  display: none;
}

.video-container.theater .tall {
  display: none;
}

.video-container:not(.theater) .wide {
  display: none;
}

.video-container.full-screen .open {
  display: none;
}

.video-container:not(.full-screen) .close {
  display: none;
}

.volume-high-icon,
.volume-low-icon,
.volume-muted-icon {
  display: none;
}

.video-container[data-volume-level="high"] .volume-high-icon {
  display: block;
}

.video-container[data-volume-level="low"] .volume-low-icon {
  display: block;
}

.video-container[data-volume-level="muted"] .volume-muted-icon {
  display: block;
}

.volume-container {
  display: flex;
  align-items: center;
}

.volume-slider {
  width: 0;
  transform-origin: left;
  transform: scaleX(0);
  transition: width 150ms ease-in-out, transform 150ms ease-in-out;
}

.volume-container:hover .volume-slider,
.volume-slider:focus-within {
  width: 100px;
  transform: scaleX(1);
}

.duration-container {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-grow: 1;
}

.video-container.captions .captions-btn {
  border-bottom: 3px solid red;
}

.video-controls-container .controls button.wide-btn {
  width: 50px;
}

.timeline-container {
  height: 7px;
  margin-inline: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.timeline {
  background-color: rgba(100, 100, 100, 0.5);
  height: 3px;
  width: 100%;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  right: calc(100% - var(--preview-position) * 100%);
  background-color: rgb(150, 150, 150);
  display: none;
}

.timeline::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  right: calc(100% - var(--progress-position) * 100%);
  background-color: #007508;
}

.timeline .thumb-indicator {
  --scale: 0;
  position: absolute;
  transform: translateX(-50%) scale(var(--scale));
  height: 200%;
  top: -50%;
  left: calc(var(--progress-position) * 100%);
  background-color: #007508;
  border-radius: 50%;
  transition: transform 150ms ease-in-out;
  aspect-ratio: 1 / 1;
}

.timeline .preview-img {
  position: absolute;
  height: 80px;
  aspect-ratio: 16 / 9;
  top: -1rem;
  transform: translate(-50%, -100%);
  left: calc(var(--preview-position) * 100%);
  border-radius: 0.25rem;
  border: 2px solid white;
  display: none;
}

.thumbnail-img {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  display: none;
}

.video-container.scrubbing .thumbnail-img {
  display: block;
}

.video-container.scrubbing .preview-img,
.timeline-container:hover .preview-img {
  display: block;
}

.video-container.scrubbing .timeline::before,
.timeline-container:hover .timeline::before {
  display: block;
}

.video-container.scrubbing .thumb-indicator,
.timeline-container:hover .thumb-indicator {
  --scale: 1;
}

.video-container.scrubbing .timeline,
.timeline-container:hover .timeline {
  height: 100%;
}
/* VIDEO PLAYER STYLE END */

/* ////////////////////// comments ///////////// */
.thing-container {
  height: auto;
  position: relative;
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: start;
  margin-inline: auto;
  background-color: var(--main-bg-color);
  border-radius: 10px;
  overflow: hidden;
  flex-direction: column;
  border: 0px;
}
.thing-container .playing-video-title {
  width: 100%;
  height: 54px;
  height: 4ch;
  height: auto;
  background-color: var(--main-bg-color);
  font-size: 2rem;
  font-weight: 525;
  font-family: "Roboto", "Arial", "Poppins", sans-serif;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--font-color);
  padding: 0 15px;
  overflow: hidden;
}
/* playing-video-info */
.thing-container .playing-video-info {
  width: 100%;
  height: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  font-size: 1.2rem;
}
.playing-video-info .left-playing-video-info {
  width: 50%;
  height: 100%;
  display: flex;
  justify-content: start;
  align-items: center;
  padding: 0 15px;
  font-size: 1.2rem;
  column-gap: 10px;
}
.playing-video-info .left-playing-video-info .profile {
  border-radius: 50%;
  overflow: hidden;
  width: 45px;
  height: 45px;
}
.playing-video-info .left-playing-video-info .profile-pic {
  width: 100%;
  height: 100%;
}
.playing-video-info .left-playing-video-info .c-name-and-follow {
  width: auto;
  height: 45px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  row-gap: 5px;
  padding: 0 5px;
  color: var(--second-font-color);
}
.playing-video-info .left-playing-video-info .c-name-and-follow .channel-name {
  font-size: 1.5rem;
  font-weight: 500;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 15ch;
  color: var(--font-color);
}
.playing-video-info .left-playing-video-info .follow-btn {
  position: relative;
  width: 100px;
  height: 50px;
  padding: 0 25px;
  border-radius: 25px;
  overflow: hidden;
  cursor: pointer;
  border: 0;
}
.playing-video-info .left-playing-video-info .follow-btn::after {
  content: "Follow";
  width: 95%;
  border-radius: inherit;
  border: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 90%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.75rem;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  background-color: var(--second-bg-color);
  color: var(--font-color);
}
.playing-video-info .left-playing-video-info .follow-btn::before {
  content: "";
  background: linear-gradient(45deg, #00ff77, #00e5ff, #ff00e6, #ff006a);
  color: var(--font-color);
  width: 110%;
  border-radius: 50%;
  border: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transform-origin: 0 0;
  height: 245%;
  animation-name: follow-btn-animation;
  animation-duration: 5s;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}
/* animation for follow button */
@keyframes follow-btn-animation {
  0% {
    transform: rotate(0deg) translate(-50%, -50%);
  }
  25% {
    transform: rotate(720deg) translate(-50%, -50%);
  }
  50% {
    transform: rotate(360deg) translate(-50%, -50%);
  }
  100% {
    transform: rotate(0deg) translate(-50%, -50%);
  }
}
/* right-playing-video-info */
.playing-video-info .right-playing-video-info {
  width: 50%;
  height: 100%;
  display: flex;
  justify-content: start;
  align-items: center;
  padding: 0 15px;
  font-size: 1.2rem;
  column-gap: 10px;
  overflow: hidden;
}
.playing-video-info .right-playing-video-info .like-dislike {
  height: 100%;
  width: auto;
  display: flex;
  justify-content: start;
  align-items: center;
  font-size: 1.35rem;
  font-weight: 500;
}
.right-playing-video-info .like-dislike .like {
  color: var(--font-color);
  background-color: var(--second-bg-color);
  padding: 8px 20px;
  border-right: 1px solid var(--border-color);
  border-radius: 20px 0px 0px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.right-playing-video-info .like-dislike .like i {
  font-size: 2rem;
  font-weight: normal;
}
.right-playing-video-info .like-dislike .dislike {
  color: var(--font-color);
  background-color: var(--second-bg-color);
  padding: 8px 20px;
  border: 0;
  border-radius: 0px 20px 20px 0px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.right-playing-video-info .like-dislike .dislike i {
  font-size: 2rem;
  font-weight: normal;
}
/* video share button */
.right-playing-video-info .video-share-btn {
  height: 100%;
  width: auto;
  display: flex;
  justify-content: start;
  align-items: center;
  font-size: 1.35rem;
}
.right-playing-video-info .video-share-btn .share {
  color: var(--font-color);
  background-color: var(--second-bg-color);
  padding: 8px 20px;
  border-radius: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 600;
}
.right-playing-video-info .video-share-btn .share i {
  font-size: 2rem;
  font-weight: normal;
}
/* video download button */
.right-playing-video-info .video-download-btn {
  height: 100%;
  width: auto;
  display: flex;
  justify-content: start;
  align-items: center;
  font-size: 1.35rem;
}
.right-playing-video-info .video-download-btn .download {
  color: var(--font-color);
  background-color: var(--second-bg-color);
  padding: 8px 20px;
  border-radius: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 600;
}
.right-playing-video-info .video-download-btn .download i {
  font-size: 2rem;
  font-weight: normal;
}
/* //////////////////////// video-description /////////////////////// */
.thing-container .playing-video-description {
  height: clamp(2.5rem 5rem auto);
  width: 100%;
  background-color: var(--comment-sec-bg-color);
  font-size: 1.3rem;
  padding: 15px 10px;
  border-radius: 15px;
  margin-top: 15px;
}
.playing-video-description .des-viwes-and-date {
  font-weight: 600;
}
/* //////////////////////// suggested-videos /////////////////////// */

.suggested-videos {
  grid-area: 1/2/2/3;
  overflow-y: scroll;
  padding: 0 25px;
}
