body {
  font-family: "Roboto", sans-serif;
  margin: 0;
}

.light-mode {
  background-color: #ebe9e9;
  color: #000;
}

.dark-mode {
  background-color: #121212;
  color: #fff;
}

body a {
  text-decoration: none;
  color: inherit;
}

header {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  position: sticky;
  top: 0;
  z-index: 100;
}

#headerMain {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  flex-grow: 1;
}

#user-button {
  height: 35px;
  width: 35px;
  font-size: 24px;
  border-radius: 50%;
  border: none;
  background-color: transparent;
  color: #fff;
  cursor: pointer;
  padding: 0;
  padding-top: 2px;
  align-content: center;
  text-align: center;
}

#user-button:hover {
  background-color: #353535;
}

#user-button:active {
  background-color: #404040;
}


#yt-logo {
  height: 30px;

}

.logos-dark {
  color: #fff;
}

#headerMain p {
  font-size: 20px;
  margin: 0;
  font-weight: bold;
}

#options {
  background-color: transparent;
  height: 35px;
  width: 35px;
  border-radius: 20px;
  border: none;
  font-size: 20px;
  outline: none;
}

#options:hover {
  background-color: #353535;
}

#options:active {
  background-color: #404040;
}

#search-container {
  display: flex;
  border: 1px solid #303030;
  border-radius: 20px;
  overflow: hidden;
  margin-left: auto;
  margin-right: 16px;
  height: 35px;
  flex-grow: 1;
  max-width: 600px;
}

#searchBar {
  flex-grow: 1;
  padding: 8px 12px;
  border: none;
  outline: none;
  background-color: transparent;
  color: #fff;
  font-size: 16px;
  border-radius: 20px 0 0 20px;
  display: block;
  /* Ensure it's visible on tablet */
}

#search::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 100%;
  background-color: #303030;
  display: block;
  /* Ensure it's visible on tablet */
}

#search {
  background-color: #303030;
  color: #fff;
  border: none;
  padding: 8px 16px;
  font-size: 17px;
  cursor: pointer;
  border-radius: 0 20px 20px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}



#popup {
  display: none;
  position: absolute;
  top: 56px;
  right: 16px;
  width: 230px;
  background-color: #282828;
  color: white;
  border-radius: 8px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
  padding: 10px;
  z-index: 10;
  max-height: 400px;
  overflow-y: hidden;

}

.active-1 {
  background-color: #404040;
}

#popup:hover {
  overflow-y: scroll;
}


#userProfile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px;
}

.profileIcon {
  font-size: 50px;
  color: white;
}

#yourName {
  font-size: 16px;
  font-weight: bold;
  margin: 5px 0;
}

#email {
  font-size: 14px;
  color: #ccc;
  margin-bottom: 10px;
}

.popup ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.popup li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  cursor: pointer;
  font-size: 14px;
}

.popup li:hover {
  background-color: #3d3d3d;
}

hr {
  border: 0.5px solid #444;
  margin: 8px 0;
}


#search-container:hover {
  background-color: #202020;
}

#search:hover {
  background-color: #252525;
}

#search-container:active {
  background-color: #181818;
}

@media (max-width: 510px) {
  #search-container {

    border: none;
    background-color: transparent;
    border-radius: 25px;
    height: auto;
    width: 250px;
    margin-right: auto;
    margin-left: auto;
    max-width: none;
  }

  #searchBar {
    display: none;
  }

  #search {
    background-color: transparent;
    border-radius: 50%;
    padding: 8px;
    width: auto;
    height: auto;
  }

  #search::before {
    display: none;
  }

  #search i.fa-magnifying-glass {
    font-size: 20px;
    margin: 0;
    color: #fff;
  }

  #headerMain {
    gap: 8px;
    justify-content: space-between;
  }

  #yt-logo,
  #title {
    margin-right: auto;
  }

}

@media (min-width: 410px) and (max-width: 1023px) {
  #search-container {

    border: 1px solid #303030;
    background-color: transparent;
    border-radius: 20px;
    height: 30px;
    width: 250px;
    max-width: 400px;
    margin-left: auto;
    margin-right: 16px;
  }

  #searchBar {
    display: block;
  }

  #search {
    background-color: #303030;
    border-radius: 0 20px 20px 0;
    border: none;
  }

  #search::before {
    display: block;
  }
}

@media (min-width: 1024px) and (max-width: 1439px) {
  #search-container {
    position: relative;
    right: 100px;
    border: 1px solid #303030;
    background-color: #121212;
    border-radius: 20px;
    height: 35px;
    max-width: 600px;
    margin-left: auto;
    margin-right: 16px;
  }

  #searchBar {
    display: block;
  }

  #search {
    background-color: #303030;
    border-radius: 0 20px 20px 0;
    border: none;
  }

  #search::before {
    display: block;
  }

}

