* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000;
}

.container-fixed {
  width: 100%;
  max-width: 430px;
  height: 100vh;
  position: relative;
  overflow: hidden;
  background: #000;
  font-family: sans-serif;
}

.searchbar-container {
  position: relative;
}

.search-bar {
  position: absolute;
  top: -60px;
  left: 50px;
  /* After toggle button */
  right: 50px;
  /* Before menu icon */
  height: 40px;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  padding: 0 8px;
  z-index: 1000;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: top 0.3s ease, transform 0.3s ease;
  transform: scale(0.95);
}

.search-bar.active {
  top: 10px;
  transform: scale(1);
}

.search-bar .input-container {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.search-bar input {
  width: 100%;
  padding: 6px 32px 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  color: #000;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-bar input:focus {
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.search-bar input::placeholder {
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
}

.search-bar .search-btn {
  position: absolute;
  right: 4px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 50%;
  transition: color 0.2s ease, transform 0.2s ease;
}

.search-bar .search-btn:hover {
  color: #fff;
  transform: scale(1.1);
}

.reel-wrapper {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  padding-bottom: 60px;
}

.reel {
  position: relative;
  height: 100vh;
  width: 100%;
  scroll-snap-align: start;
}

.reel video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.menu-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  color: #fff;
  transition: background 0.2s ease;
}

.menu-icon:hover {
  background: rgba(0, 0, 0, 0.6);
}

.dropdown-menu-custom {
  position: absolute;
  top: 40px;
  right: 10px;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px;
  display: none;
  flex-direction: column;
  font-size: 14px;
  color: #fff;
}

.dropdown-menu-custom label,
.dropdown-menu-custom select {
  color: #fff;
}

.dropdown-menu-custom select {
  margin-bottom: 10px;
  padding: 6px;
  width: 100%;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.time-display {
  position: absolute;
  bottom: 45px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  color: white;
  font-size: 13px;
  z-index: 10;
  padding: 0 5px;
}

.progress-container {
  position: absolute;
  bottom: 40px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  z-index: 5;
}

.progress-bar {
  height: 100%;
  background-color: #fff;
  width: 0%;
}

.preview-container {
  position: absolute;
  bottom: 50px;
  width: 120px;
  height: 80px;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  display: none;
  z-index: 10;
  overflow: hidden;
}

.preview-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: #111;
  z-index: 999;
  display: flex;
  border-top: 1px solid #222;
  padding: 6px 0;
}

.bottom-nav .nav-item {
  flex: 1;
  text-align: center;
  transition: all 0.3s ease;
}

.bottom-nav .nav-link {
  color: #aaa;
  transition: 0.3s;
}

.bottom-nav .nav-link:hover {
  color: #fff;
  transform: scale(1.2);
}

.bottom-nav i {
  font-size: 22px;
  display: block;
  margin-bottom: 4px;
  transition: transform 0.3s ease;
}

.toggle-btn {
  position: absolute;
  background-color: transparent;
  top: 10px;
  left: 10px;
  z-index: 1001;
  border: none;
  padding: 8px;
  border-radius: 10px;
  font-size: 18px;
  cursor: pointer;
  color: white;
  transition: background 0.2s ease;
}


.sidebar {
  position: absolute;
  top: 0;
  right: -250px;
  height: 100%;
  width: 250px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  color: #fff;
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: right 0.3s ease;
  padding: 20px;
}

.sidebar.active {
  right: 0;
}

.sidebar h5 {
  margin-bottom: 20px;
  border-bottom: 1px solid #444;
  padding-bottom: 10px;
}

.sidebar ul {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: calc(100% - 60px);
  overflow-y: scroll;
  scrollbar-width: none;
}

.sidebar ul::-webkit-scrollbar {
  display: none;
}

.sidebar ul li {
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #333;
  border-radius: 10px;
  text-align: center;
  transition: 0.3s ease;
  cursor: pointer;
}

.sidebar ul li:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

.category-container {
  display: flex;
  flex-direction: row;
  justify-content: start;
  flex-wrap: wrap;
  align-items: center;
  font-size: 14px;
}
.li-content{
    margin: 10px;
}
.li-content span {
  cursor: pointer;
  padding:  6px;
  transition: color 0.2s;
  background-color: #aaa;
}

.li-content span:hover {
  color: #0f0;
}

.li-content .divider {
  width: 1px;
  height: 16px;
  background-color: #555;
  margin: 0 6px;
}

/* Desktop adjustments for search bar and buttons */
@media (min-width: 768px) {
  .container-fixed {
    max-width: 430px;
    /* Maintain mobile variant */
  }

  .search-bar {
    left: 50px;
    /* Between toggle and menu */
    right: 50px;
    max-width: 330px;
    /* 430px - 50px - 50px */
  }

  .toggle-btn {
    left: 10px;
    /* Fixed position */
  }

  .menu-icon {
    right: 10px;
    /* Fixed position */
  }
}