* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #000;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  overflow: hidden;
}

.app-container {
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  background-color: #000;
}

.reels-feed {
  width: 100%;
  max-width: 450px; /* Mobile width simulation */
  height: 100%;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  position: relative;
  background-color: #121212;
}
.reels-feed::-webkit-scrollbar {
  display: none;
}

.reel {
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #222;
}

.reel-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

/* Overlays */
.top-bar {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  z-index: 10;
  font-size: 24px;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.actions-col {
  position: absolute;
  bottom: 80px;
  right: 15px;
  display: flex;
  flex-direction: column;
  gap: 25px;
  z-index: 10;
  align-items: center;
}

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.action-btn i {
  font-size: 28px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  transition: transform 0.1s;
}
.action-btn:active i {
  transform: scale(0.8);
}
.like-btn.liked i {
  color: #ff3040;
}
.action-text {
  font-size: 13px;
  font-weight: 500;
}

.music-disc {
  width: 30px;
  height: 30px;
  border-radius: 5px;
  border: 2px solid white;
  overflow: hidden;
  margin-top: 10px;
  animation: spin 4s linear infinite;
}
.music-disc img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

.reel-info {
  position: absolute;
  bottom: 20px;
  left: 15px;
  right: 60px;
  z-index: 10;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.user-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.user-thumb {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid white;
}
.username {
  font-weight: 600;
  font-size: 15px;
}
.follow-btn {
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 600;
  background: transparent;
  color: white;
  cursor: pointer;
}

.caption {
  font-size: 14px;
  margin-bottom: 10px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.music-row {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
}

.mute-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.6);
  padding: 15px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.mute-overlay.show {
  opacity: 1;
}
