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

.add-all-bar {
  padding: 10px 20px;
  background: #1f1f23;
  color: #fff;
  font-size: 1rem;
}

.add-all-bar a {
  color: #0af;
  text-decoration: underline;
  cursor: pointer;
}

.sub-item {
  display: none;
}

#url-bar {
  position: fixed;
  left: 13%;
  bottom: 0;
  width: 87%;
  background: #1f1f23;
  color: #fff;
  padding: 10px 20px;
  font-family: monospace;
  font-size: 0.9rem;
  border-top: 2px solid #333;
  overflow-x: auto;
  z-index: 200;
}

#url-bar button {
  margin-left: 10px;
  background: #333;
  color: #fff;
  border: none;
  padding: 6px 10px;
  cursor: pointer;
  border-radius: 4px;
}

#url-bar button:hover {
  background: #555;
}

#multi-url {
  font-size: 0.9rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

#multi-url .stream {
  white-space: nowrap; /* Prevent line break inside each username */
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 40px;
  padding-bottom: 60px; /* or whatever height matches your #url-bar height + some space */
}
.grid-item.selected {
  border: 3px solid #ff3333; /* or any highlight you want */
  box-shadow: 0 0 8px rgba(255, 0, 0, 0.4);
}
.user-count {
  font-size: 0.8em;
  color: #aaa;
  margin-left: 4px;
}

.grid-item span {
  display: block;
  text-align: center;
  margin-top: 8px;
  color: #ccc;
  font-size: 0.9rem;
}

.grid-item .remove-x {
  display: none;
  position: absolute;
  top: 5px;
  right: 5px;
  background: red;
  color: white;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 12px;
  line-height: 20px;
  cursor: pointer;
  z-index: 10;
}

.grid-item {
  border: none;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  background: #1f1f23;
  color: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.grid-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.1);
}

.grid-item img {
  width: 100%;
  height: auto;
  display: block;
}

.grid-item h3,
.grid-item p {
  margin: 12px;
  text-align: left;
  color: #ddd;
}

.grid-item h3 {
  font-size: 1.2rem;
}

.grid-item p {
  font-size: 0.9rem;
}

#sidebar {
  height: 99vh;
  width: 13%;
  position: fixed;
  display: flex;
  flex-direction: column;
  z-index: 102;
  top: 0;
  left: 0;
  background-color: #1f1f23;
  overflow-x: scroll;
  scrollbar-width: none;
  -ms-overflow-style: none;
  transition: transform 0.7s ease-in-out;
}

#content {
  margin-left: 13%;
  width: 87%;
  background-color: #0e0e10;
  z-index: 13;
  position: relative;
  height: 100vh;
}

.category {
  cursor: pointer;
  font-weight: bold;
  font-size: 1.05vw;
  background-color: #1f1f23;
  color: #fff;
  padding: 10px;
}

.category:hover,
.category.active {
  background-color: rgb(84, 18, 114);
  color: #fff;
}
