.media-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
  width: 100%;
  padding: 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 9px;
}

.media-preview video {
  display: block;
  width: min(100%, 520px);
  max-height: 360px;
  background: #000;
  border-radius: 7px;
}

.media-preview audio { width: min(100%, 420px); }
.media-preview a { white-space: nowrap; }

@media (max-width: 480px) {
  .media-preview { grid-template-columns: 1fr; align-items: start; }
  .media-preview a { width: max-content; }
}
