:root {
  --bg-color: #0d0e10;
  --text-color: #fff;
  --primary-color: #3f0bba;
  --secondary-color: #28007f;
  --accent-color: #e74c3c;
  --card-bg: #262729;
  --navbar-bg: #ffffff;
  --footer-bg: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
}

h1 {
  line-height: 26px;
}

.hero {
  margin: 0px 2%;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: var(--bg-color);
  color: var(--text-color);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 10px 10px;
}

.cards a {
  text-decoration: none;
  color: var(--text-color);
}

.card {
  aspect-ratio: 16/9;
  border: 1px solid #221e1e;
  background-color: var(--card-bg);
  border-radius: 5px;
}

.image_container img {
  aspect-ratio: 16/9;
  width: 100%;
  display: block;
  padding: 0px;
  margin: 0px;
}

.image_container {
  position: relative;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.1);
  color: #fff;
}

/* Bottom left text */
.bottom-left {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 5px;
  padding: 1px 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Top left text */
.top-left {
  position: absolute;
  top: 8px;
  left: 16px;
}

/* Top right text */
.top-right {
  position: absolute;
  top: 8px;
  right: 8px;
  background-color: red;
  border-radius: 5px;
  height: 20px;
  width: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  text-align: center;
}

/* Bottom right text */
.bottom-right {
  position: absolute;
  bottom: 8px;
  right: 8px;

  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 5px;
  padding: 1px 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Centered text */
.centered {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.image_container {
  position: relative;
  overflow: hidden;
}

.image_container img {
  transition: opacity 0.3s ease;
}

.title {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
  padding-left: 5px;
}

.image_container {
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

.image_container.is-loading img {
  animation: pulse 1.5s ease-in-out infinite;
}

.video-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.loader-pulse {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 100%;
  animation: loader-scale 1s infinite ease-in-out;
}

@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
  100% {
    opacity: 1;
  }
}

@keyframes loader-scale {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

.image_container video {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.player {
  background-color: #000;
  height: 500px;
  margin-bottom: 5px;
}

.player .play {
  max-width: 800px;
  margin: auto;
  aspect-ratio: 16/9;
}

.responsive-iframe {
  position: relative;
  background-color: #000;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
}

.responsive-iframe iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-info {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
  margin-block: 1em;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--card-bg);
  padding: 8px 15px;
  border-radius: 8px;
}

.info-item svg {
  width: 18px;
  height: 18px;

  transition: fill 0.3s ease;
}

span {
  font-size: 14px;
  font-weight: 500;
}

.suggestions {
  margin-inline: 2%;
}

.tags_flex {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 1em;
}

.tags_title {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  background-color: #252932;
  padding: 2px 5px;
  border-radius: 5px;
}

.tags_flex a {
  display: block;
  background-color: var(--card-bg);
  padding: 1px 8px;
  border-radius: 5px;
  text-decoration: none;
  color: var(--text-color);
}

.tags_flex a:hover {
  background-color: var(--primary-color);
}

.loadmore {
  display: block;
  padding: 0px;
  max-width: 300px;
  margin: 1em auto;
}

.loadmore_button {
  border: none;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  background-color: var(--primary-color);
  color: var(--text-color);
  font-size: 18px;
  border-radius: 5px;
  cursor: pointer;
}

.loadmore_button:hover {
  background-color: var(--secondary-color);
}
.loadmore_button:disabled {
  background-color: #221e1e;
  pointer-events: none;
  cursor: default;
}

/* Footer */
.footer {
  text-align: center;
  padding: 1rem;

  border-top: 5px solid transparent;
  border-image: linear-gradient(
      to right,
      #ff6b6b,
      #4ecdc4,
      #45b7d1,
      #f9d56e,
      #ff6b6b
    )
    1;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.footer-links a {
  text-decoration: none;
  background-color: var(--card-bg);
  color: var(--text-color);
  padding: 0.5rem;
  border-radius: 5px;
  transition: background-color 0.3s, color 0.3s;
}

.footer-links a:hover {
  background-color: var(--primary-color);
  color: white;
}

.h1 {
  margin-block: 1em;
  text-transform: capitalize;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;

  color: white;
  border-bottom: 1px solid #252932;
}

.navbar .logo {
  display: flex;
  align-items: center;
}

.navbar .logo img {
  max-height: 40px;
}

.navbar .logo a {
  display: flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  color: var(--text-color);
  font-size: 30px;
}

.navbar .search-box {
  display: flex;
  align-items: center;
  width: 500px;
  height: 40px;
}

.navbar .search-box input {
  width: 100%;
  padding: 0 10px;
  border: none;
  border-radius: 4px 0 0 4px;
  height: 40px;
  background-color: #1c1c1c;
  color: white;
  outline: none;
}
.navbar .search-box input::placeholder {
  color: #bbb;
}

.navbar .search-box button {
  padding: 0 15px;
  border: none;
  background-color: #161616;
  color: white;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  height: 40px;
}

.navbar .search-box button:hover {
  background-color: #555;
}





.catlist{
  display: flex;
  align-items: center;
  justify-content: center;
  gap:10px;
  flex-wrap: wrap;
  margin-block:1em;
}

.catlist a{
  min-width: 150px;
  display: block;
  background-color: #000;
  padding:   5px;
  border-radius: 5px;
  text-align: center;
  text-decoration: none;
  color: var(--text-color);
}

.catlist a:hover {
  background-color: var(--primary-color);
}



.logomenu{
  display: flex;
  align-items: center;
gap:5px 1em;
}

.menu{
  display: flex;
  align-items: center;
  gap:5px;
}


.menu a{
  display: block;
  background-color: var(--accent-color);
  padding: 2px 5px;
  border-radius: 5px;
  text-align: center;
  text-decoration: none;
  color: var(--text-color);
}

.menu a:hover {
  background-color: var(--primary-color);
}






.search {
    
    position: relative;
    
}

#suggestions {
    position: absolute;
    top: 45px;
    width: 100%;
    z-index: 1000;
}

.searchSuggest{
   background-color: var(--card-bg);
    border: 1px solid #222;
    border-radius: 4px;
    max-height: 200px;
    overflow-y: auto;  
}


.searchSuggest a{
  display:block;
    text-decoration: none;
  color: var(--text-color);
  padding: 5px 10px;
  border-bottom: 1px solid var(--bg-color);
}


.searchSuggest a:hover {
  background-color: var(--primary-color);
}



/* Style for the entire scrollbar */
::-webkit-scrollbar {
  width: 8px; /* Width of the vertical scrollbar */
  height: 8px; /* Height of the horizontal scrollbar */
}

/* Style for the scrollbar track */
::-webkit-scrollbar-track {
  background: #1e1e1e; /* Dark background color for the track */
  border-radius: 10px; /* Optional: Rounds the edges of the track */
}

/* Style for the scrollbar thumb (the draggable part) */
::-webkit-scrollbar-thumb {
  background: #555; /* Medium-dark color for the thumb */
  border-radius: 10px; /* Optional: Rounds the edges of the thumb */
}

/* Hover effect for the scrollbar thumb */
::-webkit-scrollbar-thumb:hover {
  background: #777; /* Slightly lighter color on hover */
}


.hero_home{
    height:calc(100vh - 190px);
     display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background-image: repeating-linear-gradient(90deg, hsla(57,0%,42%,0.09) 0px, hsla(57,0%,42%,0.09) 1px,transparent 1px, transparent 60px),repeating-linear-gradient(0deg, hsla(57,0%,42%,0.09) 0px, hsla(57,0%,42%,0.09) 1px,transparent 1px, transparent 60px),repeating-linear-gradient(0deg, hsla(57,0%,42%,0.09) 0px, hsla(57,0%,42%,0.09) 1px,transparent 1px, transparent 10px),repeating-linear-gradient(90deg, hsla(57,0%,42%,0.09) 0px, hsla(57,0%,42%,0.09) 1px,transparent 1px, transparent 10px),linear-gradient(90deg, rgb(20,20,20),rgb(20,20,20));
}



.hero_home .search-box {
  display: flex;
  align-items: center;
  width: 600px;
  height: 60px;

}

.hero_home .search-box input {
  width: 100%;
  padding: 0 10px;
  border:2px solid grey;
  border-radius: 4px 0 0 4px;
  height: 60px;
  background-color: #1c1c1c;
  color: white;
  outline: none;
}
.hero_home .search-box input::placeholder {
  color: #bbb;
}

.hero_home .search-box button {
  padding: 0 15px;
  border:2px solid grey;
  background-color: red;
  color: white;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  height: 60px;
}

.hero_home .search-box button:hover {
  background-color: #555;
}



.hero_home .logo {
  display: flex;
  align-items: center;
}

.hero_home .logo img {
  max-height: 40px;
}

.hero_home .logo a {
  display: flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  color: var(--text-color);
  font-size: 30px;
}





@media (max-width: 768px) {
.hero_home{
    height:calc(100vh - 250px);
    
}

   .hero_home .search-box {
    width: 315px;
    margin-top: 0px;
    flex-grow: 1;
    }
    
.logomenu{
   width:100%;
   justify-content: space-between;
}

  .navbar {
    display:block;
    padding: 10px 10px;
  }

  .navbar .logo {
    justify-content: start;
    width: 100%;
  }

  .navbar .search-box {
    width: 100%;
    margin-top: 10px;
    flex-grow: 1;
   }

  .player {
  background-color: #000;
  height: auto;
  margin-bottom: 5px;
}

}