.mlv-shortcode-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 30px 0;
  justify-content: space-between;
}

.mlv-shortcode-box {
  flex: 1 1 calc(33.333% - 20px);
  background: #f7f7f7;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  text-align: center;
  transition: transform 0.2s ease;
  position: relative;
}

.mlv-shortcode-box:hover {
  transform: translateY(-4px);
}

.mlv-shortcode-title {
  font-size: 1.1em;
  font-weight: bold;
  margin-bottom: 8px;
  color: #1e73be;
}

.mlv-shortcode-code {
  display: inline-block;
  background: #e9ecef;
  padding: 6px 12px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.95em;
  color: #333;
  margin-bottom: 10px;
}

.mlv-shortcode-desc {
  font-size: 0.9em;
  color: #666;
  margin-top: 8px;
  margin-bottom: 10px;
}

.mlv-copy-btn {
  margin-top: 5px;
  padding: 6px 16px;
  background-color: #1e73be;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 0.85em;
  cursor: pointer;
  transition: background 0.3s ease;
}

.mlv-copy-btn:hover {
  background-color: #155fa0;
}

.mlv-shortcode-render {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  margin-top: 12px;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  box-shadow: inset 0 0 0 1px #ddd;
}

.mlv-shortcode-render > .shortcode-preview {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  padding: 10px;
  box-sizing: border-box;
}

@media screen and (max-width: 900px) {
  .mlv-shortcode-box {
    flex: 1 1 calc(50% - 20px);
  }
}

@media screen and (max-width: 600px) {
  .mlv-shortcode-box {
    flex: 1 1 100%;
  }
}