* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background-color: rgba(255, 255, 255, 1);
  color: rgba(34, 34, 34, 1);
  line-height: 1.6;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(15px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
  transition:
    background-color 0.3s ease,
    backdrop-filter 0.3s ease;
}

.logo h1 {
  font-size: 2rem;
  font-weight: 600;
  background: linear-gradient(
    135deg,
    rgba(0, 123, 255, 1),
    rgba(0, 204, 204, 1)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  transition: text-shadow 0.3s ease;
}

.logo h1:hover {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.search-bar {
  display: flex;
  align-items: center;
  background: transparent;
  padding: 0.6rem 1.5rem;
  border-radius: 2rem;
  border: 1px solid rgba(200, 200, 200, 0.5);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(8px);
}

.search-bar input {
  padding: 0.6rem 1rem;
  font-size: 1.1rem;
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  max-width: 350px;
  color: rgba(50, 50, 50, 1);
}

.search-bar button {
  padding: 0.6rem;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: rgba(50, 50, 50, 0.8);
  transition: color 0.3s ease;
}

.search-bar button:hover {
  color: rgba(50, 50, 50, 1);
}

.user-menu img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.container {
  display: flex;
  flex-wrap: wrap;
}

.sidebar {
  width: 220px;
  background-color: rgba(255, 255, 255, 1);
  padding: 2rem 1.5rem;
  border-right: 1px solid rgba(230, 230, 230, 1);
  position: sticky;
  top: 80px;
  height: 100vh;
}

.sidebar ul {
  list-style-type: none;
  padding-left: 0;
}

.sidebar ul li {
  padding: 1rem 1.5rem;
  font-size: 1.2rem;
  color: rgba(50, 50, 50, 1);
  cursor: pointer;
  border-radius: 8px;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

.sidebar ul li:hover {
  background-color: rgba(240, 240, 240, 1);
  color: rgba(30, 30, 30, 1);
}

main {
  flex: 1;
  padding: 2rem;
  background-color: rgba(255, 255, 255, 1);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.video {
  background-color: rgba(255, 255, 255, 1);
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.video img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.video-info {
  display: flex;
  margin-top: 1rem;
}

.channel-avatar {
  width: 69px;
  height: 69px;
}

.channel-avatar img {
  border-radius: 50%;
}

.video-meta {
  display: flex;
  flex-direction: column;
  margin-left: 1rem;
}

.video-title {
  font-weight: 500;
  color: rgba(34, 34, 34, 1);
  margin-bottom: 0.5rem;
}

.channel-name {
  font-size: 0.9rem;
  color: rgba(100, 100, 100, 1);
}

.views-count {
  font-size: 0.8rem;
  color: rgba(150, 150, 150, 1);
}

.video:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

footer {
  text-align: center;
  padding: 3rem 0;
  background-color: rgba(245, 245, 245, 1);
  border-top: 1px solid rgba(230, 230, 230, 1);
}

footer p {
  font-size: 0.8rem;
  color: rgba(100, 100, 100, 1);
  margin-bottom: 1rem;
}

footer a {
  color: rgba(50, 50, 50, 1);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

footer a:hover {
  color: rgba(30, 30, 30, 1);
}

@media (max-width: 1024px) {
  .sidebar {
    width: 180px;
  }

  .search-bar input {
    max-width: 250px;
  }

  .video-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}

@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }

  .search-bar {
    display: none;
  }

  .sidebar {
    display: none;
  }

  main {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .logo h1 {
    font-size: 1.6rem;
  }

  .search-bar {
    margin-top: 1rem;
    width: 100%;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }
}
