* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background: #f9f9f9;
}

/* HEADER */
.yt-header__left {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 13px;
}

.yt-header {
  position: sticky;
  top: 0;
}

.yt-header__container {
  display: flex;
  justify-content: space-between;
  padding: 10px 20px;
  background: #fff;
  gap: 20px;
}

.yt-menu-btn {
  width: 30px;
  height: 30px;
  padding: 20px;
  border-radius: 50%;
  background-color: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.yt-menu-btn:hover {
  background-color: #e5e5e5;
}

.yt-menu-btn i {
  font-size: 17px;
  font-weight: 600;
}

.logo {
  width: 90px;
}

.yt-header__center {
  display: flex;
  align-items: center;
  width: 35%;
  gap: 15px;
}
.yt-search {
  display: flex;
  position: relative;
  width: 100%;
}
.yt-search__input {
  flex-grow: 1;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid #9f9f9f;
  font-size: 16px;
}

.yt-search__btn {
  position: absolute;
  right: 0;
  padding: 8px 15px;
  border-radius: 0 999px 999px 0;
  border: 1px solid #9f9f9f;
  cursor: pointer;
  background-color: transparent;
}

.yt-search__btn i {
  font-size: 17px;
}

.yt-mic__btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
}
.yt-mic__btn i {
  font-size: 18px;
}

/* Right Side Header */
.yt-header__right {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.yt-upload button {
  padding: 8px 15px;
  border-radius: 999px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  color: #292929;
}

.yt-upload button i {
  font-size: 18px;
}
.yt-notification button {
  width: 30px;
  height: 30px;
  padding: 20px;
  border-radius: 50%;
  background-color: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}
.yt-notification button:hover {
  background-color: #f0f0f0;
}
.yt-notification button i {
  font-size: 20px;
}

.yt-user-avatar img {
  width: 35px;
  height: 35px;
  border-radius: 50%;
}

.yt-layout {
  display: flex;
  width: 100%;
}
.yt-sidebar {
  width: 13%;
  background: #fff;
  padding: 12px;
  height: 100vh;
  overflow-y: hidden;
  overflow-x: hidden;
}

.yt-sidebar::-webkit-scrollbar {
  width: 5px;
}

.yt-sidebar::-webkit-scrollbar-track {
  background: #e6e6e6;
  border-radius: 999px;
}

.yt-sidebar::-webkit-scrollbar-thumb {
  background: rgb(53, 53, 53);
  border-radius: 999px;
}

.yt-sidebar:hover {
  overflow-y: scroll;
}

.yt-sidebar-item a {
  display: block;
  padding: 10px 15px;
  border-radius: 10px;
  margin-bottom: 5px;
  text-decoration: none;
  color: #000;
  font-size: 15px;
}

.yt-sidebar-item a:hover {
  background: #f2f2f2;
}

.yt-active__class:first-child {
  background: #f2f2f2;
  font-weight: 600;
}

.yt-sidebar-item__link {
  display: flex !important;
  align-items: center !important;
  padding: 5px 15px !important;
}

.yt-sidebar-item__icon {
  font-size: 20px;
  margin-right: 20px;
}

.yt-sidebar-item__title {
  /* padding: 12px; */
  padding: 15px 0;
  border-top: 1px solid #e3e3e3;
}

.yt-sidebar-item__title-link {
  font-size: 16px !important;
  font-weight: 600;
  color: #363636 !important;
}

.yt-sidebar-item__title-link i {
  margin-left: 15px;
  font-size: 10px;
}

.yt-sidebar-item__icon img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  margin-top: 5px;
}

/* main */

.yt-main {
  padding: 0 20px;
}

.yt-filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: hidden;
  overflow-y: hidden;
  scrollbar-width: thin;
}

.yt-filter-bar:hover {
  overflow-x: scroll;
}

.yt-filter-btn {
  flex-shrink: 0;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 8px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  color: #363636;
}

.yt-filter-btn-active {
  color: #fff;
  background-color: #0f0f0f;
}

/* video cards */
.yt-main {
  width: 87%;
}
.yt-video__container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 16px;
  padding: 20px 0;
}
.yt-video-card {
  width: 100%;
  padding: 10px;
  border-radius: 15px;
}

.yt-video-card:hover {
  background: #e7ebf8;
  cursor: pointer;
}
.yt-video-card__thumbnail {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.yt-video-card__thumbnail-img img {
  width: 100%;
  border-radius: 15px;
}

.yt-video-card__detail {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}

.yt-video-card__channel-logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.yt-video-card__video-detail h2 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

.yt-video-card__video-detail p {
  font-size: 14px;
  padding-top: 6px;
  color: #363636;
}

.yt-video-card__more button {
  width: 30px;
  height: 30px;
  padding: 20px;
  border-radius: 50%;
  background-color: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.yt-video-card__more button:hover {
  background-color: #dbdbdb;
}

/* VIDEOS */
.videos {
  flex: 1;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* VIDEO CARD */
.video-card {
  background: transparent;
}

.thumbnail {
  width: 100%;
  border-radius: 12px;
}

.video-info {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.text h4 {
  font-size: 14px;
  margin-bottom: 4px;
}

.text p {
  font-size: 12px;
  color: #606060;
}

.yt-filter-bar {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media screen and (max-width: 1500px) {
  .yt-layout {
    display: flex;
    width: 100%;
  }
  .yt-sidebar {
    width: 20%;
    background: #fff;
    padding: 12px;
    height: 100vh;
    overflow-y: hidden;
    overflow-x: hidden;
  }
  .yt-main {
    width: 80%;
  }
}

@media screen and (max-width: 992px) {
  .yt-video__container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
    padding: 20px 0;
  }

  .yt-sidebar {
    display: none;
  }

  .yt-main {
    width: 100%;
    padding: 0 12px;
  }
}

@media screen and (max-width: 768px) {
  .yt-header__center {
    width: 100%;
  }

  .yt-search__input {
    font-size: 14px;
    padding: 6px 12px;
  }
  .yt-search__btn {
    padding: 5px 15px;
  }
  .yt-upload,
  .yt-notification {
    display: none;
  }
}

@media (max-width: 576px) {
  .yt-video-card__video-detail h2 {
    font-size: 14px;
    line-height: 1.4;
  }

  .yt-video-card__video-detail p {
    font-size: 12px;
  }

  .yt-search input {
    display: none;
  }
  .yt-search__btn{
    border-radius: 999px;
    position: absolute;
    top: -15px;
  }

  .yt-mic__btn{
    background: none;
  }
}
