/* poppin font */
@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
/* Inter font */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Inter, sans-serif;
  color: #fff;
  text-decoration: none;
}
*:focus {
  /* outline: none; */
}

body {
  position: relative;
  background: #212121;
}

.loader {
  position: absolute;
  top: 250px;
  left: 55%;
  height: 4px;
  width: 130px;
  --c:no-repeat linear-gradient(#605d65 0 0);
  background: var(--c),var(--c),#e9e7ec;
  background-size: 60% 100%;
  animation: l16 3s infinite;
}
@keyframes l16 {
  0%   {background-position:-150% 0,-150% 0}
  66%  {background-position: 250% 0,-150% 0}
  100% {background-position: 250% 0, 250% 0}
}

.navbar {
  position: fixed;
  top: 0px;
  left: 0px;
  width: 100%;
  z-index: 999;
  background: rgb(33, 33, 33);
  display: flex;
  align-items: center;
  padding: 0px 2.5vw;
  justify-content: space-between;
  border: 1px solid grey;
  box-shadow: 1px 0px 1px grey;
}

.logoNbtn {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toggle-btn {
  width: 20px;
  height: 10px;
  position: relative;
  cursor: pointer;
}

.toggle-btn span {
  position: absolute;
  width: 100%;
  height: 2px;
  top: 50%;
  transform: translateY(-50%);
  background: white;
}
.toggle-btn span:nth-child(1) {
  top: 0;
}
.toggle-btn span:nth-child(3) {
  top: 100%;
}

.logo {
  width: 9vw;
}
.nav-search {
  display: flex;
  position: relative;
  height: 35px;
  max-width: 500px;
  min-width: 260px;
  height: 35px;
  max-width: fit-content;
  border-radius: 10% !important;
}
.nav-input {
  width: 500px;
  height: 100%;
  border: 2px solid #484040;
  background-color: rgb(24, 22, 22);
  padding: 0 20px;
  font-size: 1rem;
  outline: none;
  border-top-left-radius: 80px;
  border-bottom-left-radius: 80px;
  teaxt-transform: capitalize;
}

.nav_search_btn {
  width: 25%;
  border-top-right-radius: 80px;
  border-bottom-right-radius: 80px;
  height: 100%;
  color: #000;
  background: #303030;
  padding: 5px 0;
  border-left: none;
  cursor: pointer;
}
.nav_search_btn img {
  height: 100%;
}

.voice-search {
  /* height: 32px; */
  padding: 0 10px;
}

.end {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-img {
  width: 33px;
  height: 33px;
  border-radius: 50%;
}

.side-bar {
  position: fixed;
  top: 59px;
  left: 0;
  min-width: 250px;
  width: 250px;
  height: calc(100vh - 60px);
  background: #1a1919;
  padding-right: 10px;
  overflow-y: scroll;
}

.side-bar::-webkit-scrollbar {
  background-color: transparent;
  width: 10px;
}

.side-bar::-webkit-scrollbar-thumb {
  background: linear-gradient(
    0deg,
    rgb(64, 63, 65) 0%,
    rgb(195, 184, 195) 100%
  );
  border-radius: 100px;
}

.links {
  display: block;
  width: 100%;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  text-transform: capitalize;
  color: white;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.links img {
  height: 25px;
  margin-right: 20px;
}

.links:hover,
.links.active {
  background: rgba(86, 82, 82, 0.6);
}

.seperator {
  border: none;
  border-bottom: 1px solid rgb(86, 80, 80);
  margin: 10px 0;
}

/* filter */

.filters {
  position: fixed;
  left: 250px;
  top: 56px;
  width: calc(100% - 250px);
  height: 60px;
  background: #272323;
  border-top: 1px solid #988484;
  border-bottom: 1px solid #988484;
  padding: 0 20px;
  display: flex;
  align-items: center;
  overflow-x: auto;
  overflow-y: hidden;
  z-index: 10;
}

.filters::-webkit-scrollbar {
  display: none;
}

.filter-options {
  flex: 0 0 auto;
  padding: 6px 26px;
  border-radius: 50px;
  background: #1a1818;
  border: 1px solid #dbdbdb;
  text-transform: capitalize;
  margin-right: 10px;
  color: white;
  font-weight: 200;
  font-size: 14px;
  cursor: pointer;
}

.filter-options.active {
  color: #fff;
  background: #3e3c3c;
}

/* video */

.video-container {
  width: calc(100% - 250px);
  margin-top: 120px;
  margin-left: 250px;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(3, 31%);
  grid-gap: 20px 29px;
  overflow-x: hidden;
  justify-content: center;
}
@media (max-width: 1200px) {
  .video-container {
    grid-template-columns: repeat(2, 45%);
  }
}
@media (max-width: 800px) {
  .video-container {
    /* grid-template-columns: repeat(1, 95%); */
    width: 100%;
    margin-left: 0;
  }
  .loader{
    left:36%
  }

  .side-bar {
    display: none;
  }
  .filters {
    left: auto;
    width: 100%;
  }
}
@media (max-width: 600px) {
  .video-container {
    grid-template-columns: repeat(1, 95%);
    width: 100%;
    margin-left: 0;
  }
  .displaynav {
    display: none;
  }
  .nav-search {
    width: 100%;
  }
  .nav-input {
    width: 145px;
  }
}

.video {
  /* min-height: 250px;
  height: auto; */
}

.thumbnail {
  width: 100%;
  height: 199px;
  object-fit: cover;
  border-radius: 12px;
}

.content {
  width: 100%;
  height: 100px;
  padding: 10px;
  display: flex;
  justify-content: space-between;
}

.channel-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 10px;
}

.title {
  width: 100%;
  height: 40px;
  overflow: hidden;
}

.channel-name {
  font-size: 14px;
  margin: 2px 0;
  color: #979797;
}

::-webkit-scrollbar {
  background-color: transparent;
  width: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(
    0deg,
    rgb(90, 87, 93) 0%,
    rgb(195, 184, 195) 100%
  );
  border-radius: 100px;
}

.green {
  background-color: green;
}
/* .active:hover{
  color: #fff;
  background: #be1d1d;
} */

.hover-button:hover,
.hover-button:visited,
.hover-button:link {
  /* background-color: blue; */
  color: white;
  border: none;
  cursor: pointer;
  margin: 5px;
  transition: all 0.2s ease-in-out;
  background-color: grey;
  background-color: green;
}
.hover-button:active {
  transition: all 0.1s ease-in-out;
  transform: scale(1.02);
  padding: 10px 20px;
  font-size: 16px;
}

/* .loader {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 250px;
  left: 55%;
  width: 67px;
  padding: 8px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #25b09b;
  --_m: conic-gradient(#0000 10%, #000), linear-gradient(#000 0 0) content-box;
  -webkit-mask: var(--_m);
  mask: var(--_m);
  -webkit-mask-composite: source-out;
  mask-composite: subtract;
  animation: l3 1s infinite linear;
}
@keyframes l3 {
  to {
    transform: rotate(1turn);
  }
} */

/* .loader {
  width: 120px;
  height: 20px;
  position: absolute;
  top: 250px;
  left: 55%;
  background: linear-gradient(#000 0 0) 0/0% no-repeat #ddd;
  animation: l1 1s infinite linear;
}
@keyframes l1 {
  100% {
    background-size: 100%;
  }
} */



/* .loader {
  position: absolute;
  top: 250px;
  left: 55%;
  width: 120px;
  height: 20px;
  background: 
    linear-gradient(90deg,#0001 33%,#0005 50%,#0001 66%)
    #f2f2f2;
  background-size:300% 100%;
  animation: l1 1s infinite linear;
}
@keyframes l1 {
  0% {background-position: right}
} */

:hover .hover-button.green {
  background-color: green;
}

.thumbnail:hover {
  transition: all 0.2s ease-in-out;
  transform: scale(1.05);
}

.dark-white-btn {
  background-color: #fbf5ff;
  z-index: 100000;
  position: fixed;
  bottom: 2%;
  left: 2%;
  padding: 17px;
  color: black;
  font-size: larger;
  font-weight: bolder;
  border-radius: 14px;
}
