/* Video Feed Container */
.video-feed {
  width: 100%;
  height: 100%;
  overflow-y: scroll;
  scroll-snap-type: y mandatory; /* The magic of TikTok scrolling */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* IE 10+ */
}

.video-feed::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

/* Individual Video Container */
.video-container {
  position: relative;
  width: 100%;
  height: 100vh; /* Takes full viewport height */
  scroll-snap-align: start; /* Snaps to top */
  background-color: #000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.video-player {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Fill the screen */
}

/* Right Side Actions Panel */
.video-actions {
  position: absolute;
  right: 15px;
  bottom: 80px; /* Above the bottom bar */
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 10;
}

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  cursor: pointer;
  filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.5));
}

.action-btn .icon {
  font-size: 2rem;
  transition: transform 0.2s;
}

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

.action-btn .count {
  font-size: 0.8rem;
  margin-top: 4px;
  font-weight: bold;
}

/* Video Info Overlay */
.video-info {
  position: absolute;
  left: 15px;
  bottom: 80px;
  color: #fff;
  z-index: 10;
  width: 70%;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.video-info h3 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.video-info p {
  font-size: 0.9rem;
  line-height: 1.3;
}

/* Heart Animation for Double Tap */
@keyframes heartPulse {
  0% { transform: scale(0); opacity: 1; }
  50% { transform: scale(1.5); opacity: 1; }
  100% { transform: scale(2); opacity: 0; }
}

.heart-animation {
  position: absolute;
  font-size: 5rem;
  color: var(--accent-color);
  animation: heartPulse 0.8s ease-out forwards;
  pointer-events: none;
  z-index: 20;
}

/* Bottom gradient overlay for text readability */
.video-container::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
  pointer-events: none;
  z-index: 5;
}

/* Progress bar at bottom of video */
.video-progress {
  position: absolute;
  bottom: 60px;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(255,255,255,0.2);
  z-index: 12;
}

.video-progress-fill {
  height: 100%;
  background: var(--accent-color);
  width: 0%;
  transition: width 0.5s linear;
}

/* Music info bar */
.music-info {
  position: absolute;
  left: 15px;
  bottom: 66px;
  z-index: 11;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-size: 0.8rem;
  max-width: 65%;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.music-disc {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff2c55, #20D5EC);
  animation: spin 4s linear infinite;
  flex-shrink: 0;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.music-title {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Profile avatar on left side */
.video-author-avatar {
  position: absolute;
  left: 15px;
  top: 15px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid white;
  z-index: 11;
  cursor: pointer;
}