@media (min-width: 1440px) {
  #search-container {
    position: relative;
    right: 200px;
    border: 1px solid #303030;
    background-color: transparent;
    border-radius: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: 32px;
  }

  #searchBar {
    display: block;
    font-size: 18px;
  }

  #search {
    font-size: 19px;
    border: none;
  }

  #search::before {
    display: block;
  }
}

#voice {
  height: 30px;
  width: 30px;
  border: none;
  border-radius: 20px;
  background-color: #303030;
  color: #fff;
}

#voice:hover {
  background-color: #353535;
}

#voice:active {
  background-color: #404040;
}


#create {
  background-color: #303030;
  font-family: Roboto;
  padding: 5px;
  text-align: center;
  font-size: 1em;
  border-radius: 20px;
  border: none;
  color: #fff;
}

#create:hover {
  background-color: #353535;
}

#create:active {
  background-color: #404040;
}

#notification {
  background-color: transparent;
  height: 35px;
  width: 35px;
  border-radius: 20px;
  border: none;
  color: #fff;
  font-size: 20px;
  position: relative;
  top: 2.2px;
}

#notification:hover {
  background-color: #353535;
}

#notification:active {
  background-color: #404040;
}

#home {
  background-color: transparent;
  height: 55px;
  width: 45px;
  border: none;
  border-radius: 10px;
  color: #fff;
  text-align: center;
  position: absolute;
  left: 2px;

}

#home i {
  font-size: 20px;
  position: absolute;
  top: 10px;
  left: 10px;

}

#home p {
  font-size: 11.5px;
  position: absolute;
  top: 25px;
  left: 8.7px;
}

#home:hover {
  background-color: #262626;
}

#home:active {
  background-color: #303030;
}

#shorts {
  background-color: transparent;
  height: 55px;
  width: 45px;
  border: none;
  border-radius: 10px;
  color: #fff;
  text-align: center;
  position: absolute;
  top: 105px;
  left: 2px;

}

#shorts i {
  font-size: 20px;
  position: absolute;
  top: 10px;
  left: 10px;

}

#shorts p {
  font-size: 11.5px;
  position: absolute;
  top: 25px;
  left: 6.5px;
}

#shorts:hover {
  background-color: #262626;
}

#shorts:active {
  background-color: #303030;
}

#subs {
  background-color: transparent;
  height: 55px;
  width: 45px;
  border: none;
  border-radius: 10px;
  color: #fff;
  text-align: center;
  position: absolute;
  top: 155px;
  left: 2px;

}

#subs i {
  font-size: 22px;
  position: absolute;
  top: 10px;
  left: 12px;

}

#subs p {
  font-size: 6.5px;
  position: absolute;
  top: 30px;
  left: 2.5px;
}

#subs:hover {
  background-color: #262626;
}

#subs:active {
  background-color: #303030;
}

#you {
  background-color: transparent;
  height: 55px;
  width: 45px;
  border: none;
  border-radius: 10px;
  color: #fff;
  text-align: center;
  position: absolute;
  top: 205px;
  left: 2px;

}

#you i {
  font-size: 22px;
  position: absolute;
  top: 10px;
  left: 10.9px;

}

#you p {
  font-size: 12px;
  position: absolute;
  top: 25px;
  left: 11.5px;
}

#you:hover {
  background-color: #262626;
}

#you:active {
  background-color: #303030;
}






/* Popup */
#popup {
  display: none;
  position: absolute;
  top: 56px;
  right: 16px;
  width: 230px;
  background-color: #282828;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  padding: 10px;
  z-index: 101;
}

#popupContent ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#popupContent li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  cursor: pointer;
}

#popupContent li:hover {
  background-color: #3d3d3d;
}

#userProfile {
  text-align: center;
  margin-bottom: 8px;
}

.profileIcon {
  font-size: 50px;
}

#yourName {
  font-weight: bold;
}

/* Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: none;
  z-index: 100;
}

/* Sidebar */
#optionsTab {
  position: fixed;
  top: px;
  left: 0;
  width: 150px;
  height: 100vh;
  padding: 16px;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform .3s ease;
  z-index: 102;
  overflow-y: hidden;

}

#optionsTab.active {
  transform: translateX(0);
}


#optionsTab a {
  height: 30px;
  width: 150px;
  display: flex;
  align-items: center;
}

#optionsTab {
  display: none;
  width: 180px;
  /* Increased width */
  font-size: 1em;

  border-radius: 10px;

  padding: 8px 0;
}

#optionsTab ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
}

#optionsTab li {
  display: flex;
  align-items: center;
  padding: 2px 15px;
  /* Makes the area feel larger */
  height: auto;
  cursor: pointer;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

#optionsTab li:hover {
  background-color: #353535;
}

#optionsTab li:active {
  background-color: #404040;
}

#optionsTab h3 {
  margin: 10px 0;
  font-size: 14px;
  color: #aaa;
}

