.codekilla-wrapper {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 20px;
}

.codekilla-container {
  background: #2d2d2d;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.codekilla {
  font-family: "Fira Code", monospace;
  font-size: 14px;
  background: #2d2d2d;
  color: #f8f8f2;
  padding: 15px;
  padding-top: 50px; /* space for buttons */
  border-radius: 8px;
  overflow-x: auto;
  min-height: 100px;
  max-height: 400px;
  line-height: 1.5;
  white-space: pre;
  margin: 0;
  resize: none;
}

.codekilla-buttons {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  z-index: 10;
}

.copy-code-btn,
.youtube-btn {
  background: rgba(255,255,255,0.08);
  border: none;
  border-radius: 6px;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 12px;
  color: #f8f8f2;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.copy-code-btn:hover {
  background: rgba(255,255,255,0.2);
}

.youtube-btn {
  background: #ff0000;
}

.youtube-btn:hover {
  background: #e60000;
}

.copy-code-btn svg,
.youtube-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.copy-tooltip {
  position: absolute;
  top: -28px;
  right: 8px;
  background: #000;
  color: #fff;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 20;
}

.copy-tooltip.show {
  opacity: 1;
}

/* Mobile Responsive */
@media (max-width: 600px) {
  .codekilla {
    font-size: 13px;
    padding-top: 70px;
  }
  .codekilla-buttons {
    position: static;
    justify-content: flex-start;
    padding: 8px;
    gap: 6px;
  }
  .copy-code-btn,
  .youtube-btn {
    font-size: 11px;
    padding: 4px 8px;
  }
}
