body {
  background-color: #111;
  color: #fff;
}

.category-scroll-wrapper {
  overflow-x: auto;
  white-space: nowrap;
  padding: 10px 15px;
  scrollbar-width: none;       /* Firefox */
  -ms-overflow-style: none;    /* IE and Edge */
}

.category-scroll-wrapper::-webkit-scrollbar {
  display: none;               /* Chrome, Safari, Opera */
}


.category-scroll {
  display: inline-flex;
  gap: 10px;
}

.tag-item {
  display: inline-block;
  color: #fff;
  background: #ff6524;
  padding: 8px 14px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 14px;
  white-space: nowrap;
  transition: background 0.3s;
}

.tag-item:hover {
  background: #ff9861;
}



.video-thumb img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  transition: 0.3s;
}
.video-thumb:hover img {
  transform: scale(1.05);
}
.video-title {
  margin-top: 8px;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.video-thumb .badge {
  font-size: 12px;
  padding: 2px 6px;
}


.ad-slot {
  color: #ccc;
  text-align: center;
  padding: 20px;
  margin: 20px 0;
}


.navbar-dark .navbar-nav .nav-link {
  color: #fff;
}

.navbar-nav .nav-link:hover {
  background-color: #555555; /* A medium gray */
  border-radius: 30px;        /* Rounded corners for smoothness */
  transition: background-color 0.3s ease;
}
:root {
  --bg-color: #121212;
  --text-color: #ffffff;
  --nav-bg: #1f1f1f;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
}

.navbar,
footer {
  background-color: var(--nav-bg) !important;
}

.video-title,
.nav-link,
.footer a {
  color: var(--text-color) !important;
}
/* Light Gray Theme for light-mode */
body.light-mode {
  --bg-color: #f4f4f4;
  --text-color: #111;
  --nav-bg: #e0e0e0;
}

/* Light gray toggle button appearance */
#darkModeToggle {
  background-color: #ccc !important;
  border-color: #bbb !important;
  color: #111 !important;
}

#ad-desktop { display: block; }
#ad-mobile { display: none; }

@media (max-width: 768px) {
  #ad-desktop { display: none; }
  #ad-mobile { display: block; }
}


.ad-slot iframe {
  display: block;
  margin: 0 auto;
  max-width: 100%;
}

.navbar-brand img {
  max-height: 50px;  /* Ensures the logo doesn't get too big */
  height: auto;
  width: auto;
}


.navbar {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.nav-link {
  border-radius: 30px;
  padding: 8px 16px;
}

.category-scroll-wrapper {
  flex-shrink: 1;
  min-width: 0;
}

.category-scroll {
  overflow-x: auto;
  flex-wrap: nowrap;
}

@media (max-width: 576px) {
  .category-scroll-wrapper {
    order: 2;
    width: 100%;
  }

  form select {
    width: 100%;
  }
}

/* Ensure dropdown matches dark theme */
.dropdown-menu {
  background-color: #1f1f1f;
  border: none;
  min-width: 160px;
  font-size: 14px;
}

.dropdown-item:hover {
  background-color: #333;
  color: #fff;
}

.category-scroll-wrapper {
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex-shrink: 1;
}

.category-scroll-wrapper::-webkit-scrollbar {
  display: none;
}

.dropdown .dropdown-menu {
  min-width: 150px;
}