#optionsTab i {
  position: relative;
  right: 5px;
}

.you {
  position: relative;
  left: 10px;
}

#optionsTab h3 {
  padding-left: 10px;
}



#optionsTab:hover {
  overflow-y: auto;
}


/* Existing #popup styles remain the same */
#popup {
  display: none;
  position: absolute;
  top: 56px;
  right: 16px;
  width: 230px;
  /* This width will now apply to both sub-sections */
  background-color: #282828;
  color: white;
  border-radius: 8px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
  padding: 10px;
  z-index: 101;
  max-height: 400px;
  overflow-y: hidden;
}

#popup:hover {
  overflow-y: scroll;
  /* This will apply to whichever content is visible */
}

/* New: Styles for the user menu content inside the main popup */
#userMenuContent {
  display: block;
  /* Initially visible when #popup is shown */
  /* Add padding/margin as needed if you want it different from the main popup */
}

/* Styles for the Appearance popup content (within the main #popup) */
#appearancePopupContent {
  display: none;
  position: absolute;
  top: 56px;
  right: 16px;
  width: 230px;
  /* This width will now apply to both sub-sections */
  background-color: #282828;
  color: white;
  border-radius: 8px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
  padding: 10px;
  z-index: 101;
  max-height: 400px;
  overflow-y: hidden;

}

#appearancePopupContent h4 {
  margin-top: 0;
  margin-bottom: 5px;
  font-size: 16px;
}

#appearancePopupContent p {
  font-size: 12px;
  color: #aaa;
  margin-bottom: 10px;
}

#appearancePopupContent ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#appearancePopupContent li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  cursor: pointer;
  font-size: 14px;
}

#appearancePopupContent li:hover {
  background-color: #3d3d3d;
}

/* Remove this if it was previously set for #popupContent, it's no longer needed for this structure */
/* #popupContent { position: relative; } */

/* For WebKit browsers (Chrome, Safari, Edge, Opera) */
::-webkit-scrollbar {
  width: 8px;
  /* Make the vertical scrollbar thinner */
  height: 8px;
  /* Make the horizontal scrollbar thinner (if present) */
}

::-webkit-scrollbar-track {
  background: transparent;
  /* Make the track completely transparent */
  /* Or, if you want it to blend with a dark background, you might use: */
  /* background: rgba(255, 255, 255, 0.1); / / A very subtle transparent white */
}

::-webkit-scrollbar-thumb {
  background-color: #555;
  /* A custom color for the thumb (e.g., a darker grey, or pick your brand color) */
  border-radius: 4px;
  /* Slightly rounded corners for the thumb */
  border: 1px solid transparent;
  /* Optional: adds a thin transparent border */
}

::-webkit-scrollbar-thumb:hover {
  background-color: #777;
  /* Slightly lighter color on hover for feedback */
}

/* For Firefox */
/* Note: Firefox styling is less granular. You can only set the overall width (thin)
 and the thumb/track colors. It doesn't support transparent tracks directly
 in the same way WebKit does. */
* {
  scrollbar-color: #555 transparent;
}

.video-container {
  width: calc(100% - 250px);
  margin-top: 55px;
  margin-left: 180px;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(4, 25%);
  grid-gap: 20px 5px;
  overflow-x: hidden;


}

.video {
  min-height: 250px;
  height: auto;

}

.thumbnail {
  width: 100%;
  height: 150px;
  object-fit: cover;

  border: 0.1px transparent;
  border-radius: 20px;
}

.content {
  width: 93%;
  height: 100px;
  padding: 10px;
  display: flex;
  /* justify-content: space-between; */

}

.channel-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 10px;
}

.title {
  width: 100%;
  height: 40px;
  position: relative;
  bottom: 20px;
  overflow: hidden;
}

.channel-name {
  position: relative;
  bottom: 40px;
  margin: none;
  padding: none;
  font-size: 14px;
  margin: 2px 0;
  color: #979797;
}

#style {
  position: fixed;
  left: 180px;
  top: 60px;
  width: calc(100% - 200px);
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  overflow-x: hidden;

}



#style:hover {
  overflow-x: auto;
}

.active-bnt {
  background-color: #ebe9e9;
  color: #000;
}

.filter-options {
  flex: 0 0 auto;
  padding: 10px 20px;
  border-radius: 10px;
  background-color: #303030;
  border: none;
  color: #fff;
  text-transform: capitalize;
  margin-right: 10px;
  font-size: 15px;
  cursor: pointer;

}

.filter-options.active-bnt {
  background-color: #ebe9e9;
  color: #000;
}

.filter-options.active-bnt:hover {
  background-color: #dbdbdb;
}

.filter-options.active-bnt:active {
  background-color: #c9c9c9;
}

.filter-options:hover {
  background-color: #353535;
}

.filter-options:active {
  background-color: #404040;
}