.svb-bubble {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 150px;
  height: 267px;
  border-radius: 16px;
  overflow: hidden;
  z-index: var(--svb-z, 99999);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  background: #000;
  cursor: pointer;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(.2, .9, .3, 1.2), opacity 0.3s ease;
  pointer-events: none;
}

.svb-bubble[data-position="bottom-right"] {
  left: auto;
  right: 20px;
}

.svb-bubble.svb-no-modal {
  cursor: default;
}

.svb-bubble.svb-aspect-16-9 { width: 240px; height: 135px; }
.svb-bubble.svb-aspect-1-1  { width: 180px; height: 180px; }
.svb-bubble.svb-aspect-9-16 { width: 150px; height: 267px; }

.svb-bubble.svb-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.svb-bubble.svb-closed {
  transform: translateY(140%);
  opacity: 0;
  pointer-events: none;
}
.svb-bubble iframe,
.svb-bubble video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  pointer-events: none;
  object-fit: cover;
}

/* Branding-Masken nur für YouTube */
.svb-mask {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom, #000 0%, transparent 100%);
}
.svb-mask-top    { top: 0; height: 40px; }
.svb-mask-bottom { bottom: 0; height: 60px; transform: scaleY(-1); }

.svb-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: transparent;
}
.svb-label {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 3;
  color: #fff;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  max-width: calc(100% - 16px);
  pointer-events: none;
}
.svb-btn {
  position: absolute;
  z-index: 4;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.2s;
}
.svb-btn:hover  { background: rgba(0, 0, 0, 0.85); }
.svb-btn:focus  { outline: 2px solid #fff; outline-offset: 2px; }
.svb-close      { top: 8px; right: 8px; }
.svb-expand     { top: 8px; left: 8px; }
.svb-btn svg    { width: 14px; height: 14px; fill: #fff; }

.svb-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: calc(var(--svb-z, 99999) + 10);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}
.svb-modal.svb-modal-open { display: flex; opacity: 1; }
.svb-modal-inner {
  position: relative;
  width: min(900px, 92vw);
  aspect-ratio: 16 / 9;
  max-height: 92vh;
  background: #000;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}
.svb-modal-inner[data-aspect="9:16"] {
  width: min(420px, 92vw);
  aspect-ratio: 9 / 16;
}
.svb-modal-inner iframe,
.svb-modal-inner video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.svb-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.svb-modal-close:hover { background: rgba(0, 0, 0, 0.9); }
.svb-modal-close svg { width: 18px; height: 18px; fill: #fff; }

@media (max-width: 600px) {
  .svb-bubble { width: 120px; height: 213px; bottom: 14px; left: 14px; }
  .svb-bubble.svb-aspect-16-9 { width: 200px; height: 113px; }
  .svb-bubble.svb-aspect-1-1  { width: 140px; height: 140px; }
  .svb-bubble[data-position="bottom-right"] { right: 14px; left: auto; }
  .svb-label { font-size: 12px; }
  .svb-bubble.svb-hide-mobile { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .svb-bubble { transition: opacity 0.2s ease; transform: none; }
  .svb-bubble.svb-closed { transform: none; }
}
