.collapse-btn {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  color: #aaa;
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  z-index: 110;
  transition: color 0.2s;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.collapse-btn:hover {
  color: white;
}

.input,
select,
button {
  padding: 8px 12px;
  border: none;
  border-radius: 999px;
  font-size: 13px;
  min-width: 90px;
  white-space: nowrap;
}

input,
select,
button {
  padding: 8px 12px;
  border: none;
  border-radius: 999px;
  font-size: 13px;
  min-width: 90px;
  white-space: nowrap;
}

input,
select {
  background: #1c1c1c;
  color: white;
  text-align: center;
}

input::placeholder {
  color: #777;
}

input:focus,
select:focus {
  outline: 2px solid #8b5cf6;
  outline-offset: 1px;
}

input,
select {
  background: #1c1c1c;
  color: white;
  text-align: center;
}

input::placeholder {
  color: #777;
}

input:focus,
select:focus {
  outline: 2px solid #8b5cf6;
  outline-offset: 1px;
}

button {
  background: #8b5cf6;
  color: white;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s;
}

button:hover {
  background: #7c3aed;
  transform: translateY(-1px);
}

.tabs {
  display: flex;
  gap: 2px;
  background: #111;
  border-radius: 999px;
  padding: 3px;
  margin: 2px auto 0;
  width: fit-content;
}

.tab {
  padding: 6px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
}

.tab.active {
  background: #8b5cf6;
  color: white;
}

.tab:hover:not(.active) {
  background: #222;
}

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.chips::-webkit-scrollbar {
  display: none;
}

.chip-wrapper {
  position: relative;
  display: inline-block;
}

.chip {
  padding: 7px 15px;
  background: #1c1c1c;
  border-radius: 999px;
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s;
}

.chip:hover {
  background: #2d2d2d;
}

.chip:active {
  background: #3a3a3a;
}

.chip-close {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 18px;
  height: 18px;
  background: #333;
  color: #aaa;
  border-radius: 50%;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
  cursor: pointer;
  display: none;
  z-index: 10;
  border: 1px solid #444;
}

.chip-wrapper:hover .chip-close {
  display: block;
}

.chip-close:hover {
  background: #555;
  color: white;
}

.bottom-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0) 100%);
  padding: 60px 20px 20px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.4s ease;
}

.bottom-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.caption-text {
  flex: 1;
  color: white;
  font-size: 15px;
  line-height: 1.45;
  text-align: center;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.95);
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  display: -webkit-box;
  pointer-events: none;
}

.post-info {
  font-size: 12px;
  color: #bbb;
  margin-top: 4px;
  text-align: center;
  pointer-events: none;
}

.action-btn {
  background: rgba(0, 0, 0, 0.45);
  color: white;
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 20px;
  cursor: pointer;
  opacity: 0.75;
  transition: all 0.22s;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  margin: 0 8px;
}

.action-btn:hover,
.action-btn:active {
  opacity: 1;
  background: rgba(0, 0, 0, 0.85);
  transform: scale(1.15);
}

.fav-btn.favorited {
  color: #ff3366;
  background: rgba(255, 51, 102, 0.35);
  opacity: 1;
}

.mute-btn {
  position: absolute;
  top: 16px;
  right: 70px;
  background: rgba(0, 0, 0, 0.45);
  color: white;
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 20px;
  cursor: pointer;
  opacity: 0.75;
  transition: all 0.22s;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  z-index: 110;
}

.mute-btn:hover,
.mute-btn:active {
  opacity: 1;
  background: rgba(0, 0, 0, 0.85);
  transform: scale(1.15);
}

.mute-btn.muted {
  color: #ff6b6b;
}

.progress {
  position: fixed;
  top: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  z-index: 90;
  pointer-events: none;
  opacity: 0.85;
  transition: opacity 0.4s;
}

.immersive .progress {
  opacity: 0;
}

#toast-container {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 250;
  pointer-events: none;
}

.toast {
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 10px 20px;
  border-radius: 12px;
  margin: 8px 0;
  font-size: 14px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.bottom-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0) 100%);
  padding: 60px 20px 20px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.4s ease;
  flex-wrap: wrap;
  /* ← prevents blocky overflow on small screens */
  gap: 8px;
}

.post-info {
  font-size: 12px;
  color: #bbb;
  margin-top: 4px;
  text-align: center;
  pointer-events: none;
  width: 100%;
  /* full width so it doesn't look squeezed */
}