.jrt-ytmb-btn {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  line-height: 1;
}

.jrt-ytmb-btn[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
}

.jrt-ytmb-hint {
  display: block;
  margin-top: 8px;
  opacity: 0.8;
  font-size: 12px;
}

/* Overlay */
.jrt-ytmb-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0,0,0,0.75);
  z-index: 999999;
}

.jrt-ytmb-overlay.is-open {
  display: flex;
}

/* Modal */
.jrt-ytmb-modal {
  width: min(100%, 900px);
  background: #111;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.jrt-ytmb-title {
  padding: 14px 16px;
  font-weight: 600;
  font-size: 16px;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.jrt-ytmb-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 38px;
  height: 38px;
  border: 0;
  background: rgba(0,0,0,0.35);
  color: #fff;
  cursor: pointer;
  border-radius: 10px;
  font-size: 24px;
  line-height: 1;
}

/* Responsive video frame (16:9) */
.jrt-ytmb-video {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
}

.jrt-ytmb-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
