.video-studio-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
  margin: 28px 0;
}
.video-studio-main,
.video-studio-aside {
  min-width: 0;
  padding: 24px;
  border: 1px solid #dce1ed;
  border-radius: 8px;
  background: #fff;
}
.video-studio-aside {
  position: sticky;
  top: 20px;
}
.video-studio-aside h2,
.video-studio-aside h3 {
  margin-top: 0;
}
.video-studio-aside p,
.video-studio-source p,
.video-studio-branches p,
.video-studio-results-head p {
  color: #606a7d;
  font-size: 14px;
  line-height: 1.6;
}
.video-studio-aside nav,
.video-studio-source > div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.video-studio-aside nav {
  flex-direction: column;
  align-items: flex-start;
}
.video-studio-drop {
  padding: 30px 20px;
}
.video-studio-drop p {
  max-width: 620px;
  margin: 12px auto;
}
.video-studio-source {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.video-studio-source strong {
  overflow-wrap: anywhere;
}
.video-studio-source p {
  margin: 4px 0;
}
#video-studio-preview {
  display: block;
  width: 100%;
  max-height: 560px;
  background: #171b22;
  border-radius: 8px;
}
.video-studio-branches {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}
.video-studio-branches > section {
  min-width: 0;
  padding: 18px;
  border: 1px solid #dce1ed;
  border-radius: 8px;
}
.video-studio-branches h2 {
  margin: 0;
  font-size: 20px;
}
.video-studio-frame-controls,
.video-studio-audio-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.video-studio-branches label {
  display: block;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
}
.video-studio-branches input:not([type='range']),
.video-studio-branches select {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 42px;
  margin-top: 6px;
  padding: 8px;
  border: 1px solid #cbd3e4;
  border-radius: 6px;
  background: #fff;
  color: inherit;
  font: inherit;
}
#video-studio-timeline {
  display: block;
  width: 100%;
  margin: 14px 0;
}
.video-studio-results {
  margin-top: 28px;
  border-top: 1px solid #dce1ed;
  padding-top: 18px;
}
.video-studio-results-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.video-studio-results-head h2 {
  margin: 0;
}
#video-studio-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
  padding: 0;
  list-style: none;
}
#video-studio-results li {
  min-width: 0;
  padding: 12px;
  border: 1px solid #dce1ed;
  border-radius: 8px;
  overflow-wrap: anywhere;
}
#video-studio-results img,
#video-studio-results audio {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  background: #f3f5fa;
}
#video-studio-results p {
  color: #606a7d;
  font-size: 13px;
}
#video-studio-results a,
#video-studio-results button {
  display: inline-block;
  margin: 4px 8px 0 0;
  min-height: 40px;
}
#video-studio-status {
  min-height: 24px;
  margin-top: 18px;
}
.video-studio-main [role='alert']:empty {
  display: none;
}
@media (max-width: 900px) {
  .video-studio-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .video-studio-aside {
    position: static;
  }
}
@media (max-width: 620px) {
  .video-studio-main,
  .video-studio-aside {
    padding: 16px;
  }
  .video-studio-branches {
    grid-template-columns: minmax(0, 1fr);
  }
  .video-studio-source,
  .video-studio-results-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .video-studio-results-head button {
    width: 100%;
  }
}
