@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  background-color: #0F0F0F;
  color: #fff;
}

.header {
  position: fixed;
  top: 1.5%;
  left: 50%;
  transform: translateX(-50%);
  width: 93%;
  max-width: 1843px;
  height: 92px;
  border-radius: 105px;
  border: 1px solid #313131;
  background-color: rgba(9, 9, 9, 0.5);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  padding: 0 50px;
  box-sizing: border-box;
  z-index: 1000;
  transition: height 0.3s ease;
}

.header.expanded {
  height: 220px;
  border-radius: 50px;
}

.logo img {
  height: 40px;
}

.nav {
  position: absolute;
  top: 92px;
  left: 50px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

.header.expanded .nav {
  opacity: 1;
  pointer-events: auto;
}

.nav a {
  color: #C8C8C8;
  text-decoration: none;
  font-weight: 600;
  font-size: 24px;
}

.hamburger {
  display: none;
  cursor: pointer;
  z-index: 1100;
  margin-top: 29px;
}

.search-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: 20px;
  display: flex;
  transition: transform 0.2s ease;
}

.search-button svg {
  width: 24px;
  height: 24px;
  stroke: #C8C8C8;
}

@media (min-width: 768px) {
  .nav {
    position: static;
    flex-direction: row;
    gap: 30px;
    opacity: 1 !important;
    pointer-events: auto !important;
    align-items: center;
    height: 92px;
    margin-top: -5px;
  }

  .header {
    align-items: center;
    padding-left: 50px;
    padding-right: 50px;
    justify-content: flex-start;
    gap: 30px;
  }

  .hamburger {
    display: none;
  }

  .logo {
    margin-top: 0px;
  }

  .search-button {
    margin-left: auto;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .search-button {
    margin-top: 32px;
    margin-left: auto;
    margin-right: 7px;
  }
  .logo {
    margin-top: 23px;
  }
}

.channels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding: 160px 40px 40px;
  box-sizing: border-box;
}

.channel {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.channel:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.4);
}

.channel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 1200px) {
  .channels {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .channels {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .channels {
    grid-template-columns: 1fr;
  }
}
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 15, 15, 0.7);
  backdrop-filter: blur(20px);
  display: none;
  justify-content: center;
  align-items: flex-start;
  padding-top: 10vh;
  z-index: 2000;
}

.search-container {
  width: 30%;
  min-width: 350px;
  max-height: 80vh;
  border-radius: 16px;
  padding: 25px 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #313131;
  background-color: rgba(9, 9, 9, 0.89);
}

.search-container input {
  width: 100%;
  padding: 15px 18px;
  font-size: 20px;
  border: none;
  outline: none;
  background: #1a1a1ad2;
  color: #fff;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  box-sizing: border-box;
  border: 0.5px solid #313131;
}

.suggestions {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
  flex-grow: 1;
}

.suggestions::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.suggestion {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex-shrink: 0;
}

.suggestion:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.192);
}

.suggestion img {
  width: 100%;
  height: auto;
  display: block;
}

* {
  overflow-y: scroll;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-tap-highlight-color: transparent;
}

*::-webkit-scrollbar {
  display: none;
}