.msmb-browser {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  max-width: 100%;
  margin: 20px auto;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  transition: 0.3s all ease;
}

.msmb-header {
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  background: linear-gradient(to bottom, #ebebeb, #dcdcdc);
  position: relative;
}

.msmb-browser.dark .msmb-header {
  background: linear-gradient(to bottom, #3c3c3c, #2a2a2a);
  border-bottom: 1px solid #1c1c1c;
}

.msmb-dots {
  position: absolute;
  left: 14px;
  top: 10px;
  display: flex;
  gap: 6px;
}

.msmb-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  transition: 0.2s;
}

.msmb-dots span:nth-child(1) { background: #ff5f57; }
.msmb-dots span:nth-child(2) { background: #ffbd2e; }
.msmb-dots span:nth-child(3) { background: #28c940; }

.msmb-dots span:hover { filter: brightness(1.2); }

.msmb-url {
  background: #f9f9f9;
  border-radius: 6px;
  padding: 6px 12px;
  text-align: center;
  font-size: 13px;
  color: #555;
  border: 1px solid #ccc;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
  width: 100%;
  max-width: 60%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.msmb-browser.dark .msmb-url {
  background: #1f1f1f;
  color: #eee;
  border: 1px solid #444;
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.05);
}

.msmb-body {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.msmb-body img,
.msmb-body video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .msmb-url { font-size: 12px; padding: 4px 10px; max-width: 75%; }
  .msmb-dots span { width: 10px; height: 10px; }
}
