/* Floating Button */
#mediaWidgetBtn {
  position: fixed;
  bottom: 25px;
  left: 25px;
  background: linear-gradient(135deg, #b40000, #d4af37);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 65px;
  height: 65px;
  font-size: 1.6em;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 9999;
}
#mediaWidgetBtn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 18px rgba(0,0,0,0.6);
}

/* Popup Panel */
#mediaWidgetPopup {
  display: none;
  position: fixed;
  bottom: 100px;
  left: 25px;
  width: 300px;
  background: #111;
  color: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.6);
  z-index: 9998;
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.mediaWidgetHeader {
  background: linear-gradient(135deg, #b40000, #d4af37);
  padding: 10px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mediaWidgetClose {
  cursor: pointer;
  font-size: 1.2em;
}

.mediaPreview {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
}
.mediaPreview .set {
  position: relative;
  height: 150px;
  border-radius: 10px;
  overflow: hidden;
}
.mediaPreview .set img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0; left: 0;
}
.mediaPreview .slider {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  overflow: hidden;
  border-right: 2px solid #d4af37;
}
.mediaWidgetFooter {
  text-align: center;
  padding: 8px;
  background: #1c1c1c;
}
.mediaWidgetFooter a {
  background: #d4af37;
  color: #111;
  text-decoration: none;
  padding: 8px 15px;
  border-radius: 8px;
  font-weight: bold;
}
.mediaWidgetFooter a:hover {
  background: #f0d85b;
}
