/* ── STUDIO MOCKUP COMPONENT ─────────────────────────────────────────── */
/* Self-contained dark UI mockup — works inside any section */

.studio {
  width: 100%;
  max-width: 1020px;
  margin: 0 auto;
  background: #111113;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,.6);
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* TOP BAR */
.studio .top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background: #141416;
  border-bottom: 1px solid #232326;
}
.studio .st-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.studio .logo-text {
  color: #e4e4e7;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .2px;
}
.studio .logo-sub {
  color: #52525b;
  font-size: 12px;
  font-weight: 500;
  margin-left: 2px;
}
.studio .top-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.studio .rec-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #dc2626;
  padding: 4px 11px;
  border-radius: 7px;
}
.studio .rec-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  animation: st-pulse 1.4s ease-in-out infinite;
}
.studio .rec-text {
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
}
.studio .rec-time {
  color: #fca5a5;
  font-size: 11px;
  font-family: 'DM Sans', monospace;
  letter-spacing: .3px;
}
.studio .st-badge {
  color: #71717a;
  font-size: 10px;
  padding: 3px 9px;
  border: 1px solid #2a2a2e;
  border-radius: 5px;
  font-weight: 500;
}

/* TILES */
.studio .tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  padding: 3px;
  background: #09090b;
  position: relative;
}
.studio .tile {
  position: relative;
  aspect-ratio: 16 / 9.5;
  border-radius: 6px;
  overflow: hidden;
  background: #111;
}
.studio .tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.studio .tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.3) 100%);
  pointer-events: none;
}

.studio .name-tag {
  position: absolute;
  bottom: 10px;
  left: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 5px 12px;
  border-radius: 7px;
  z-index: 5;
}
.studio .name-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
}
.studio .name-text {
  color: #e4e4e7;
  font-size: 11px;
  font-weight: 500;
}
.studio .name-role {
  color: #71717a;
  font-size: 10px;
  font-weight: 500;
}
.studio .audio-meter {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: flex;
  gap: 2px;
  align-items: flex-end;
  height: 20px;
  background: rgba(0,0,0,.45);
  padding: 3px 5px;
  border-radius: 5px;
  z-index: 5;
}
.studio .bar {
  width: 3px;
  border-radius: 1px;
  transform-origin: bottom;
}
.studio .bar-g {
  background: #22c55e;
  animation: st-meter .7s ease-in-out infinite alternate;
}
.studio .bar-y {
  background: #eab308;
  animation: st-meter .7s ease-in-out infinite alternate;
}

/* PRODUCER CHAT BUBBLE */
.studio .producer-chat {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 380px;
  animation: st-fadeUp .5s ease-out both;
  animation-delay: .8s;
}
.studio .producer-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  border: 2px solid #c2782d;
  flex-shrink: 0;
}
.studio .chat-body {
  background: rgba(18,18,22,.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid #2a2a2e;
  border-radius: 12px 12px 12px 4px;
  padding: 9px 13px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.studio .chat-header {
  display: flex;
  align-items: center;
  gap: 6px;
}
.studio .chat-name {
  color: #e4e4e7;
  font-size: 11px;
  font-weight: 500;
}
.studio .chat-role {
  color: #c2782d;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .6px;
  background: rgba(194,120,45,.12);
  padding: 1px 6px;
  border-radius: 4px;
}
.studio .chat-msg {
  color: #a1a1aa;
  font-size: 12px;
  line-height: 1.5;
}
.studio .chat-msg b {
  color: #22c55e;
  font-weight: 500;
}
.studio .chat-time {
  color: #3f3f46;
  font-size: 9px;
  align-self: flex-end;
  margin-top: 1px;
}

/* CONTROLS */
.studio .controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background: #141416;
  border-top: 1px solid #232326;
}
.studio .ctrl-group {
  display: flex;
  gap: 6px;
}
.studio .ctrl-btn {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: #1e1e22;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #2a2a2e;
  color: #a1a1aa;
}
.studio .ctrl-btn.active {
  background: rgba(139,92,246,.1);
  border-color: rgba(139,92,246,.25);
  color: #a78bfa;
}
.studio .ep-info {
  text-align: center;
}
.studio .ep-title {
  color: #d4d4d8;
  font-size: 12px;
  font-weight: 500;
}
.studio .ep-season {
  color: #52525b;
  font-size: 10px;
  margin-top: 2px;
  font-weight: 500;
}
.studio .ctrl-right {
  display: flex;
  gap: 8px;
  align-items: center;
}
.studio .export-btn {
  padding: 5px 13px;
  border-radius: 7px;
  background: #1e1e22;
  color: #a1a1aa;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #2a2a2e;
  font-family: inherit;
  font-weight: 500;
}
.studio .stop-btn {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
}

/* ANIMATIONS */
@keyframes st-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .25; }
}
@keyframes st-meter {
  0% { transform: scaleY(1); }
  100% { transform: scaleY(.35); }
}
@keyframes st-fadeUp {
  0% { opacity: 0; transform: translateX(-50%) translateY(8px); }
  100% { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes st-fadeDown {
  0% { opacity: 0; transform: translateY(-6px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* RESPONSIVE */
@media (max-width: 600px) {
  .studio .top-bar { padding: 8px 12px; flex-wrap: wrap; gap: 6px; }
  .studio .st-logo { order: 1; width: 100%; }
  .studio .top-right { order: 2; width: 100%; }
  .studio .tiles { grid-template-columns: 1fr; }
  .studio .tile { aspect-ratio: 4 / 3; }
  .studio .controls { padding: 8px 12px; flex-wrap: wrap; gap: 8px; justify-content: center; }
  .studio .ep-info { display: none; }
  .studio .st-badge { display: none; }
  .studio .producer-chat { bottom: 44px; top: auto; left: auto; right: 8px; transform: none; max-width: 70%; flex-direction: row; align-items: center; gap: 6px; animation-name: st-fadeDown; }
  .studio .producer-avatar { width: 28px; height: 28px; }
  .studio .chat-body { padding: 6px 10px; border-radius: 8px 8px 8px 4px; gap: 2px; }
  .studio .chat-header { gap: 4px; }
  .studio .chat-name { font-size: 10px; }
  .studio .chat-role { font-size: 8px; padding: 1px 4px; }
  .studio .chat-msg { font-size: 10px; line-height: 1.4; }
  .studio .chat-msg b { display: inline; }
  .studio .chat-time { display: none; }
  .studio .ctrl-btn { width: 34px; height: 34px; }
  .studio .stop-btn { width: 34px; height: 34px; }
}
