@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;900&display=swap");

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  font-family: "Roboto", sans-serif;
}

body {
  background-color: #0f0f0f;
}

h1 {
  font-size: 1.5rem;
}

h4 {
  font-size: 9rem;
  text-transform: uppercase;
  color: #aaa;
  margin-left: 20px;
}

i {
  font-size: 1.3rem;
  color: #fff;
  font-weight: 100;
}

p,
a {
  font-size: 0.9rem;
}

hr {
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin: 12px 0;
}

/* hedder starts from here */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 57px;
  background: #0f0f0f;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 25px;
  padding-right: 40px;
}

.ri-menu-line {
  font-size: 1.5rem;
}

.logo-img {
  position: relative;
  height: 90px;
  width: 125px;
}

.yt-logo {
  position: absolute;
  top: 0;
  left: 10px;
  width: 100%;
  height: 100%;
  /* object-fit: cover; */
}

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

.search-container {
  display: flex;
  align-items: center;
  flex: 0 0 750px;
  margin-left: 90px;
  transition: 0.5s ease;
}

.search-container:hover {
  flex: 1 0 685px;
}

.search-container form {
  position: relative;
  width: 100%;
  border: 1px solid rgb(59 59 59);
  border-radius: 40px 0 0 40px;
}

.search-container input {
  height: 40px;
  display: flex;
  align-items: center;
  width: 100%;
  background-color: hsl(0, 0%, 7%);
  padding: 12px;
  color: #fff;
  font-size: 1rem;
  border: #404040;
  border-radius: 40px 0 0 40px;
  min-width: 500px;
  border: 1px solid transparent;
}

.search-container input:focus {
  border-color: rgb(13, 102, 255);
  outline: none;
}


.search {
  min-width: 65px;
  height: 41px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  background-color: #252525;
  outline: none;
  border-radius: 25px;
  border-bottom-left-radius: 0%;
  border-top-left-radius: 0%;
  border: 1px solid rgb(59 59 59);
}

button {
  box-shadow: 0px;
  border-color: #0f0f0f;
  border: #0f0f0f;
  border: 1px solid rgb(74, 74, 74);
}

.mic {
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  outline: none;
  border: none;
  margin-left: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #2c2c2c;
  margin-right: -16;
}

.mic:hover {
  background-color: #5b5959;
}

.ri-video-add-line {
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  outline: none;
  border: none;
  margin-left: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f0f0f;
}

.ri-video-add-line:hover {
  background-color: #2e2d2d;
}

.ri-notification-2-line {
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  outline: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f0f0f;
  margin-left: 15px;
  margin-right: 20px;
  font-size: 20px;
}

.ri-notification-2-line:hover {
  background-color: #2e2d2d;
}

#notification {
  width: 22px;
  height: 15px;
  background-color: red;
  position: absolute;
  right: 95px;
  border-radius: 16px;
  font-size: x-small;
  display: flex;
  justify-content: center;
  align-items: center;
  top: 12px;
  font-weight: 600;
  color: white;
}

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

.profile-container i {
  margin-left: 20px;
  margin-top: 10px;
}

.profile-pic {
  height: 35px;
  width: 35px;
  border-radius: 50%;
  align-items: center;
  margin-top: 10px;
}

.body-container {
  display: flex;
  position: fixed;
  height: calc(100vh - 60px);
  top: 60px;
}

nav {
  background-color: #0f0f0f;
  padding-top: 10px;
  width: 200px;
  overflow-y: scroll;
}

nav a {
  text-decoration: none;
  color: #ffffff;
}

.nav-items {
  display: flex;
  flex-direction: column;
  margin-right: 10px;

  /* margin-left: 10PX; */
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 20px 0px;
  cursor: pointer;
  height: 40px;
}

.nav-item:hover {
  background-color: rgb(39 39 39);
  border-radius: 8px;
}

#home:hover {
  background-color: #aaa;
}

.nav-item i {
  margin-right: 10px;
  padding-left: 10px;
  font-size: 25px;
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 100, "GRAD" 100, "opsz" 24;
}

.material-symbols-outlined:hover {
  font-variation-settings: "FILL" 10, "wght" 100, "GRAD" 100, "opsz" 24;
}

.more-yt {
  height: 25px;
  width: 25px;
}

