body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: black;
  color: #111;
}

/* Full-width header */
#header {
  background: #222;
  color: #fff;
  padding: 1em;
  text-align: left;
}

#header nav {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

#header nav a, 
#header nav input {
  color: black;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.4em;
  border-radius: 4px;
}

/* Main Section */
main {
  padding: 1rem;
}
main h1 {
  font-size: 1.5rem;
  margin: 0 0 1rem;
  text-align: center;
  color: black;
}

/* Video Grid - responsive */
.grid-container, .search-results, .suggestions {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Video Card */
.video-card {
  background: black;
  border: 1px solid; border-color: black;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  transition: transform 0.2s;
}
.video-card:hover {
  transform: scale(1.03);
}
.thumb img {
  width: 100%;
  display: block;
}
.no-thumb {
  background: #ccc;
  height: 140px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #333;
  padding: 10px;
  text-align: center;
  font-size: 0.9rem;
}
.video-info {
  padding: 10px;
}
.video-info h2 {
  font-size: 1.1rem;
  margin: 0 0 5px;
  color: #007bff;
  cursor: pointer;
}
.video-info p.tags {
  font-size: 0.85rem;
  color: #666;
  margin: 0;
}

/* Pagination */
#pagination {
  text-align: center;
  margin: 2rem 0;
}
#pagination button {
  padding: 0.5rem 0.9rem;
  margin: 0.2rem;
  border: none;
  background: #eee;
  color: #333;
  cursor: pointer;
  border-radius: 4px;
  font-size: 0.85rem;
}
#pagination button:hover {
  background: #ddd;
}
#pagination button.active {
  background: #007bff;
  color: white;
  font-weight: bold;
}


footer {
  background: #222;
  color: #aaa;
  padding: 1em;
  text-align: center;
  font-size: 1rem;
}

footer a {
  color: white;
  text-decoration: none;
}

footer div {
  background-color: #191a19;
}

/* Ad grid layout */
#ads-container, .ads-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3px; text-align: center;
}

.nav-info {
  position: relative;
  left: ;
  right: ;
  margin-left: 1vw;
  margin-right: 1vw;
  width: 90vw;

  padding-left: 1em;
  padding-right: 1em;
  font-size: 1em;
  text-align: justify;
  background-color: #191a19;
  color: white;
}


/* Desktop view - wider width and bigger font */
@media (min-width: 768px) {
  .nav-info {
    margin-left: auto;
    margin-right: auto;
    max-width: 960px;
    font-size: 18px; /* bigger font on desktop */
    width: 80%;      /* or any width you prefer */
  }
}

/* ads */
 .mobileShow {display: none;}

  /* Smartphone Portrait and Landscape */
  @media only screen
    and (min-device-width : 320px)
    and (max-device-width : 480px){ 
      .mobileShow {display: inline;}
  }
  .mobileHide { display: inline; }

  /* Smartphone Portrait and Landscape */
  @media only screen
    and (min-device-width : 320px)
    and (max-device-width : 480px){
     .mobileHide { display: none;}
  }


#stickyAd {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #000;
  color: #fff;
  padding: 5px;
  text-align: center;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

#stickyAd button {
  position: absolute;
  top: 2px;
  right: 10px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

