.wpr-feed-wrapper {
  position: relative;
  max-width: 450px;
  margin: 20px auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  background: #000;
  height: 80vh;
  min-height: 500px;
  max-height: 850px;
}

.wpr-container {
  height: 100%;
  width: 100%;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  background: transparent;
  position: relative;
}

.wpr-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 20;
  color: white;
  pointer-events: none; /* let clicks pass through except buttons */
}

.wpr-header-title {
  font-size: 18px;
  font-weight: 700;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.wpr-header-btn {
  pointer-events: auto;
  background: rgba(0,0,0,0.5);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s;
}

.wpr-header-btn:hover {
  transform: scale(1.1);
}

.wpr-modal {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.95);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.wpr-modal.hidden {
  display: none !important;
}

.wpr-modal-content {
  position: relative;
  width: 100%;
  background: #111;
  border-radius: 12px;
  padding: 10px;
}

.wpr-modal-close {
  position: absolute;
  top: -40px;
  right: 0px;
  background: none;
  border: none;
  color: white;
  font-size: 30px;
  cursor: pointer;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.wpr-container::-webkit-scrollbar {
  display: none;
}
/* Hide scrollbar for IE, Edge and Firefox */
.wpr-container {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

.wpr-video {
  height: 100%;
  width: 100%;
  scroll-snap-align: start;
  position: relative;
  background: #000;
}

.wpr-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.wpr-ui {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  pointer-events: none; /* Let clicks pass through to video */
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
  color: white;
}

.wpr-info {
  flex: 1;
  pointer-events: auto;
  margin-bottom: 20px;
}

.wpr-author {
  font-size: 16px;
  font-weight: bold;
  margin: 0 0 5px 0;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.wpr-title {
  font-size: 14px;
  margin: 0;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wpr-actions {
  display: flex;
  flex-direction: column;
  gap: 20px;
  pointer-events: auto;
  padding-bottom: 20px;
  align-items: center;
}

.wpr-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: transform 0.2s;
}

.wpr-action:hover {
  transform: scale(1.1);
}

.wpr-icon {
  font-size: 28px;
  filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.5));
}

.wpr-action span {
  font-size: 12px;
  font-weight: 600;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.wpr-like.active .wpr-icon {
  color: #ff0050;
  text-shadow: none;
}

.wpr-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 60px;
  color: rgba(255,255,255,0.7);
  pointer-events: none;
  filter: drop-shadow(0px 4px 10px rgba(0,0,0,0.5));
  z-index: 10;
}

.wpr-uploader {
  position: relative;
  width: 100%;
  height: 400px;
  background: #000;
  color: #fff;
  overflow: hidden;
  border-radius: 10px;
}

.wpr-dropzone {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed rgba(255,255,255,0.3);
  cursor: pointer;
}

.wpr-hint {
  opacity: 0.7;
  font-size: 18px;
}

.wpr-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wpr-overlay {
  position: absolute;
  bottom: 20px;
  width: 100%;
  text-align: center;
}

#wpr-upload-btn {
  padding: 12px 24px;
  background: #ff0050;
  border: none;
  color: #fff;
  border-radius: 30px;
}

#wpr-progress {
  height: 4px;
  background: rgba(255,255,255,0.2);
  margin-top: 10px;
}

#wpr-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: #ff0050;
}

.hidden { display: none; }
