body {
  background-color: #001f3f;
  color: white;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #00008b;
  padding: 10px;
  z-index: 1000;
}

#logo {
  font-size: 1.2em;
  cursor: pointer;
}

#search-form {
  display: flex;
}

#search-input {
  padding: 5px;
  border-radius: 5px 0 0 5px;
  border: none;
}

#search-btn {
  padding: 5px 10px;
  background-color: #00ff00;
  color: white;
  border: none;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
}

.banner-ad {
  text-align: center;
  margin-top: 50px;
  margin-bottom: 10px;
}

footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: #00008b;
  padding: 10px;
  text-align: center;
  z-index: 1000;
}

footer a {
  margin: 0 10px;
  color: white;
  text-decoration: none;
}

.footer-ad {
  margin-top: 10px;
}

.content {
  margin: 70px 0 70px 0;
}

.button {
  background-color: #00ff00;
  color: white;
  padding: 10px 20px;
  border-radius: 10px;
  cursor: pointer;
  margin: 5px;
  border: none;
}

#buttons-bar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: 10px 0;
}

#category-dropdown {
  padding: 5px;
  background-color: #001f3f;
  color: white;
  border: 1px solid #00ff00;
  border-radius: 5px;
}

#feed {
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  height: calc(100vh - 150px);
}

.video-container {
  height: calc(100vh - 150px);
  scroll-snap-align: start;
  position: relative;
}

iframe {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#player-controls {
  position: fixed;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  z-index: 999;
}

#player-controls button {
  background-color: #00008b;
  color: white;
  padding: 5px 10px;
  margin: 0 5px;
  border-radius: 10px;
}

#menu {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100%;
  background-color: #00008b;
  transition: right 0.3s;
  z-index: 1001;
}

#menu.open {
  right: 0;
}

#menu ul {
  list-style: none;
  padding: 20px;
}

#menu li {
  margin: 10px 0;
  cursor: pointer;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1002;
}

.modal-content {
  background-color: #001f3f;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  max-width: 80%;
}

.close-btn {
  background-color: red;
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  margin: 5px;
}

.popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #001f3f;
  padding: 20px;
  border-radius: 10px;
  z-index: 1003;
  display: none;
}

.popup .close-x {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
}

#install-btn {
  position: fixed;
  bottom: 80px;
  background-color: #00ff00;
  padding: 10px;
  border-radius: 20px;
  cursor: pointer;
  animation: move 2s infinite alternate;
  display: none;
  z-index: 999;
}

@keyframes move {
  0% { left: 20%; }
  100% { left: 80%; }
}

#install-close {
  margin-left: 10px;
  cursor: pointer;
}

.socials {
  text-align: center;
  margin-bottom: 20px;
}

.social-icon {
  margin: 0 10px;
  width: 30px;
  cursor: pointer;
}

.result-item {
  position: relative;
  margin: 10px 0;
}

.play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 50px;
  color: #00ff00;
  cursor: pointer;
}

.side-ad {
  display: none;
}

/* Small landscape */
@media (orientation: landscape) and (max-width: 600px) {
  .banner-ad, .footer-ad {
    display: none;
  }
  header, footer {
    display: none;
  }
  #logo {
    position: fixed;
    top: 10px;
    left: 10px;
  }
  #search-form {
    position: fixed;
    top: 10px;
    right: 10px;
  }
  #category-dropdown {
    position: fixed;
    top: 50px;
    right: 10px;
  }
  #buttons-bar .button {
    position: fixed;
    left: 10px;
    display: block;
  }
  #menu-btn {
    top: 50px;
  }
  #best-btn {
    top: 100px;
  }
  #links-btn {
    top: 150px;
  }
  #tips-btn {
    top: 200px;
  }
  footer a {
    position: fixed;
    bottom: 10px;
    left: 10px;
    display: block;
    margin: 5px 0;
  }
  #feed, #results, #links-content {
    margin: 0;
    height: 100vh;
  }
  .video-container {
    height: 100vh;
  }
  .side-ad {
    display: block;
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    height: 250px;
  }
  .side-ad.left {
    left: 0;
  }
  .side-ad.right {
    right: 0;
  }
  #player-controls {
    bottom: 10px;
  }
}

/* Medium (tablets) */
@media (min-width: 768px) {
  .banner-ad {
    /* Suggest 728x90 leaderboard for larger banner */
  }
  .footer-ad {
    /* Suggest 728x90 for footer */
  }
  .content, #feed, #results, #links-content {
    max-width: 80%;
    margin: 80px auto 80px;
  }
  @media (orientation: landscape) {
    .side-ad {
      width: 160px;
      height: 600px; /* Skyscraper */
    }
  }
}

/* Large (desktops) */
@media (min-width: 1024px) {
  .content, #feed, #results, #links-content {
    max-width: 60%;
  }
  .banner-ad, .footer-ad {
    /* Suggest 970x250 for large banners */
  }
}