
.tiktok-studio-wrapper {
  background: #141414;
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid #2e2e2e;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.studio-header-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #2a2a2a;
}
.tk-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1e293b;
  color: #38bdf8;
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
}
.status-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
}
.studio-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
}
@media(max-width: 900px) {
  .studio-grid {
    grid-template-columns: 1fr;
  }
}
.studio-controls-card {
  background: #1c1c1c;
  padding: 1.25rem;
  border-radius: 12px;
  border: 1px solid #2a2a2a;
}
.studio-preview-card {
  background: #1c1c1c;
  padding: 1.25rem;
  border-radius: 12px;
  border: 1px solid #2a2a2a;
  display: flex;
  flex-direction: column;
}
.tk-input, .tk-select, .tk-textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  background: #101010;
  border: 1px solid #383838;
  color: #fff;
  border-radius: 8px;
  margin-top: 0.35rem;
  box-sizing: border-box;
  font-size: 0.9rem;
  transition: border-color 0.2s;
}
.tk-input:focus, .tk-select:focus, .tk-textarea:focus {
  outline: none;
  border-color: #FE2C55;
}
.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #cbd5e1;
  display: block;
}
.tiktok-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #FE2C55;
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s, opacity 0.15s;
}
.tiktok-btn:hover {
  background: #e02447;
  transform: translateY(-1px);
}
.tk-btn-generate {
  background: linear-gradient(135deg, #FE2C55, #f43f5e);
  box-shadow: 0 4px 14px rgba(254, 44, 85, 0.4);
}
.tk-source-tag {
  background: #0284c7;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}
.tk-hashtag-chip {
  background: #262626;
  color: #38bdf8;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
}
.tiktok-phone-frame {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  aspect-ratio: 9/16;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0,0,0,0.9);
  border: 4px solid #2f2f2f;
  background: #000;
}
#tiktok-render-canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tiktok-hud-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px;
}
.tiktok-top-header {
  text-align: center;
  font-size: 0.85rem;
  color: #ffffff;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
  margin-top: 6px;
}
.tiktok-sidebar-actions {
  position: absolute;
  right: 10px;
  bottom: 75px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}
.tk-action-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.9);
}
.tk-icon-circle {
  font-size: 1.2rem;
}
.tk-action-icon span {
  font-size: 0.65rem;
  font-weight: 700;
  margin-top: 2px;
}
.tk-disc-spin {
  animation: tk-spin 4s linear infinite;
}
@keyframes tk-spin {
  100% { transform: rotate(360deg); }
}
.tk-disc-inner {
  width: 30px;
  height: 30px;
  background: #111;
  border: 4px solid #333;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}
.tiktok-bottom-info {
  margin-right: 50px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.9);
}
.tk-username {
  font-weight: 800;
  font-size: 0.85rem;
  color: #fff;
}
.tk-caption-preview {
  font-size: 0.75rem;
  color: #e5e7eb;
  margin-top: 3px;
  line-height: 1.25;
}
.tk-audio-marquee {
  font-size: 0.65rem;
  color: #d1d5db;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}