h5 {
  font-size: 14px;
  /* font-style: normal; */
  font-weight: 400;
}

/* ------------Scroll Bar design ------------- */

/* width */

::-webkit-scrollbar {
  width: 6px;
  height: 0px;
}

/* Track */
::-webkit-scrollbar-track {
  background-color: #0f0f0f;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #7c7c7c;
  border-radius: 10px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.chip-container {
  width: calc(100vw - 240px);
}

.chips-wrapper {
  overflow-x: scroll;
  background-color: #0f0f0f;
  display: flex;
  padding-left: 14px;
  padding-bottom: 10px;
  padding-top: 8px;
}

.chip {
  margin: 0px 6px;
  background-color: #252525;
  padding: 6px 12px;
  border-radius: 8px;
  white-space: nowrap;
  cursor: pointer;
  color: white;
  transition: 0.5s;
}

.chip:hover {
  background-color: rgb(69, 69, 69);
}



/* Video container starts from here */

.video-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 16px;
  padding: 25px;
  background-color: #0f0f0f;
  overflow-y: scroll;
  height: calc(100vh - 116px);
  padding-left: 40px;
  margin-right: -25px
}

.video-content-cover {
  position: relative;
  transition: .5s;
  transition-delay: .05s;

}

.video-content {
  margin-bottom: 25px;
  position: relative;
  transition: .5s;
  width: 100%;

}

.video-box {
  position: relative;
  width: 280px;
  height: 160px;
  display: block;


}

.video-box img:hover {
  border-radius: 0;
}

.video-box img {
  width: 280px;
  height: 160px;
  border-radius: 12px;
}

.channel-logo {
  position: relative;
  width: 35px;
  height: 35px;
  overflow: hidden;
  float: left;

}

.channel-logo img {
  border-radius: 50%;
  width: 35px;
  height: 35px;
}

.title {
  margin-left: 2px;
}

.video-details {
  display: flex;
  color: #fff;
  padding-top: 12px;

}

.detail {
  margin-left: 10px;
  font-size: small;
  font-weight: 500;
  width: 240px;

}

.channel-name {
  font-size: .8rem;
  margin-top: 10px;
  color: #aaa;
}

.channel-name:hover {
  color: white;
}

.views-upload {
  display: flex;
  font-size: .8rem;
  color: #aaa;
}

.upload {
  margin-left: 3px;
  color: #aaa;

}

.body-container {
  padding-left: 14px;
}

/* ============== shorts section ============= */


.shorts-section {
  grid-column: span 3;
  height: 450px;
  margin-bottom: 100px;
}

.shorts-logo {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  color: white;
  gap: 10px;

}

.shorts-logo img {
  width: 20px;
}

.shorts-chip-section {
  height: 100%;
  gap: 20px;
  overflow-x: scroll;
  display: flex;
  flex-direction: row;
}

.shorts-chip {
  height: 100%;
  min-width: 200px;
  width: 300px;
  overflow-x: scroll;
  overflow-y: hidden;
  border-radius: 12px;
  color: white;


}

.shorts-video {
  height: 350px;
}

.shorts-chip img {
  width: 100%;
  height: 100%;
  border-radius: 12px;
}

.shorts-discription {
  margin-top: 10px;
}

.shorts-discription span {
  font-size: small;
  color: #7c7c7c;
}

.showMore-section {
  display: flex;
  justify-content: center;
}

.showMore-btn {
  width: 350px;
  height: 35px;
  color: white;
  border-radius: 24px;
  text-align: center;
  position: absolute absolute;
  margin-bottom: -30px;
  border: 1px solid #4d4d4d;
  background-color: #0f0f0f;
  display: flex;
  justify-content: center;
  align-items: center;
}

.showMore-btn:hover {
  background-color: #2c2c2c;
}

/* ========== Loading Section ========== */

#loading-section {
  grid-column: span 3;
  display: flex;
  justify-content: center;
}

.loader {
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-left: 3px solid #aaa;
  border-bottom: 3px solid #aaa;
  border-top: 3px solid #aaa;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  50% {
    transform: rotate(250deg);
  }

  /* Pause at 45 degrees */
  100% {
    transform: rotate(360deg);
  }

  /* Continue rotation to 360 degrees */
}