.vista-widget {
  position: relative;
  width: 400px; /* Twitch minimum width is 400 */
  height: 340px; /* increased to meet Twitch minimum height (>=300) and allow room for controls */
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  backdrop-filter: blur(10px) saturate(150%);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 14px 40px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.02);
  overflow: hidden;
  z-index: 10000;
  pointer-events: none;
}

/* glossy top highlight similar to Vista/Aero */
.vista-widget::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 48px;
  background: linear-gradient(180deg, rgba(255,255,255,0.32), rgba(255,255,255,0.06));
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  pointer-events: none;
  mix-blend-mode: screen;
}

/* subtle inner shadow to add depth */
.vista-widget::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 24px 40px rgba(0,0,0,0.25);
  border-radius: 12px;
  pointer-events: none;
}

.vista-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  height: 40px;
  background: linear-gradient(180deg, rgba(0,120,215,0.95), rgba(0,84,153,0.92));
  color: #ffffff;
  font-family: "Segoe UI", "Segoe UI Semibold", Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-shadow: 0 1px 0 rgba(0,0,0,0.6);
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.vista-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vista-title img {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.2);
}

.vista-controls button {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  border: none;
  margin-left: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(0,0,0,0.08));
  box-shadow: inset 0 -1px 0 rgba(0,0,0,0.25), 0 1px 0 rgba(255,255,255,0.04);
  transition: transform 0.08s ease, box-shadow 0.08s ease, opacity 0.08s ease;
}

.vista-controls button:hover {
  transform: translateY(-1px);
}

.vista-controls button.close {
  background: linear-gradient(180deg, #ff6b6b, #d93b3b);
  box-shadow: 0 1px 0 rgba(0,0,0,0.35), inset 0 -1px 0 rgba(255,255,255,0.18);
}

.vista-controls button.minimize {
  background: linear-gradient(180deg, #ffd86b, #d9a93b);
}

.vista-widget iframe {
  width: 100%;
  height: calc(100% - 40px);
  border: none;
  display: block;
}

.vista-icon {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 9999;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,0.9), rgba(230,240,255,0.8) 12%, #9fc3ff 45%, #3b78ff 100%);
  box-shadow: 0 6px 18px rgba(59,120,255,0.25), inset 0 2px 6px rgba(255,255,255,0.3);
}

.vista-icon:hover {
  transform: scale(1.08) translateY(-3px);
}