/* Base container */
.tf-player {
  position: relative;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  max-width: 100%;
  line-height: 1;
  font-family: Arial, sans-serif;
}

/* Video element */
.tf-video {
  width: 100%;
  height: auto;
  display: block;
  background: #000;
}

/* Bottom controls bar */
.tf-bottom {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0));
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Show controls when hovered or tapped */
.tf-player:hover .tf-bottom,
.tf-player:focus-within .tf-bottom {
  opacity: 1;
}

/* Progress bar */
.tf-progress {
  width: 100%;
  appearance: none;
  height: 4px;
  border-radius: 2px;
  background: #444;
  cursor: pointer;
}

.tf-progress::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff4500;
  cursor: pointer;
}
.tf-progress::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff4500;
  cursor: pointer;
}

/* Controls row */
/* Controls row */
.tf-controls-row {
  display: flex;
  justify-content: space-evenly; /* evenly spread */
  align-items: center;
  font-size: 13px;
  color: #fff;
  width: 100%;
}

/* Time label aligned left with space */
.tf-time {
  flex: 1;
  text-align: left;
  font-size: 0.85rem;
  color: #ccc;
}

/* Actions container evenly spread */
.tf-actions {
  flex: 3; /* take more space */
  display: flex;
  justify-content: space-evenly; /* spread all control buttons */
  align-items: center;
  gap: 0; /* no fixed gap since space-evenly handles spacing */
}

.tf-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tf-btn img {
  width: 20px;
  height: 20px;
  filter: invert(1);
}
.tf-btn:hover img {
  filter: invert(67%) sepia(84%) saturate(3071%) hue-rotate(352deg) brightness(99%) contrast(101%);
}

/* Fullscreen button */
.tf-fullscreen {
  font-size: 16px;
  color: #fff;
}
.tf-fullscreen:hover {
  color: #ff4500;
}

/* Center play overlay */
.tf-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.tf-play-large {
  background: rgba(0,0,0,0.5);
  border: 2px solid #fff;
  border-radius: 50%;
  font-size: 2.5rem;
  color: #fff;
  width: 70px;
  height: 70px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.tf-play-large:hover {
  background: rgba(255,69,0,0.7);
  transform: scale(1.05);
}

/* RESPONSIVENESS */

/* Tablet and desktop */
@media (min-width: 769px) {
  .tf-bottom {
    padding: 8px 16px;
  }
  .tf-btn img {
    width: 22px;
    height: 22px;
  }
  .tf-play-large {
    width: 90px;
    height: 90px;
    font-size: 3rem;
  }
}

/* Blocked action message */
.blocked-msg {
  position: absolute;
  bottom: 50%;
  left: 50%;
  transform: translate(-50%, 50%);
  background: rgba(0,0,0,0.8);
  color: #ff4500;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  z-index: 1000;
}

.blocked-msg.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.video-title {
  font-weight: bold;
  font-size: 1.1rem;
  padding: 8px 12px;
  color: #ff4500;
}

.video-caption {
  font-size: 0.95rem;
  padding: 10px 12px;
  color: #ff4500;
}

.video-price {
  font-weight: bold;
  margin-top: 6px;
  color: #ffcc00;
}
/* === WhatsApp Floating Button === */
#whatsapp-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 80px;
  height: 80px;
  z-index: 9999;
  border-radius: 50%;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* WhatsApp Icon */
#whatsapp-btn img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;   /* ✅ solid green circle */
  padding: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.4);
}

/* Circular text */
.circle-text {
  position: absolute;
  width: 120px;
  height: 120px;
  pointer-events: none; /* text won’t block clicks */
}

.circle-text text {
  fill: #fff;           /* ✅ white text for dark theme */
  font-size: 14px;
  font-weight: bold;
}
/* Small screens */
@media (max-width: 480px) {
  .tf-controls-row {
    flex-direction: column;      /* stack time + actions */
    align-items: stretch;
    gap: 6px;
  }

  .tf-time {
    text-align: center;          /* center time above buttons */
    font-size: 12px;
    width: 100%;
  }

  .tf-actions {
    justify-content: space-evenly;
    width: 100%;
  }

  .tf-btn img {
    width: 18px;
    height: 18px;
  }
  .tf-play-large {
    width: 60px;
    height: 60px;
    font-size: 2rem;
  }
}