@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700;900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Roboto", sans-serif;
  scroll-behavior: smooth;
}

body {
  background-color: #000;
}

i {
  font-size: 24px;
  color: #fff;
  cursor: pointer;
  transition: 0.2s;
}

i:hover {
  opacity: 0.8;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 56px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

.col-1 {
  display: flex;
  align-items: center;
  gap: 18px;
}

.col-1 i {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: 0.2s;
}

.col-1 i:hover {
  background-color: #272727;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  width: 95px;
  display: flex;
  align-items: center;
  transition: 0.2s;
  cursor: pointer;
}

.logo-img:hover {
  opacity: 0.9;
}

.logo-img img {
  width: 100%;
  height: auto;
  display: block;
}

.col-2 {
  display: flex;
  align-items: center;
  flex-basis: 40%;
  margin-left: 40px;
}

.col-2 form {
  display: flex;
  width: 100%;
  max-width: 640px;
}

.col-2 input {
  flex: 1;
  height: 40px;
  background: #121212;
  border: 1px solid #303030;
  border-right: none;
  border-radius: 20px 0 0 20px;
  padding: 0 16px;
  color: white;
  font-size: 16px;
  outline: none;
  transition: 0.2s;
}

.col-2 input::placeholder {
  color: #aaaaaa;
}

.col-2 input:hover {
  border-color: #555;
}

.col-2 input:focus {
  border-color: #1c62b9;
}

.col-2 .search {
  width: 64px;
  height: 40px;
  background: #222222;
  border: 1px solid #303030;
  border-radius: 0 20px 20px 0;
  cursor: pointer;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}

.col-2 .search:hover {
  background: #2f2f2f;
}

.col-2 .mic {
  width: 40px;
  height: 40px;
  margin-left: 12px;
  border-radius: 50%;
  background: #181818;
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}

.col-2 .mic:hover {
  background: #2f2f2f;
}

.col-3 {
  display: flex;
  align-items: center;
}

.col-3 i {
  margin-left: 12px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: 0.2s;
}

.col-3 i:hover {
  background-color: #272727;
}

.wrapper {
  display: flex;
  position: fixed;
  top: 56px;
  left: 0;
  width: 240px;
  height: calc(100vh - 56px);
  background-color: #121212;
}

.sidebar {
  width: 240px;
  background-color: #000;
  color: #fff;
  overflow-y: auto;
  padding: 12px 0;
}

.list1 {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 24px;
  cursor: pointer;
  border-radius: 10px;
  margin: 0 10px;
  transition: background-color 0.2s ease;
}

.sidebar-item:hover {
  background-color: #272727;
}

.sidebar-item i {
  font-size: 22px;
}

.sidebar-item span {
  font-size: 14px;
  font-weight: 500;
}

.content {
  width: calc(100vw - 240px);
  margin-left: 240px;
  margin-top: 56px;
  overflow-x: hidden;
}

.tagline {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  overflow-x: auto;
  white-space: nowrap;
  background-color: #0f0f0f;
  flex-wrap: nowrap;
}

.tagline::-webkit-scrollbar {
  height: 6px;
}

.tagline::-webkit-scrollbar-track {
  background: #0f0f0f;
}

.tagline::-webkit-scrollbar-thumb {
  background: #555;
  border-radius: 10px;
}

.tagline::-webkit-scrollbar-thumb:hover {
  background: #777;
}

.tag {
  background-color: #272727;
  color: white;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.2s ease;
}

.tag:hover {
  background-color: #3a3a3a;
}

.tag:first-child {
  background-color: white;
  color: black;
}

.video-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 24px;
}

.video {
  padding: 10px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.video:hover {
  background-color: #272727;
}

.video-content {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.thumbnail {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
}

.duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  padding: 3px 6px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  color: white;
  font-size: 12px;
  font-weight: 500;
}

.video-details {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.channel-logo img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.video-info {
  flex: 1;
}

.title {
  color: #f1f1f1;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.channel-name {
  color: #aaa;
  font-size: 14px;
  margin-bottom: 2px;
}

.video-stats {
  color: #aaa;
  font-size: 14px;
}
